﻿body {
  margin: 0px;
  overflow: hidden;
}

noscript {
  display: block;
  text-align: center;
  padding-top: 100px;
  font-size: 20px;
}

/* 主容器布局 - PC端左右布局 */
.main-container {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

#v3d-container {
  margin: 5px;
  border-radius: 10px;
  flex: 1;
  position: relative;
  width: calc(100% - 350px);
  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;
}

.fullscreen-open {
  background-image: url("media/fullscreen_open.svg");
}

.fullscreen-close {
  background-image: url("media/fullscreen_close.svg");
}

.v3d-annotation {
  color: #ffffff;
  background: rgb(210 141 93);
  border: 1px solid #fff;
  font-size: 16px;
  line-height: 22px;
}

.v3d-annotation-dialog {
  color: #ffffff;
  background: rgb(210 141 93);
  border: 1px solid rgba(0, 0, 0, 0.8);
  top: 38px;
  left: -40px;
  min-width: 100px;
}
/* 中央弹出窗口样式 */
.modal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
  transition: opacity 0.5s ease;
  opacity: 1;
}

.modal.hidden {
  opacity: 0;
}

.modal-content {
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  padding: 30px 40px;
  width: 600px;
  max-width: 90%;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  position: relative;
  transition: transform 0.5s ease, opacity 0.5s ease;
  transform: scale(1);
  opacity: 1;
}

.modal.hidden .modal-content {
  transform: scale(0.9);
  opacity: 0;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  color: #eaeaea;
  background-color: #333;
  cursor: pointer;
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background-color: #f5f5f5;
  color: #333;
}

.modal-header {
  margin-bottom: 20px;
  text-align: center;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.modal-row {
  margin-bottom: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.modal-row-1 {
  width: 145px;
  height: 35px;
  background-image: url("./file/logo01.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin: 0 auto;
}

.modal-row-2 {
  width: calc(100% - 40px);
  height: 50px;
  background-image: url("./file/logo02.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin: 5px 0 20px 0;
}

.modal-row-3 {
  display: flex;
  width: calc(100% - 40px);
  height: 40px;
  gap: 8px;
  margin: 0 auto;
}

.modal-col {
  height: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  /* background-position: center; */
}

.modal-col-1 {
  background-image: url("./file/biaoti01.png");
  background-color: #a88669;
  background-position: center;
  background-size: 85% 80%;
  border-radius: 15px;
  flex: 1;
}

.modal-col-2 {
  background-image: url("./file/biaoti02.png");
  border-radius: 5px;
  flex: 2;
}

.modal-subtitle {
  font-size: 18px;
  color: #8b4513;
  margin-bottom: 20px;
  font-family: "Microsoft YaHei", sans-serif;
}

.modal-text {
  font-size: 14px;
  color: #333;
  line-height: 1.8;
  text-align: left;
  margin-bottom: 30px;
  font-family: "Microsoft YaHei", sans-serif;
}

.modal-text p {
  text-indent: 2em;
}

.modal-button {
  background-color: #a88669;
  color: white;
  border: none;
  padding: 10px 30px;
  font-size: 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Microsoft YaHei", sans-serif;
}

.modal-button:hover {
  background-color: #a0522d;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 右侧交互面板样式 */
.interaction-panel {
  width: 360px;
  height: 100%;
  border-radius: 10px;
  background-color: rgba(245, 240, 235, 0.95);
  padding: 10px 25px;
  margin: 5px;
  box-sizing: border-box;
  z-index: 50;
  overflow-y: auto;
  flex-shrink: 0;
  border-left: 1px solid #ddd;
}

.panel-title {
  width: 135px;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: 2px;
  font-size: 20px;
  font-weight: bold;
  color: white;
  text-align: center;
  padding: 5px 0;
  margin-bottom: 25px;
  background-color: #8b4513;
  border: #e7e7e7 2px solid;
  box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.2);
  border-radius: 20px;
  font-family: "Microsoft YaHei", sans-serif;
}

.panel-section {
  margin-bottom: 20px;
}

.section-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.section-number {
  display: inline-block;
  width: 25px;
  height: 25px;
  background-color: #8b4513;
  color: white;
  border-radius: 50%;
  text-align: center;
  line-height: 25px;
  font-size: 14px;
  font-weight: bold;
  margin-right: 10px;
}

.section-name {
  font-size: 16px;
  font-weight: bold;
  color: #000000;
  font-family: "Microsoft YaHei", sans-serif;
}

.section-content {
  padding-left: 35px;
}

/* 描述部分按钮 */
.description-toggle {
  width: 110px;
  height: 30px;
  background-color: #8b4513;
  border: #c3b9b2 1px solid;
  color: white;
  letter-spacing: 15px;
  font-size: 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Microsoft YaHei", sans-serif;
  flex-shrink: 0;
  text-align: center;
  padding-left: 20px;
}
.description-toggle:last-child {
  margin-right: 0;
}
.description-buttons {
  box-shadow: 3px 3px 7px rgba(0, 0, 0, 0.2);
  width: 250px;
  border-radius: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px;
  box-sizing: border-box;
  background-color: #d28d5d;
}
.description-toggle:hover {
  background-color: #a0522d;
  border-color: #a0522d;
}

.description-toggle.active {
  background-color: #fefefe;
  border-color: #8b4513;
  color: #8b4513;
}

/* 材质部分按钮容器 */
.material-buttons-container {
  box-shadow: 3px 3px 7px rgba(0, 0, 0, 0.2);
  width: 208px;
  border-radius: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px;
  box-sizing: border-box;
  background-color: #d28d5d;
}

/* 标题和标签在同一行的布局 */
.section-header-with-tabs {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
}

/* 调整标题样式以适应同一行布局 */
.section-header-with-tabs .section-header {
  margin-bottom: 0;
}

/* 为材质和纹饰部分的按钮容器添加左边距 */
.material-buttons-container[data-type="material"],
.material-buttons-container[data-type="pattern"] {
  margin-left: 0;
}

/* 材质部分按钮 - 独立样式 */
.material-toggle {
  width: 90px;
  height: 30px;
  background-color: #8b4513;
  border: #c3b9b2 1px solid;
  color: white;
  letter-spacing: 2px;
  font-size: 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Microsoft YaHei", sans-serif;
  flex-shrink: 0;
  text-align: center;
}
.material-toggle:last-child {
  margin-right: 0;
}
.material-toggle:hover {
  background-color: #a0522d;
  border-color: #a0522d;
}
.material-toggle.active {
  background-color: #fefefe;
  border-color: #8b4513;
  color: #8b4513;
}

/* 组合部分图标按钮 */
.icon-button {
  width: 76px;
  height: 76px;
  background-color: white;
  border: 2px solid #8b4513;
  box-shadow: 3px 3px 7px rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  cursor: pointer;
  margin-right: 5px;
  background-size: 70% 70%;
  background-position: center;
  background-repeat: no-repeat;
  transition: all 0.3s ease;
  display: inline-block;
}

/* 为三个按钮添加不同的背景图标 */
.icon-button:nth-child(1) {
  background-image: url("./file/zuhe01.png");
  background-size: 100% 100%;
}

.icon-button:nth-child(2) {
  background-image: url("./file/zuhe02.png");
  background-size: 100% 100%;
}

.icon-button:nth-child(3) {
  background-image: url("./file/zuhe03.png");
  background-size: 70% 70%;
}

.icon-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 结构部分按钮 */
.structure-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 270px;
}

.structure-button {
  width: 76px;
  height: 76px;
  background-color: white;
  border: 2px solid #8b4513;
  box-shadow: 3px 3px 7px rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  color: #8b4513;
  font-family: "Microsoft YaHei", sans-serif;
  transition: all 0.3s ease;
}

.structure-button:hover {
  background-color: rgba(139, 69, 19, 0.1);
  transform: scale(1.05);
}

.structure-button.active {
  background-color: #8b4513;
  color: white;
}

/* 材质部分样式 */
.material-tabs {
  display: flex;
  margin-bottom: 15px;
}

.material-tab {
  flex: 1;
  text-align: center;
  padding: 8px 0;
  background-color: white;
  border: 2px solid #8b4513;
  color: #8b4513;
  font-size: 14px;
  cursor: pointer;
  font-family: "Microsoft YaHei", sans-serif;
  transition: all 0.3s ease;
}

.material-tab:first-child {
  border-radius: 5px 0 0 5px;
}

.material-tab:last-child {
  border-radius: 0 5px 5px 0;
  border-left: none;
}

.material-tab:hover {
  background-color: rgba(139, 69, 19, 0.1);
}

.material-tab.active {
  background-color: #8b4513;
  color: white;
}

.material-content {
  display: flex;
  flex-direction: column;
}

.material-group {
  display: none;
}

.material-group.active {
  display: block;
}

.material-buttons {
  padding-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 270px;
}

.material-button {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 2px solid #8b4513;
  box-shadow: 3px 3px 7px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  background-size: contain;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  color: #f0f0f0;
  font-family: "Microsoft YaHei", sans-serif;
  background-color: #f5f5f5;
}

.material-button:hover {
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.material-button.active {
  background-color: #8b4513;
  color: white;
  border-color: #8b4513;
  transform: scale(1.1);
}

/* 普通木材颜色 - 柔和自然色调 */
.material-group#ordinary-wood .material-button:nth-child(1) {
  background-image: url("./file/04-1普通木材/01yumu.png");
  background-size: auto;
  background-position: center;
} /* 榆木 */
.material-group#ordinary-wood .material-button:nth-child(2) {
  background-image: url("./file/04-1普通木材/02bailamu.png");
  background-size: auto;
  background-position: center;
} /* 白蜡木 */
.material-group#ordinary-wood .material-button:nth-child(3) {
  background-image: url("./file/04-1普通木材/03heihutao.png");
  background-size: auto;
  background-position: center;
} /* 黑桃木 */
.material-group#ordinary-wood .material-button:nth-child(4) {
  background-image: url("./file/04-1普通木材/04xiangmu.png");
  background-size: auto;
  background-position: center;
} /* 橡木 */
.material-group#ordinary-wood .material-button:nth-child(5) {
  background-image: url("./file/04-1普通木材/05wujinmu.png");
  background-size: auto;
  background-position: center;
} /* 乌金木 */
.material-group#ordinary-wood .material-button:nth-child(6) {
  background-image: url("./file/04-1普通木材/06hongmu.png");
  background-size: auto;
  background-position: center;
} /* 红木 */

/* 名贵木材图片 - 使用实际图片资源 */
.material-group#precious-wood .material-button:nth-child(1) {
  background-image: url("./file/04-2名贵木材/07zitan.png");
  background-size: auto;
  background-position: center;
}
.material-group#precious-wood .material-button:nth-child(2) {
  background-image: url("./file/04-2名贵木材/08huanghuali.png");
  background-size: auto;
  background-position: center;
}
.material-group#precious-wood .material-button:nth-child(3) {
  background-image: url("./file/04-2名贵木材/09jichimu.png");
  background-size: auto;
  background-position: center;
}
.material-group#precious-wood .material-button:nth-child(4) {
  background-image: url("./file/04-2名贵木材/10feizhousuanzhi.png");
  background-size: auto;
  background-position: center;
}
.material-group#precious-wood .material-button:nth-child(5) {
  background-image: url("./file/04-2名贵木材/11chengxiangmu.png");
  background-size: auto;
  background-position: center;
}
.material-group#precious-wood .material-button:nth-child(6) {
  background-image: url("./file/04-2名贵木材/12jinsilanmu.png");
  background-size: auto;
  background-position: center;
}

/* 名贵木材按钮文字颜色较深 */
.material-group#precious-wood .material-button {
  color: #f5f5f5;
}

/* 纹饰部分 - 门板雕花背景图 */
.material-button[data-material="item1"] {
  background-image: url("./file/05-1门板雕花/01diaohua.png");
}

.material-button[data-material="item2"] {
  background-image: url("./file/05-1门板雕花/02diaohua.png");
}

.material-button[data-material="item3"] {
  background-image: url("./file/05-1门板雕花/03diaohua.png");
}

.material-button[data-material="item4"] {
  background-image: url("./file/05-1门板雕花/04diaohua.png");
}

.material-button[data-material="item5"] {
  background-image: url("./file/05-1门板雕花/05diaohua.png");
}

.material-button[data-material="item6"] {
  background-image: url("./file/05-1门板雕花/06diaohua.png");
}

/* 纹饰部分 - 柜面纹样背景图 */
.material-button[data-material="item7"] {
  background-image: url("./file/05-2柜面纹样/01mubi.png");
}

.material-button[data-material="item8"] {
  background-image: url("./file/05-2柜面纹样/02mubi.png");
}

.material-button[data-material="item9"] {
  background-image: url("./file/05-2柜面纹样/03mubi.png");
}

.material-button[data-material="item10"] {
  background-image: url("./file/05-2柜面纹样/04mubi.png");
}

.material-button[data-material="item11"] {
  background-image: url("./file/05-2柜面纹样/05mubi.png");
}

.material-button[data-material="item12"] {
  background-image: url("./file/05-2柜面纹样/06mubi.png");
}

/* removes tap blinking on ios devices */
* {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .main-container {
    flex-direction: column;
  }

  #v3d-container {
    width: 100%;
    height: 50vh;
  }

  .interaction-panel {
    width: 100%;
    height: 30vh;
    border-left: none;
    border-top: 1px solid #ddd;
  }

  .modal-content {
    padding: 20px 30px;
    width: 95%;
  }

  .title-main {
    font-size: 40px;
  }

  .modal-text {
    font-size: 13px;
    line-height: 1.6;
  }

  .material-buttons {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .modal-content {
    padding: 15px;
    margin: 20px;
  }

  .title-main {
    font-size: 30px;
  }

  .title-icon {
    width: 25px;
    height: 25px;
  }

  .title-icon::before {
    width: 15px;
    height: 15px;
  }

  .modal-subtitle {
    font-size: 16px;
  }

  .modal-text {
    font-size: 12px;
  }

  .modal-row-3 {
    height: 25px;
  }

  .interaction-panel {
    padding: 15px;
  }

  .panel-title {
    font-size: 18px;
  }

  .section-name {
    font-size: 14px;
  }

  .toggle-button {
    padding: 6px 12px;
    font-size: 12px;
  }

  .icon-button {
    width: 50px;
    height: 50px;
  }

  .structure-button {
    width: 60px;
    height: 60px;
    font-size: 12px;
  }

  .material-button {
    width: 50px;
    height: 50px;
  }

  .material-tab {
    font-size: 12px;
    padding: 6px 0;
  }
}

.v3d-simple-preloader-logo {
  background-image: url("media/biaoti02.png");
}

.v3d-simple-preloader-bar {
  background: linear-gradient(90deg, #d59f66, #7a554c);
  height: 3px;
  border-color: #ce8a48;
}
