* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #111827;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  background: #fff;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
}

.header-inner {
  width: min(1500px, calc(100vw - 56px));
  min-height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.brand img {
  width: clamp(220px, 20vw, 350px);
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 42px;
  color: #1f2937;
  font-size: 1.08rem;
  font-weight: 700;
}

.site-nav a {
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: #0b49b5;
}

.contact-hero {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #05070d;
  color: #fff;
}

.contact-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 9, 19, 0.86), rgba(4, 9, 19, 0.36));
}

.hero-copy {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-copy p {
  margin: 0 0 12px;
  color: #4fa3ff;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 1;
  letter-spacing: 0;
}

.contact-main {
  width: min(1280px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 78px 0 86px;
}

.contact-heading {
  text-align: center;
  margin-bottom: 46px;
}

.contact-heading h2 {
  margin: 0 0 14px;
  font-size: 2.2rem;
  letter-spacing: 0;
}

.contact-heading p {
  margin: 0 auto;
  max-width: 760px;
  color: #5b6573;
  line-height: 1.8;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 38px;
  align-items: start;
}

.contact-info {
  display: grid;
  gap: 18px;
}

.contact-info article {
  min-height: 142px;
  padding: 28px;
  border-top: 4px solid #f28b00;
  background: #f6f8fb;
}

.contact-info span,
.contact-form span {
  display: block;
  margin-bottom: 10px;
  color: #0b49b5;
  font-weight: 800;
}

.contact-info a,
.contact-info p {
  margin: 0;
  color: #1f2937;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.7;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding: 32px;
  border: 1px solid #e5e7eb;
  background: #fff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.contact-form label {
  min-width: 0;
}

.contact-form b {
  color: #df1f1f;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #dfe3ea;
  background: #f8fafc;
  color: #111827;
  font: inherit;
}

.contact-form input {
  height: 48px;
  padding: 0 14px;
}

.contact-form textarea {
  min-height: 138px;
  resize: vertical;
  padding: 14px;
}

.form-wide,
.contact-form button {
  grid-column: 1 / -1;
}

.contact-form button {
  height: 52px;
  border: 0;
  background: #0b49b5;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.contact-form button:hover {
  background: #082f7e;
}

.baidu-map-section {
  width: min(1500px, calc(100vw - 72px));
  margin: 0 auto 92px;
}

.map-title {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-bottom: 46px;
}

.map-pin {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50% 50% 50% 0;
  background: #182b8f;
  transform: rotate(-45deg);
  flex: 0 0 auto;
}

.map-pin::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  inset: 14px;
  border-radius: 50%;
  background: #fff;
}

.map-title h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(3.6rem, 6vw, 5.8rem);
  font-weight: 900;
  line-height: 1.1;
}

.map-title p {
  margin: 0;
  color: #4b5563;
  font-size: 1.08rem;
  font-weight: 700;
}

.map-frame {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 26px;
  background: #f5f7fb;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.1);
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 560px;
  border: 0;
}

.map-note {
  margin: 14px 0 0;
  text-align: right;
}

.map-note a {
  color: #0b49b5;
  font-weight: 800;
  text-decoration: none;
}

.site-footer {
  padding: 28px 20px;
  background: #081120;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 900px) {
  .header-inner,
  .site-nav,
  .contact-grid,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .header-inner {
    min-height: auto;
    padding: 16px 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    font-size: 0.98rem;
  }
}

@media (max-width: 560px) {
  .contact-main,
  .baidu-map-section {
    width: calc(100vw - 30px);
  }

  .contact-form {
    padding: 22px;
  }

  .map-title {
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 26px;
  }

  .map-pin {
    width: 28px;
    height: 28px;
  }

  .map-pin::after {
    width: 10px;
    height: 10px;
    inset: 9px;
  }

  .map-title h2 {
    font-size: 2.1rem;
  }

  .map-frame iframe {
    height: 430px;
  }
}
