:root {
  --ink: #172027;
  --muted: #5c6870;
  --line: #dce4e8;
  --paper: #f7faf9;
  --panel: #ffffff;
  --teal: #007f7a;
  --mint: #d7f2e8;
  --coral: #e95f42;
  --gold: #c78a19;
  --green: #245c42;
  --shadow: 0 18px 42px rgba(23, 32, 39, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family:
    Inter, "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  background: var(--paper);
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(220, 228, 232, 0.82);
  background: rgba(247, 250, 249, 0.94);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: auto;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 22px;
  letter-spacing: 0;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.main-nav a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
}

.main-nav a:hover {
  color: var(--ink);
  background: #e9f2ef;
}

.main-nav .nav-button {
  color: #fff;
  background: var(--teal);
}

.main-nav .nav-button:hover {
  color: #fff;
  background: var(--green);
}

.hero {
  min-height: min(720px, calc(100vh - 74px));
  padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 72px);
}

.portal-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 50% 20%, rgba(142, 229, 209, 0.16), transparent 32%),
    radial-gradient(circle at 50% 92%, rgba(233, 95, 66, 0.1), transparent 34%),
    linear-gradient(180deg, #101b1f 0%, #112326 60%, #0c1518 100%);
}

.portal-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(circle at 50% 44%, rgba(0, 0, 0, 0.64), transparent 74%);
}

.portal-hero::after {
  position: absolute;
  left: 50%;
  bottom: clamp(46px, 7vw, 88px);
  width: min(54vw, 780px);
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(142, 229, 209, 0.7), transparent);
  transform: translateX(-50%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  width: min(1160px, 100%);
  min-height: 520px;
  margin: 0 auto;
  text-align: center;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 980px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(44px, 8vw, 92px);
  line-height: 1.04;
}

.portal-hero h1 {
  max-width: 980px;
  margin-bottom: 22px;
  font-size: clamp(58px, 8vw, 116px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 2.4vw, 24px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 800;
}

.button.primary {
  color: #fff;
  background: var(--coral);
}

.button.secondary {
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
}

.hero-media {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: #fff;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hero-media figcaption {
  padding: 12px 16px;
  color: var(--muted);
  font-size: 13px;
}

.ticker {
  display: flex;
  gap: 16px;
  align-items: center;
  margin: 0 clamp(20px, 5vw, 72px) 24px;
  padding: 16px 18px;
  border-block: 1px solid var(--line);
  color: #2f3b42;
  background: #fff;
}

.ticker strong {
  flex: 0 0 auto;
  color: var(--coral);
}

.dashboard {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0 clamp(20px, 5vw, 72px);
  border: 1px solid var(--line);
  background: var(--line);
}

.metric {
  min-height: 116px;
  padding: 22px;
  background: #fff;
}

.metric b {
  display: block;
  color: var(--green);
  font-size: 34px;
  line-height: 1;
}

.metric span {
  color: var(--muted);
}

.section {
  padding: clamp(58px, 8vw, 96px) clamp(20px, 5vw, 72px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading h2,
.insight-band h2,
.contact-section h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.1;
}

.section-heading p,
.contact-section p {
  color: var(--muted);
  font-size: 17px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.filter {
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.filter.active,
.filter:hover {
  color: #fff;
  border-color: var(--teal);
  background: var(--teal);
}

.news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.24fr);
  gap: 24px;
  align-items: start;
}

.news-stream {
  min-width: 0;
}

.masonry-grid {
  column-count: 3;
  column-gap: 16px;
}

.masonry-card {
  display: inline-block;
  width: 100%;
  margin: 0 0 16px;
  break-inside: avoid;
}

.news-scroll {
  max-height: 1420px;
  overflow-y: auto;
  padding-right: 12px;
  scrollbar-color: var(--teal) #e5eeeb;
  scrollbar-width: thin;
}

.news-scroll::-webkit-scrollbar {
  width: 10px;
}

.news-scroll::-webkit-scrollbar-track {
  background: #e5eeeb;
  border-radius: 8px;
}

.news-scroll::-webkit-scrollbar-thumb {
  background: var(--teal);
  border-radius: 8px;
}

.lead-story,
.news-card,
.trend-panel,
.service-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.lead-story {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1fr);
  align-items: stretch;
  margin-bottom: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.lead-story > a {
  display: block;
  height: 100%;
}

.lead-story img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.lead-content,
.news-card-body {
  padding: 16px;
}

.category {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 4px 9px;
  border-radius: 8px;
  color: var(--green);
  background: var(--mint);
  font-size: 12px;
  font-weight: 800;
}

.lead-content h3 {
  margin: 12px 0 10px;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.16;
}

.lead-content p {
  font-size: 15px;
}

.lead-content p,
.news-card p,
.service-card p,
.insight-list p {
  color: var(--muted);
}

.story-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
}

.story-meta a,
.source-link {
  color: var(--teal);
  font-weight: 800;
}

.lead-content h3 a,
.news-card h3 a {
  display: inline;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.news-card {
  overflow: hidden;
}

.news-card img {
  width: 100%;
  aspect-ratio: 16 / 8.5;
  object-fit: cover;
}

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.card-topline time {
  color: var(--muted);
  font-size: 13px;
}

.news-card h3,
.service-card h3,
.insight-list h3 {
  margin-bottom: 10px;
  font-size: 18px;
  line-height: 1.25;
}

.news-card p {
  font-size: 14px;
}

.why {
  padding-left: 10px;
  border-left: 3px solid var(--gold);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
}

.tag-row span {
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #59666d;
  font-size: 11px;
}

.trend-panel {
  position: sticky;
  top: 92px;
  padding: 20px;
  max-height: calc(100vh - 112px);
  overflow-y: auto;
}

.trend-panel h3 {
  margin-bottom: 16px;
}

.trend-panel a {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: #31414a;
  font-weight: 700;
}

.trend-panel strong {
  display: block;
  font-size: 14px;
  line-height: 1.35;
}

.trend-panel span {
  color: var(--coral);
}

.services-section {
  background: #f2f7f5;
}

.service-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.46fr);
  gap: clamp(26px, 5vw, 62px);
  align-items: end;
  padding: clamp(42px, 7vw, 86px) clamp(20px, 5vw, 72px);
  color: #fff;
  background:
    radial-gradient(circle at 80% 18%, rgba(142, 229, 209, 0.16), transparent 28%),
    linear-gradient(180deg, #101c20 0%, #13272a 100%);
}

.service-hero h1 {
  margin-bottom: 18px;
  font-size: clamp(42px, 7vw, 82px);
}

.service-hero p {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(18px, 2.3vw, 23px);
}

.service-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.service-summary {
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
}

.service-summary span {
  color: #8ee5d1;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.service-summary strong {
  display: block;
  margin: 16px 0 18px;
  color: #fff;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.18;
}

.service-summary p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
}

.service-page-section {
  padding-top: clamp(44px, 6vw, 72px);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  border: 0;
  background: transparent;
}

.service-card {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  padding: 30px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 42px rgba(23, 32, 39, 0.06);
}

.service-card h3,
.service-card p {
  padding-inline: 0;
}

.service-card h3 {
  margin-top: 56px;
  font-size: 28px;
}

.service-card p {
  max-width: 620px;
  padding-bottom: 18px;
}

.service-index {
  position: absolute;
  top: 26px;
  left: 30px;
  color: var(--coral);
  font-size: 13px;
  font-weight: 900;
}

.service-card::after {
  position: absolute;
  right: 20px;
  bottom: 18px;
  width: 72px;
  height: 2px;
  content: "";
  background: var(--teal);
}

.service-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-card li {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
}

.service-process {
  display: grid;
  grid-template-columns: 0.7fr repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding: clamp(54px, 7vw, 82px) clamp(20px, 5vw, 72px);
  background: #dde8ec;
}

.process-heading,
.service-process article {
  min-height: 220px;
  padding: 24px;
  background: #fff;
}

.process-heading {
  background: #172027;
  color: #fff;
}

.process-heading .eyebrow {
  color: #8ee5d1;
}

.process-heading h2 {
  margin: 12px 0 0;
  font-size: 36px;
  line-height: 1.1;
}

.service-process span {
  color: var(--coral);
  font-weight: 900;
}

.service-process h3 {
  margin: 18px 0 10px;
}

.service-process p {
  color: var(--muted);
}

.insight-band {
  display: grid;
  grid-template-columns: minmax(260px, 0.46fr) minmax(0, 1fr);
  gap: 36px;
  background: #172027;
  color: #fff;
}

.insight-band .eyebrow {
  color: #8ee5d1;
}

.insight-list {
  display: grid;
  gap: 1px;
  background: rgba(255, 255, 255, 0.22);
}

.insight-list article {
  padding: 24px;
  background: #172027;
}

.insight-list p {
  margin-bottom: 0;
  color: #ced8dc;
}

.contact-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(54px, 8vw, 86px) clamp(20px, 5vw, 72px);
  background: #fff;
}

.contact-section div {
  max-width: 820px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 24px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #fff;
  font-size: 14px;
}

.article-page {
  padding: clamp(34px, 6vw, 72px) clamp(20px, 5vw, 72px);
}

.article-shell {
  max-width: 980px;
  margin: 0 auto;
}

.back-link {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--teal);
  font-weight: 800;
}

.article-hero {
  margin-bottom: 26px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 14px;
}

.article-hero h1 {
  max-width: 880px;
  margin-bottom: 16px;
  font-size: clamp(34px, 6vw, 64px);
}

.article-hero p {
  max-width: 780px;
  color: #34434c;
  font-size: 20px;
}

.article-cover {
  margin: 0 0 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.article-cover img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
}

.article-cover figcaption {
  padding: 12px 16px;
  color: var(--muted);
  font-size: 13px;
}

.article-body {
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.article-body p {
  color: #2f3b42;
  font-size: 18px;
}

.article-source {
  display: grid;
  gap: 8px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  overflow-wrap: anywhere;
}

.article-source a {
  color: var(--teal);
  font-weight: 800;
}

.article-empty {
  min-height: 54vh;
  padding: clamp(32px, 6vw, 64px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.load-sentinel {
  display: grid;
  min-height: 72px;
  place-items: center;
  color: var(--muted);
  font-weight: 800;
}

@media (max-width: 1120px) {
  .hero-inner,
  .news-layout,
  .insight-band,
  .service-hero {
    grid-template-columns: 1fr;
  }

  .news-scroll {
    max-height: 1180px;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    min-height: auto;
  }

  .trend-panel {
    position: static;
    max-height: none;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lead-story {
    grid-template-columns: 1fr;
  }

  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .masonry-grid {
    column-count: 2;
  }

  .lead-story img {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .service-process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-heading {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .site-header,
  .contact-section {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    padding-top: 34px;
  }

  .portal-hero h1 {
    font-size: clamp(42px, 14vw, 68px);
  }

  .ticker {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 240px;
  }

  .news-scroll {
    max-height: 980px;
    padding-right: 8px;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .masonry-grid {
    column-count: 1;
  }

  .service-process {
    grid-template-columns: 1fr;
  }

  .metric {
    min-height: auto;
  }

  .main-nav {
    justify-content: flex-start;
  }
}
