/* 玻璃参数来自编辑器配置（透明度换算: tintAlpha = (100 - transparency) / 100） */
:root {
  --card-tint-alpha: 0.09;
  --card-blur: 0px;
  --card-border-alpha: 0.55;
  --card-highlight-alpha: 0;
  --frame-fill-alpha: 0.04;
  --frame-border-alpha: 0.53;
  --frame-blur: 0px;
  --nav-card-gap: 43px;
  --adaptive-row-gap: 43px;
  --adaptive-row-offset-y: 34.68348839494091px;
  --adaptive-card-width: 260px;
  --adaptive-card-height: 198px;
  --adaptive-icon-size: 70px;
  --adaptive-card-padding-top: 30px;
  --adaptive-title-size: 23px;
  --adaptive-link-size: 12px;
  --title-decoration-bg-alpha: 0.6;
  --eyebrow-decoration-bg-alpha: 0.12;
  --background-brightness: 1;
  --background-contrast: 1;
  --background-saturation: 1;
  --scene-shade: 0;
  --stage-scale: 1;
  --carousel-fade-ms: 1400ms;
  --page-min-width: 1280px;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  min-width: var(--page-min-width);
  overflow-x: auto;
  overflow-y: hidden;
}

body {
  color: #fff;
  background: #06121f;
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

.background-carousel {
  position: fixed;
  z-index: 0;
  inset: 0;
}

.design-stage {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 1920px;
  height: 1080px;
  overflow: hidden;
  transform: translate(-50%, -50%) scale(var(--stage-scale));
  transform-origin: center;
  background: transparent;
  pointer-events: none;
}

.design-stage a,
.design-stage button {
  pointer-events: auto;
}

.background-slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity var(--carousel-fade-ms) ease;
  /*filter:*/
  /*  brightness(var(--background-brightness))*/
  /*  contrast(var(--background-contrast))*/
  /*  saturate(var(--background-saturation));*/
  transform: translateZ(0);
  will-change: opacity;
}

.background-slide.is-active {
  opacity: 1;
  z-index: 1;
}

/* 轮播指示器（参考 ucs.ford.com.cn/nav）：画布底部居中、位于页脚上方，扩大可点热区 */
.carousel-indicators {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 110px;
  transform: translateX(-50%) scale(calc(1 / var(--stage-scale)));
  transform-origin: center bottom;
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
}

.carousel-indicator {
  position: relative;
  box-sizing: content-box;
  width: 8px;
  height: 8px;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: width 0.4s ease, border-radius 0.4s ease, background 0.4s ease;
  appearance: none;
  -webkit-appearance: none;
}

/* 扩大点击区域，视觉仍保持小圆点/胶囊 */
.carousel-indicator::before {
  content: "";
  position: absolute;
  inset: -12px -10px;
}

.carousel-indicator.is-active {
  width: 20px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
}

.carousel-indicator:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 4px;
}

.scene-overlay {
  position: fixed;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 22, 39, 0.16) 0%, rgba(0, 22, 39, 0.01) 48%),
    linear-gradient(180deg, rgba(0, 11, 21, 0) 50%, rgba(0, 11, 21, 0.55) 100%),
    rgba(0, 18, 33, 0.1);
  opacity: var(--scene-shade);
  pointer-events: none;
}

.main-glass-frame {
  position: absolute;
  z-index: 2;
  left: 134px;
  top: 136px;
  width: 1652px;
  height: 790px;
  border: 1px solid rgba(255, 255, 255, var(--frame-border-alpha));
  border-radius: 36px;
  background: rgba(220, 240, 249, var(--frame-fill-alpha));
  /*backdrop-filter: blur(var(--frame-blur)) saturate(0.96);*/
  /*-webkit-backdrop-filter: blur(var(--frame-blur)) saturate(0.96);*/
  box-shadow: 0 16px 50px rgba(0, 13, 27, 0.06);
}

.hero-copy {
  position: absolute;
  left: 74px;
  top: 40px;
  color: #fff;
}

.eyebrow {
  margin: 0;
  font-size: 22px;
  line-height: 1.35;
  font-weight: 400;
  letter-spacing: 0.26em;
  color: rgba(255, 255, 255, 0.86);
}

.hero-copy h1 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 20px 0 0;
  font-size: 70px;
  line-height: 1;
  font-family: Arial, "Microsoft YaHei UI", sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-shadow: 0 3px 20px rgba(0, 18, 36, 0.18);
}

.hero-copy h1 .title-cn {
  font-family: "Microsoft YaHei UI", sans-serif;
  font-size: 60px;
  letter-spacing: -0.08em;
}

.hero-copy h1 span {
  display: inline-block;
}

.nav-cards {
  position: absolute;
  left: 0;
  right: 0;
  top: 524px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: var(--nav-card-gap);
}

.nav-card {
  position: relative;
  width: 260px;
  height: 198px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 18px 18px;
  color: #10253b;
  text-decoration: none;
  border: 1.5px solid rgba(255, 255, 255, var(--card-border-alpha));
  border-radius: 24px;
  --card-tint-hover-alpha: var(--card-tint-alpha);
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, var(--card-highlight-alpha)) 0%,
      rgba(255, 255, 255, 0.05) 56%
    ),
    rgba(247, 246, 242, var(--card-tint-hover-alpha));
  /*backdrop-filter: blur(var(--card-blur)) saturate(0.84);*/
  /*-webkit-backdrop-filter: blur(var(--card-blur)) saturate(0.84);*/
  box-shadow:
    0 14px 26px rgba(0, 17, 34, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.52);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.nav-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle at 15% 0%, rgba(255, 255, 255, 0.22), transparent 35%);
}

.nav-card:hover {
  --card-tint-hover-alpha: 0.32;
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.72);
  box-shadow:
    0 22px 34px rgba(0, 17, 34, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.nav-card:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.9);
  outline-offset: 4px;
}

.round-icon {
  width: 74px;
  height: 74px;
  flex: 0 0 74px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 18px;
  /*background-image: linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(0, 0, 0, 0.1));*/
  color: #fff;
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  box-shadow:
    0 8px 22px rgba(0, 24, 48, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.icon-lincoln,
.icon-lincoln-secondary,
.icon-ford,
.icon-ford-secondary,
.icon-fordpass {
  background-color: #01095c;
}

.nav-card strong {
  margin-top: 18px;
  font-family: Arial, sans-serif;
  font-size: 19px;
  line-height: 1.2;
  font-weight: 700;
}

.nav-card small {
  max-width: 100%;
  margin-top: 8px;
  padding: 0 4px;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

.nav-cards.adaptive-row-enabled {
  left: 0;
  right: 0;
  width: auto;
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: center;
  column-gap: var(--adaptive-row-gap, 43px);
  row-gap: 0;
  transform: translateY(var(--adaptive-row-offset-y, 0px));
}

.nav-cards.adaptive-row-enabled .nav-card {
  width: var(--adaptive-card-width, 260px);
  height: var(--adaptive-card-height, 198px);
  flex: 0 0 var(--adaptive-card-width, 260px);
  padding: var(--adaptive-card-padding-top, 30px) 10px 14px;
}

.nav-cards.adaptive-row-enabled .round-icon {
  width: var(--adaptive-icon-size, 64px);
  height: var(--adaptive-icon-size, 64px);
  flex: 0 0 var(--adaptive-icon-size, 64px);
}

.nav-cards.adaptive-row-enabled .nav-card strong {
  margin-top: clamp(8px, calc(var(--adaptive-card-width, 260px) * 0.07), 18px);
  font-size: var(--adaptive-title-size, 19px);
}

.nav-cards.adaptive-row-enabled .nav-card small {
  margin-top: 7px;
  font-size: var(--adaptive-link-size, 12px);
}

.brand-color-ford-classic .eyebrow {
  color: #ffffff;
}

.brand-color-ford-classic .title-one {
  color: #ffffff;
}

.brand-color-ford-classic .title-cn {
  color: #01095c;
}

.brand-color-ford-classic .nav-card strong {
  color: #01095c;
  letter-spacing: 0.12em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

.brand-color-ford-classic .nav-card small {
  color: #01095c;
}

.brand-color-ford-classic .round-icon {
  color: #ffffff;
  background-color: #01095c;
}

.title-decoration-glass-label .hero-copy h1 {
  width: fit-content;
  padding: 10px 16px 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 18px;
  background: rgba(213, 239, 250, var(--title-decoration-bg-alpha));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background-color 400ms ease, border-color 400ms ease;
}

/* 非第一张图：去掉偏青底色，改用中性磨砂白 */
body[data-title-tone="neutral"] .title-decoration-glass-label .hero-copy h1 {
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.42);
}

.eyebrow-decoration-glass-label .eyebrow {
  display: inline-block;
  position: relative;
  isolation: isolate;
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}

.eyebrow-decoration-glass-label .eyebrow::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background: rgba(213, 239, 250, var(--eyebrow-decoration-bg-alpha));
}

.text-style-modern .eyebrow,
.text-style-modern .title-one,
.text-style-modern .title-cn,
.text-style-modern .nav-card strong,
.text-style-modern .nav-card small,
.text-style-modern .round-icon {
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif;
  font-style: normal;
}

.page-footer {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  bottom: 36px;
  text-align: center;
  color: rgba(255, 255, 255, 0.76);
  text-shadow: 0 2px 9px rgba(0, 0, 0, 0.38);
  pointer-events: auto;
}

.page-footer p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}

.page-footer p + p {
  margin-top: 4px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.62);
}

.page-footer a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.page-footer a:hover {
  text-decoration: underline;
}

/* 登录方式选择弹窗（相对视口，不随 1920 画布缩放） */
.login-modal {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-modal[hidden] {
  display: none !important;
}

.login-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 32, 52, 0.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.login-modal__dialog {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: 465px;
  max-width: calc(100vw - 48px);
  padding: 40px 40px 30px;
  text-align: center;
  color: #1a2b3c;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(15, 40, 70, 0.22);
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

.login-modal__icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #0066dc;
  box-shadow: 0 12px 24px rgba(0, 102, 220, 0.28);
}

.login-modal__title {
  margin: 0;
  font-size: 22px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #0a1a2e;
}

.login-modal__hint {
  margin: 16px 0 10px;
  font-size: 14px;
  color: #78818c;
}

.login-modal__badge {
  display: inline-block;
  margin: 0 auto 26px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #0066cc;
  background: #e8f0f8;
  border-radius: 999px;
}

.login-modal__question {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 700;
  color: #0a1a2e;
}

.login-modal__desc {
  margin: 0 auto 26px;
  max-width: 340px;
  font-size: 13px;
  line-height: 1.65;
  color: #9ba1aa;
}

.login-modal__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  margin: 0;
  padding: 13px 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.login-modal__btn + .login-modal__btn {
  margin-top: 14px;
}

.login-modal__btn--primary {
  color: #fff;
  background: #0066dc;
  box-shadow: 0 1px 20px rgba(0, 102, 220, 0.28);
}

.login-modal__btn--primary:hover {
  background: #0059c4;
  transform: translateY(-1px);
}

.login-modal__btn--secondary {
  color: #2a3b4d;
  background: #f2f5f8;
  border-color: #e4ebf1;
  box-shadow: none;
}

.login-modal__btn--secondary:hover {
  background: #e9eef3;
  transform: translateY(-1px);
}

.login-modal__cancel {
  display: inline-block;
  margin-top: 20px;
  padding: 0;
  border: none;
  background: none;
  color: #9198a1;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.login-modal__cancel:hover {
  color: #6b7a8a;
  text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  .nav-card {
    transition: none;
  }

  .background-slide {
    transition: none;
  }

  .login-modal__btn {
    transition: none;
  }
}
