/* 引入未来感字体 Audiowide（你已经使用） */
@import url('https://fonts.googleapis.com/css2?family=Audiowide&display=swap');
body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background: url(../img/bag.jpg) no-repeat center center/cover;
    position: relative;
    flex-direction: column; /* 让内容纵向排列 */
}

.text-box {
    width: 100%;
    height: 12%; /* 你可以调整这个值 */
    background: black;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;
    font-weight: bold;
    position: absolute;
    left: 0;
    z-index: 2; /* 确保它在其他内容上层 */
}

/* 顶部文字 */
.top-text {
    top: 0;
}

/* 底部文字 */
.bottom-text {
  justify-content: flex-start; /* 确保子元素靠左 */
    bottom: 0;
}

/* 右侧面板 */
.panel {
    width: 350px;
    height: 480px;
    background: rgba(0, 0, 50, 0.5);
    border: 5px solid rgba(173, 216, 230, 0.9);
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.3),
                inset 8px 8px 15px rgba(255, 255, 255, 0.7),
                inset -8px -8px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 10px;
    font-weight: bold;
    text-align: center;
    position: absolute;
    left: 60%;
    transform: translateX(-50%);
    clip-path: polygon(0% 0%, 96% 4%, 100% 96%, 4% 100%);
    overflow-y: auto;  /* 开启垂直滚动条 */
    scrollbar-width: thin; /* Firefox 支持的简洁滚动条 */
    scrollbar-color: #00ffff transparent; /* 滚动条颜色 */
}


/* 右侧按钮 */
.buttons {
    position: absolute;
    right: 0%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 35px;
    align-items: flex-end;
}

.button {
    width: 120px;
    height: 40px;
    background: linear-gradient(145deg, #999999, #cccccc, #999999); /* 金属渐变感 */
    color: white;
    border: none;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    border-radius: 5px;
    text-align: center;
    opacity: 0.85; /* 设置透明度为50% */
    box-shadow: inset 1px 1px 3px rgba(255, 255, 255, 0.4),
    inset -1px -1px 3px rgba(0, 0, 0, 0.2),
    2px 2px 6px rgba(0, 0, 0, 0.3); /* 内外光影表现金属立体感 */
}

.button:hover {
  transform: scale(1.2);
  background: linear-gradient(145deg, #bbbbbb, #dddddd);
  box-shadow: inset 1px 1px 2px rgba(255, 255, 255, 0.6),
              inset -1px -1px 2px rgba(0, 0, 0, 0.3),
              3px 3px 6px rgba(0, 0, 0, 0.4);
}
.button.active {
  background: linear-gradient(145deg, #ff8800, #ffcc66);
  color: black;
  font-weight: bold;
  border: 1px solid #666; /* 保留灰色边框 */
  box-shadow: 0 0 10px rgba(255, 165, 0, 0.7),
              inset 1px 1px 3px rgba(255, 255, 255, 0.4),
              inset -1px -1px 3px rgba(0, 0, 0, 0.2);
  transform: scale(1.2); /* 🔥 放大效果 */
}

.content {
    display: none;
    font-size: 12px;
    color: white;
    transform: skew(5deg);
}

#content1 {
    display: block;
}
.futuristic-icon-btn {
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #00ffcc, #0066ff);
    box-shadow:
        0 0 10px #00ffff,
        0 0 20px #00ffff,
        inset 0 0 10px rgba(255, 255, 255, 0.2);
    cursor: pointer;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23ffffff" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M14.828 9.172a4 4 0 1 0-5.656 5.656M13 11l9-9m-4 0h5v5M3 21l6-6m-3 0h3v3"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 50%;
}

.futuristic-icon-btn:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow:
        0 0 15px #00ffff,
        0 0 30px #00ffff,
        inset 0 0 15px rgba(255, 255, 255, 0.3);
}
/* 左侧3d动画 */
.ring-container {
    width: 300px;
    height: 300px;
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: -80px; /* ↑ 向上移动100像素，可自行调整 */
  }

  .ring {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: spinRing 20s linear infinite;
  }

  /* 当悬浮在 tag 上时，暂停整个 ring 的动画 */
  .ring-container:hover .ring {
    animation-play-state: paused;
  }

  /* 标签样式 */
  .tag {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    min-height: 40px;
    margin: -20px 0 0 -50px;
    line-height: 20px;
    text-align: center;
    background: rgba(0, 255, 255, 0.1);
    color: #0ff;
    border: 1px solid #0ff;
    font-family: 'Orbitron', sans-serif;
    border-radius: 10px;
    box-shadow: 0 0 8px #0ff;
    transform-style: preserve-3d;
    cursor: pointer;

    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
    padding: 4px; /* 添加内边距避免文字贴边 */
}

  /* 标签描述 */
  .tag::after {
    content: attr(data-desc); /* 显示自定义描述内容 */
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    background: #011;
    color: #0ff;
    padding: 6px 10px;
    border-radius: 6px;
    white-space: nowrap;
    font-size: 12px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    box-shadow: 0 0 6px #0ff;
  }

  /* 悬浮时显示描述 */
  .tag:hover::after {
    opacity: 1;
  }

  /* 环状分布 - 每个标签不同角度 */
  .tag:nth-child(1) { transform: rotateY(0deg)    translateZ(150px); }
  .tag:nth-child(2) { transform: rotateY(60deg)   translateZ(150px); }
  .tag:nth-child(3) { transform: rotateY(120deg)  translateZ(150px); }
  .tag:nth-child(4) { transform: rotateY(180deg)  translateZ(150px); }
  .tag:nth-child(5) { transform: rotateY(240deg)  translateZ(150px); }
  .tag:nth-child(6) { transform: rotateY(300deg)  translateZ(150px); }

  /* 环绕动画 */
  @keyframes spinRing {
    from { transform: rotateY(0deg); }
    to   { transform: rotateY(360deg); }
  }

.tag .inner {
    transform: rotateY(0deg); /* 关键修正点 */
  }
    /* 遮罩层 */
    #overlay {
      display: none; /* 初始隐藏 */
      position:fixed;
            width: 900px;
            height: 600px;
            font-size: 16px;
            /* IE9以下不支持rgba模式 */
            background-color: rgba(0, 0, 0, 0.5);
            /* 兼容IE8及以下 */
            filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#7f000000,endColorstr=#7f000000);
        z-index:2;
          }

          /* 弹出框主体 */
          .popup1 {
              overflow:auto;
              height: 600px;
              width: 900px;
              border-radius: 5px;
              text-align: center;
              margin:auto;
              top:0;
              left:0;
              right:0;
              bottom:0;
          }
          /* 弹出框的按钮栏 */
        .popup_btn {
          padding-bottom: 10px;
        }
        /* 弹出框的按钮 */
        .popup_btn button {
          color: #778899;
          width: 90px;
          height: 40px;
          cursor: pointer;
          border: solid 1px #cccccc;
          border-radius: 5px;
          margin: 5px 10px;
          color: #ffffff;
          background-color: #337ab7;
        }
          #overla {
      position:fixed;
            width: 900px;
            height: 600px;
            font-size: 16px;
            /* IE9以下不支持rgba模式 */
            background-color: rgba(0, 0, 0, 0.5);
            /* 兼容IE8及以下 */
            filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#7f000000,endColorstr=#7f000000);
        z-index:3;
          }
          #overla {
            position:fixed;
                  width: 900px;
                  height: 600px;
                  font-size: 16px;
                  /* IE9以下不支持rgba模式 */
                  background-color: rgba(0, 0, 0, 0.5);
                  /* 兼容IE8及以下 */
                  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#7f000000,endColorstr=#7f000000);
              z-index: 10;
                }
        /* 弹出框的按钮 */
  .popup_btn button {
    color: #778899;
    width: 90px;
    height: 40px;
    cursor: pointer;
    border: solid 1px #cccccc;
    border-radius: 5px;
    margin: 5px 10px;
    color: #ffffff;
    background-color: #337ab7;
  }
  .cancelBtn {
    background-color: #0efcff;
    color: #000000;
    border: none;
    padding: 10px 20px;
    font-size: 1.2vw;
    font-weight: bold;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}
.cancelBtn:hover {
    background-color: #00d4d4;
    transform: scale(1.05);
}
@keyframes breathe {
  0%, 100% {
    box-shadow: 0 0 10px rgba(153, 153, 255, 0.4),
                0 0 20px rgba(153, 153, 255, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.3),
                inset 0 -1px 0 rgba(0, 0, 0, 0.2),
                0 4px 8px rgba(0, 0, 0, 0.3);
  }
  50% {
    box-shadow: 0 0 15px rgba(153, 153, 255, 0.7),
                0 0 30px rgba(153, 153, 255, 0.6),
                inset 0 1px 0 rgba(255, 255, 255, 0.4),
                inset 0 -1px 0 rgba(0, 0, 0, 0.2),
                0 6px 12px rgba(0, 0, 0, 0.35);
  }
}

#kshowPopup {
  position: absolute;
  left: 70px;
  top: 50%;
  transform: translateY(-50%);
  padding: 10px 20px;
  background: linear-gradient(90deg, #2c003e, #9999cc 40%, #ffffff 50%, #9999cc 60%, #2c003e);
  border: none;
  color: #BBFFEE;
  font-weight: bold;
  font-size: 12px;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100px;
  height: 40px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  animation: breathe 3s ease-in-out infinite;
}

/* 悬停时：变亮、升高 */
#kshowPopup:hover {
  transform: translateY(-55%);
  background: linear-gradient(90deg, #3d005a, #aaaadd 40%, #ffffff 50%, #aaaadd 60%, #3d005a);
}

/* 点击时：变暗、下压 */
#kshowPopup:active {
  transform: translateY(-48%);
  background: linear-gradient(90deg, #1f002e, #8888aa 40%, #dddddd 50%, #8888aa 60%, #1f002e);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5),
              0 2px 4px rgba(0, 0, 0, 0.2);
  animation: none; /* 按下时停止呼吸动画 */
}
#kshowPopu {
  position: absolute;
  left:200px;
  top: 50%;
  transform: translateY(-50%);
  padding: 10px 20px;
  background: linear-gradient(90deg, #2c003e, #9999cc 40%, #ffffff 50%, #9999cc 60%, #2c003e);
  border: none;
  color: #BBFFEE;
  font-weight: bold;
  font-size: 12px;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100px;
  height: 40px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  animation: breathe 3s ease-in-out infinite;
}

/* 悬停时：变亮、升高 */
#kshowPopu:hover {
  transform: translateY(-55%);
  background: linear-gradient(90deg, #3d005a, #aaaadd 40%, #ffffff 50%, #aaaadd 60%, #3d005a);
}

/* 点击时：变暗、下压 */
#kshowPopu:active {
  transform: translateY(-48%);
  background: linear-gradient(90deg, #1f002e, #8888aa 40%, #dddddd 50%, #8888aa 60%, #1f002e);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5),
              0 2px 4px rgba(0, 0, 0, 0.2);
  animation: none; /* 按下时停止呼吸动画 */
}
/* 下方小人 */
.person-row {
  display: flex;
  justify-content: flex-start; /* 左对齐 */
  gap: 6px; /* 小人之间的间距 */
  margin-left: 0;
}
.person {
  width: 30px;
  height: 30px;
  background: url('data:image/svg+xml;utf8,<svg fill="%23ccc" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><path d="M32 2a10 10 0 1 1 0 20 10 10 0 0 1 0-20zm0 24c8 0 16 4 16 12v12h-8v14h-16V50h-8V38c0-8 8-12 16-12z"/></svg>') no-repeat center;
  background-size: contain;
}

.person.filled {
  background: url('data:image/svg+xml;utf8,<svg fill="%2300b894" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><path d="M32 2a10 10 0 1 1 0 20 10 10 0 0 1 0-20zm0 24c8 0 16 4 16 12v12h-8v14h-16V50h-8V38c0-8 8-12 16-12z"/></svg>') no-repeat center;
  background-size: contain;
}
/* 提示框样式 */
/* 小人区域 tooltip 样式 */
#tooltip-person {
  position: absolute;
  background: #333;
  color: #fff;
  padding: 6px 12px;
  font-size: 14px;
  border-radius: 6px;
  pointer-events: none;
  z-index: 1000;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
  display: none;
}

#tooltip-person.show {
  opacity: 1;
  transform: translateY(0);
}

.tooltip-person-text {
  transition: transform 0.3s ease-in-out;
}

.tooltip-person-text.show {
  transform: translateY(-5px);
}

/* 箭头 */
.tooltip-person-arrow {
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -6px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #333;
}

#left-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* COMPRASION 区域整体样式 */
.baseBoxLeft {
  width: 300px;
  height: 240px;
  position: relative;
}


.baseBoxLeft img {
  width: 300px;
  height: 260px;
  position: absolute;
  top: 0;
  left: 0;
}
.baseBox {
  width: 100%;
  border: none;
  background: none;
}

.boxTitle {
  font-size: 13px ;
  width: 38%;
  margin-top: 1vw;
  text-align: center;
  color:#00d4d4;
}

.background-frame {
  width: 100%;
  object-fit: contain;
  margin-bottom: -100px;
}

.data-table-container {
  width: 95%;
  margin: 0 auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  background-color: rgba(255, 255, 255, 0.9);
}

.data-table th, .data-table td {
  border: 1px solid #ccc;
  padding: 6px 8px;
  text-align: center;
}
/* 注释解释 */
.tooltip-container {
  display: inline-block;
  position: relative;
  cursor: pointer;
  margin-left: 5px;
}

.tooltip-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  vertical-align: middle;
}

.tooltip-text {
  visibility: hidden;
  background-color: rgba(0, 0, 0, 0.85);
  color: #fff;
  text-align: left;
  padding: 8px 10px;
  border-radius: 6px;
  position: absolute;
  z-index: 999;
  top: 110%;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 200px;
  font-size: 12px;
  line-height: 1.4;
  white-space: normal;
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip-container:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

