:root {
  --blue: #005cfa;
  --cyan: #02aae8;
  --deep: #024ac2;
  --ink: #222529;
  --muted: #676d75;
  --pale: #e9f0ff;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background: #fff;
}
a {
  text-decoration: none;
  color: inherit;
}
.hero {
  height: 620px;
  position: relative;
  overflow: hidden;
  background: #d9e2fb;
}
.hero-bg {
  position: absolute;
  width: calc(100% + 140px);
  height: 100%;
  left: 8%;
  top: 0;
  object-fit: cover;
}
.hero:after {
  content: "";
  position: absolute;
  inset: -40px 28% -100px 0;
  background: linear-gradient(107deg, #f2f6fe 8%, rgba(242, 246, 254, 0) 74%);
}
nav,
.hero-inner,
.section > *,
.diagnosis-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: auto;
}
nav {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  width: 82px;
  height: 60px;
  flex: 0 0 82px;
  background-image: url("/static/assets/xinhua-logo.png");
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}
.nav-actions {
  display: flex;
  gap: 12px;
}
.btn {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 8px 24px;
  border-radius: 10px;
  font-size: 16px;
}
.primary,
.submit {
  color: #fff;
  background: linear-gradient(105deg, var(--cyan), var(--deep));
}
.outline {
  border: 1.4px solid var(--cyan);
  color: var(--deep);
}
button.btn {
  background: transparent;
  font-family: inherit;
  cursor: pointer;
}
#login-open:focus-visible,
.login-dialog button:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
body.login-open {
  overflow: hidden;
}
.login-dialog {
  width: min(440px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 36px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #d5e6fa;
  border-radius: 20px;
  color: var(--ink);
  background: linear-gradient(145deg, #f1f7ff, #fff 55%);
  box-shadow: 0 24px 80px #024ac233;
}
.login-dialog::backdrop {
  background: #14294480;
  backdrop-filter: blur(4px);
}
.login-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 28px;
  cursor: pointer;
}
.login-close:hover {
  color: var(--deep);
  background: var(--pale);
}
.login-dialog h2 {
  margin: 0 24px 10px 0;
  font-size: 28px;
  line-height: 1.4;
}
.login-subtitle {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 14px;
  line-height: 22px;
}
#login-form {
  display: flex;
  flex-direction: column;
}
#login-form label {
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 22px;
}
#login-form input {
  width: 100%;
  min-height: 46px;
  margin-bottom: 20px;
  padding: 10px 14px;
  border: 1px solid #1f2f4529;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
#login-form input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px #02aae820;
}
#login-form input[aria-invalid="true"] {
  border-color: #d93025;
}
#login-submit {
  flex-shrink: 0;
  margin-top: 4px;
  font-family: inherit;
}
.login-error {
  min-height: 22px;
  margin: 12px 0 0;
  color: #d93025;
  font-size: 14px;
  line-height: 22px;
  overflow-wrap: anywhere;
}
.hero-inner {
  height: 520px;
  display: flex;
  align-items: center;
}
.hero-copy {
  width: 580px;
  z-index: 2;
}
.hero h1 {
  font-size: 58px;
  line-height: 62px;
  margin: 0 0 12px;
  white-space: nowrap;
}
.hero h1 em,
.heading span,
.diagnosis-copy span {
  font-style: normal;
  background: linear-gradient(120deg, var(--cyan), var(--deep));
  color: transparent;
  background-clip: text;
}
.hero h1 em {
  font-size: 62px;
}
.hero h2 {
  font-size: 28px;
  line-height: 32px;
  margin: 0 0 24px;
}
.hero p {
  font-size: 16px;
  line-height: 24px;
  color: var(--muted);
  margin: 0 0 48px;
}
.hero-visual {
  position: absolute;
  right: -60px;
  top: 31px;
  width: 593px;
  height: 438px;
  object-fit: contain;
}
.section {
  padding: 100px max(24px, calc((100% - 1200px) / 2));
}
.heading {
  text-align: center;
}
.heading h2 {
  font-size: 42px;
  line-height: 1.45;
  margin: 0 0 12px;
}
.heading p {
  color: var(--muted);
  font-size: 16px;
  line-height: 24px;
  margin: 0;
}
.cards {
  display: grid;
  gap: 24px;
  margin-top: 48px;
}
.three {
  grid-template-columns: repeat(3, 1fr);
}
.cards article {
  height: 340px;
  border-radius: 16px;
  background: #edeef8;
  padding: 40px 30px;
  overflow: hidden;
  position: relative;
}
.cards h3,
.service-grid h3,
.agent-grid h3,
.layers h3 {
  font-size: 26px;
  margin: 0 0 10px;
}
.cards p,
.service-grid p,
.agent-grid p,
.layers p {
  color: var(--muted);
  line-height: 24px;
  margin: 0;
}
.card-art {
  position: absolute;
  right: 0;
  display: block;
  pointer-events: none;
}
.card-art-coverage {
  bottom: 0;
  width: 242px;
  height: 226px;
}
.card-art-semantic {
  bottom: 0;
  width: 243px;
  height: 214px;
}
.card-art-trust {
  bottom: 0;
  width: 243px;
  height: 232px;
}
.pale {
  background: var(--pale);
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.service-grid article {
  min-height: 260px;
  border-radius: 30px;
  background: #fff;
  padding: 40px 30px;
  position: relative;
  overflow: hidden;
}
.service-grid .wide {
  grid-column: span 2;
}
.service-grid .service-diagnosis-card,
.service-grid .service-intent-card {
  height: 353px;
}
.service-grid b {
  position: absolute;
  left: 30px;
  bottom: 19px;
  font-size: 60px;
  line-height: 60px;
  color: rgba(2, 153, 225, 0.1);
  z-index: 1;
}
.service-grid h3,
.service-grid p {
  position: relative;
  z-index: 1;
}
.service-diagnosis-card b,
.service-intent-card b {
  bottom: 24px;
}
.service-grid h3 {
  font-size: 28px;
}
.service-grid p {
  max-width: 344px;
}
.service-diagnosis-card p {
  max-width: 289px;
}
.service-art {
  position: absolute;
  display: block;
  pointer-events: none;
}
.service-art-diagnosis {
  right: 0;
  bottom: 0;
  width: 271px;
  height: 236px;
}
.service-art-intent {
  right: 0;
  bottom: 0;
  width: 214px;
  height: 191px;
}
.service-art-monitoring {
  right: 0;
  top: 0;
  width: 295px;
  height: 260px;
}
.agents {
  min-height: 544px;
  background: #024ac2 url("/static/assets/agents-bg.png") center / cover
    no-repeat;
  color: #fff;
}
.agents .heading h2 {
  margin-bottom: 12px;
  font-size: 48px;
  line-height: 62px;
}
.heading.light p,
.agent-grid p {
  color: rgba(255, 255, 255, 0.8);
}
.agent-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  margin-top: 48px;
}
.agent-grid article {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.02));
}
.agent-icon {
  display: block;
  width: 82px;
  height: 82px;
  margin-bottom: 24px;
}
.agent-grid h3 {
  width: 100%;
  margin: 0 0 10px;
  color: #fff;
  font-size: 28px;
  line-height: 1.2;
}
.agent-grid p {
  width: 100%;
  margin: 0;
  font-size: 16px;
  line-height: 24px;
}
.layers {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.layers article {
  min-width: 0;
  padding: 0 0 0 30px;
  border-left: 1px solid #d5dbef;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.02));
}
.layer-icon {
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  overflow: hidden;
}
.layer-icon img {
  display: block;
  width: 40px;
  height: 40px;
}
.layers h3 {
  margin: 24px 0 10px;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 600;
}
.layers p {
  font-size: 16px;
  line-height: 24px;
}
.layers strong {
  font-weight: 600;
}
.geo-system .heading h2 {
  margin-bottom: 12px;
  font-size: 48px;
  line-height: 62px;
  font-weight: 600;
}
.geo-system .heading h2 b {
  font-size: 52px;
  font-weight: 600;
}
.steps {
  margin-top: 48px;
  padding: 40px;
  background: rgba(255, 255, 255, 0.8);
  border: 2px solid #fff;
  border-radius: 30px;
}
.steps > p {
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 16px;
  line-height: 24px;
}
.steps ol {
  display: flex;
  justify-content: space-between;
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  position: relative;
}
.steps ol:before {
  content: "";
  position: absolute;
  left: 25px;
  right: 25px;
  top: 22px;
  height: 7px;
  background: linear-gradient(90deg, #fbb034, #f36808);
}
.steps li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  position: relative;
  min-width: 50px;
  font-size: 20px;
  line-height: 24px;
  font-weight: 600;
}
.steps li span {
  display: grid;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  place-items: center;
  color: #fff;
  font-size: 20px;
  line-height: 24px;
  background: #fbb034;
  z-index: 1;
}
.steps li:nth-child(2) span { background: #f39904; }
.steps li:nth-child(3) span { background: #f6861a; }
.steps li:nth-child(4) span { background: #f57610; }
.steps li:nth-child(5) span { background: #f36808; }
.industry-panel {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 720px 480px;
  height: 450px;
  border-radius: 30px;
  overflow: hidden;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.05));
}
.industries .heading h2 {
  font-size: 48px;
  line-height: 62px;
  font-weight: 600;
}
.industry-visual {
  width: 720px;
  height: 450px;
}
.industry-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.industry-panel ul {
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: 0;
  padding: 0;
  background: #fff;
}
.industry-panel li {
  display: flex;
  flex: 1;
  gap: 8px;
  align-items: center;
  padding: 24px 30px;
  border: 1px solid #e1e5f3;
  border-left: 0;
  border-bottom: 0;
  color: rgba(34, 37, 41, 0.8);
  font-size: 18px;
  line-height: 1.2;
  font-weight: 400;
}
.industry-panel li:last-child {
  border-bottom: 1px solid #e1e5f3;
}
.industry-panel li img {
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}
.industry-panel li b {
  font-weight: 400;
}
.industry-panel li.active {
  display: block;
  flex: 0 0 auto;
  color: #f5ad36;
}
.industry-panel li.active div {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 20px;
}
.industry-panel li.active b {
  font-weight: 600;
}
.industry-panel p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 24px;
}
.diagnosis {
  height: 492px;
  position: relative;
  overflow: hidden;
  background: #d9e2fb;
}
.diagnosis:after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(146deg, rgba(233, 240, 255, 0) 54%, #e9f0ff 115%),
    linear-gradient(108deg, rgba(233, 240, 255, 0) 45%, #e9f0ff 98%);
  pointer-events: none;
}
.diagnosis-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
}
.diagnosis-inner {
  height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-top: 100px;
}
.diagnosis-copy {
  width: 424px;
  padding-top: 15px;
}
.mark {
  width: 33px;
  height: 33px;
}
.diagnosis-copy h2 {
  font-size: 48px;
  line-height: 60px;
  margin: 24px 0 12px;
  font-weight: 600;
}
.diagnosis-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 24px;
}
.diagnosis form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 720px;
  padding: 36px;
  border: 2px solid var(--cyan);
  border-radius: 20px;
  background: #ffffffe6;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-grid label {
  font-size: 14px;
  line-height: 22px;
}
.form-grid em {
  color: #ff4754;
  font-style: normal;
}
.form-grid input,
.phone {
  display: flex;
  width: 100%;
  height: 38px;
  margin-top: 6px;
  padding: 8px 16px;
  border: 1px solid #1f2f4529;
  border-radius: 10px;
  background: #fff;
  font: inherit;
  outline: none;
}
.form-grid input:focus,
.phone:focus-within {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px #02aae820;
}
.phone {
  align-items: center;
}
.phone span {
  padding-right: 12px;
}
.phone input {
  border: 0;
  margin: 0;
  padding: 0;
  height: auto;
  box-shadow: none !important;
}
.field-error {
  display: block;
  min-height: 18px;
  margin-top: 4px;
  color: #d93025;
  font-size: 12px;
  line-height: 18px;
}
.field-error:empty {
  min-height: 0;
  margin-top: 0;
}
.form-grid input[aria-invalid="true"],
.phone:has(input[aria-invalid="true"]) {
  border-color: #d93025;
}
.submit {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 10px;
  margin-top: 0;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.submit:disabled {
  opacity: 0.65;
}
.form-message {
  text-align: center;
  margin: 10px 0 -15px;
  font-size: 14px;
  min-height: 20px;
}
.form-message:empty {
  display: none;
}
.form-message.error {
  color: #d93025;
}
.form-message.success {
  color: #098a48;
}
@media (max-width: 900px) {
  nav {
    padding: 0 20px;
  }
  .hero {
    height: auto;
    min-height: 720px;
  }
  .hero-inner {
    height: auto;
    padding: 80px 24px 320px;
  }
  .hero-copy {
    width: 100%;
  }
  .hero h1 {
    font-size: 40px;
    line-height: 1.2;
    white-space: normal;
  }
  .hero h1 em {
    font-size: 44px;
  }
  .hero h2 {
    font-size: 22px;
  }
  .hero-visual {
    width: 500px;
    max-width: 95%;
    height: auto;
    right: 2%;
    top: auto;
    bottom: -10px;
  }
  .section {
    padding: 64px 20px;
  }
  .heading h2 {
    font-size: 32px;
  }
  .geo-system .heading h2 {
    font-size: 32px;
    line-height: 1.4;
  }
  .geo-system .heading h2 b {
    font-size: 36px;
  }
  .agents .heading h2 {
    font-size: 32px;
    line-height: 1.4;
  }
  .three,
  .agent-grid {
    grid-template-columns: 1fr 1fr;
  }
  .service-grid {
    grid-template-columns: 1fr 1fr;
  }
  .service-grid article,
  .service-grid .wide {
    grid-column: auto;
  }
  .layers {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .layers article {
    border: 0;
  }
  .industries .heading h2 {
    font-size: 32px;
    line-height: 1.4;
  }
  .industry-panel {
    grid-template-columns: 1fr;
    height: auto;
  }
  .industry-visual {
    width: 100%;
    height: auto;
    aspect-ratio: 720 / 450;
  }
  .industry-panel li {
    border-left: 1px solid #e1e5f3;
  }
  .diagnosis {
    height: auto;
  }
  .diagnosis-inner {
    padding: 64px 20px;
    display: block;
  }
  .diagnosis-copy,
  .diagnosis form {
    width: 100%;
  }
  .diagnosis form {
    margin-top: 40px;
  }
}
@media (max-width: 560px) {
  nav {
    height: auto;
    min-height: 112px;
    gap: 12px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .nav-actions {
    flex-direction: column;
    gap: 8px;
    min-width: 0;
  }
  .nav-actions .btn {
    min-height: 40px;
    padding: 8px 10px;
    font-size: 13px;
  }
  .login-dialog {
    padding: 28px 24px 20px;
  }
  .logo {
    width: 68px;
    height: 50px;
    flex-basis: 68px;
  }
  .btn {
    font-size: 14px;
    padding: 8px 14px;
  }
  .hero-inner {
    padding-top: 45px;
  }
  .hero h1 {
    font-size: 34px;
  }
  .hero h1 em {
    font-size: 38px;
  }
  .three,
  .agent-grid,
  .service-grid,
  .layers {
    grid-template-columns: 1fr;
  }
  .cards article {
    height: 280px;
  }
  .industry-panel {
    grid-template-columns: 1fr;
  }
  .steps {
    padding: 20px;
  }
  .steps ol {
    font-size: 12px;
  }
  .diagnosis-copy h2 {
    font-size: 38px;
    line-height: 48px;
  }
  .diagnosis form {
    padding: 24px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
}
