/**
 * News page (homepage-source framework)
 * Scoped styles under .eh-news.
 */

@font-face {
  font-family: "P08 Plus Jakarta";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../../assets/fonts/p08-PlusJakarta-400.ttf") format("truetype");
}
@font-face {
  font-family: "P08 Plus Jakarta";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../../assets/fonts/p08-PlusJakarta-700.ttf") format("truetype");
}
@font-face {
  font-family: "P08 Plus Jakarta";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../../assets/fonts/p08-PlusJakarta-800.ttf") format("truetype");
}
@font-face {
  font-family: "P08 Noto Serif SC";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../../assets/fonts/p08-NotoSerifSC-700.ttf") format("truetype");
}
@font-face {
  font-family: "P08 Noto Serif SC";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("../../assets/fonts/p08-NotoSerifSC-900.ttf") format("truetype");
}

html:has(body[data-nav-page="news"]),
body[data-nav-page="news"] {
  background:
    radial-gradient(204px 426px at 0 0, rgba(0, 85, 255, 0.08) 0%, rgba(0, 85, 255, 0) 50%),
    radial-gradient(204px 426px at 100% 0, rgba(255, 122, 0, 0.08) 0%, rgba(255, 122, 0, 0) 50%),
    radial-gradient(102px 213px at 50% 50%, rgba(0, 242, 148, 0.03) 0%, rgba(0, 242, 148, 0) 50%),
    #f8faff;
}

.news-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: auto;
  display: block;
  z-index: 0;
  pointer-events: none;
}

body[data-nav-page="news"] .page {
  z-index: 1;
}

.eh-news {
  --blue: #0055ff;
  --blue-deep: #0041c8;
  --blue-soft: #eef4ff;
  --orange: #fb7800;
  --orange-soft: #fff1e5;
  --green: #00a364;
  --green-soft: #e9fff7;
  --text: #0f172a;
  --text-2: #1a1c1e;
  --muted: #5b6785;
  --muted-2: #64748b;
  --line: #dce4f5;

  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 7.5rem 1rem 4rem;
  color: var(--text);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

.eh-news * { box-sizing: border-box; }
.eh-news img { display: block; max-width: 100%; }

.eh-news .hero {
  padding:  0 0 2rem 0;
}
.eh-news .hero-inner {
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.eh-news .hero-kicker {
  font-family: "P08 Plus Jakarta", sans-serif;
  font-size: var(--type-d-caption);
  line-height: 1.5;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--blue);
}
.eh-news h1 {
  margin: 0;
  font-family: "P08 Noto Serif SC", serif;
  /* font-size: var(--type-d-title-xl); */
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  line-height: 1.15;
  font-weight: 900;
}
.eh-news h1 span { color: var(--blue); }
.eh-news .hero-desc {
  max-width: 42rem;
  color: var(--muted);
  font-size: var(--type-d-lead);
  line-height: var(--type-d-line-body);
}

.eh-news .hero-tabs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 1.5rem 0 0.5rem;
}
.eh-news .tab {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--muted);
  font-size: var(--type-d-meta);
  line-height: 1.5;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  cursor: pointer;
}
.eh-news .tab.active {
  background: var(--blue);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 15px -3px rgba(0, 85, 255, 0.2), 0 4px 6px -4px rgba(0, 85, 255, 0.2);
}
.eh-news .tab:focus-visible {
  outline: 2px solid rgba(0, 85, 255, 0.35);
  outline-offset: 2px;
}

.eh-news .feature-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 1.5rem;
}
.eh-news .feature-grid.is-single-column {
  grid-template-columns: 1fr;
}
.eh-news .feature-grid.is-two-equal {
  grid-template-columns: 1fr 1fr;
}
.eh-news .feature-grid.is-single-left {
  grid-template-columns: 1fr 1fr;
}
.eh-news .feature-card {
  position: relative;
  overflow: hidden;
  border-radius: 3rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}
.eh-news .feature-card.large { min-height: 55rem; }
.eh-news .stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.eh-news .feature-card.small { min-height: 26.5rem; }
.eh-news .feature-card > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.eh-news .overlay-dark,
.eh-news .overlay-blue,
.eh-news .overlay-orange {
  position: absolute;
  inset: 0;
}
.eh-news .overlay-dark {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 50%);
}
.eh-news .overlay-blue {
  background: linear-gradient(to top, rgba(0, 65, 200, 0.8) 0%, rgba(0, 65, 200, 0) 50%);
}
.eh-news .overlay-orange {
  background: linear-gradient(to top, rgba(151, 37, 0, 0.8) 0%, rgba(151, 37, 0, 0) 50%);
}

.eh-news .feature-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.eh-news .feature-content.small {
  padding: 1.5rem;
  gap: 0.4rem;
}
.eh-news .chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
  font-size: var(--type-d-caption);
  line-height: 1.5;
  font-weight: 500;
  width: fit-content;
}
.eh-news .chip.orange { background: var(--orange); color: #fff; }
.eh-news .chip.blur {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  backdrop-filter: blur(6px);
}
.eh-news .feature-title {
  margin: 0;
  color: #fff;
  font-family: "P08 Noto Serif SC", serif;
  font-size: var(--type-d-title-lg);
  line-height: var(--type-d-line-title);
}
.eh-news .feature-title.small {
  font-family: inherit;
  font-size: var(--type-d-title-md);
  line-height: var(--type-d-line-title);
  font-weight: 500;
}
.eh-news .feature-copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--type-d-body);
  line-height: var(--type-d-line-body);
}
.eh-news .read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-size: var(--type-d-meta);
  line-height: 1.5;
}

.eh-news .list-section {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.eh-news .section-head {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.eh-news .section-head h2 {
  margin: 0;
  font-family: "P08 Noto Serif SC", serif;
  font-size: var(--type-d-title-xl);
  line-height: 1.15;
  font-weight: 500;
  color: var(--text-2);
}
.eh-news .section-line {
  width: 96px;
  height: 6px;
  border-radius: 999px;
  background: var(--orange);
}
.eh-news .section-desc {
  margin: 0;
  max-width: 32rem;
  color: var(--muted-2);
  font-family: "P08 Plus Jakarta", sans-serif;
  font-size: var(--type-d-lead);
  line-height: var(--type-d-line-body);
}

.eh-news .news-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.eh-news .news-item {
  border: 1px solid var(--line);
  border-radius: 2rem;
  background: #fff;
  padding: 1.2rem;
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.eh-news .news-date {
  min-width: 7rem;
  padding-right: 1.2rem;
  border-right: 1px solid var(--line);
  text-align: center;
}
.eh-news .news-day {
  font-size: var(--type-d-title-lg);
  line-height: 1.1;
  color: var(--blue-deep);
}
.eh-news .news-day.is-orange {
  color: var(--orange);
}
.eh-news .news-month {
  color: var(--muted-2);
  font-size: var(--type-d-meta);
  line-height: 1.5;
  text-transform: uppercase;
}
.eh-news .news-content {
  flex: 1 1 auto;
  min-width: 0;
}
.eh-news .news-content h3 {
  margin: 0 0 0.35rem;
  font-size: var(--type-d-title-md);
  line-height: var(--type-d-line-title);
  font-weight: 500;
  color: var(--text-2);
}
.eh-news .news-content p {
  margin: 0;
  color: var(--muted);
  font-size: var(--type-d-body);
  line-height: var(--type-d-line-body);
}
.eh-news .news-meta {
  min-width: 8.75rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.8rem;
}
.eh-news .meta-chip {
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
  font-size: var(--type-d-caption);
  line-height: 1.5;
  font-weight: 500;
}
.eh-news .meta-chip.blue { background: var(--blue-soft); color: var(--blue-deep); }
.eh-news .meta-chip.orange { background: var(--orange-soft); color: var(--orange); }
.eh-news .meta-chip.green { background: var(--green-soft); color: var(--green); }

.eh-news .pagination {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
.eh-news .page-btn {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--type-d-meta);
  line-height: 1.5;
}
.eh-news .page-btn.active {
  border-color: transparent;
  background: var(--blue-deep);
  color: #fff;
}
.eh-news .ellipsis {
  color: var(--muted-2);
}

.eh-news .to-top {
  position: fixed;
  right: 2rem;
  bottom: 2rem;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12.5px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 30;
}

.eh-news .is-hidden {
  display: none !important;
}

@media (max-width: 1023px) {
  .eh-news .feature-grid {
    grid-template-columns: 1fr;
  }
  .eh-news .feature-card.large,
  .eh-news .feature-card.small {
    min-height: 26rem;
  }
}

@media (max-width: 767px) {
  .eh-news {
    padding: 6.5rem 0.5rem 3rem;
  }
  .eh-news .hero-kicker,
  .eh-news .chip,
  .eh-news .meta-chip,
  .eh-news .news-month {
    font-size: var(--type-m-caption);
    line-height: 1.5;
  }
  .eh-news h1 {
    font-size: var(--type-m-title-xl);
    line-height: var(--type-m-line-tight);
  }
  .eh-news .hero-desc,
  .eh-news .section-desc {
    font-size: var(--type-m-body-lg);
    line-height: var(--type-m-line-body);
  }
  .eh-news .tab,
  .eh-news .page-btn,
  .eh-news .read-more {
    font-size: var(--type-m-body);
    line-height: 1.5;
  }
  .eh-news .feature-title,
  .eh-news .feature-title.small,
  .eh-news .news-content h3 {
    font-size: var(--type-m-title-md);
    line-height: var(--type-m-line-title);
  }
  .eh-news .section-head h2 {
    font-size: var(--type-m-title-lg);
    line-height: var(--type-m-line-tight);
  }
  .eh-news .feature-copy,
  .eh-news .news-content p {
    font-size: var(--type-m-body);
    line-height: var(--type-m-line-body);
  }
  .eh-news .news-day {
    font-size: var(--type-m-title-lg);
    line-height: var(--type-m-line-tight);
  }
  .eh-news .hero-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.3rem;
    white-space: nowrap;
  }
  .eh-news .news-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .eh-news .news-date {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-right: 0;
    padding-bottom: 0.7rem;
    min-width: auto;
    width: 100%;
    text-align: left;
  }
  .eh-news .news-meta {
    min-width: 0;
    width: 100%;
    justify-content: space-between;
  }
  .eh-news .to-top {
    width: 52px;
    height: 52px;
    right: 1rem;
    bottom: 1rem;
  }
}
