/* ==========================================================================
   NEWS — 最新消息
   Layered over styles.css. Editorial layout with featured hero card
   and dense article grid. Aligns with brand DNA: dark hero → light list.
   ========================================================================== */

/* ------------------------------------------------------------------
   HERO — bright white, editorial. Clean white canvas, brand pop on
   small accents only. No colored gradient backgrounds.
------------------------------------------------------------------ */
.nw-hero {
  position: relative;
  padding: 160px 0 80px;
  background: #FFFFFF !important;
  color: #14111C;
  overflow: hidden;
  border-bottom: 1px solid #EFEAF0;
}
.nw-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(20,17,28,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,17,28,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 0%, transparent 80%);
  pointer-events: none;
  opacity: 0.6;
}
/* Subtle corner sparkle — single soft pink wash, very faint */
.nw-hero::after {
  content: '';
  position: absolute;
  right: -120px; top: -80px;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224,23,143,0.07) 0%, transparent 60%);
  pointer-events: none;
}
.nw-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
}
.nw-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-en);
  font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: #14111C;
  padding: 8px 16px 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #E8E0EC;
  margin-bottom: 24px;
  box-shadow: 0 1px 2px rgba(20,17,28,0.03);
}
.nw-hero-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #EC0677;
  box-shadow: 0 0 10px rgba(224,23,143,0.55);
}
.nw-hero-title {
  font-size: clamp(48px, 6vw, 84px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin-bottom: 22px;
  color: #14111C;
}
.nw-hero-title .accent {
  background: linear-gradient(110deg, #8A2BE2 0%, #EC0677 45%, #FF9F1C 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nw-hero-sub {
  font-size: 18px;
  line-height: 1.7;
  color: #4A4458;
  max-width: 600px;
}
.nw-hero-meta {
  display: flex; flex-direction: column; gap: 6px;
  text-align: right;
  padding-bottom: 6px;
}
.nw-hero-count {
  font-family: var(--font-en);
  font-weight: 900;
  font-size: 72px;
  line-height: 1;
  background: linear-gradient(110deg, #8A2BE2 0%, #EC0677 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nw-hero-count-label {
  font-family: var(--font-en);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: #7A7289;
}

/* ------------------------------------------------------------------
   FILTER BAR
------------------------------------------------------------------ */
/* TEMP: whole news filter bar (categories + search) hidden until the BE
   category field is ready. To restore the bar, delete the rule below. */
.nw-filter { display: none !important; }

.nw-filter {
  position: sticky; top: 84px; z-index: 30;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(20,17,28,0.08);
  padding: 14px 0;
}
.nw-filter-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.nw-tags {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.nw-tag {
  font-family: var(--font-zh);
  font-size: 13px; font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(20,17,28,0.1);
  color: #14111C;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.nw-tag:hover {
  border-color: rgba(224,23,143,0.5);
  color: #EC0677;
}
.nw-tag.active {
  background: #14111C;
  color: #fff;
  border-color: #14111C;
}
.nw-search {
  position: relative;
  width: 280px;
  max-width: 100%;
}
.nw-search input {
  width: 100%;
  font-family: var(--font-zh);
  font-size: 14px;
  padding: 10px 14px 10px 38px;
  border-radius: 999px;
  border: 1px solid rgba(20,17,28,0.12);
  background: #fff;
  color: #14111C;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.nw-search input:focus {
  border-color: #EC0677;
  box-shadow: 0 0 0 4px rgba(224,23,143,0.12);
}
.nw-search svg {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  color: #7A7289;
  pointer-events: none;
}

/* ------------------------------------------------------------------
   BODY — light list
------------------------------------------------------------------ */
.nw-body {
  background: #FAF8F5;
  padding: 60px 0 100px;
  min-height: 60vh;
}

/* Featured row — first article large */
.nw-featured {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(20,17,28,0.06);
  overflow: hidden;
  margin-bottom: 56px;
  box-shadow: 0 1px 2px rgba(20,17,28,0.04);
  transition: transform .3s var(--ease, ease), box-shadow .3s ease;
}
.nw-featured:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -20px rgba(20,17,28,0.18);
}
.nw-featured-img {
  position: relative;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #E5DFFA, #FBE7F2);
  overflow: hidden;
}
.nw-featured-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease, ease);
}
.nw-featured:hover .nw-featured-img img { transform: scale(1.04); }
.nw-featured-flag {
  position: absolute;
  top: 18px; left: 18px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(110deg, #8A2BE2 0%, #EC0677 100%);
  color: #fff;
  font-family: var(--font-en);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(224,23,143,0.4);
}
.nw-featured-body {
  padding: 44px 44px 44px 8px;
  display: flex; flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.nw-featured-meta {
  display: flex; align-items: center; gap: 14px;
  font-size: 13px; color: #7A7289;
}
.nw-featured-meta .src {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; color: #14111C;
}
.nw-featured-meta .src::before {
  content: ''; width: 4px; height: 4px; border-radius: 50%;
  background: #EC0677;
}
.nw-featured-title {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: #14111C;
}
.nw-featured-title a {
  color: inherit; text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size .3s ease;
}
.nw-featured-title a:hover { background-size: 100% 1px; }
.nw-featured-excerpt {
  font-size: 15px;
  line-height: 1.75;
  color: #4A4458;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nw-featured-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-en);
  font-size: 13px; font-weight: 700;
  color: #EC0677;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}
.nw-featured-cta:hover { gap: 10px; }

/* Article grid */
.nw-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 24px;
}
.nw-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(20,17,28,0.06);
  overflow: hidden;
  display: flex; flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.nw-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px -22px rgba(20,17,28,0.22);
  border-color: rgba(224,23,143,0.3);
}
.nw-card-img {
  position: relative;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #ECE6F6, #FBEEF5);
  overflow: hidden;
}
.nw-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease, ease);
}
.nw-card:hover .nw-card-img img { transform: scale(1.05); }
.nw-card-img-placeholder {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: rgba(20,17,28,0.25);
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.nw-card-body {
  padding: 18px 20px 22px;
  display: flex; flex-direction: column;
  gap: 10px;
  flex: 1;
}
.nw-card-meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px;
  color: #7A7289;
}
.nw-card-meta .date {
  font-family: var(--font-en);
  font-weight: 600;
}
.nw-card-meta .src-tag {
  display: inline-flex; align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(138,43,226,0.08);
  color: #6B1FA8;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.02em;
}
.nw-card-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  color: #14111C;
  letter-spacing: -0.005em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nw-card:hover .nw-card-title { color: #EC0677; }
.nw-card-excerpt {
  font-size: 13px;
  line-height: 1.6;
  color: #4A4458;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nw-card-foot {
  margin-top: auto; padding-top: 6px;
  display: flex; align-items: center;
  font-family: var(--font-en);
  font-size: 12px; font-weight: 700;
  color: #14111C;
  letter-spacing: 0.04em;
}
.nw-card-foot .arrow {
  margin-left: auto;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(20,17,28,0.06);
  display: grid; place-items: center;
  transition: background .2s, color .2s, transform .2s;
}
.nw-card:hover .nw-card-foot .arrow {
  background: #EC0677;
  color: #fff;
  transform: translateX(2px);
}

/* Pagination */
.nw-pagination {
  display: flex; justify-content: center; align-items: center;
  gap: 8px;
  margin-top: 60px;
}
.nw-page-btn {
  min-width: 40px; height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(20,17,28,0.1);
  color: #14111C;
  font-family: var(--font-en);
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  display: inline-flex; align-items: center; justify-content: center;
}
.nw-page-btn:hover:not(:disabled):not(.active) {
  border-color: #EC0677;
  color: #EC0677;
}
.nw-page-btn.active {
  background: #14111C;
  border-color: #14111C;
  color: #fff;
}
.nw-page-btn:disabled {
  opacity: 0.4; cursor: not-allowed;
}

.nw-empty {
  text-align: center;
  padding: 80px 20px;
  color: #7A7289;
  font-size: 15px;
}

/* ------------------------------------------------------------------
   RESPONSIVE
------------------------------------------------------------------ */
@media (max-width: 1024px) {
  .nw-grid { grid-template-columns: repeat(2, 1fr); }
  .nw-featured { grid-template-columns: 1fr; }
  .nw-featured-body { padding: 24px 28px 32px; }
  .nw-featured-title { font-size: 24px; }
}
@media (max-width: 720px) {
  .nw-hero { padding: 110px 0 60px; }
  .nw-hero-inner { grid-template-columns: 1fr; }
  .nw-hero-meta { text-align: left; }
  .nw-grid { grid-template-columns: 1fr; }
  .nw-filter-inner { gap: 12px; }
  .nw-search { width: 100%; }
  .nw-tags { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
}
