/* =========================================
   公共样式
   变量、重置、顶栏、按钮、通用区块、底栏。
   页面自己的区块写在 pages.css。
   ========================================= */

/* =========================================
   CSS Variables & Reset
   ========================================= */
:root {
  --orange: #ff5a1f;
  --orange-deep: #e84c12;
  --orange-soft: #fff1ea;
  --ink: #1c1b19;
  --muted: #6f6a65;
  --line: #efeae6;
  --bg: #ffffff;
  --soft: #f6f7f9;
  --dark: #101114;
  --header-h: 72px;
  --shadow: 0 10px 28px rgba(28, 27, 25, 0.05);
  --radius: 22px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p {
  margin: 0;
  overflow-wrap: break-word;
}

h1, h2, h3 {
  line-height: 1.22;
  letter-spacing: -0.03em;
  font-weight: 700;
}

h1 { font-size: clamp(34px, 4vw, 52px); }
h2 { font-size: clamp(28px, 3.6vw, 40px); }
h3 { font-size: 18px; letter-spacing: 0; }

a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }

::selection { background: #ffd8c8; }

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 80;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  padding: 8px 12px;
  transition: top 0.2s;
}

.skip-link:focus { top: 12px; }

.noscript {
  margin: 0;
  padding: 10px 16px;
  background: var(--orange-soft);
  text-align: center;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.accent { color: var(--orange); }

.lead {
  max-width: 520px;
  margin-top: 14px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 16px;
}

.kicker {
  margin-bottom: 10px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* =========================================
   Header
   ========================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.site-header.is-scrolled {
  border-bottom-color: rgba(28, 27, 25, 0.06);
}

.header__inner {
  position: relative;
  display: flex;
  align-items: center;
  height: var(--header-h);
}

.logo {
  display: block;
  width: 74px;
  height: 33px;
  background: url("../assets/index/facecar.svg") left center / contain no-repeat;
  z-index: 2;
  flex-shrink: 0;
}

.logo__mark,
.logo__word {
  display: none;
}

.logo__mark {
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(180deg, #ff8a3d, var(--orange));
}

.logo__mark::after {
  content: "";
  position: absolute;
  right: 3px;
  bottom: 3px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: #fff;
}

.logo__word span { color: var(--orange); }
.logo--light .logo__word { color: #fff; }

.nav {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav a {
  color: #000000;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  transition: color 0.2s;
}

.nav a:hover {
  color: #000000;
  font-weight: 400;
}

.nav a[aria-current="page"],
.nav a[aria-current="page"]:hover {
  color: #FF770F;
  font-weight: 400;
}

.nav a.nav__cta { display: none; }
.nav a.btn,
.nav a.btn:hover { color: #fff; font-weight: 700; }

.header__tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
}

.lang { position: relative; }

.lang__btn,
.nav-toggle,
.lang__menu button {
  font: inherit;
  cursor: pointer;
}

.lang__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
}

.lang__btn svg { display: block; }

.lang__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 50;
  display: grid;
  min-width: 148px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}

.lang__menu button {
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  text-align: left;
}

.lang__menu button[aria-pressed="true"],
.lang__menu button:hover {
  background: var(--orange-soft);
  color: var(--orange-deep);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
}

@media (max-width: 980px) {
  .header__inner {
    height: 60px;
  }

  .logo {
    width: 64px;
    height: 28px;
  }

  .lang,
  .header__tools > .btn {
    display: none;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    background: url("../assets/index/index_phone_info_icon.png") center / 22px 22px no-repeat;
  }

  .nav-toggle span {
    display: none;
  }

  .nav {
    display: none;
    position: absolute;
    left: auto;
    right: 0;
    top: calc(100% + 6px);
    transform: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    width: 148px;
    padding: 6px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(28, 27, 25, 0.12);
    z-index: 45;
  }

  html[data-lang="en"] .nav {
    width: max-content;
    min-width: 148px;
    max-width: calc(100vw - 24px);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 7px 10px;
    border-radius: 8px;
    color: #1c1b19;
    font-size: 13px;
    font-weight: 500;
  }

  html[data-lang="en"] .nav a {
    white-space: nowrap;
    font-size: 12px;
    line-height: 1.3;
  }

  .nav a[aria-current="page"],
  .nav a[aria-current="page"]:hover {
    color: #ff5a1f;
    background: #fff1ea;
  }

  .nav-backdrop {
    background: transparent;
  }

  body.is-menu-open {
    overflow: auto;
  }
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(16, 17, 20, 0.42);
}

body.is-menu-open,
body.is-consult-open,
body.is-form-toast-open { overflow: hidden; }
body.is-menu-open .site-header { background: #fff; }

/* =========================================
   Buttons
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 8px;
  background: var(--orange);
  font-family: inherit;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.btn:hover {
  background: var(--orange-deep);
  transform: translateY(-1px);
}

.btn svg { width: 16px; height: 16px; }
.header__tools .btn img {
  width: 14px;
  height: 14px;
  max-width: none;
  flex-shrink: 0;
}
.header__tools .btn { height: 36px; background: #ff770f; border-radius: 0; font-weight: 400; }
.header__tools .btn:hover { background: #e8680c; }

/* 英文导航更长：缩小间距并给右侧工具栏留位，避免叠字（仅桌面） */
@media (min-width: 761px) {
  html[data-lang="en"] .nav {
    gap: 22px;
    max-width: calc(100% - 400px);
  }
  html[data-lang="en"] .nav a {
    font-size: 12px;
  }
}
html[data-lang="en"] .header__tools {
  flex-shrink: 0;
  gap: 8px;
}
html[data-lang="en"] .header__tools .btn {
  padding: 0 12px;
  font-size: 12px;
}
html[data-lang="en"] .lang__btn {
  padding: 0 6px;
  font-size: 12px;
}
.btn--lg { height: 48px; padding: 0 24px; }

/* =========================================
   Sections Common
   ========================================= */
.section { padding: 84px 0; }
.section--white { background: #ffffff; }
.section--soft { background: #f6f7f9; }

.section-head { margin-bottom: 48px; }

.section-head--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.section-head--split h2,
.section-head h2 { max-width: 680px; }

.section-head--split p {
  max-width: 320px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

/* =========================================
   Cards
   ========================================= */
.card-grid { display: grid; gap: 18px; }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid #f3efe9;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(28, 27, 25, 0.045);
  padding: 24px;
}

a.card {
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}

a.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(28, 27, 25, 0.08);
}

.card p { color: var(--muted); font-size: 14px; line-height: 1.7; }
.card h3 { margin: 0 0 8px; }

/* 多页共用的左右分栏 */
.split {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: 12px;
  align-items: center;
}

.split h3 {
  font-size: clamp(26px, 3vw, 34px);
  margin: 8px 0 10px;
}

.split .lead {
  max-width: 520px;
  margin-top: 14px;
  margin-bottom: 22px;
}

/* =========================================
   Footer
   ========================================= */
.site-footer {
  background-color: #151715;
  background-image: url("../assets/index/FooterBgc.png");
  background-repeat: no-repeat;
  background-position: right top;
  background-size: cover;
  color: #fff;
}

.cta-band {
  padding: 56px 0 8px;
  background: transparent;
  color: #fff;
}

.cta-band__box {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px 48px;
}

.cta-band__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1 1 520px;
  max-width: 760px;
}

.cta-band__content .lead {
  order: -1;
  max-width: none;
  margin: 0 0 14px;
  color: #9a9a9a;
  font-size: 14px;
  line-height: 1.7;
}

.cta-band__content h2 {
  margin: 0 0 28px;
  color: #fff;
  font-size: clamp(32px, 3.4vw, 44px);
}

.cta-band__content .btn {
  min-width: 248px;
  justify-content: space-between;
  padding: 0 18px 0 22px;
  border-radius: 0;
  background: #ff770f;
}

.cta-band__content .btn img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.cta-band__content .btn:hover {
  background: #e8680c;
}

.cta-band__qr {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex-shrink: 0;
}

.qr-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.qr-img {
  width: 112px;
  height: 112px;
  object-fit: contain;
  background: #fff;
}

.qr-label {
  display: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px 20px;
  padding: 48px 0 36px;
}

.footer-contact h3 {
  margin-bottom: 10px;
  color: #9a9a9a;
  font-size: 16px;
  font-weight: 700;
}

.footer-contact p {
  margin: 0;
  color: #9a9a9a;
  font-size: 13px;
  line-height: 1.75;
}

.footer-map-link {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
  margin-top: 10px;
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
  white-space: nowrap;
}

.footer-map-link:hover {
  color: #fff;
}

.footer-map-icon {
  display: block;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  max-width: none;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 20px 0 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 12px;
}

.footer-bottom a {
  color: inherit;
  text-decoration: none;
}

.footer-bottom a + a {
  margin-left: 12px;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

@media (max-width: 1024px) {
.footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
.footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
.site-footer {
    background-image: none;
  }
}

@media (max-width: 640px) {
.cta-band {
    padding: 40px 0 8px;
  }

.cta-band__box {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
  }

.cta-band__content {
    align-items: center;
    flex: none;
    max-width: 100%;
    width: 100%;
  }

.cta-band__content h2 {
    order: 0;
    margin-bottom: 12px;
    font-size: 28px;
    text-align: center;
  }

.cta-band__content .lead {
    order: 0;
    margin-bottom: 24px;
    font-size: 14px;
    text-align: center;
  }

.cta-band__content .btn {
    width: 100%;
    max-width: 420px;
    min-width: 0;
    justify-content: center;
    border-radius: 8px;
    background: #ff770f;
  }

.cta-band__content .btn:hover {
    background: #e8680c;
  }

.cta-band__content .btn img {
    display: none;
  }

.cta-band__qr {
    flex-direction: column;
    align-items: center;
    gap: 28px;
    margin-top: 32px;
    width: 100%;
  }

.qr-img {
    width: 148px;
    height: 148px;
  }

.qr-label {
    display: block;
    margin: 12px 0 0;
    color: #fff;
    font-size: 14px;
    text-align: center;
  }

.footer-grid {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 28px;
    padding: 36px 0 24px;
    text-align: left;
  }

.footer-contact {
    width: 100%;
    text-align: left;
  }

.footer-bottom {
    flex-direction: column;
    text-align: center;
    padding: 20px 0 32px;
  }
}
