:root {
  --primary-color: #098eac;
  /* 主色调， */
  --text-color: #374151;
  --inactive-bg: #f3f4f6;
  --transition-speed: 0.3s;
}

.primary-color {
  color: var(--primary-color);
}

body {
  font-family: sans-serif;
  /* font-family: cursive; */

  margin: 0;
  /* padding: 1rem;' */
  /* background-color: #bdbdbd; */
  font-size: 24px;

  background-color: #e8e8e8;
  background-image: radial-gradient(#d0d0d0 1px, transparent 1px),
    radial-gradient(#d0d0d0 1px, transparent 1px);
  background-size: 30px 30px;
  background-position: 0 0, 15px 15px;
  background-attachment: fixed;
}

#app {
  /* max-width: 877px; */
  min-width: 875px;

  margin: 0 auto;
  background: white;
  padding: 1.5rem;
  /* border-radius: 8px; */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);

  height: calc(100vh - 4rem);
  overflow: auto;

  display: flex;
  flex-direction: column;
}

input[type="text"] {
  border: 1px solid #ccc;
  /* width: 100%; */
  /* 如果你希望它占满容器宽度 */
}

input {
  font-size: 22px;
  padding: 0.4rem 0.6rem;
  box-sizing: border-box;
  border-radius: 4px;
}

select {
  font-size: 22px;
  padding: 0.4rem 0.6rem;
  box-sizing: border-box;
  border-radius: 4px;
}

h3 {
  margin-top: 0;
  text-align: start;
}

/* 手机样式 */
@media (max-width: 768px) {
  body {
    background-color: lightgray;
  }

  #app {
    max-width: 100vw;
    width: 100vw;
  }
}

/* 全屏容器 */
.fullscreen-loader {
  position: fixed;
  inset: 0;
  /* top:0; right:0; bottom:0; left:0; */
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 24, 39, 0.75);
  /* 半透明深色背景 */
  backdrop-filter: blur(4px);
  /* 背景模糊（可选） */
  z-index: 9999;
}

/* 加载块：放置动画和提示文字 */
.loader {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

/* 圆环动画（纯 CSS）*/
.spinner {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 8px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--primary-color);
  /* 高亮色（紫色），可换）*/
  animation: spin 1s linear infinite;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45),
    inset 0 -6px 18px rgba(0, 0, 0, 0.06);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* 可选的提示文本样式 */
.loader-text {
  color: #e6edf3;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2px;
}

/* 无动画偏好支持 */
@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation: none;
    opacity: 0.95;
  }
}

/* 可在小屏上缩小 */
@media (max-width: 420px) {
  .spinner {
    width: 56px;
    height: 56px;
    border-width: 6px;
  }

  .loader-text {
    font-size: 13px;
  }
}

/* 单选器 */
.radio-group {
  display: inline-flex;
  background: #f5f5f5;
  border-radius: 12px;
  padding: 4px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.radio-group label {
  position: relative;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 18px;
  color: #555;
}

.radio-group input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-group input:checked + span {
  color: #fff;
}

.radio-group label:has(input:checked) {
  /* background:  var(--primary-color); */
  background: var(--primary-color);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  color: #fff;
}

.radio-group label:hover {
  color: var(--primary-color);
}

.radio-group label:has(input:checked):hover {
  color: #fff;
  opacity: 0.9;
}

/* 移动端适配 */
@media (max-width: 640px) {
  .radio-group {
    width: 50%;
    /* display: flex; */
  }

  .radio-group label {
    flex: 1;
    text-align: center;
    padding: 10px 8px;
  }
}

.form-control {
  /* width: 100%; */
  width: 200px;
  padding: 0.6rem 0.9rem;
  border: 1px solid #ddd;
  border-radius: 0.75rem;
  /* 圆角更柔和 */
  font-size: 1rem;
  background: #fff;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* 聚焦时 */
.form-control:focus {
  border-color: var(--primary-color);
  /* 高级蓝紫色 */
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
  outline: none;
}

/* select 特殊处理（去掉默认小箭头可以更现代） */
select.form-control {
  appearance: none;
  /* 去掉原生样式 */
  background-image: url("data:image/svg+xml;charset=UTF-8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='gray'><polygon points='5,7 15,7 10,13'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
}

.form-label {
  /* display: block; */
  /* margin-bottom: 0.4rem; */
  font-size: 1.3rem;
  font-weight: 500;
  color: #374151;
  /* 深灰，更专业 */
  letter-spacing: 0.3px;
  transition: color 0.2s ease;
}

.df {
  display: flex;
  align-items: center;
  justify-content: space-between;

  button {
    padding: 10px 20px;
    background-color: var(--primary-color);
    /* 绿色背景 */
    color: white;
    /* 白色文字 */
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }

  button:hover {
    background-color: var(--primary-color);
    /* 悬停时颜色变化 */
  }
}

.backstepping {
  /* width: 200px; */

  .z8 {
    font-size: 40px;
    border: 1px solid #cccccc;
    height: 60px;
    width: 60px;
    cursor: pointer;
  }
}

/* 弹出框 */
.popup {
  position: absolute;
  background: white;
  border: 1px solid #ccc;
  padding: 8px;
  z-index: 999;
  top: 30%;
  left: 40%;
  /* overflow-y: auto; */
  /* max-height: 555px; */

  .gz-list {
    display: flex;

    .activate {
      background-color: #77a6ad;
      color: white;
    }

    .item {
      padding: 10px 5px;
      margin-right: 5px;
      cursor: pointer;
      text-align: start;
    }

    .item:hover {
      background-color: #d1d1d1;
      /* 悬停时颜色变化 */
    }

    .gz {
      font-size: 40px;
    }
  }
}

.z8-hs {
  font-size: 18px;
  /* max-height: 333px; */
  /* max-height: 60vh; */
  flex: 1;
  overflow-y: auto;

  .z8-hs-item {
    display: flex;
    padding: 5px 10px;
    margin: 10px 0;
    border: 1px solid #e6e6e6;
    border-radius: 5pt;
    cursor: pointer;
    align-items: center;

    .info {
      margin-right: 10px;
    }
  }

  .z8-hs-item:hover {
    background-color: #d3f4f7;
    /* 悬停时颜色变化 */
  }
}

.w50 {
  width: 50%;
  text-align: start;
}

.w25 {
  width: 25%;
  text-align: center;
}

.view {
  font-size: 17px;

  .dy {
    padding: 10px;
    cursor: pointer;
    text-align: center;
    border: 1px solid transparent;
    border-radius: 5pt;
    /* 更清晰的写法 */
    transition: all 0.3s ease;

    /* 合并 transition，提高可维护性 */
    .z0 {
      padding: 0;
      font-size: 14px;
    }

    .gz {
      font-size: 24px;
      font-weight: bold;
    }
  }

  .dy:hover {
    border-color: #bdbdbd;
    transform: translateY(-5px);
    background-color: #dbf6f9;
  }

  .ln {
    padding: 10px;
    cursor: pointer;
    text-align: center;
    border: 1px solid transparent;
    border-radius: 5pt;
    /* 更清晰的写法 */
    transition: all 0.3s ease;

    /* 合并 transition，提高可维护性 */
    .z0 {
      padding: 0;
      font-size: 14px;
    }

    .gz {
      font-size: 20px;
      font-weight: bold;
    }
  }

  .ln:hover {
    border-color: #bdbdbd;
    transform: translateY(-5px);
    background-color: #dbf6f9;
  }

  .hint {
    display: flex;
    justify-content: end;
    font-size: 10px;
    /* width: 36px; */
    width: 50px;
    padding-bottom: 4px;

    /* text-align: center; */
    .hint-good- {
      width: 5px;
      height: 5px;
      background-color: green;
      border-radius: 100%;
    }

    .hint-bad- {
      width: 5px;
      height: 5px;
      background-color: red;
      border-radius: 100%;
    }

    .hint-good {
      width: 12px;
      height: 5px;
      color: green;
    }

    .hint-bad {
      width: 12px;
      height: 5px;
      color: red;
    }
  }

  .activate {
    border-color: #bdbdbd;
    /* transform: translateY(-5px); */
    background-color: #dbf6f9;
  }

  .zpt {
    color: #484848;
    text-align: start;
  }

  .z0 {
    color: #666;
    padding: 10px 0;
  }

  .z10 {
    /* font-weight: bold; */
    color: #000;
    padding: 10px 0;
  }

  .z8 {
    font-size: 33px;
    font-weight: bold;
    transition: transform 0.2s ease;
    cursor: pointer;
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;

    .he {
      position: relative;
      font-size: 12px;
      opacity: 0;
      transition: all 0.3s ease;

      .he-z {
        position: absolute;
        left: 5px;
      }
    }

    .bing {
      /* position: relative; */
      /* top: 0px; */

      .bing-z {
        /* position: absolute; */
        font-size: 12px;
      }
    }

    .centre {
      display: flex;

      .ts {
        font-size: 12px;
        color: #666666;
      }

      .yun {
        font-size: 17px;
      }

      .sui {
      }
    }

    .jtxz {
      opacity: 0;
      /* color: #000000; */
      font-weight: bold;
      font-size: 12px;
      position: absolute;
      /* top: 1px; */
      white-space: nowrap;
      top: 5px;
      /* left: -5px; */
    }
  }

  .gan {
    .he-z {
      top: -10px;
    }

    .z8:hover {
      transform: translateY(-4px);
      background-color: #00800000;

      .he {
        opacity: 1;
      }
    }
  }

  .zhi {
    .he-z {
      top: -5px;
    }

    .z8:hover {
      transform: translateY(-4px);
      background-color: #00800000;

      .he {
        opacity: 1;
      }
    }
  }

  .df:nth-of-type(even) {
    background-color: #f9f9f9;
    /* 可自定义颜色 */
  }
}

.expand-off {
  max-height: 0;
  opacity: 0;
  /* overflow: hidden; */
  transition: all 0.3s ease;
}

.expand-open {
  max-height: 200px;
  /* 根据实际内容调整 */
  opacity: 1;
}

.energy-frame {
  position: relative;
  margin-left: 30px;
  border: 1px solid #d5d4d4;
  border-radius: 7pt;
  .energy-frame-title {
    background-color: var(--primary-color);
    font-size: 15px;
    border-bottom: 1px solid #d5d4d4;
    color: #fff;
    border-radius: 7pt 7pt 0 0;
  }

  .energy-frame-content {
    position: relative;
    font-size: 17px;
    font-weight: bold;
    background: #d8ffff;
    padding: 7px;
    border-radius: 0 0 7pt 7pt;
  }
}

.jt {
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;

  img {
    position: absolute;
    /* width: 64px; */
    width: 40px;
    height: 133px;
    /* display: none; */
    transition: all 0.18s ease;
    opacity: 0.6 !important;
  }

  .left-up {
    transform: rotate(270deg);
  }

  .left-down {
    transform: rotate(270deg) scaleY(-1);
  }

  .right-up {
    transform: rotate(270deg) scaleY(-1);
  }

  .right-down {
    transform: rotate(90deg);
  }
}

.z8:hover {
  .jt {
    img {
      /* display: inline-flex; */
      opacity: 1;
    }
  }

  .jtxz {
    opacity: 1;
  }
}

.opacity-all-open {
  .gan {
    .z8:hover {
      transform: translateY(4px);
    }
  }

  img {
    opacity: 1;
  }

  .jtxz {
    opacity: 1 !important;
  }
}

.arrows-open {
  img {
    opacity: 1;
    height: 66px;
  }

  .leftJtClass {
    margin-top: 18px;
  }
}

.remark-textarea {
  padding: 10px;
  border-color: #e5e5e5;
  flex: 1;
  min-height: 60px;
}

/* .w25:hover + .jt,
.jt:hover {
  display: flex;
} */

.info3 {
  font-size: 20px;
  border-bottom: 1px solid #d8d8d8;
  margin-bottom: 15px;
  padding-bottom: 15px;
  display: flex;
  align-items: center;

  .info3-item {
    font-size: 16px;
    height: 50px;
    width: 50px;
    margin-left: 14px;

    display: flex;
    align-items: center;
    justify-content: center;
    /* justify-content: space-between; */
    flex-direction: column;

    border: 1px solid #232323;
    border-radius: 5pt;
    color: white;
    cursor: pointer;

    .info3-item-firstGod {
      align-items: center;
      align-items: self-end;

      .info3-item-level {
        font-size: 14px;
      }
    }

    .info3-item-name {
      height: 30px;
      display: flex;
      align-items: center;
      /* margin-top: 3px; */
    }

    .info3-item-score {
      height: 20px;
      width: 100%;
      display: flex;
      justify-content: center;
      align-items: center;
      font-size: 0.8em;
      -webkit-text-stroke: 0.3px #ffffff;
      /* 深棕色描边 */
      text-stroke: 0.5px #ffffff;
      /* margin-bottom: 4px; */
      background: rgba(243, 243, 243, 0.2);
    }

    .info3-item-date {
      width: 100%;
      display: flex;
      justify-content: center;
      align-items: center;
      font-size: 1.2em;
      background: rgba(232, 232, 232, 0.3);
    }

    .info3-item-tian {
      color: #dbf6f9;
      position: absolute;
      font-size: 10px;
      left: -22px;
      /* top: -85px; */
    }
  }

  .info3-name {
    height: 50px;
    width: 50px;
    background-color: #484848;
  }
}

.sticky-header {
  position: -webkit-sticky;
  /* Safari 兼容 */
  position: sticky;
  top: -35px;
  /* 固定在顶部 */
  z-index: 100;
  /* 确保在最上层 */
  background-color: white;
  /* 防止内容穿透 */
  margin-top: 0px;
  /* 原有样式保留 */
  font-weight: bold;
  /* 原有样式保留 */
}

.dot-good {
  display: inline-block;
  position: relative;
  /* 确保文字不模糊 */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 发光动画（不影响清晰度） */
/* .dot-good::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: currentColor;
    z-index: -1;
    opacity: 0.1;s
    border-radius: 3px;
    animation: powerful-pulse 1.5s infinite alternate;
  } */

/* 高光扫过效果（不模糊文字） */
.dot-good::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: powerful-shine 0.8s infinite;
}

@keyframes powerful-pulse {
  0% {
    opacity: 0.1;
    transform: scale(1);
  }

  100% {
    opacity: 0.2;
    transform: scale(1.1);
  }
}

@keyframes powerful-shine {
  100% {
    left: 150%;
  }
}

/* 四个级别 */
/* 铜级 - 一级 */
.bronze-level {
  color: #eb8f39;
  /* 青铜色 */
  font-weight: normal;
  text-shadow: 0 0 1px rgba(228, 139, 55, 0.3), 0 0 2px #000;
  /* 黑色描边 */
  -webkit-text-stroke: 0.5px #5a3a1a;
  /* 深棕色描边 */
  text-stroke: 0.5px #5a3a1a;
}

/* 银级 - 二级 */
.silver-level {
  color: #e7e7e7;
  /* 银色 */
  font-weight: 500;
  text-shadow: 0 0 2px rgba(222, 222, 222, 0.4), 0 0 3px #000;
  /* 黑色描边 */
  -webkit-text-stroke: 0.6px #7a7a7a;
  /* 深灰色描边 */
  text-stroke: 0.6px #7a7a7a;
}

/* 金级 - 三级 */
.gold-level {
  font-size: 17px;
  color: #ffd700;
  /* 金色 */
  font-weight: bold;
  text-shadow: 0 0 2px rgba(255, 215, 0, 0.5), 0 0 4px #000;
  /* 黑色描边 */
  -webkit-text-stroke: 0.7px #b8860b;
  /* 暗金色描边 */
  text-stroke: 0.7px #b8860b;
}

/* 钻石级 - 四级 */
.diamond-level {
  font-size: 20px;
  color: #b9f2ff;
  /* 钻石蓝白色 */
  font-weight: bolder;
  text-shadow: 0 0 2px rgba(185, 242, 255, 0.8), 0 0 5px #000;
  /* 黑色描边 */
  -webkit-text-stroke: 0.8px #4682b4;
  /* 钢蓝色描边 */
  text-stroke: 0.8px #4682b4;
  position: relative;
}

/* 钻石级可选的额外效果 */
.diamond-level::after {
  content: "✨";
  position: absolute;
  right: -1.2em;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8em;
  -webkit-text-stroke: 0px transparent;
  /* 确保星星没有描边 */
  text-stroke: 0px transparent;
}

.word-explain-popup {
  position: absolute; /* 浮动弹窗 */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* 居中 */

  min-width: 220px;
  max-width: 500px;
  padding: 16px 20px;

  background: rgba(255, 255, 255, 0.85); /* 半透明毛玻璃底色 */
  backdrop-filter: blur(12px); /* 毛玻璃效果 */
  border-radius: 16px; /* 圆角 */
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); /* 柔和阴影 */

  font-size: 14px;
  line-height: 1.6;
  color: #333;
  animation: popupFade 0.25s ease-out; /* 动画 */
}

.word-explain-popup div {
  margin-bottom: 8px;
  padding-left: 8px;
  border-left: 3px solid rgb(102, 102, 102); /* 左侧彩条 */

  max-height: 300px;
  overflow-y: auto;
}

.word-explain-popup div:last-child {
  margin-bottom: 0;
}

/* 弹出时的小动画 */
@keyframes popupFade {
  from {
    opacity: 0;
    transform: translate(-50%, -55%) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.w250 {
  width: 250px;
}
