@charset "UTF-8";
/**
 * 公共基础样式 — Desktop First（桌面端优先）
 * 桌面端为默认样式，移动端覆盖在 css/mobile/mobile.css 的 @media 中
 */

/* ========== 全局 ========== */

a {
  text-decoration: none;
}

/* ========== 遮罩层 ========== */

.Overlay {
  position: fixed;
  left: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  width: 100%;
  height: 100vh;
  z-index: 9999;
}

/* ========== 顶部导航栏 ========== */

.Head {
  width: 100%;
  height: 1.5em;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  background-color: rgba(255, 255, 255, 0);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
}

.HeadLeft {
  padding-left: 10px;
}

.HeadLeft img {
  height: 4.167vw;
}

/* 移动端元素，桌面端默认隐藏 */
.HeadMid {
  display: none;
}

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

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

.HeadMidText {
  display: none;
}

.HeadRight {
  display: none;
}

.HeadRight .TelImg img {
  display: none;
}

/* ========== 板件信息浮动框 ========== */

#PlateInfoBox {
  position: fixed;
  font-size: 1rem;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  margin: 0;
  padding: 0;
  top: 36px;
  left: calc(0.5rem + 120px);
  z-index: 99;
  color: white;
}

/* ========== 主面板 & 3D 画布 ========== */

.MainPanel img {
  width: 100%;
}

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

#WebGLOutput {
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* ========== 底部按钮栏 ========== */

.BottomMenu {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4.167vw;
  display: none; /* 由 JS 切换为 flex 显示 */
  justify-content: center;
  align-items: center;
  gap: 1.042vw;
  width: 100%;
  z-index: 20;
  /* 容器自身不拦截画布交互，仅按钮可点击 */
  pointer-events: none;
}

/* 安装动画「上一步 / 下一步」按钮：沿用旧版默认按钮配色，仅保留胶囊形与尺寸 */
.StepBtn {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.313vw;
  min-width: 14vw;
  height: 2.6vw;
  padding: 0 1.6vw;
  border-radius: 1.3vw;
  font-size: 0.9vw;
  font-weight: 600;
  letter-spacing: 0.083vw;
  cursor: pointer;
  user-select: none;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.StepBtn-arrow {
  font-size: 1.15vw;
  line-height: 1;
}

.StepBtn:hover:not(:disabled) {
  transform: translateY(-2px);
}

.StepBtn:active:not(:disabled) {
  transform: translateY(0);
}

.StepBtn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

/* ========== 桌面端右侧功能栏 ========== */

.RightMenu1 {
  display: flex;
  flex-direction: column;
  padding: 0.521vw;
  position: fixed;
  top: 0;
  right: 0;
  width: 22.71vw;
  height: 100vh;
  background-color: rgba(255, 255, 255, 0.3);
}

/* 桌面端功能按钮网格 */
.DetailPanel_1 {
  display: flex;
  flex-direction: row;
  justify-content: start;
  padding: 0.521vw;
  flex-wrap: wrap;
  gap: 0.833vw;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  align-content: flex-start;
}

/* ---------------------------------------------------------------------------
 * 悬浮式滚动条（overlay scrollbar）通用样式，由 js/overlayScrollbar.js 驱动。
 * 效果对标 Element Plus 的 el-scrollbar：滚动条悬浮在内容之上，不占据文本宽度。
 * ------------------------------------------------------------------------- */

/* 包裹层：接管原滚动元素在 flex 布局中的占位，并作为滑块的定位上下文。 */
.os-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 0%;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

/* 真实滚动元素：隐藏原生滚动条，使内容始终占满全宽。 */
.os-view {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* 旧版 Edge / IE */
}

.os-view::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none; /* Chrome / Safari / 新版 Edge */
}

/* 滑块轨道：绝对定位悬浮于右侧，默认淡出，hover/拖拽时淡入。 */
.os-bar {
  position: absolute;
  top: 2px;
  right: 2px;
  bottom: 2px;
  width: 6px;
  border-radius: 3px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
  pointer-events: none;
}

.os-wrap--visible .os-bar,
.os-wrap:hover .os-bar {
  opacity: 1;
  pointer-events: auto;
}

.os-bar.os-bar--hidden {
  display: none;
}

/* 滑块：半透明，hover/拖拽时加深，体验与 el-scrollbar 一致。 */
.os-thumb {
  width: 100%;
  height: 0;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: background 0.2s ease;
}

.os-thumb:hover,
.os-wrap--dragging .os-thumb {
  background: rgba(0, 0, 0, 0.35);
}

.DetailPanel_1 div {
  width: 6.3vw;
  height: max-content;
  background: url("../../img/bj3.png") no-repeat;
  background-size: cover;
  display: flex;
  justify-content: center;
  flex-direction: row;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.DetailPanel_1 div:hover {
  transform: scale(1.08);
}

.DetailPanel_1 div img {
  width: 1.667vw;
  height: auto;
  background: none;
  margin: 0.521vw auto;
}

.DetailPanel_1 a {
  font-size: 0.729vw;
  text-decoration: none;
  color: #666;
  justify-content: center;
  margin-bottom: 0.521vw;
}

/* 桌面端标号显隐按钮 */
.MarkPanel-1 {
  width: 100%;
  height: max-content;
  padding: 0 10px;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 0.833vw;
}

.ShowMark1,
.HideMark1 {
  cursor: pointer;
  height: max-content;
  display: flex;
}

.ShowMark1 img,
.HideMark1 img {
  width: 100%;
}

/* 桌面端板块显隐按钮 */
.Board-show-hide {
  width: 100%;
  height: max-content;
  padding: 0 10px;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
}

.Board-hide,
.Board-show {
  cursor: pointer;
  height: max-content;
  display: flex;
}

.Board-hide img,
.Board-show img {
  width: 100%;
}

/* 桌面端二维码区域 */
.qrCodeBox {
  width: 2em;
  height: 2em;
  border: none;
  margin: 5px auto;
  box-sizing: border-box;
}

.qrArea {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.833vw;
  margin-bottom: 0.833vw;
}

.wx-sub {
  color: black;
  font-size: 1vw;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
  user-select: none;
  text-align: center;
}

/* 桌面端"功能栏"标题 */
.header-box {
  margin-bottom: 10px;
}

.small-heading {
  font-size: 30px;
  font-weight: bold;
  font-family: -apple-system, system-ui, sans-serif;
}

/* ========== 桌面端原生 <dialog> 弹窗 ========== */

.webDialog {
  display: none;
  flex-direction: column;
  width: 41.667vw;
  height: 31.25vw;
  max-height: 90vh;
  max-width: 90vw;
  padding: 0;
  border: 1px solid #c5c5c5;
  border-radius: 3px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
  font-size: 20px;
  overflow: hidden;
}

.webDialog[open] {
  display: flex;
}

.webDialog::backdrop {
  background: transparent;
}

.webDialogBar {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  height: 2.604vw;
  padding: 0.417vw 1.042vw;
  background: #e9e9e9;
  border-bottom: 1px solid #dddddd;
  font-weight: bold;
  cursor: move;
  user-select: none;
}

.webDialogTitle {
  font-size: 1.25vw;
  font-weight: 700;
}

.webDialogContent {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
}

.webDialogClose {
  border: none;
  background: transparent;
  font-size: 1.667vw;
  line-height: 1;
  cursor: pointer;
  color: #454545;
  padding: 0 6px;
  transition:
    color 0.2s ease,
    transform 0.3s ease;
}

.webDialogClose:hover {
  color: #e74c3c;
  transform: rotate(90deg);
}

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

.ui-widget {
  font-size: 20px;
}

/* ========== 桌面端模型/材质选择列表 ========== */

.ModelsPicDetail-1 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(6.25vw, 1fr));
  align-content: start;
  gap: 1.042vw;
  padding: 0.625vw;
}

/* ========== 材质选择卡片（桌面端默认值） ========== */

.ModelTotal,
.TextureTotal {
  width: 100%;
  height: 9.375vw;
  padding: 1.042vw;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
}

.ModelTotal:hover,
.TextureTotal:hover {
  border-color: #409eff;
  transform: scale(1.05);
}

/* 模型卡片选中态：标识当前正在展示的模型，与 hover 区分（不改 border-width 以避免布局抖动） */
.ModelTotal.active {
  border-color: #409eff;
  background-color: rgba(64, 158, 255, 0.08);
  box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.45);
}

.ModelTotal img,
.TextureTotal img {
  width: 100%;
  height: 5vw;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* 模型卡片：点击交给父盒子 .ModelTotal 统一处理，图片不拦截点击 */
.ModelTotal img {
  pointer-events: none;
}

.ModelTotal span,
.TextureTotal span {
  text-align: center;
  display: block;
  margin-top: 1.042vw;
  font-size: 0.8vw;
}

/* ========== 文件选择按钮 ========== */

.SelectPic {
  position: relative;
  display: inline-block;
  overflow: hidden;
  color: #666;
  font-size: 0.875rem;
  width: 6.875rem;
  cursor: pointer;
}

.SelectPic input {
  position: absolute;
  font-size: 100px;
  right: 0;
  top: 0;
  opacity: 0;
}

.SelectPic:hover {
  text-decoration: none;
}

/* ========== 自定义弹窗 ========== */

.CustomAlert {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
  background-color: #fff;
  border-radius: 5px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 15px;
  z-index: 99999;
}

.CustomAlert span {
  font-size: 18px;
  margin-bottom: 10px;
  color: red;
}

.CustomAlert button {
  width: 180px;
  height: 30px;
  background-color: #fff;
  border: 1px solid #e2e2e2;
  color: #fff;
  background-color: #409eff;
}

.CustomAlert button:hover {
  cursor: pointer;
}

/* ========== 桌面端料单表格 ========== */

#PlatesTable-1 {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.833vw;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

#PlatesTable-1 thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 0.625vw 0.417vw;
  text-align: center;
  color: #005bac;
  font-weight: 600;
  background: #f0f2f5;
  border-bottom: 2px solid #409eff;
}

#PlatesTable-1 tbody td {
  padding: 0.521vw 0.417vw;
  text-align: center;
  border-bottom: 1px solid #eeeeee;
  word-break: break-all;
}

#PlatesTable-1 tbody tr:nth-child(even) {
  background: #f8f9fb;
}

#PlatesTable-1 tbody tr:hover {
  background: #ecf5ff;
}

/* ID 列样式 */
#PlatesTable-1 tbody td:first-child {
  font-family: Consolas, Monaco, monospace;
}

/* ===================================================================== */
/* 以下为移动端独有 UI 面板 — 结构样式在此定义（供 JS 切换），桌面端默认隐藏 */
/* ===================================================================== */

/* 右下角圆形菜单（移动端样式见 mobile.css） */
.RightMenu {
  display: none;
}

/* 总功能面板 */
.TotalPanel {
  display: none;
}

/* companyIndex 移动端底部按钮栏 */
.TotalPanel-Company {
  display: none;
}

/* 装配料单面板 */
.PlatesPanel {
  display: none;
}

/* 扫码面板 */
.BarcodePanel {
  display: none;
}

/* Swiper 模型轮播 */
.swiper-container {
  width: 22.1875rem;
  height: 19.75rem;
}

.swiper-slide {
  text-align: center;
  font-size: 18px;
  background: #fff;
  height: 9.6875rem;
  line-height: 100px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  -webkit-align-items: center;
  align-items: center;
}

.refresh {
  position: absolute;
  line-height: 100px;
  bottom: 100%;
  text-align: center;
  width: 100%;
}

.loadmore {
  position: absolute;
  line-height: 20px;
  top: 100%;
  text-align: center;
  width: 100%;
}

.zq {
  width: 22.1875rem;
  height: 19.75rem;
  overflow: hidden;
}

.lib {
  width: 6.1875rem;
  height: 8.525rem;
  background: pink;
  float: left;
  margin-left: 0.5rem;
}

/* companyIndex 移动端材质替换面板 */
.TexturesPanelCompany {
  display: none;
}

.TexturesPanelCompany .Header {
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 -0.875rem;
  padding: 0 0.875rem;
  font-weight: 700;
  background-color: rgba(255, 255, 255, 0.4);
}

.Header .CloseBtn {
  width: 1.5rem;
  height: 1.5rem;
}

.CloseBtn img {
  width: 100%;
  height: 100%;
}

.TexturesPanelCompany .CurrentMaterial {
  height: 8rem;
  display: flex;
  align-items: center;
  flex-direction: row;
  overflow-x: scroll;
  overflow-y: hidden;
  border-top: 1px solid #e2e2e2;
}

.TexturesPanelCompany .CurrentMaterial > div {
  flex-shrink: 0;
}

.CurrentMaterial .loading {
  width: 100%;
  height: 10rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1.2rem;
  color: #333;
}

.CurrentMaterial .loading-spinner {
  width: 1.5rem;
  height: 1.5rem;
  border: 3px solid #eee;
  border-top-color: #1677ff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.CurrentMaterial .TextureTotalCompany {
  width: 7rem;
  height: 7rem;
  border-radius: 0.3rem;
  margin-right: 0.895rem;
  margin-top: 0;
  position: relative;
}

.CurrentMaterial .TextureTotalCompany:last-child {
  margin-right: 0;
}

.TextureTotalCompany img {
  width: 7rem;
  height: 7rem;
  border-radius: 0.3rem;
  position: relative;
}

.TextureTotalCompany.active::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 2px solid #ff6906;
  border-radius: 0.3rem;
  box-shadow: 0 0 0 2px rgba(255, 106, 6, 0.485);
  pointer-events: none;
}

.TextureTotalCompany span {
  font-size: 0.6rem;
  width: 100%;
  height: 1.5rem;
  border-radius: 0 0 0.3rem 0.3rem;
  line-height: 1.5rem;
  text-align: center;
  color: #fff;
  position: absolute;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
}

.TexturesPanelCompany .TextClass {
  width: 100%;
  height: 2rem;
  line-height: 2rem;
  padding: 0 0.895rem;
}

.TexturesPanelCompany .PicPanleCompany {
  width: 100%;
  flex: 1;
  display: flex;
  gap: 0.5rem;
  justify-items: center;
  align-items: center;
  overflow-x: scroll;
  overflow-y: hidden;
}

.PicPanleCompany .TextureTotalCompany {
  position: relative;
}

.TexturesPanelCompany .BtnClass {
  width: 100%;
  height: 3rem;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.BtnClass button {
  width: 45%;
  height: 2rem;
  border-radius: 0.2rem;
  border: 1px solid #e2e2e2;
}

.BtnClass button:hover {
  cursor: pointer;
}

.BtnClass button:first-child {
  background-color: #fff;
  color: #000;
}

.BtnClass button:last-child {
  background-color: #409eff;
  color: #fff;
}

.BtnClass button:first-child:active {
  background-color: #f5f5f5;
  color: #666;
}

.BtnClass button:last-child:active {
  background-color: #337ecc;
  color: #f0f7ff;
}

/* 材质/模型选择面板 */
.TexturesPanel {
  display: none;
}

.PicPanle {
  width: 22.1875rem;
  height: 20.125rem;
  background: #fff;
  position: absolute;
  bottom: 0;
  overflow-x: scroll;
}

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

/* 二维码面板 */
#QrCodelPanel {
  display: none;
}

/* ========== 加载动画 ========== */

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}
