/* 页面基础变量与重置 */
:root {
  --color-bg: #ffffff;
  --color-text: #2b2b2b;
  --color-muted: #666;
  --color-accent: #d7a05f;
  --color-dark: #0d0d0d;
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.12);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body.page {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Microsoft YaHei",
    sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

#service-title {
  text-align: right;
}

/* 容器与排版 */
.container {
  width: min(1400px, 100% - 32px);
  margin-inline: auto;
}
.section-title {
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
}
.text-accent {
  color: var(--color-accent);
}

/* 页眉 */
.header {
  background: var(--color-dark);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}
.header__brand {
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
}
.header__logo {
  height: 28px;
  width: auto;
  display: block;
}
.header__nav {
  display: flex;
  gap: 16px;
}
.header__link {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}
@media (hover: hover) {
  .header__link:hover {
    background: rgba(255, 255, 255, 0.08);
  }
}

/* 英雄区与地图 */
.hero {
  position: relative;
  padding-top: 0;
}
.hero__map-wrapper {
  position: relative;
}
.hero__map {
  width: 100%;
  height: 380px;
  background: #eaeaea;
}

/* 地图类型按钮已移除 */

/* 加载指示器已移除 */

/* 卡片组件（BEM） */
.card {
  position: relative;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card__title {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0.06em;
}
.card__cta {
  border: 0;
  padding: 14px 30px;
  border-radius: 999px;
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  font-size: 18px;
  text-decoration: none;
}
.card__body {
  padding: 16px;
}
.card__subtitle {
  margin: 0 0 26px;
  font-weight: 700;
  color: #222222;
  font-size: 24px;
}
.card__text {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.6;
}
.card__bg {
  width: 100%;
  display: block;
}

/* 英雄信息卡片定位 */
.hero__card {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -245px;
  width: calc(100% - 32px);
  background: transparent;
  box-shadow: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-image: url("img/img2.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 66px 140px;
}

.hero__card .card__body {
  position: relative;
  z-index: 1;
}
.hero__card .card__title {
  color: var(--color-accent);
  font-size: 28px;
}
.hero__card .card__subtitle {
  font-weight: 700;
}
.hero__card .card__text {
  color: var(--color-text);
  line-height: 1.7;
  font-size: 20px;
}

@media (min-width: 769px) {
  .hero__card {
    max-width: 1460px;
    height: 396px;
  }
  .hero__card .card__title {
    font-size: 64px;
  }
}

/* 选择我们 */
.choose {
  padding: 120px 0 32px;
}
.choose__desc {
  max-width: min(1164px, 100% - 64px);
  margin: 30px auto 34px;
  color: #222222;
  font-size: 20px;
  line-height: 1.8;
  text-align: left;
}
.choose .container {
  width: 100%;
  margin-inline: 0;
  margin-top: 170px;
}
.choose__grid {
  width: 100%;
}
.choose__grid img {
  width: 100%;
  height: auto;
  display: block;
}
.choose__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}
.choose__item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.choose__icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
}
.choose__num {
  font-size: 20px;
  color: var(--color-accent);
  font-weight: 800;
  opacity: 0.9;
}
.choose__label {
  margin: 0 0 0 12px;
  font-size: 16px;
}

/* 团队 */
.team {
  margin-top: 100px;
  padding: 100px 0;
  position: relative;
  background-image: url("img/img4.png");
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 1480px auto;
}
.team .container {
  position: relative;
  z-index: 1;
}
.team__card {
  margin: 24px auto 0;
  max-width: min(1200px, 100% - 64px);
  padding: 32px 48px;
  border-radius: 28px 28px 28px 28px;
  box-shadow: 0px 8px 30px 0px rgba(0,0,0,0.15);
  text-align: center;
  position: relative;
  background: rgba(255,255,255,0.5) !important;
}

.team__title {
  margin: 0 0 16px;
}
.team__card .card__text {
  color: #222;
  font-size: 16px;
  line-height: 1.8;
  font-size: 20px;
  text-align: left;
}

/* 服务 */
.services {
  padding: 52px 0;
}
.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: minmax(240px, auto);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  gap: 0;
  background: #fff;
}
.services__cell {
  display: block;
}
.services__cell--text {
  padding: 32px 60px;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.services__cell--accent {
  padding: 32px 40px;
  background: #d7a05f;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.services__title {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 500;
  color: #333333;
}
.services__copy {
  margin: 0;
  color: #666666;
  line-height: 1.8;
  font-size: 20px;
}
.services__cell--accent .services__title,
.services__cell--accent .services__copy {
  color: #ffffff;
}
.services__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (min-width: 769px) {
  .services__grid {
    grid-template-columns: 1fr 1fr;
  }
  .services__cell {
    min-height: 320px;
  }
}

/* 联系表单（触控尺寸与间距） */
.contact {
  padding: 32px 0 0px;
}
.form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px 80px;
  content-visibility: auto;
  background-image: url("img/img8.png");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: cover;
  padding-bottom: 80px;
}
.form__row {
  display: grid;
  gap: 6px;
}
.form__row--full {
  grid-column: 1/-1;
}
.form__label {
  font-weight: 600;
  font-size: 20px;
}
.form__label .req { color: #FF4343; margin-left: 4px; }
.form__input,
.form__textarea {
  width: 100%;
  min-height: 48px;
  padding: 14px 16px;
  border: 0;
  border-radius: var(--radius-md);
  font-size: 20px;
  background: linear-gradient( 180deg, #F6F6F6 0%, #FFFFFF 100%);
  box-shadow: 0px 2px 6px 0px rgba(0,0,0,0.15);
}
.form__textarea {
  min-height: 160px;
}
.form__input::placeholder,
.form__textarea::placeholder {color: rgba(34,34,34,0.4); }
.form__actions {
  display: flex;
  justify-content: center;
  margin-top: 8px;
  grid-column: 1 / -1;
}
.btn {
  min-width: 120px;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
}
.btn--primary {
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
}

/* 页脚 */
.footer {
  position: relative;
  background: #fafafa;
  border-top: 1px solid #eee;
}
.footer__map-bg {
  position: relative;
  overflow: hidden;
}
.footer__map-bg img {
  width: 100%;
  aspect-ratio: 192 / 48;
  display: block;
  object-fit: cover;
}
.footer__overlay {
  position: absolute;
  inset: 0;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 12px;
  pointer-events: none;
}
.footer__info-card {
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 12px 16px;
  backdrop-filter: blur(4px);
}
.footer__info-item {
  margin: 4px 0;
  font-size: 14px;
  color: var(--color-text);
}
.footer__badge {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.24);
  background: #00000010;
}
.footer__inner {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 100%;
  background: rgba(0,0,0,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  min-height: 64px;
}
.footer__text {
  margin: 0;
  color: #cfd8dc;
  font-size: 14px;
  letter-spacing: 0.02em;
}

/* 断点：平板与桌面 */
@media (min-width: 481px) {
  .hero__map {
    height: 460px;
  }
  .choose__grid {
    grid-template-columns: repeat(1, 1fr);
  }
  .service-card {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 769px) {
  .header__link {
    font-size: 20px;
  }
  .hero__map {
    height: 800px;
  }
  .card__title {
    font-size: 22px;
  }
  .section-title {
    font-size: 48px;
  }
  #choose-title {
    width: 1400px;
    text-align: left;
    margin: 0 auto;
  }
  .form {
    grid-template-columns: repeat(2, 1fr);
  }
  .form__row--full {
    grid-column: 1 / -1;
  }
  .header__logo {
    height: 59px;
  }
  .form__actions {
    grid-column: 1 / -1;
  }

  .footer__text {
    font-size: 14px;
    font-weight: 500;
    font-family: Montserrat, Montserrat;
  }
}


@media (max-width: 480px) {
  .container { width: calc(100% - 16px); margin-inline: auto; }
  .section-title { font-size: 22px; }
  .hero__map { height: 340px; }
  .hero__card { position: static; left: auto; transform: none; bottom: auto; margin-top: 12px; max-width: calc(100% - 16px); padding: 20px; }
  .hero__card .card__title { font-size: 24px; }
  .hero__card .card__text { font-size: 14px; }
  .choose .container { margin-top: 40px; }
  .choose__desc { font-size: 14px; text-align: center; margin: 10px auto 16px; max-width: calc(100% - 32px); }
  .team { padding: 18px 0; background-size: auto 100%;; }
  .team__card { padding: 16px; border-radius: 14px; max-width: calc(100% - 16px); }
  .team__card::before { background: linear-gradient(90deg, rgba(215,160,95,0) 0%, rgba(215,160,95,0.16) 50%, rgba(215,160,95,0) 100%); }
  .team__title { margin: 0 0 12px; }
  .team__card .card__text { font-size: 14px; line-height: 1.8; }
  .services { padding: 24px 0; }
  .services__grid { border-radius: 16px; }
  .services__title { font-size: 18px; }
  .services__copy { font-size: 14px; }
  .services__cell--text, .services__cell--accent { padding: 20px; }
  .form { gap: 16px; padding-bottom: 40px; }
  .form__label { font-size: 14px; }
  .form__input, .form__textarea { font-size: 16px; }
  .form__textarea { min-height: 120px; }
  .btn { min-height: 44px; }
  .footer__inner { padding: 12px 16px; min-height: 48px; }
  .footer__text { font-size: 12px; }
  .choose { padding-bottom: 8px; }
  .team { margin-top: 8px; }
  .footer__inner{
    position: relative;
    background-color: rgba(0,0,0,1);
  }
  .card__cta{
      padding: 10px 20px;
      font-size: 14px;
  }
  .choose{
    padding: 30px 0 32px;
  }
  .hero__card { position: relative; box-shadow: var(--shadow-soft); border-radius: var(--radius-lg); border: 1px solid #eee; overflow: hidden; margin: 12px auto 0; }
  .hero__card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,255,255,0.90)); pointer-events: none; }
  .hero__card .card__header { margin-bottom: 12px; position: relative; z-index: 1; }
  .hero__card .card__subtitle { margin: 0 0 14px; }
  .hero__card .card__text { line-height: 1.8; }
}
  #service-title{
    text-align: center;
  }
}


/* Hover 避免影响触控：仅在支持 hover 的设备上启用 */
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover {
    filter: brightness(1.05);
  }
}
