@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;800;900&display=swap');

/*
 * Newsgraphy — Homepage (CSS scroll-snap, 6 cards)
 * Replaces fullPage.js styles entirely.
 */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Design tokens ── */
:root {
  --blue:      #0866bc;
  --blue900:   #03284b;
  --blue800:   #043d70;
  --blue400:   #5293d0;
  --orange:    #e27705;
  --orange800: #874703;
  --sans:      "Poppins","Noto Sans SC","Helvetica Neue",Arial,system-ui,sans-serif;
  --serif:     "DM Serif Display",Georgia,serif;
  --display:   "Poppins","AlibabaPuHuiTi Black","Noto Sans SC",sans-serif;
}

/* ── AlibabaPuHuiTi Black ── */
@font-face {
  font-family: "AlibabaPuHuiTi Black";
  src: url('../fonts/AlibabaPuHuiTi-3-115-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ── Full-height layout ── */
html.ng-scroll-home,
body.ng-scroll-home {
  height: 100%;
  overflow: hidden;
  font-family: var(--sans);
}

/* ── Nav ── */
#ng-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 40px;
  height: 80px;
  color: #fff;
  transition: color .3s;
}

.ng-nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
}

#ng-nav-logo-img {
  height: 64px;
  width: auto;
  display: block;
  transition: filter .3s;
}

/* Nav links */
.ng-nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
  align-items: center;
  list-style: none;
  padding: 0;
}

.ng-nav-links li a,
.ng-nav-link {
  font-size: 13px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 6px;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  opacity: .8;
  transition: opacity 120ms, color 300ms;
  color: inherit;
  text-decoration: none;
  display: inline-block;
}
.ng-nav-links li a:hover,
.ng-nav-link:hover { opacity: 1; }

/* ── Stories dropdown ── */
.ng-has-dropdown { position: relative; }
.ng-has-dropdown > a::after { content: ' ▾'; font-size: 9px; opacity: .55; }
.ng-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: #03284b;
  border-radius: 10px;
  list-style: none;
  padding: 6px 0;
  min-width: 170px;
  box-shadow: 0 8px 28px rgba(0,0,0,.28);
  opacity: 0;
  visibility: hidden;
  transition: opacity 150ms, transform 150ms, visibility 150ms;
  z-index: 200;
  pointer-events: none;
}
.ng-has-dropdown:hover .ng-dropdown,
.ng-has-dropdown:focus-within .ng-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.ng-dropdown li a {
  display: block;
  padding: 7px 18px;
  color: rgba(255,255,255,.72) !important;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: color 120ms, background 120ms;
  opacity: 1 !important;
}
.ng-dropdown li a:hover {
  color: #fff !important;
  background: rgba(255,255,255,.08);
}

/* ── Search button ── */
.ng-nav-search-btn {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 6px 10px;
  opacity: .75;
  transition: opacity 120ms;
  display: flex;
  align-items: center;
  margin-left: 4px;
}
.ng-nav-search-btn:hover { opacity: 1; }

/* ── Search overlay ── */
.ng-search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(3,40,75,.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.ng-search-overlay.open { display: flex; }
.ng-search-form {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 12px;
  padding: 14px 20px;
  width: min(620px, 88vw);
}
.ng-search-input {
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  font-family: inherit;
  width: 100%;
  outline: none;
}
.ng-search-input::placeholder { color: rgba(255,255,255,.35); }
.ng-search-close {
  background: none;
  border: none;
  color: rgba(255,255,255,.5);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  flex-shrink: 0;
  transition: color 120ms;
}
.ng-search-close:hover { color: #fff; }

/* CTA / Login+Register pill */
.ng-nav-cta {
  font-size: 13px;
  font-weight: 900;
  padding: 8px 20px;
  border-radius: 999px;
  cursor: pointer;
  border: 2.5px solid currentColor;
  background: transparent;
  font-family: inherit;
  margin-left: 8px;
  transition: opacity 150ms;
  color: inherit;
  text-decoration: none;
}
.ng-nav-cta:hover { opacity: .8; }

/* Lang toggle */
.ng-lang-toggle {
  font-size: 12px;
  font-weight: 900;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  background: rgba(255,255,255,.12);
  border: 1.5px solid rgba(255,255,255,.25);
  font-family: inherit;
  color: inherit;
  margin-left: 4px;
  letter-spacing: .05em;
  transition: background 120ms;
}
.ng-lang-toggle:hover { background: rgba(255,255,255,.22); }

/* Hamburger button */
.ng-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: 4px;
  color: inherit;
}
.ng-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 200ms, opacity 200ms;
}
.ng-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ng-hamburger.open span:nth-child(2) { opacity: 0; }
.ng-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile dropdown menu */
.ng-mobile-menu {
  display: none;
  position: fixed;
  top: 76px;
  left: 0; right: 0;
  z-index: 99;
  flex-direction: column;
  background: rgba(10,10,20,.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 12px 0 20px;
}
.ng-mobile-menu.open { display: flex; }
.ng-mobile-menu a,
.ng-mobile-menu button {
  background: none;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  padding: 14px 24px;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  width: 100%;
  display: block;
}
.ng-mobile-menu a:hover,
.ng-mobile-menu button:hover { background: rgba(255,255,255,.07); }

/* ── Scroll container (replaces fullPage.js) ── */
#ng-scroller {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}
#ng-scroller::-webkit-scrollbar { display: none; }
#ng-scroller {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ── Card base ── */
.ng-card {
  height: 100vh;
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 120px 60px 60px;
  position: relative;
  overflow: hidden;
}

.ng-card-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 2;
}

.ng-card-right {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

/* Slides where visual is on the LEFT and text is on the RIGHT (desktop only) */
.ng-c2 .ng-card-left,
.ng-c6 .ng-card-left  { grid-column: 2; grid-row: 1; }
.ng-c2 .ng-card-right,
.ng-c6 .ng-card-right { grid-column: 1; grid-row: 1; }

/* Pull image toward the text column, matching the 60px gap of ng-c0 */
.ng-c2 .ng-card-right { justify-content: flex-end; }
.ng-c6 .ng-card-right { justify-content: flex-end; }
.ng-c2 { column-gap: 60px; }
.ng-c6 { column-gap: 60px; }

.ng-card-kicker {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 900;
  opacity: .55;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ng-card-kicker::before {
  content: "";
  width: 24px;
  height: 2.5px;
  background: currentColor;
  border-radius: 2px;
}

.ng-card-headline {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(48px, 6vw, 82px);
  line-height: 1.05;
  letter-spacing: -.02em;
}

.ng-card-body {
  font-size: 17px;
  line-height: 1.65;
  opacity: .75;
  max-width: 420px;
}

.ng-card-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 4px;
}
.ng-card-stat-num {
  font-family: var(--serif);
  font-size: clamp(56px, 8vw, 110px);
  line-height: .95;
  letter-spacing: -.03em;
  font-weight: 400;
}
.ng-card-stat-label {
  font-size: 13px;
  font-weight: 700;
  opacity: .6;
  letter-spacing: .04em;
}

.ng-card-cta {
  align-self: flex-start;
  margin-top: 8px;
  font-size: 15px;
  font-weight: 900;
  padding: 13px 28px;
  border-radius: 999px;
  cursor: pointer;
  border: 2.5px solid currentColor;
  background: currentColor;
  font-family: inherit;
  transition: opacity 150ms;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ng-card-cta:hover { opacity: .85; }

.ng-vis {
  width: 100%;
  max-width: 480px;
  height: auto;
  object-fit: contain;
  display: block;
}


/* ── Scroll dots ── */
#ng-dots {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #fff;
}
.ng-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid currentColor;
  cursor: pointer;
  transition: all 200ms;
  opacity: .4;
  padding: 0;
  background: none;
}
.ng-dot.active { opacity: 1; transform: scale(1.4); }

/* ── Scroll hint ── */
.ng-scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .5;
  animation: ng-bob 2s ease-in-out infinite;
  pointer-events: none;
  color: inherit;
}
@keyframes ng-bob {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(6px); }
}

/* ── Card colour themes ── */
.ng-c0 { background: #0866bc; color: #fff; }

/* ── Card 0: hero overrides ── */
.ng-c0 {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 60px;
  padding: 100px 60px 60px;
}
.ng-c0 .ng-card-left  { flex: 0 0 480px; }
.ng-c0 .ng-card-right { flex: 0 0 480px; }
.ng-c0 .ng-vis        { width: 100%; max-width: 480px; }

/* Body text: show each sentence on its own line */
.ng-c0 .ng-card-body {
  max-width: 420px;
  line-height: 1.9;
}

/* Top centered section label */
.ng-c0-top-tag {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .15em;
  color: rgba(255,255,255,.38);
  padding-bottom: 12px;
  align-self: end;
}

/* Middle column */
.ng-c0-middle {
  display: flex;
  flex-direction: column;
  gap: 22px;
  z-index: 2;
}

.ng-c0-tagline {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ng-c0-tagline span {
  font-family: var(--display);
  font-size: clamp(16px, 1.7vw, 24px);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -.01em;
  color: rgba(255,255,255,.88);
}

.ng-c0-middle-body {
  font-size: 15px;
  line-height: 1.75;
  color: rgba(255,255,255,.58);
  max-width: 320px;
}

/* "关于我们" text link */
.ng-c0-about-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,.52);
  text-decoration: none;
  margin-top: -4px;
  transition: color 150ms;
}
.ng-c0-about-link:hover { color: #fff; }
.ng-c1 { background: #f0e6d3;        color: var(--orange800); }
.ng-c2 { background: #043d70;    color: #fff; }
.ng-c2 .ng-card-body { max-width: none; white-space: nowrap; }
@media (max-width: 768px) {
  .ng-c2 .ng-card-body { white-space: normal; max-width: 420px; }
}
.ng-c3 { background: #e27705;        color: #b8e8c4; }
.ng-c3 .ng-card-body { color: #fff !important; }

/* ── Card 3: Partnerships — centred flexbox layout (mirrors Card 0) ── */
.ng-c3 {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 60px;
  padding: 100px 40px 60px;
}
/* Text column: wider than ng-c0 to fit the longer 8-char headline */
.ng-c3 .ng-card-left  { flex: 0 1 600px; }
.ng-c3 .ng-card-right { flex: 0 0 480px; justify-content: flex-start; }
.ng-c3 .ng-vis        { width: 100%; max-width: 480px; }
/* Slightly smaller font so "我们让它活起来。" stays on one line */
.ng-c3 .ng-card-headline { font-size: clamp(44px, 5.5vw, 74px); }
.ng-c4 { background: #fff;           color: #03284b; }

/* ── c4 Posts Carousel ── */
.ng-c4 {
  padding: 80px 60px 48px;
  display: flex;
  flex-direction: column;
}
.ng-c4-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-shrink: 0;
}
.ng-c4-title-block { display: flex; flex-direction: column; gap: 8px; }
.ng-c4-headline {
  font-family: var(--display);
  font-size: clamp(28px, 3.2vw, 48px);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -.025em;
  color: #03284b;
  white-space: nowrap;
}
.ng-c4-arrows { display: flex; gap: 8px; align-self: flex-end; padding-bottom: 4px; }
.ng-c4-arrow {
  width: 42px; height: 42px;
  border: 2px solid rgba(3,40,75,.18);
  background: none; border-radius: 50%; cursor: pointer; font-size: 17px;
  color: #03284b; display: flex; align-items: center; justify-content: center;
  transition: background 150ms, border-color 150ms, color 150ms;
  line-height: 1;
}
.ng-c4-arrow:hover { background: #03284b; color: #fff; border-color: #03284b; }
.ng-c4-arrow:disabled { opacity: .25; cursor: default; pointer-events: none; }
.ng-c4-wrap {
  flex: 1;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
  scrollbar-width: none;
  min-height: 0;
  min-width: 0;
}
.ng-c4-wrap::-webkit-scrollbar { display: none; }
.ng-c4-track { display: flex; gap: 18px; height: 100%; width: max-content; }
.ng-c4-post {
  /* vw-based: (viewport − 120px h-padding − 36px for 2×18px gaps) ÷ 3 */
  flex: 0 0 calc((100vw - 156px) / 3);
  scroll-snap-align: start;
  background: #f7f6f3;
  border-radius: 12px;
  padding: 26px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 150ms, transform 150ms;
  cursor: pointer;
}
.ng-c4-post:hover { box-shadow: 0 8px 28px rgba(3,40,75,.09); transform: translateY(-2px); }
.ng-c4-cat {
  font-size: 10px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 2px; color: #fff;
  display: inline-block; align-self: flex-start;
}
.ng-c4-post-title {
  font-family: var(--display);
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 900; line-height: 1.2; letter-spacing: -.015em;
  color: #03284b; flex: none;
}
.ng-c4-thumb {
  width: 100%; flex: none;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 6px;
}
.ng-c4-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.ng-c4-post-excerpt { font-size: 13px; line-height: 1.6; color: rgba(3,40,75,.55); flex: none; }
.ng-c4-post-footer {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; font-weight: 700; color: rgba(3,40,75,.4);
  padding-top: 12px; border-top: 1px solid rgba(3,40,75,.07); margin-top: auto;
}
.ng-c4-read { color: #0866bc; font-weight: 900; font-size: 12px; }
.ng-c4-dots { display: flex; gap: 7px; justify-content: center; margin-top: 16px; flex-shrink: 0; }
.ng-c4-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(3,40,75,.18);
  border: none; cursor: pointer; padding: 0;
  transition: background 200ms, transform 200ms;
}
.ng-c4-dot.active { background: #0866bc; transform: scale(1.5); }

/* Spacer: hidden on desktop (only needed for mobile 2-row grid pairing) */
.ng-c4-spacer { display: none; }

/* "Read More" card */
.ng-c4-post-more {
  background: #03284b; color: #fff;
  align-items: center; justify-content: center; text-align: center; gap: 16px;
}
.ng-c4-post-more:hover { box-shadow: 0 8px 28px rgba(3,40,75,.25); transform: translateY(-2px); }
.ng-c4-more-arrow {
  font-size: 40px; line-height: 1; color: #e27705;
  transition: transform 200ms;
}
.ng-c4-post-more:hover .ng-c4-more-arrow { transform: translateX(6px); }
.ng-c4-more-label {
  font-family: var(--display); font-size: clamp(17px, 1.6vw, 22px);
  font-weight: 900; letter-spacing: -.01em; color: #fff;
}
.ng-c4-more-sub {
  font-size: 12px; font-weight: 700; color: rgba(255,255,255,.45);
  letter-spacing: .08em; text-transform: uppercase;
}
/* ── Instagram Feed slide ─────────────────────────────────────────── */
.ng-c-insta {
  background: #fff;
  color: #03284b;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 64px;
  padding-top: calc(80px + 48px); /* nav height + breathing room */
}
.ng-insta-inner {
  width: 100%;
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  height: 100%;
  justify-content: center;
}
.ng-insta-header { display: flex; flex-direction: column; gap: 6px; }
.ng-insta-headline {
  font-family: var(--display);
  font-size: clamp(28px, 3.5vw, 52px);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -.025em;
  color: #03284b;
  margin: 0;
}
.ng-insta-handle {
  font-size: 1rem;
  font-weight: 700;
  color: #c13584;
  text-decoration: none;
  letter-spacing: -.01em;
}
.ng-insta-handle:hover { text-decoration: underline; }
.ng-insta-feed { width: 100%; flex: 1; min-height: 0; }
/* Smash Balloon override: fill available space */
.ng-insta-feed .sbi_feedlink,
.ng-insta-feed #sb_instagram { width: 100% !important; }
/* Preview placeholder grid */
.ng-insta-placeholder {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  width: 100%;
}
.ng-insta-tile {
  aspect-ratio: 1;
  border-radius: 10px;
}
@media (max-width: 768px) {
  .ng-c-insta { padding: 32px 24px; padding-top: calc(76px + 24px); }
  .ng-insta-placeholder { grid-template-columns: repeat(3, 1fr); }
  .ng-insta-tile:nth-child(n+7) { display: none; }
}

.ng-c5 { background: #e8edf8;        color: var(--blue800); }
.ng-c6 { background: #b45f04;        color: #d4c4ff; }
.ng-c6 .ng-card-body { color: #fff !important; }
.ng-c7 {
  background: var(--orange800);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  text-align: center;
  padding: 100px 60px 0;
  height: auto;
  min-height: 100vh;
  overflow: visible;
}
.ng-c6 .ng-card-headline { font-size: clamp(36px, 4.2vw, 62px); }
.ng-c7 .ng-card-headline { font-size: clamp(40px, 5vw, 68px); margin-top: 32px; }
.ng-c7 .ng-card-kicker   { margin-bottom: 0; }

/* Newsletter content area (flex: 1, centres content) */
.ng-c7-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 32px;
}
.ng-c7-sub {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255,255,255,.7);
  max-width: 500px;
  margin: 0 auto;
  padding: 14px;
}

/* ── c7 login/signup button ── */
.ng-c7-signup-btn {
  display: inline-block;
  margin-top: 28px;
  font-size: 17px;
  font-weight: 900;
  font-family: inherit;
  padding: 16px 48px;
  border-radius: 999px;
  border: 2.5px solid #fff;
  color: var(--orange800);
  background: #fff;
  text-decoration: none;
  transition: opacity 150ms;
  cursor: pointer;
}
.ng-c7-signup-btn:hover { opacity: .85; }

/* ── Newsletter form ── */
.ng-nl-form {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  max-width: 460px;
}
.ng-nl-input {
  flex: 1;
  background: rgba(255,255,255,.12);
  border: 2px solid rgba(255,255,255,.3);
  color: #fff;
  padding: 13px 18px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  outline: none;
}
.ng-nl-input::placeholder { color: rgba(255,255,255,.5); }
.ng-nl-submit {
  background: #fff;
  color: var(--orange800);
  border: none;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  #ng-scroller { scroll-snap-type: y proximity; }

  #ng-nav { padding: 0 16px; height: 76px; }
  #ng-nav-logo-img { height: 44px; }
  .ng-nav-links { gap: 6px; }
  .ng-nav-links li { display: none; }
  .ng-nav-cta { padding: 7px 14px; font-size: 12px; margin-left: 8px; white-space: nowrap; border-radius: 999px; }
  .ng-lang-toggle { padding: 6px 10px; font-size: 12px; }
  .ng-hamburger { display: flex; }

  /* Content cards: headline top → visual middle → body+CTA bottom */
  .ng-card:not(.ng-c7) {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 106px 24px 40px;
    min-height: 100vh;
    height: auto;
    align-items: flex-start;
  }
  .ng-card:not(.ng-c7) .ng-card-left { display: contents; }
  /* Scope order rules to ng-card-left descendants only */
  .ng-card:not(.ng-c7) .ng-card-left .ng-card-kicker   { order: 1; }
  .ng-card:not(.ng-c7) .ng-card-left .ng-card-headline { order: 2; }
  .ng-card:not(.ng-c7) .ng-card-right                  { order: 3; align-self: center; width: 100%; margin: 4px 0; }
  .ng-card:not(.ng-c7) .ng-card-left .ng-card-body     { order: 4; }
  .ng-card:not(.ng-c7) .ng-card-left .ng-card-stat     { order: 5; }
  .ng-card:not(.ng-c7) .ng-card-left .ng-card-cta      { order: 6; align-self: flex-start; }
  /* c7 keeps its own layout — restored to pre-reorder state */
  .ng-c7 { padding: 132px 24px 0; min-height: 100vh; height: auto; gap: 28px; }
  .ng-footer { align-items: center; text-align: center; }
  .ng-footer-links { gap: 10px 32px; }
  .ng-footer-bottom { flex-direction: column; gap: 14px; align-items: center; width: 100%; }
  .ng-card-headline { font-size: clamp(36px, 10vw, 56px) !important; }
  .ng-card-stat-num  { font-size: clamp(48px, 12vw, 80px); }
  .ng-card-right { justify-content: center; }
  .ng-vis { max-width: 100%; height: auto; max-height: 38vh; }
  .ng-scroll-hint { display: none; }
  #ng-dots { right: 8px; gap: 6px; }
  .ng-dot { width: 5px; height: 5px; }
  .ng-card-body { font-size: 15px; }
  .ng-card-kicker { font-size: 10px; }
  .ng-card-cta { font-size: 14px; padding: 11px 22px; }
  .ng-nl-form { flex-direction: column; width: 100%; max-width: 100%; gap: 10px; }
  .ng-nl-input { border-radius: 999px; width: 100%; font-size: 16px; }
  .ng-nl-submit { border-radius: 999px; padding: 14px; font-size: 15px; width: 100%; }
  .ng-c7 .ng-card-kicker { justify-content: center; }
  .ng-c7 p { max-width: 100%; }

  /* c0 + c3: reset desktop flex-basis (480px) on card-right so the image container
     only takes up as much height as its content — removes unintended gap above/below image */
  .ng-c0 .ng-card-right,
  .ng-c3 .ng-card-right { flex: none; justify-content: center; }
  .ng-c0 .ng-vis,
  .ng-c3 .ng-vis        { max-width: 100%; }

  /* c0 hero mobile overrides */
  .ng-c0-top-tag {
    order: -1;                   /* stays above the kicker */
    font-size: 10px;
    padding-bottom: 4px;
    letter-spacing: .1em;
  }
  /* middle column: display after all left-column items */
  .ng-c0-middle { order: 7; width: 100%; }
  /* "关于我们" link: appears right after the CTA (order 6) */
  .ng-card:not(.ng-c7) .ng-card-left .ng-c0-about-link { order: 7; }
  /* keep middle-body readable at small sizes */
  .ng-c0-middle-body { font-size: 14px; max-width: 100%; }
  .ng-c0-tagline span { font-size: clamp(15px, 4.5vw, 20px); }

  /* c4 carousel mobile overrides — 1 post per page */
  .ng-card.ng-c4 { padding: 106px 12px 24px; height: 100vh; overflow: hidden; align-items: stretch; }
  .ng-c4-wrap { flex: 1; overflow-y: hidden; height: 0; min-height: 0; }
  /* Single-row flex: each post is one full-width page */
  .ng-c4-track {
    display: flex;
    flex-direction: row;
    height: 100%;
    gap: 12px;
    width: max-content;
    align-items: stretch;
  }
  .ng-c4-post {
    flex: none;
    width: calc(100vw - 24px);
    min-height: 0;
    overflow: hidden;
    scroll-snap-align: start;
  }
  /* Every post snaps (no more nth-child exception) */
  .ng-c4-post:nth-child(even) { scroll-snap-align: start; }
  .ng-c4-post-title { flex: none; font-size: 18px; }
  .ng-c4-post-excerpt { display: none; }
  .ng-c4-arrows { display: none; }
  /* Thumbnail: show fully, no forced ratio */
  .ng-c4-thumb {
    flex: none;
    aspect-ratio: unset;
    width: 100%;
    height: auto;
    max-height: 55vh;
    overflow: hidden;
    border-radius: 8px;
  }
  .ng-c4-thumb img {
    width: 100%;
    height: auto;
    max-height: 55vh;
    object-fit: contain;
    object-position: center;
    background: #f0eeeb;
  }
  .ng-c4-headline { font-size: clamp(32px, 9vw, 48px) !important; white-space: normal; }
  /* Spacer: invisible placeholder to push "more" card to 2nd row when post count is even */
  .ng-c4-spacer { display: block !important; background: transparent !important;
                  box-shadow: none !important; pointer-events: none; visibility: hidden; }
}

@media (max-width: 480px) {
  .ng-card:not(.ng-c7) { padding: 100px 20px 36px; }
  .ng-c7   { padding: 120px 20px 0; }
  .ng-card-headline { font-size: clamp(32px, 9vw, 48px) !important; }
  #ng-nav-logo-img { height: 36px; }
}

/* ── Footer (inside .ng-c7, no independent scroll-snap) ─────────────────── */
.ng-footer {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 28px 0 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: left;
}

.ng-footer-links {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 12px 48px;
  justify-content: center;
}

.ng-footer-links a {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,.65) !important;
  text-decoration: none;
  text-align: center;
  transition: color 150ms;
}
.ng-footer-links a:hover { color: #fff !important; }

.ng-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.ng-footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,.3);
  letter-spacing: .04em;
}

.ng-footer-social {
  display: flex;
  gap: 20px;
}

.ng-footer-social a {
  color: rgba(255,255,255,.45) !important;
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: color 150ms;
}
.ng-footer-social a:hover { color: #fff !important; }

/* ===========================================================================
   INTRO SLIDE (Slide 0 — bilingual welcome / language chooser)
   =========================================================================== */

.ng-c-intro {
  background: #02182d;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.ng-intro-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
  max-width: 640px;
  padding: 40px 32px;
  position: relative;
  z-index: 1;
}

.ng-intro-eyebrow {
  font-size: clamp(12px, 1.1vw, 15px);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
  margin: 0;
}

.ng-intro-headline {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  line-height: 1.1;
}

.ng-intro-headline-zh {
  font-size: clamp(24px, 8vw, 88px);
  font-weight: 800;
  letter-spacing: -1px;
  color: #fff;
  white-space: nowrap;
}

.ng-intro-headline-en {
  font-size: clamp(18px, 2.2vw, 28px);
  font-weight: 400;
  color: rgba(255, 255, 255, .6);
  letter-spacing: -0.02em;
}

.ng-intro-desc {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  line-height: 1.7;
}

.ng-intro-desc-zh {
  font-size: clamp(14px, 1.3vw, 17px);
  color: rgba(255, 255, 255, .65);
}

.ng-intro-desc-en {
  font-size: clamp(13px, 1.2vw, 16px);
  color: rgba(255, 255, 255, .4);
}

.ng-intro-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

.ng-intro-btn {
  padding: 14px 36px;
  border-radius: 8px;
  font-size: clamp(14px, 1.2vw, 16px);
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: opacity .2s, border-color .2s;
  font-family: inherit;
}

.ng-intro-btn:hover { opacity: .85; }

.ng-intro-btn--zh {
  background: #0866bc;
  border-color: #0866bc;
  color: #fff;
}

.ng-intro-btn--en {
  background: transparent;
  border-color: rgba(255, 255, 255, .3);
  color: #fff;
}

.ng-intro-btn--en:hover { border-color: rgba(255, 255, 255, .65); }

.ng-intro-note {
  font-size: clamp(11px, 1vw, 13px);
  color: rgba(255, 255, 255, .25);
  margin: 0;
  letter-spacing: 0.02em;
}

/* Mobile */
@media (max-width: 600px) {
  .ng-intro-ctas { flex-direction: column; align-items: stretch; }
  .ng-intro-btn  { text-align: center; }
}

.ng-intro-br-mobile { display: none; }
@media (max-width: 768px) {
  .ng-intro-br-mobile { display: inline; }
  .ng-intro-logo-wrap { width: min(95vh, 95vw); height: min(95vh, 95vw); }
  .ng-intro-headline-zh { font-size: clamp(36px, 11vw, 60px); }
  .ng-intro-headline-en { font-size: clamp(16px, 4.5vw, 22px); }
  .ng-intro-content { width: 100%; box-sizing: border-box; }
}

/* === Slide 0: logo wipe + ripple + content entrance === */

/* Animatable custom property for conic-gradient wipe */
@property --ng-wipe {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes ng-wipe-in {
  from { --ng-wipe: 0deg; }
  to   { --ng-wipe: 360deg; }
}

@keyframes ng-ripple {
  0%   { transform: scale(1); opacity: .6; }
  100% { transform: scale(2.4); opacity: 0; }
}

@keyframes ng-fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Background icon: absolutely centred, behind all content */
.ng-intro-logo-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(75vh, 75vw);
  height: min(75vh, 75vw);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 0;
  pointer-events: none;
}

/* Clockwise wipe reveal */
.ng-intro-logo {
  width: 58%;
  height: auto;
  opacity: 0.18;
  position: relative;
  z-index: 1;
  --ng-wipe: 0deg;
  -webkit-mask-image: conic-gradient(from -90deg, black var(--ng-wipe), transparent var(--ng-wipe));
  mask-image: conic-gradient(from -90deg, black var(--ng-wipe), transparent var(--ng-wipe));
  animation: ng-wipe-in 1.2s cubic-bezier(.4, 0, .2, 1) forwards;
}

/* Ripple rings — centred on the icon, appear with content */
.ng-intro-ripple {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, .3);
  opacity: 0;
  animation: ng-ripple 3.6s ease-out infinite;
}
.ng-intro-ripple--1 { animation-delay: 1.35s; }
.ng-intro-ripple--2 { animation-delay: 2.05s; }
.ng-intro-ripple--3 { animation-delay: 2.75s; }
.ng-intro-ripple--4 { animation-delay: 3.45s; }
.ng-intro-ripple--5 { animation-delay: 4.15s; }

/* Staggered content entrance — scoped to intro slide only */
.ng-c-intro .ng-intro-eyebrow {
  opacity: 0;
  animation: ng-fade-up .55s ease-out 1.35s forwards;
}
.ng-c-intro .ng-intro-headline {
  opacity: 0;
  animation: ng-fade-up .55s ease-out 1.55s forwards;
}
.ng-c-intro .ng-intro-ctas {
  opacity: 0;
  animation: ng-fade-up .55s ease-out 1.75s forwards;
}
.ng-c-intro .ng-intro-note {
  opacity: 0;
  animation: ng-fade-up .55s ease-out 1.9s forwards;
}
