/* ==========================================================================
   Taimei News (公司动态) — News listing page
   Native CSS, 1440px design, pixel-based positioning.
   ========================================================================== */

:root {
  --page-width: 1440px;
  --blue: #0A47ED;
  --dark-blue: #041884;
  --text-dark: #3E3E3E;
  --light-blue: #5EA4FF;
  --white: #FFFFFF;
  --gray: #97999B;

  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-cn: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Hero 光晕超出 1440 内容框，横向溢出统一由 html 裁剪 */
html {
  overflow-x: hidden;
}

body {
  font-family: var(--font);
  background: #ffffff;
  color: var(--text-dark);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* 不在 body 上设 overflow-x: hidden：与 html 重复会让 body 成为滚动容器，
     右侧出现通高的滚动条/白边（100vw 满屏层会被 body 裁掉） */
}

img {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

.page {
  position: relative;
  width: var(--page-width);
  margin: 0 auto;
}

/* ==========================================================================
   Hero (News)
   ========================================================================== */

.news-banner {
  position: relative;
  height: 800px;
}

.news-bg {
  position: absolute;
  top: 0;
  left: calc(720px - 50vw);
  width: 100vw;
  height: 800px;
  background: linear-gradient(180deg, rgba(4, 24, 132, 1) 63%, rgba(4, 24, 132, 0) 100%);
}

/* 底部白色辉光：横向远宽于纵向的椭圆（设计稿 300% × 100%），
   使底部在列表起始位置（y≈700）前已渐隐到接近纯白；
   若不显式指定尺寸，浏览器会按 farthest-corner（半径 1073px）计算，
   蓝色会一直铺到两侧和底部，1920 屏下在列表两侧形成明显蓝带。 */
.news-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(300% 100% at 50% 100%, rgba(255, 255, 255, 1) 14%, rgba(20, 64, 242, 1) 55%, rgba(0, 15, 96, 1) 94%);
}

.news-glow {
  position: absolute;
  display: block;
}

.news-glow--1 {
  top: -321px;
  left: 946px;
  width: 683px;
  height: 642px;
  background: var(--blue);
  filter: blur(112px);
}

.news-block {
  position: absolute;
  top: -294px;
  left: 252px;
  width: 1185px;
  height: 673px;
}

.news-glow--2 {
  top: 78px;
  left: 265px;
  width: 910px;
  height: 570px;
  background: rgba(140, 69, 255, 0.4);
  filter: blur(150px);
}

.news-glow--3 {
  top: 250px;
  left: 129px;
  width: 1183px;
  height: 169px;
  background: #6756ff;
  filter: blur(25px);
}

.news-title {
  position: absolute;
  top: 136px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 64px;
  font-weight: 500;
  line-height: 70px;
  letter-spacing: -0.05em;
  text-align: center;
  color: var(--white);
}

.news-frame {
  position: absolute;
  top: 273px;
  left: 80px;
  width: 1280px;
  /* 25(上留白) + 261(轮播) + 225(下留白)，轮播变矮后同步收，保持内边距比例 */
  height: 511px;
  background: var(--white);
  border-radius: 40px;
}

/* ---- Featured news slider ---- */

.news-featured {
  position: absolute;
  top: 25px;
  left: 25px;
  width: 1230px;
  height: 261px;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 4px 8px 0 rgba(94, 164, 255, 0.25);
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}

.news-featured.is-dragging {
  cursor: grabbing;
}

.news-slider__track {
  display: flex;
  height: 100%;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* 拖拽过程中关闭过渡，跟手移动 */
.news-featured.is-dragging .news-slider__track {
  transition: none;
}

.news-slide {
  position: relative;
  width: 1230px;
  /* 与右侧封面比例一致：615 ÷ (600/255) ≈ 261，图片不再有上下留白 */
  height: 261px;
  flex-shrink: 0;
  display: flex;
  background: var(--white);
}

.featured__body {
  position: relative;
  flex: 1;
  padding: 31px 0 0 35px;
}

.featured__title {
  width: 550px;
  font-size: 30px;
  font-weight: 700;
  line-height: 40px;
  color: var(--blue);
}

.featured__btn {
  position: absolute;
  /* 原先写死 top:280（对应 350 高）；改为距底对齐，卡片变矮后位置关系不变 */
  top: auto;
  bottom: 22px;
  left: 435px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 32px;
  background: var(--white);
  color: var(--light-blue);
  border-radius: 9999px;
  font-size: 16px;
  line-height: 28px;
  white-space: nowrap;
}

/* 箭头仅在当前展示的卡片上出现 */
.featured__btn-icon {
  width: 14px;
  height: 14px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.news-slide.is-active .featured__btn-icon {
  opacity: 1;
}

.featured__media {
  position: relative;
  width: 615px;
  height: 261px;
  flex-shrink: 0;
  overflow: hidden;
  /* 封面改为 contain 完整显示后，取景框的空余部分由这层底色补白 */
  background: #f2f4f8;
}

/* 完整显示整张封面：等比缩放（contain），不放大、不位移。
   原实现用 798×444 的盒子 + top/left 负偏移 + cover，是照设计稿那张
   占位图裁的；换成 CMS 里宽高比不同的封面就会大幅裁切、展示不全。 */
.featured__img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  -webkit-user-drag: none;
}

.featured__shade {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 615px;
  height: 70px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.6) 40%, rgba(0, 0, 0, 0) 100%);
}

.featured__overlay {
  position: absolute;
  /* 原先写死 top:300（对应 350 高）；改为距底对齐（图上的日期/地点） */
  top: auto;
  bottom: 20px;
  left: 202px;
  display: flex;
  align-items: center;
  gap: 25px;
  z-index: 1;
}

.featured__overlay span {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  line-height: 30px;
  color: var(--white);
  white-space: nowrap;
}

.featured__overlay img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

/* ---- Slider pagination ---- */

.news-slider__dots {
  position: absolute;
  left: 35px;
  /* 原先写死 top:296（对应 350 高）；改为距底对齐（轮播圆点） */
  top: auto;
  bottom: 38px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
}

.news-dot {
  width: 16px;
  height: 16px;
  border-radius: 8px;
  background: #dde6ff;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.news-dot.is-active {
  width: 80px;
  background: var(--light-blue);
}

/* ==========================================================================
   News list（每行 1 条：标题 + 日期，无配图。设计稿 y:700，80 起 1280 宽，行高 189）
   行高按需求收紧到 130（标题/日期仍垂直居中），标题与日期 top 同步改为 (H-内容高)/2
   ========================================================================== */

.news-list {
  position: relative;
  width: 1280px;
  margin: -100px auto 0;
  display: flex;
  flex-direction: column;
  z-index: 1;
  /* 分页链接带回 #news 锚点，翻页后直接停在本列表顶部；
     顶部固定 header 会盖住锚点，这里补出偏移 */
  scroll-margin-top: 110px;
}

.news-card {
  position: relative;
  display: block;
  width: 1280px;
  height: 130px;
  background: var(--white);
  border-bottom: 2px solid #f5f7ff;
  cursor: pointer;
}

/* 标题：x=90，纵向居中（(130-60)/2 = 35），最多 2 行 */
.news-card__title {
  position: absolute;
  top: 35px;
  left: 90px;
  width: 900px;
  height: 60px;
  font-size: 18px;
  font-weight: 400;
  line-height: 30px;
  color: var(--text-dark);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 日期：右侧 x=1059；不换行（英文如 May 26, 2026 比设计稿的日期更长） */
.news-card__date {
  position: absolute;
  top: 50px;
  left: 1059px;
  font-size: 18px;
  line-height: 30px;
  color: var(--gray);
  white-space: nowrap;
}

/* ==========================================================================
   Pagination（页码导航，替代原「加载更多」）
   每项都是服务端链接（?page=N），保持 MPA / SEO 友好，无 JS 依赖。
   设计参考：白底圆角方块 + 当前页蓝底白字 + 省略号同款方块。
   ========================================================================== */

.news-pager {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  margin-top: 62px;
  z-index: 1;
}

/* 页码 / 前后翻页 / 省略号：统一的白色方块 */
.news-pager__item,
.news-pager__nav,
.news-pager__gap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 48px;
  padding: 0 12px;
  border: 1px solid #e6eaf3;
  border-radius: 8px;
  background: var(--white);
  font-size: 18px;
  line-height: 1;
  color: var(--text-dark);
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}

.news-pager__item:hover,
.news-pager__nav:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* 当前页：蓝底白字，不可点 */
.news-pager__item.is-active {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
  cursor: default;
}

/* 首页 / 末页时置灰的前后翻页按钮 */
.news-pager__nav.is-disabled {
  color: #c8ccd6;
  cursor: not-allowed;
}

/* 省略号：仅保留方块轮廓，弱化文字 */
.news-pager__gap {
  color: var(--gray);
  cursor: default;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  position: relative;
  height: 505px;
  margin-top: 105px;
  background: var(--dark-blue);
}

.footer__cube {
  position: absolute;
  top: -137px;
  left: calc(50vw - 387px);
  width: 1107px;
  height: 642px;
  clip-path: inset(137px 0 0 0);
  z-index: 0;
}

.footer__glow {
  position: absolute;
  top: 292px;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 213px;
  background: rgba(10, 71, 237, 0.8);
  filter: blur(152px);
  z-index: 0;
}

.footer__brands img {
  position: absolute;
  top: 120px;
  left: 80px;
  width: 142px;
  height: 52px;
  z-index: 1;
}

.footer__brand-2 {
  left: 258px !important;
  height: 51px !important;
}

.footer__title {
  position: absolute;
  top: 115px;
  left: 479px;
  font-size: 30px;
  font-weight: 700;
  line-height: 40px;
  color: var(--white);
  z-index: 1;
}

.footer__contact {
  position: absolute;
  top: 174px;
  left: 479px;
  z-index: 1;
}

.footer__contact--right {
  left: 782px;
}

.footer__line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  line-height: 30px;
  color: var(--white);
}

.footer__line--main {
  position: absolute;
  top: 30px;
  left: 0;
  white-space: nowrap;
}

.footer__line strong {
  font-weight: 400;
}

.footer__qr {
  position: absolute;
  top: 121px;
  left: 1110px;
  width: 150px;
  height: 150px;
  z-index: 1;
}

.footer__badge {
  position: absolute;
  top: 121px;
  left: 1320px;
  width: 40px;
  height: 40px;
  padding: 0;
  z-index: 1;
}

.footer__badge img {
  display: block;
  width: 100%;
  height: 100%;
}

.footer__divider {
  position: absolute;
  top: 394px;
  left: 80px;
  width: 1280px;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  z-index: 1;
}

.footer__social {
  position: absolute;
  top: 419px;
  left: 80px;
  display: flex;
  align-items: center;
  gap: 30px;
  z-index: 1;
}

.footer__social a {
  display: inline-flex;
  opacity: 0.4;
  transition: opacity 0.2s ease;
}

.footer__social a:hover {
  opacity: 1;
}

.footer__social img {
  width: 24px;
  height: 24px;
}

.footer__legal {
  position: absolute;
  top: 420px;
  left: 350px;
  z-index: 1;
}

.footer__legal span {
  position: absolute;
  top: 0;
  font-size: 12px;
  line-height: 22px;
  color: var(--white);
  white-space: nowrap;
}

.footer__legal span:nth-child(1) { left: 0; }
.footer__legal span:nth-child(2) { left: 377px; }
.footer__legal span:nth-child(3) { left: 564px; }
.footer__legal span:nth-child(4) { left: 784px; }

.footer__policy {
  position: absolute;
  top: 450px;
  left: 908px;
  font-size: 12px;
  line-height: 22px;
  color: var(--white);
  z-index: 1;
}
