/* __V3D_TEMPLATE__ - template-based file; delete this line to prevent this file from being updated */

body {
    margin: 0px;
    overflow: hidden;
}

noscript {
    display: block;
    text-align: center;
    padding-top: 100px;
    font-size: 20px;
}

.v3d-container {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
}

.fullscreen-button {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    background-size: 100% 100%;
    display: none;
    z-index: 1;
}


/* removes tap blinking on ios devices */
* { -webkit-tap-highlight-color:rgba(0,0,0,0); }

/* HTML 配色测试面板 */
.html-color-panel {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10000;
    width: 220px;
    padding: 16px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
    font-family: Arial, "PingFang SC", sans-serif;
    pointer-events: auto;
  }
  
  .html-color-panel__title {
    margin-bottom: 12px;
    color: #222222;
    font-size: 14px;
    font-weight: 600;
  }
  
  .html-color-panel__buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
  }
  
  .html-color-button {
    width: 34px;
    height: 34px;
    padding: 0;
    border: 3px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
  }
  
  .html-color-button:hover {
    transform: scale(1.08);
  }
  /* 当前已选中的颜色 */
.html-color-button.is-active {
    border-color: #222222;
    box-shadow:
        0 0 0 2px #ffffff,
        0 0 0 4px #222222;
    transform: scale(1.08);
}
  
  .html-color-button:focus {
    outline: 2px solid #2f6fed;
    outline-offset: 3px;
  }
  
  .html-color-button--orange {
    background: #f47a20;
  }
  
  .html-color-button--black {
    background: #111111;
  }
.html-color-button--pink {
  background: #f3b6b9;
}

.html-color-button--purple {
  background: #b6a4ea;
}

.html-color-button--purple-light {
  background: linear-gradient(
    90deg,
    #b6a4ea 0%,
    #b6a4ea 68%,
    #f4c6ed 68%,
    #f4c6ed 100%
  );
}

.html-color-button--green {
  background: #83d8cc;
}

.html-color-button--blue {
  background: #4b9fd3;
}

.html-color-button--black-white {
  background: linear-gradient(
    90deg,
    #111111 0%,
    #111111 68%,
    #ffffff 68%,
    #ffffff 100%
  );
}
/* 前部磁吸扣（右）面板 */
.html-color-panel--right {
    top: 170px;
}
/* =========================
   HTML 产品定制侧边栏
   ========================= */

   .html-configurator {
    position: fixed;
    top: 32px;
    right: 32px;
    bottom: 104px;
    z-index: 10000;
    width: 340px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
    font-family: Arial, "PingFang SC", sans-serif;
    pointer-events: auto;
}

.html-configurator__header {
  position: relative;
    flex: 0 0 auto;
    padding: 18px 18px 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.html-configurator__designs-link {
  position: absolute;
  top: 18px;
  right: 18px;
  color: #555555;
  font-size: 13px;
  font-weight: 600;
  line-height: 24px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.html-configurator__designs-link:hover {
  color: #111111;
}
.html-configurator__title {
    color: #222222;
    font-size: 18px;
    font-weight: 700;
}

.html-configurator__subtitle {
    margin-top: 5px;
    color: #888888;
    font-size: 12px;
}

.html-configurator__content {
    flex: 1 1 auto;
    min-height: 0;
    padding: 14px;
    overflow-y: auto;
}

/* 覆盖原来两个独立悬浮面板的位置 */
.html-configurator .html-color-panel {
    position: static;
    width: 100%;
    margin: 0 0 10px;
    padding: 12px;
    box-sizing: border-box;
    background: #f7f7f7;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    box-shadow: none;
}

/* 取消右侧面板原来的 top 定位 */
.html-configurator .html-color-panel--right {
    top: auto;
    right: auto;
}

/* 侧栏内的颜色按钮稍微缩小 */
.html-configurator .html-color-button {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
  }

  .html-configurator .html-color-panel__buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
}
    /* 配色模块标题可点击 */
.html-configurator .html-color-panel__title {
    position: relative;
    margin: 0;
    padding-right: 24px;
    cursor: pointer;
    user-select: none;
}

/* 标题右侧箭头 */
.html-configurator .html-color-panel__title::after {
    content: "⌃";
    position: absolute;
    top: 50%;
    right: 2px;
    transform: translateY(-50%);
    color: #777777;
    font-size: 14px;
}

/* 收起后隐藏色块 */
.html-configurator .html-color-panel.is-collapsed
.html-color-panel__buttons {
    display: none;
}

/* 收起时箭头朝下 */
.html-configurator .html-color-panel.is-collapsed
.html-color-panel__title::after {
    content: "⌄";
}

/* 收起后减少模块高度 */
.html-configurator .html-color-panel.is-collapsed {
    padding-bottom: 14px;
}
/* 前牵引织带颜色 */
.html-color-button--brown {
    background: #6f2608;
}

.html-color-button--white {
    background: #ffffff;
    border-color: #d8d8d8;
}
/* 定制面板底部操作区 */
.html-configurator__actions {
  position: fixed;
  right: 32px;
  bottom: 24px;
  z-index: 10001;
  width: 340px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-sizing: border-box;
  pointer-events: auto;
}

.html-configurator__action-row {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 10px;
  width: 100%;
}

.html-configurator__reset-button {
  align-self: flex-start;
  padding: 0;
  color: #777777;
  background: transparent;
  border: 0;
  font-size: 13px;
  cursor: pointer;
}

.html-configurator__reset-button:hover {
  color: #111111;
  text-decoration: underline;
}

.html-configurator__button {
  height: 44px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition:
      background-color 0.2s ease,
      color 0.2s ease,
      transform 0.15s ease;
}

.html-configurator__button:active {
  transform: scale(0.98);
}

.html-configurator__button--secondary {
  color: #222222;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.16);
}

.html-configurator__button--primary {
  color: #ffffff;
  background: #111111;
  border: 1px solid #111111;
}

.html-configurator__button--secondary:hover {
  background: #f2f2f2;
}

.html-configurator__button--primary:hover {
  background: #333333;
}
/* ==============================
   设计结果弹窗
   ============================== */

   .design-result-modal[hidden] {
    display: none;
}

.design-result-modal {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
}

.design-result-modal__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 18px;
  margin-top: 16px;
  padding: 0 2px;
}

.design-result-modal__meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.design-result-modal__meta-item:last-child {
  grid-column: 1 / -1;
}

.design-result-modal__meta-item span {
  color: #999999;
  font-size: 11px;
}

.design-result-modal__meta-item strong {
  color: #333333;
  font-size: 13px;
  font-weight: 600;
}

.design-result-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(4px);
}

.design-result-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(460px, 100%);
    max-height: calc(100vh - 48px);
    padding: 28px;
    overflow-y: auto;
    box-sizing: border-box;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.2);
    font-family: Arial, "PingFang SC", sans-serif;
}

.design-result-modal__close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 32px;
    height: 32px;
    padding: 0;
    color: #777777;
    background: transparent;
    border: 0;
    font-size: 26px;
    line-height: 32px;
    cursor: pointer;
}

.design-result-modal__success-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0 auto 14px;
    color: #ffffff;
    background: #111111;
    border-radius: 50%;
    font-size: 24px;
    font-weight: 700;
}

.design-result-modal__title {
    margin: 0;
    color: #111111;
    font-size: 22px;
    text-align: center;
}

.design-result-modal__description {
    margin: 8px 0 22px;
    color: #777777;
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
}

.design-result-modal__id-box {
    padding: 15px 16px;
    background: #f5f5f5;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
}

.design-result-modal__id-label {
    display: block;
    margin-bottom: 5px;
    color: #888888;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.design-result-modal__id {
    display: block;
    color: #111111;
    font-size: 18px;
    letter-spacing: 0.04em;
    word-break: break-all;
}

.design-result-modal__summary {
    margin-top: 18px;
}

.design-result-modal__summary-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: #333333;
    font-size: 13px;
    font-weight: 700;
}

.design-result-modal__parts {
    max-height: 210px;
    overflow-y: auto;
    border-top: 1px solid #eeeeee;
}

.design-result-modal__part {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 10px 2px;
    border-bottom: 1px solid #eeeeee;
    color: #333333;
    font-size: 13px;
}

.design-result-modal__part-color {
    flex: 0 0 auto;
    color: #777777;
}

.design-result-modal__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 22px;
}

.design-result-modal__button {
    height: 44px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.design-result-modal__button--secondary {
    color: #222222;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.16);
}

.design-result-modal__button--primary {
    color: #ffffff;
    background: #111111;
    border: 1px solid #111111;
}

body.design-result-modal-open {
    overflow: hidden;
}
.design-result-modal__notice {
  margin: 16px 0 0;
  padding: 10px 12px;
  color: #777777;
  background: #f7f7f7;
  border-radius: 8px;
  font-size: 11px;
  line-height: 1.6;
}
.html-configurator__button:disabled {
  color: #999999;
  background: #eeeeee;
  border-color: #eeeeee;
  cursor: not-allowed;
  transform: none;
}
.design-result-modal__preview {
  width: 100%;
  height: 190px;
  margin-bottom: 14px;
  overflow: hidden;
  box-sizing: border-box;
  background: #eeeeee;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
}

.design-result-modal__preview-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.design-result-modal__previews {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  margin-bottom: 14px;
}

.design-result-modal__preview-item {
  overflow: hidden;
  box-sizing: border-box;
  background: #eeeeee;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
}

.design-result-modal__preview-item span {
  display: block;
  padding: 7px 8px;
  color: #777777;
  font-size: 11px;
  text-align: center;
  background: #ffffff;
}

.design-result-modal__preview-image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}