/* ========== 基础重置 ========== */
:root {
  --container-max: 1436px;
  --brand-red: #b72324;
  --brand-red-light: #e46b69;

  /* ===== 沙盘板块布局变量 =====
     宽度公式集中在此定义，各断点只需覆盖下面的变量即可完成重排，
     避免在每个断点重复书写 max()/calc() 嵌套表达式。 */
  --sb-content-col: 400px; /* 文案栏宽度 */
  --sb-layout-gap: 94px; /* 文案栏与轮播图之间的间距 */
  --sb-slide-margin: 48px; /* 左右安全边距合计（= 2 × 24px） */
  --sb-slide-max: 942px; /* 轮播图最大宽度 */
  --sb-slide-h: 480px; /* 轮播图高度 */
  /* 版心外侧留白：超宽屏贴齐 1436px 版心，较窄屏保底 24px */
  --sb-outer: max(24px, calc((100vw - var(--container-max)) / 2));
  /* 轮播图宽度 = 可用空间，且不超过最大宽度 */
  --sb-slide-w: min(
    var(--sb-slide-max),
    calc(
      100vw - max(var(--sb-slide-margin), (100vw - var(--container-max))) -
        var(--sb-content-col) - var(--sb-layout-gap)
    )
  );
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family:
    "Noto Sans SC",
    -apple-system,
    BlinkMacSystemFont,
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  background-color: #ffffff;
  color: #111111;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

button {
  outline: none;
  border: none;
  background: transparent;
  cursor: pointer;
}

/* ========== 动态沙盘 ========== */
.dynamic-sandtable {
  background-color: #f2f2f2 !important;
  text-align: right;
}

.dynamic-sandtable .sandtable-layout {
  display: flex;
  align-items: center; /* 或 flex-start */
}

/* 左侧轮播区
   ⚠ PC 端保持原样：flex:1 由容器自行拉伸，视觉与改造前完全一致。
   手机端在 sm/xs 断点内改为与图表等宽（见下方响应式段落）。 */
.dynamic-sandtable .left-slider-area {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  /* 我们希望轮播图能向左延伸 */
}
/* 右侧内容区 */
.dynamic-sandtable .right-content {
  width: var(--sb-content-col);
  flex-shrink: 0;
  margin-left: var(--sb-layout-gap);
  margin-right: var(--sb-outer);
}

.dynamic-sandtable .main-title {
  justify-content: flex-end;
}

.dynamic-sandtable .slogan-title {
  font-family: 思源黑体;
  font-weight: bold;
  font-size: 16px;
  line-height: 30px;
  letter-spacing: 0.9px;
  color: #808080;
}

.dynamic-sandtable .slogan-title span {
  color: var(--brand-red);
}

.dynamic-sandtable .feature-highlight {
  font-weight: 200;
  margin-top: 70px;
}
.dynamic-sandtable .feature-tags {
  justify-content: flex-end;
}
.dynamic-sandtable .slider-controls-wrapper {
  /* 动态沙盘的图片从屏幕左缘出血，按钮组需与图片右边缘对齐 */
  justify-content: flex-end;
  margin-left: 0;
}

/* ========== 左侧内容区 ========== */
.sandtable-section {
  width: 100%;
  background: #ffffff;
  padding-top: 185px;
  padding-bottom: 140px;
  position: relative;
  overflow: hidden;
}

.sandtable-layout {
  display: flex;
  align-items: flex-start;
  width: 100%;
}
.left-content {
  width: var(--sb-content-col);
  flex-shrink: 0;
  margin-right: var(--sb-layout-gap);
  background-color: #ffffff;
  position: relative;
  z-index: 20;
  -webkit-user-select: none;
  user-select: none;
  /* 适配大屏居中 */
  margin-left: var(--sb-outer);
}
.en-subtitle {
  color: #8c8c8c;
  letter-spacing: 0.2px;
  line-height: 1;
  font-family: 思源黑体;
  font-size: 20px;
  font-weight: 200;
  letter-spacing: 0.8px;
}
.title-group {
  display: inline-block;
  width: 214px;
}
.main-title {
  font-size: 60px;
  font-weight: 200;
  color: var(--brand-red);
  line-height: 1.15;
  letter-spacing: 2px;
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
}
.sub-justify {
  display: flex;
  justify-content: space-between;
  font-size: 20px;
  font-weight: 200;
  color: #444444;
  margin-top: 10px;
  padding: 0 2px;
  line-height: 1.2;
}
.slogan-title {
  font-family: 思源黑体;
  font-size: 40px;
  font-weight: 800;
  color: #0d0d0d;
  line-height: 1.44;
  letter-spacing: 4.1px;
  margin-top: 40px;
}
.feature-highlight {
  font-size: 28px;
  font-weight: bold;
  color: var(--brand-red);
  letter-spacing: 2.9px;
  margin-top: 88px;
  line-height: 1.3;
}
.feature-tags {
  display: flex;
  align-items: center;
  font-size: 16px;
  color: #adadad;
  margin-top: 13px;
  letter-spacing: 1.6px;
}
.feature-tags .divider {
  margin: 0 12px;
  color: #cccccc;
  font-size: 12px;
}
.red-line {
  width: 100%;
  height: 2px;
  background-color: var(--brand-red-light);
  margin-top: 28px;
}

/* ========== 右侧轮播区 ========== */
/* ⚠ PC 端保持原样：flex:1 由容器自行拉伸，视觉与改造前完全一致。
   手机端在 sm/xs 断点内改为与图表等宽（见下方响应式段落）。 */
.right-slider-area {
  flex: 1;
  min-width: 0;
  position: relative;
  overflow: hidden;
}
.swiper {
  width: 100%;
  overflow: hidden;
}
.swiper-slide {
  width: var(--sb-slide-w);
  height: var(--sb-slide-h);
  position: relative;
  overflow: hidden;
  background-color: #091526;
  -webkit-user-select: none;
  user-select: none;
}
.slide-card {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.slide-card img,
.slide-card canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.swiper-slide:hover .slide-card img {
  transform: scale(1.03);
}

/* 按钮组 */
.slider-controls-wrapper {
  width: var(--sb-slide-w);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
}
.nav-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  border: 1px solid var(--brand-red);
  color: var(--brand-red);
}
.nav-btn:hover:not(.swiper-button-disabled) {
  background-color: var(--brand-red);
  color: #ffffff;
}
.nav-btn.swiper-button-disabled {
  border-color: #dcdcdc;
  color: #cccccc;
  cursor: not-allowed;
  pointer-events: none;
}

/* 悬浮立牌 */
.sandtable-pin {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  z-index: 10;
  animation: floatPin 4s ease-in-out infinite;
}
.sandtable-pin-badge {
  background: linear-gradient(
    180deg,
    rgba(190, 225, 255, 0.28) 0%,
    rgba(120, 185, 245, 0.12) 100%
  );
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(215, 240, 255, 0.55);
  box-shadow:
    0 8px 24px rgba(0, 160, 255, 0.22),
    inset 0 0 12px rgba(255, 255, 255, 0.25);
  color: rgba(240, 249, 255, 0.95);
  padding: 8px 14px;
  border-radius: 24px 24px 28px 28px;
  font-size: 12px;
  text-align: center;
}
.sandtable-pin-stem {
  width: 2px;
  height: 28px;
  background: linear-gradient(
    to bottom,
    rgba(210, 240, 255, 0.7),
    rgba(0, 210, 255, 0.9)
  );
  box-shadow: 0 0 8px rgba(0, 210, 255, 0.8);
}
.sandtable-pin-base {
  width: 18px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    #ffffff 0%,
    #38bdf8 55%,
    rgba(56, 189, 248, 0) 100%
  );
  box-shadow: 0 0 12px #38bdf8;
  margin-top: -2px;
}
@keyframes floatPin {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-4px);
  }
}

/* ============================================================
   全端自适应响应式体系（桌面优先 Desktop-first · 逐级降档）
   ------------------------------------------------------------
   基准态 (xl) ≥ 1400px ：沿用 1920×1080 设计稿样式，不写媒体查询
   大型屏幕 (lg) 1200px - 1399px ：中等桌面显示器
   中等屏幕 (md)  992px - 1199px ：小型桌面显示器 / 横屏平板
   小屏幕   (sm)  768px -  991px ：平板
   超小屏幕 (xs)    0px -  767px ：手机
   ------------------------------------------------------------
   说明：各断点只需覆盖 :root 中的布局变量，宽度公式自动重算，
        始终保证「文案栏 + 间距 + 轮播图」左右两侧留白对称。
   ============================================================ */

/* ================= 大型屏幕 (lg) 1200px - 1399px ================= */
@media screen and (max-width: 1399px) {
  :root {
    --sb-content-col: 340px;
    --sb-layout-gap: 54px;
    --sb-slide-max: 960px;
    --sb-slide-h: 440px;
  }

  .sandtable-section {
    padding-top: 100px;
    padding-bottom: 90px;
  }
  .slogan-title {
    font-size: 30px;
    letter-spacing: 3px;
    margin-top: 32px;
  }
  .feature-highlight {
    font-size: 20px;
    letter-spacing: 2px;
    margin-top: 48px;
  }
}

/* ================= 中等屏幕 (md) 992px - 1199px ================= */
@media screen and (max-width: 1199px) {
  :root {
    --sb-content-col: 320px;
    --sb-layout-gap: 40px;
    --sb-slide-max: 800px;
    --sb-slide-h: 400px;
  }

  .sandtable-section {
    padding-top: 80px;
    padding-bottom: 70px;
  }
  .main-title {
    font-size: 48px;
  }
  .title-group {
    width: 176px;
  }
  .slogan-title {
    font-size: 26px;
    letter-spacing: 2.4px;
    margin-top: 28px;
  }
  .feature-highlight {
    font-size: 19px;
    letter-spacing: 2px;
    margin-top: 40px;
  }
}

/* ================= 小屏幕 (sm) 768px - 991px ================= */
@media screen and (max-width: 991px) {
  :root {
    /* 平板：图片保留右侧"下一张露头"的窥视效果 */
    --sb-slide-w: min(88vw, 760px);
  }

  .sandtable-section {
    padding-top: 64px;
    padding-bottom: 56px;
  }

  /* 双栏改为上下堆叠 */
  .sandtable-layout {
    flex-direction: column;
  }

  /* 轮播区占满整行并居中，容器与图表严格等宽（Swiper 末张对齐的前提） */
  .right-slider-area,
  .dynamic-sandtable .left-slider-area {
    width: var(--sb-slide-w);
    margin: 0 auto;
    flex: none;
  }

  /* 文案栏通栏 */
  .left-content {
    width: calc(100% - 40px);
    margin: 0 20px 40px;
  }
  .main-title {
    font-size: 40px;
  }
  .title-group {
    width: 172px;
  }
  .sub-justify {
    font-size: 16px;
  }
  .slogan-title {
    font-size: 26px;
    letter-spacing: 2px;
    margin-top: 26px;
  }
  .feature-highlight {
    font-size: 19px;
    letter-spacing: 2px;
    margin-top: 34px;
  }
  .red-line {
    margin-top: 22px;
  }

  /* 动态沙盘：堆叠后文案置于图片上方，与上方板块顺序保持一致 */
  .dynamic-sandtable {
    text-align: left;
  }
  .dynamic-sandtable .right-content {
    width: calc(100% - 40px);
    margin: 0 20px 40px;
    order: -1;
  }
  .dynamic-sandtable .main-title {
    justify-content: flex-start;
  }
  .dynamic-sandtable .feature-tags {
    justify-content: flex-start;
  }

  /* 轮播图与按钮组：图表宽度跟随容器，不再用 margin-left 制造偏移
     （Swiper 的位移计算不含 margin，margin 偏移会造成滑动后错位） */
  .swiper-slide {
    width: 100%;
    height: min(52vw, 420px);
    min-height: 240px;
    margin-left: 0;
  }
  .slider-controls-wrapper,
  .dynamic-sandtable .slider-controls-wrapper {
    width: 100%;
    margin: 22px 0 0;
    justify-content: flex-end;
  }
}

/* ================= 超小屏幕 (xs) 0px - 767px ================= */
@media screen and (max-width: 767px) {
  :root {
    /* 手机：图片铺满内容区宽度，不再露头 */
    --sb-slide-w: calc(100vw - 32px);
  }

  .sandtable-section {
    padding-top: 44px;
    padding-bottom: 40px;
  }

  .left-content {
    width: calc(100% - 32px);
    margin: 0 16px 32px;
  }
  .main-title {
    font-size: 32px;
  }
  .title-group {
    width: 140px;
  }
  .sub-justify {
    font-size: 14px;
  }
  .slogan-title {
    font-size: 20px;
    letter-spacing: 1.2px;
    margin-top: 20px;
  }
  .feature-highlight {
    font-size: 17px;
    letter-spacing: 1.4px;
    margin-top: 26px !important;
  }
  .feature-tags {
    font-size: 13px;
    letter-spacing: 1px;
  }
  .red-line {
    margin-top: 18px;
  }

  .dynamic-sandtable .right-content {
    width: calc(100% - 32px) !important;
    margin: 0 16px 32px;
  }

  .swiper-slide {
    width: 100%;
    height: 62vw;
    min-height: 190px;
    max-height: 300px;
    margin-left: 0;
  }
  .slider-controls-wrapper,
  .dynamic-sandtable .slider-controls-wrapper {
    width: 100%;
    margin: 18px 0 0;
  }
}
