@charset "UTF-8";
/**
 * 移动端覆盖样式 — Desktop First 策略
 * 仅在 ≤ 1024px 屏幕激活，覆盖 base.css 的桌面端默认值
 */

@media screen and (max-width: 1024px) {
  /* ========== 隐藏桌面端专属元素 ========== */

  .RightMenu1 {
    display: none;
  }

  .DetailPanel_1 {
    display: none;
  }

  .MarkPanel-1 {
    display: none;
  }

  .Board-show-hide {
    display: none;
  }

  .qrArea {
    display: none;
  }

  .qrCodeBox {
    display: none;
  }

  .wx-sub {
    display: none;
  }

  .header-box {
    display: none;
  }

  .small-heading {
    display: none;
  }

  .webDialog {
    display: none;
  }

  .webDialogBar {
    display: none;
  }

  .webDialogClose {
    display: none;
  }

  .ModelsPicDetail-1 {
    display: none;
  }

  #PlatesTable-1 {
    display: none;
  }

  div[id^="Dialog"] p {
    font-size: inherit;
  }

  .ui-widget {
    font-size: inherit;
  }

  /* ========== 显示移动端专属元素 ========== */

  .RightMenu {
    position: absolute;
    right: 2.667vw;
    bottom: 2.667vw;
    z-index: 10;
    display: block;
  }

  /* 圆形图标按钮：固定正方形容器，clip-path 把可点击区域裁成圆形，
     使点击热区贴合圆形按钮（圆外点击穿透，不再是整块方形可点） */
  .RightMenu .MenuBtns {
    width: 12.8vw;
    height: 12.8vw;
    clip-path: circle(50%);
  }

  .RightMenu .MenuBtns a {
    display: block;
    width: 100%;
    height: 100%;
  }

  .RightMenu .MenuBtns img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
  }

  .HeadMid {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: block;
  }

  .HeadMid .MenuBtns img {
    height: 5rem;
  }

  .HeadMid .MenuBtnsHead img {
    height: 3rem;
  }

  .HeadMidText {
    display: block;
    margin-left: 3rem;
    margin-top: -2.1rem;
    font-size: 1rem;
    text-align: center;
    color: #000;
  }

  .HeadRight {
    display: block;
  }

  .HeadRight .TelImg img {
    display: block;
    position: absolute;
    height: 2rem;
    top: 50%;
    transform: translateY(-50%);
    right: 0.8125rem;
  }

  /* ========== 移动端面板 ========== */

  .TotalPanel {
    width: 100%;
    position: absolute;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.3);
    z-index: 50;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    will-change: transform;
  }

  /* 打开态：从下向上滑入；移除该类则从上向下滑出 */
  .TotalPanel.TotalPanel--open {
    transform: translateY(0);
  }

  .TotalPanel .MarkPanel {
    width: 100%;
    padding: 0 6vw;
    height: 12vw;
    display: flex;
    flex-flow: row;
    align-items: center;
    justify-content: flex-start;
    gap: 5.3333vw;
  }

  .TotalPanel p {
    width: 9.625rem;
    height: 2.625rem;
    margin: 0;
    text-align: center;
  }

  .TotalPanel p a {
    display: block;
    margin: 0;
    line-height: 2.625rem;
    text-align: center;
  }

  .TotalPanel .ShowMark img,
  .TotalPanel .HideMark img {
    width: 100%;
  }

  .DetailPanel {
    width: 100%;
  }

  .DetailPanel ul {
    display: grid;
    grid-template-columns: repeat(3, 27.6vw);
    justify-content: space-evenly;
    row-gap: 4vw;
    padding: 0 0 2.133vw 0;
  }

  .DetailPanel ul li {
    width: 27.6vw;
    height: 17.867vw;
    background: url("../../img/bj3.png") no-repeat center;
    background-size: 27.6vw 17.867vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .DetailPanel ul li a {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .DetailPanel ul li a img {
    height: 8vw;
  }

  .DetailPanel ul li a .zz {
    width: 100%;
    font-size: 3.2vw;
    line-height: 1.2;
    text-align: center;
    color: #666;
    margin-top: 1.067vw;
  }

  .TotalPanel-Company {
    position: absolute;
    bottom: 0;
    z-index: 50;
    width: 100%;
    padding-bottom: 2.667vw;
    background-color: rgba(255, 255, 255, 0.3);
    display: block;
  }

  .TotalPanel-Company ul {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
    overflow-y: auto;
  }

  .TotalPanel-Company ul li {
    height: 17.867vw;
    width: 25.6vw;
    background: url("../../img/bj3.png") no-repeat center center;
    background-size: 25.6vw 17.867vw;
    float: left;
    margin-left: 2.667vw;
    margin-top: 4.8vw;
  }

  .TotalPanel-Company ul li a img {
    height: 8vw;
    margin-top: 1.333vw;
  }

  .TotalPanel-Company ul li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .TotalPanel-Company ul li a .zz {
    font-size: 3.2vw;
    text-align: center;
    display: block;
    color: #666;
    width: 100%;
    margin-top: 2.667vw;
  }

  .PlatesPanel {
    width: 95vw;
    height: 90vw;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 100%);
    transition: transform 0.3s ease;
    will-change: transform;
  }

  /* 打开态：从下向上滑入；移除该类则从上向下滑出 */
  .PlatesPanel.is-open {
    transform: translate(-50%, 0);
  }

  .PlatesDetailPanel {
    width: 100%;
    height: 100%;
    background: #fff;
    padding: 2.6667vw;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .BarcodePanel {
    height: 90%;
    width: 100%;
    position: absolute;
    bottom: 0rem;
    background-color: rgba(255, 255, 255, 1);
  }

  .TexturesPanelCompany {
    width: 95vw;
    max-height: 85vh;
    border-radius: 1.28vw 1.28vw 0 0;
    background-color: rgba(255, 255, 255, 0.4);
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    padding: 0 3.733vw;
  }

  /* ── companyIndex 材质面板内部元素 vw 覆盖 ── */
  .TexturesPanelCompany .Header {
    height: 8.533vw;
    margin: 0 -3.733vw;
    padding: 0 3.733vw;
  }

  .Header .CloseBtn {
    width: 6.4vw;
    height: 6.4vw;
  }

  .TexturesPanelCompany .CurrentMaterial {
    height: 34.133vw;
  }

  .CurrentMaterial .loading {
    height: 42.667vw;
    gap: 2.133vw;
    font-size: 3.2vw;
  }

  .CurrentMaterial .loading-spinner {
    width: 6.4vw;
    height: 6.4vw;
  }

  .CurrentMaterial .TextureTotalCompany {
    width: 29.867vw;
    height: 29.867vw;
    border-radius: 1.28vw;
    margin-right: 3.819vw;
  }

  .TextureTotalCompany img {
    width: 29.867vw;
    height: 29.867vw;
    border-radius: 1.28vw;
  }

  .TextureTotalCompany.active::after {
    border-radius: 1.28vw;
  }

  .TextureTotalCompany span {
    font-size: 2.56vw;
    height: 6.4vw;
    line-height: 6.4vw;
    border-radius: 0 0 1.28vw 1.28vw;
  }

  .TexturesPanelCompany .TextClass {
    height: 8.533vw;
    line-height: 8.533vw;
    padding: 0 3.819vw;
  }

  .TexturesPanelCompany .PicPanleCompany {
    gap: 2.133vw;
  }

  .TexturesPanelCompany .BtnClass {
    height: 12.8vw;
  }

  .BtnClass button {
    height: 8.533vw;
    border-radius: 0.853vw;
  }

  .TexturesPanel {
    width: 95vw;
    height: 90vw;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 51;
  }

  .PicPanle {
    width: 100%;
    height: 90vw;
    padding: 2.6667vw;
    background-color: #fff;
  }

  /* ===== 选择模型面板（#ModelsPanel 与材质面板共用 .TexturesPanel/.PicPanle，
     此处用 ID 定向覆盖，避免污染材质面板）===== */

  /* 下进上出滑动：默认藏于屏外下方（保留 translateX(-50%) 水平居中） */
  #ModelsPanel {
    transform: translate(-50%, 100%);
    transition: transform 0.3s ease;
    will-change: transform;
  }

  #ModelsPanel.is-open {
    transform: translate(-50%, 0);
  }

  /* 模型卡片一行三个 */
  #ModelsPanel .PicPanle {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-content: start;
    gap: 2.6667vw;
  }

  #ModelsPanel .ModelTotal {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-self: center;
    padding: 4vw 1.6vw;
    border: 1px solid #e0e0e0;
    border-radius: 1.0667vw;
  }

  #ModelsPanel .ModelTotal img {
    height: 16vw;
  }

  #ModelsPanel .ModelTotal span {
    font-size: 3.2vw;
    margin-top: 1.6vw;
  }

  /* ===== 选择材质面板（#TexturesPanel 与模型面板共用 .TexturesPanel/.PicPanle，
     此处用 ID 定向覆盖，避免污染其它面板）===== */

  /* 下进上出滑动：默认藏于屏外下方（保留 translateX(-50%) 水平居中） */
  #TexturesPanel {
    transform: translate(-50%, 100%);
    transition: transform 0.3s ease;
    will-change: transform;
  }

  #TexturesPanel.is-open {
    transform: translate(-50%, 0);
  }

  /* 材质卡片一行三个，仅纵向滚动 */
  #TexturesPanel .PicPanle {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-content: start;
    gap: 2.6667vw;
    overflow-x: hidden;
    overflow-y: auto;
  }

  #TexturesPanel .TextureTotal {
    width: 88%;
    height: auto;
    float: none;
    margin: 0;
    justify-self: center;
    padding: 4vw 1.6vw;
    border: 1px solid #ccc;
    border-radius: 1.0667vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  #TexturesPanel .TextureTotal img {
    width: 100%;
    height: 16vw;
    margin: 0;
    object-fit: contain;
  }

  #TexturesPanel .TextureTotal span {
    font-size: 3.2vw;
    margin-top: 1.6vw;
  }

  #QrCodelPanel {
    position: fixed;
    inset: 0;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
  }

  /* ========== 关闭按钮 ========== */

  #CloseTotalBtn img {
    height: 6.6667vw;
    position: absolute;
    right: 0;
    top: -3.3333vw;
    z-index: 51;
  }

  #ClosePlatesBtn img {
    height: 8vw;
    position: absolute;
    right: -2.1333vw;
    top: -4.2667vw;
    z-index: 900;
  }

  #CloseBarcodeBtn img {
    height: 1.875rem;
    position: absolute;
    right: 0;
    top: -0.9375rem;
    z-index: 901;
  }

  .CloseTexturesBtn img {
    height: 1.875rem;
    position: absolute;
    top: -1rem;
    z-index: 999;
    right: -0.5rem;
  }

  #CloseQrCodeBtn {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    width: 1.6rem;
    height: 1.6rem;
    z-index: 1;
  }

  #CloseQrCodeBtn img {
    width: 100%;
    height: 100%;
    display: block;
  }

  /* ========== 移动端料单表格 ========== */

  #PlatesTable {
    margin-left: 0;
    width: 100%;
  }

  #PlatesTable tr td {
    line-height: 8.2667vw;
    font-size: 3.7333vw;
    font-family: Arial, Helvetica, sans-serif;
  }

  #PlatesTable tr td img {
    height: 1.6vw;
    float: left;
    margin-top: 3.7333vw;
    margin-right: 2.6667vw;
  }

  /* ========== 移动端扫码/二维码 ========== */

  #QrCodeDetail {
    position: relative;
    padding: 1.6rem;
    background-color: #fff;
    border-radius: 0.9rem;
    box-shadow: 0 0.5rem 1.6rem rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  #QrCodePic {
    width: 13rem;
    height: 13rem;
    display: block;
  }

  .QrCodeTip {
    margin-top: 1rem;
    max-width: 13rem;
    font-size: 0.8rem;
    line-height: 1.4;
    color: #666;
    text-align: center;
  }

  #BarcodeVideo {
    border: 1px solid rgb(128, 128, 128);
    margin-top: 2rem;
    margin-left: -140px;
    position: absolute;
    left: 50%;
  }

  #ChangeVideo img {
    height: 2.5rem;
    position: absolute;
    right: 0.2rem;
    top: 400px;
  }

  /* ========== 覆盖公共样式为移动端尺寸 ========== */

  .Head {
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }

  .HeadLeft img {
    height: 2rem;
  }

  #PlateInfoBox {
    position: fixed;
    font-size: 1rem;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    margin-left: 0.5rem;
    margin-top: 3rem;
    padding: revert;
    top: auto;
    left: auto;
    color: white;
  }

  #LoadImg {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
  }

  .BottomMenu {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 3rem;
    width: 100%;
    gap: 12px;
  }

  .StepBtn {
    min-width: 30%;
    height: 2.4rem;
    padding: 0 1rem;
    font-size: 0.9rem;
    border-radius: 1.2rem;
  }

  .TextureTotal {
    width: 5.8875rem;
    height: 7.8125rem;
    float: left;
    border: 1px solid #ccc;
    margin-left: 0.895rem;
    margin-top: 1.9375rem;
    padding: 0;
    display: block;
  }

  .TextureTotal img {
    width: 89%;
    margin-left: 0.3rem;
    display: block;
  }

  .TextureTotal span {
    text-align: center;
    display: block;
    margin-top: 0.45em;
  }

  .ModelTotal {
    width: 29.3333vw;
    height: 38.6667vw;
    float: left;
    border: 1px solid #ccc;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.6667vw;
  }

  .ModelTotal img {
    width: 26.6667vw;
    height: 26.6667vw;
    object-fit: contain;
  }

  .ModelTotal span {
    font-size: 4.8vw;
  }

  .SelectPic {
    cursor: default;
  }

  .CustomAlert button {
    width: 4.8rem;
    height: 1.5rem;
  }
}

/* ========== 手机端响应式微调 (≤800px) ========== */

@media screen and (max-width: 800px) {
  .CustomAlert span {
    font-size: 1rem;
    margin-bottom: 0.266667rem;
    color: red;
  }

  .CustomAlert button {
    width: 4.8rem;
    height: 1.5rem;
  }

  #PlateInfoBox {
    font-size: 1rem;
  }

  #LoadImg {
    width: 200px;
    height: 200px;
  }
}
