:root {
  --bg: #f7fbff;
  --bg-alt: #edf5ff;
  --card: #ffffff;
  --line: #c9daf4;
  --text: #183153;
  --text-muted: #4e678a;
  --brand: #2f7bff;
  --brand-soft: #4f93ff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "HarmonyOS Sans SC", "Source Han Sans SC",
    "Noto Sans CJK SC", "Heiti SC", sans-serif;
  background: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
}

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

.container {
  width: min(1320px, 94vw);
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 251, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
  padding: 2px;
}

.brand-name {
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav a {
  color: var(--text-muted);
  font-size: 14px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav a:hover {
  color: var(--brand-soft);
  transform: translateY(-1px);
}

.menu-btn {
  display: none;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 16px;
  cursor: pointer;
}

.hero {
  padding: 96px 0 84px;
  background: radial-gradient(circle at 12% 12%, #d7e8ff 0%, transparent 42%),
    radial-gradient(circle at 88% 20%, #c5ddff 0%, transparent 36%), var(--bg);
}

.hero-content h1 {
  margin: 0 0 18px;
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.2;
}

.hero-subtitle {
  margin: 0 0 14px;
  color: #5b6f8f;
  font-weight: 500;
}

.hero-desc {
  margin: 0;
  max-width: 780px;
  color: var(--text-muted);
  line-height: 1.8;
}

.tags {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tags span {
  border: 1px solid #aecaef;
  color: #2b4e82;
  background: rgba(47, 123, 255, 0.12);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
}

.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section h2 {
  margin: 0 0 18px;
  font-size: clamp(24px, 3.2vw, 34px);
}

.section-intro {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.9;
}

.grid {
  display: grid;
  gap: 16px;
}

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

.partners,
.projects {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(47, 123, 255, 0.04), transparent), var(--card);
  box-shadow: 0 6px 20px rgba(30, 76, 145, 0.08);
  border-radius: 12px;
  padding: 18px 16px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 17px;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.75;
  font-size: 14px;
}

.project-card {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 12px;
}

.partner-card {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 12px;
}

.project-card h3 {
  margin-bottom: 0;
}

.partner-card h3 {
  margin-bottom: 0;
}

.project-media {
  margin: 0;
  border: 1px solid #aecaef;
  border-radius: 10px;
  overflow: hidden;
  background: #f3f8ff;
  aspect-ratio: 16 / 9;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.partner-media {
  margin: 0;
  border: 1px solid #aecaef;
  border-radius: 10px;
  overflow: hidden;
  background: #f3f8ff;
  aspect-ratio: 16 / 9;
}

.partner-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.partner-media-stack {
  display: grid;
  gap: 8px;
}

.partner-media-stack .partner-media {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  aspect-ratio: auto;
}

.partner-media-stack .partner-media img {
  object-fit: contain;
}

.partner-media-logo {
  padding: 2px 0;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-media-logo img {
  object-fit: contain;
  width: auto;
  max-width: 68%;
  max-height: 66px;
}

.partner-media-ziti {
  padding: 2px 0;
  min-height: 62px;
}

.partner-media-ziti img {
  object-fit: contain;
}

.highlight {
  margin: 18px 0 0;
  color: var(--text-muted);
}

.highlight strong {
  color: #204a86;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 38px;
  background: #eaf3ff;
}

.footer-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.footer-title {
  margin: 0 0 6px;
  font-size: 20px;
}

.footer-company {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.footer p {
  margin: 0;
  color: var(--text-muted);
}

.contact-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: 14px;
}

.contact-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  line-height: 1.6;
}

.contact-label {
  min-width: 2.5em;
  color: var(--text-muted);
  font-weight: 500;
}

.contact-value {
  color: var(--text);
}

a.contact-value {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a.contact-value:hover {
  color: var(--brand-soft);
}

.footer-note {
  max-width: 100%;
  line-height: 1.75;
}

.footer-legal {
  width: 100%;
  padding-top: 16px;
  border-top: 1px solid rgba(201, 218, 244, 0.85);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 13px;
}

.footer-icp {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-icp:hover {
  color: var(--brand);
}

@media (max-width: 1040px) {
  .partners,
  .projects {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .capabilities {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav {
    display: none;
    position: absolute;
    top: 72px;
    right: 4vw;
    flex-direction: column;
    align-items: flex-start;
    background: #f4f9ff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px;
    min-width: 180px;
  }

  .nav.open {
    display: flex;
  }

  .hero {
    padding-top: 80px;
  }

  .brand-name {
    max-width: 52vw;
    font-size: 14px;
  }

  .capabilities,
  .partners,
  .projects {
    grid-template-columns: 1fr;
  }
}
