body {
  width: 90%;
  font-family: Arial, sans-serif;
  margin: 10px auto;
  background-color: #f4f4f4;
}

h1 {
  color: #333;
  text-align: left;
}

/* ⭐ 顶部标题 + 登录状态 并排放置 */
.header-bar {
  width: 100%;
  padding: 5px 2px 10px 2px;
  display: flex;
  justify-content: space-between;
  /* 左右两端对齐 */
  align-items: center;
  /* 垂直居中对齐 */
}
.user-box {
  position: relative;
}

/* 头像 SVG 的外框 */
.user-icon {
  width: 40px;
  height: 40px;
  /* background: #e8f4ff; */
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  position: relative;
  transition: background 0.2s;
}

.user-icon:hover {
  background: #dbeeff;
}

/* Tooltip 显示邮箱 */
.user-tooltip {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  /* 垂直居中 */
  right: 115%;
  /* 放到左边（越大越远） */
  background: #333;
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.user-icon:hover .user-tooltip {
  display: block;
}

/* 点击后出现的下拉菜单 */
.user-dropdown {
  display: none;
  position: absolute;
  top: 45px;
  right: 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  min-width: 120px;
  z-index: 99;
}

.user-dropdown a {
  display: block;
  padding: 10px 15px;
  font-size: 14px;
  color: #333;
  text-decoration: none;
}

.user-dropdown a:hover {
  background: #f0f0f0;
}

nav {
  background-color: #5cb85c;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 20px;
}

nav a {
  color: white;
  text-decoration: none;
  font-size: 18px;
  padding: 10px 15px;
  margin: 0 5px;
  border-radius: 4px;
}

nav .selected {
  color: #1d40dd;
  font-weight: bold;
}

nav a:hover {
  background-color: #4cae4c;
}

#description {
  margin-top: 10px;
  font-size: 16px;
  color: #555;
  text-align: justify;
  padding-left: 5px;
  padding-right: 5px;
}

.container {
  display: flex;
  flex-direction: row;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-around;
  width: 100%;
}

.container div:first-child {
  flex: 0.85;
  /* margin-right: 20px; */
}
.container #home-left{
  margin-right: 20px;
}

.container div:nth-child(2) {
  flex: 1;
}

#analysis-form {
  background: #fff;
  padding: 5px 20px 20px 20px;
  border-radius: 5px;
  /* box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); */
  width: 100%;
  max-width: 97%;
  /* margin-right: 20px; */
  display: flex;
  flex-direction: row;
  gap: 30px;
  align-items: flex-start;
}

#home-left>p,.home-right>p {
  margin-bottom: 0;
  color: #4a90e2;
}


/* 左侧区域样式 */
#home-left {
  flex: 1;
  min-width: 0;
  /* 防止内容溢出 */
}

/* 右侧区域样式 */
.home-right {
  flex: 1;
  min-width: 0;
  /* 防止内容溢出 */
  display: flex;
  flex-direction: column;
}

#analysis-form label {
  display: block;
  margin: 10px 0 5px;
}

#analysis-form input[type="text"],
input[type="number"],
input[type="file"],
select {
  width: calc(100% - 22px);
  padding: 10px;
  margin-bottom: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

#analysis-form input.error {
  border: 1px solid red;
}

.task-info input.error {
  border: 1px solid red;
}

#analysis-form input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin-top: 3px;
  vertical-align: middle;
}

.checkbox-container {
  display: flex;
  align-items: center;
  margin-right: 20px;
  justify-content: space-between;
}

.checkbox-container label {
  /* margin-right:8%; 为每个标签之间添加一些间距 */
  margin-bottom: 15px;
}

.button-container {
  display: flex;
  justify-content: space-between;
  margin-top:20px;
  /* 按钮并排放置 */
}

button {
  background-color: #5cb85c;
  color: white;
  padding: 10px 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  width: 35%;
  /* 减少按钮宽度 */
}

button:hover {
  background-color: #4cae4c;
}

.short-button {
  width: 15%;
}

.button-container button:first-child {
  width: 25%;
}

#submit {
  /* margin-right: 22px; */
  background-color: #ac6ae1;

}

#submit:hover {
  background-color: #9242b2;

}

.span-link {
  font-size: 0.9em;
  color: #9242b2;
  margin-left: 10px;
}

.span-link-important,.span-link-important a{
  text-decoration: none;
  font-weight: bold;
  color: red;
  margin-left: 5px;
  margin-right: 10px;
  font-size: 0.9em;
}

.span-required {
  color: red;
  font-weight: 900;
  margin-right: 3px;
  line-height: 0.5em;
}

.span-note {
  color: rgb(65, 65, 65);
  font-size: 0.9em;
  margin-left: 10px;
}

.paper-info {
  text-align: justify;
  padding: 10px;
  background: #fff;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 97%;
  padding-left: 20px;
  padding-right: 20px;
  margin-top: 20px;
}

.image-container {
  margin-left: 20px;

}

.image-container img {
  width: 100%;
  max-width: 100%;
  border-radius: 5px;
}

.hidden-input {
  display: none;
  /* 隐藏输入框 */
}

.paper-info p:first-child {
  margin-top: 10px;
  margin-bottom: 0px;
  font-size: 18px;
}

.paper-info p:nth-child(2) {
  font-size: 0.95em;
  line-height: 1.3em;
  margin-top: 10px;
}

/* loading */
@keyframes ldio-x2uulkbinbj {
  0% {
    opacity: 1
  }

  100% {
    opacity: 0
  }
}

.ldio-x2uulkbinbj div {
  left: 94px;
  top: 48px;
  position: absolute;
  animation: ldio-x2uulkbinbj linear 1s infinite;
  background: #e893f0;
  width: 12px;
  height: 24px;
  border-radius: 6px / 12px;
  transform-origin: 6px 52px;
}

.ldio-x2uulkbinbj div:nth-child(1) {
  transform: rotate(0deg);
  animation-delay: -0.9166666666666666s;
  background: #e893f0;
}

.ldio-x2uulkbinbj div:nth-child(2) {
  transform: rotate(30deg);
  animation-delay: -0.8333333333333334s;
  background: #e893f0;
}

.ldio-x2uulkbinbj div:nth-child(3) {
  transform: rotate(60deg);
  animation-delay: -0.75s;
  background: #e893f0;
}

.ldio-x2uulkbinbj div:nth-child(4) {
  transform: rotate(90deg);
  animation-delay: -0.6666666666666666s;
  background: #e893f0;
}

.ldio-x2uulkbinbj div:nth-child(5) {
  transform: rotate(120deg);
  animation-delay: -0.5833333333333334s;
  background: #e893f0;
}

.ldio-x2uulkbinbj div:nth-child(6) {
  transform: rotate(150deg);
  animation-delay: -0.5s;
  background: #e893f0;
}

.ldio-x2uulkbinbj div:nth-child(7) {
  transform: rotate(180deg);
  animation-delay: -0.4166666666666667s;
  background: #e893f0;
}

.ldio-x2uulkbinbj div:nth-child(8) {
  transform: rotate(210deg);
  animation-delay: -0.3333333333333333s;
  background: #e893f0;
}

.ldio-x2uulkbinbj div:nth-child(9) {
  transform: rotate(240deg);
  animation-delay: -0.25s;
  background: #e893f0;
}

.ldio-x2uulkbinbj div:nth-child(10) {
  transform: rotate(270deg);
  animation-delay: -0.16666666666666666s;
  background: #e893f0;
}

.ldio-x2uulkbinbj div:nth-child(11) {
  transform: rotate(300deg);
  animation-delay: -0.08333333333333333s;
  background: #e893f0;
}

.ldio-x2uulkbinbj div:nth-child(12) {
  transform: rotate(330deg);
  animation-delay: 0s;
  background: #e893f0;
}

.loading-window {
  width: 200px;
  height: 200px;
  display: inline-block;
  overflow: hidden;
  /* background: #ffffff; */
}

.ldio-x2uulkbinbj {
  width: 100%;
  height: 100%;
  position: relative;
  transform: translateZ(0) scale(1);
  backface-visibility: hidden;
  transform-origin: 0 0;
  /* see note above */
}

.ldio-x2uulkbinbj div {
  box-sizing: content-box;
}

/* [ldio] generated by https://loading.io */


/* rerutn */
#return span {
  color: red;
  font-weight: bold;
  cursor: pointer;
}

#return p {
  color: black;
}

#loading-center {
  position: fixed;
  width: 100%;
  height: 100%;
  background-color: #a6b4a77a;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
}

#loading-center>div {
  position: absolute;
  /* 使用绝对定位进行子元素居中 */
  top: 50%;
  left: 50%;
  transform: translate(-100%, -45%);
  /* 水平垂直居中子元素 */
}

#loading-center .title {
  position: absolute;
  /* 使用绝对定位进行子元素居中 */
  top: 51%;
  left: 44%;
  font-size: 2em;
  color: #481b4d;
  transform: translate(50%, -50%);
}


/* footer */
#footer {
  /*  */
  /* width: 1200px; */
  width: calc(100% - 20px);
  /* height: 60px; */
  border-radius: 5px;
  clear: both;
  text-align: justify;
  padding: 10px;
  background: #fff;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  margin-top: 15px;
}

#footer a {
  text-decoration: none;
}

#footer p {
  /* margin-bottom: 5px; */
  margin-top: 5px;
}

#footer .photo {
  float: left;
  height: 55px;
  width: 250px;
  margin-right: 10px;
  margin-left: 0px;
  margin-top: 10px;
}

.dev-des {
  font-size: 0.9em;
  margin-bottom: 0;
}

.beian {
  margin-left: 36%;
  font-size: 12px;
  margin-bottom: 0;
  margin-top: 0;
}

.beian a {
  color: orange;
  text-decoration: none;
}

.beian a:hover {
  text-decoration: none;
}

.help {
  width: calc(100% - 20px);
  /* height: 60px; */
  border-radius: 5px;
  clear: both;
  text-align: justify;
  padding: 10px;
  background-color: rgba(191, 191, 191, 0.2);
  border-radius: 5px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  margin: 10px auto;
  margin-top: 15px;
}

.help p {
  padding: 0 20px;
  margin-top: 10px;
  margin-bottom: 5px;
}

.help p em{
  font-weight: bold;
}

.help p.p-secend{
  padding-left: 2em;
}

.help h3 {
  margin-bottom: 0;
  margin-left: 15px;
  margin-top: 20px;
}
.help #help-document .icon{
  height: 40px;
}
.help #help-document svg :hover{
  fill: red;
}
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #333;
  color: white;
  padding: 15px;
  text-align: center;
  display: none;
  /* 初始状态为隐藏 */
  z-index: 1000;
}

.cookie-button {
  background-color: #4CAF50;
  color: white;
  width: 150px;
  margin-right: 50px;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
}
#cookie-accept:hover {
  background-color: #349739;
}
#cookie-reject{
  background-color: #c59f7f;
}
#cookie-reject:hover {
  background-color: #e49b47;
}


/* home choose task */
.image-wrapper {
  position: relative;
  display: inline-block;
  margin-right: 0px;
}

.highlight-box {
  position: absolute;
  border: 3px solid transparent;
  border-radius: 10px;
  pointer-events: none;
}

.red {
  border-color: rgb(230, 100, 100);
}

.blue {
  border-color: rgb(104, 104, 233);
}

.green {
  border-color: rgb(106, 190, 106);
}
.yellow {
  border-color: rgb(226, 164, 123);
}
/* 位置根据你的图片内容自定义调整 */
#highlight-dr {
  top: 47.5%;
  left: 2.5%;
  width: 29.8%;
  height: 28.5%;
}

#highlight-combo {
  top: 47.5%;
  left: 34.7%;
  width: 30%;
  height: 28.5%;
}

#highlight-dse {
  top: 47.5%;
  left: 67%;
  width: 30%;
  height: 28.5%;
}

#highlight-it {
  top: 81%;
  left: 2.5%;
  width: 94.5%;
  height: 14.3%;
}

.title-des {
  margin: 0 0 0 1px;
  font-size: 16px;
}

#results-show img{
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
}

.result-help-list li{
  margin-bottom: 15px;
}
.help-try{
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap:20px
}
#download-sample-data{
  padding: 3px 10px;
  text-decoration: none;
  background-color: #69b758;
  color: white;
  border-radius: 10px;
  cursor: pointer;
}
#download-sample-data:hover {
  background-color: #19923e;
}

/* 下载卡片样式 */
.download-card {
  display: none;
  position: absolute;
  top: 40px;
  left: 0;
  width: 280px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 1px solid #ddd;
  z-index: 1000;
  padding: 20px;
  animation: fadeIn 0.2s ease-out;
}

.download-card p {
  margin-top: 0;
}

/* 三角形箭头 */
.download-card::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 20px;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid white;
  filter: drop-shadow(0 -2px 1px rgba(0, 0, 0, 0.1));
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.download-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.download-btn {
  padding: 5px 16px;
  border: none;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  text-decoration: none;
  display: block;
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.download-btn:active {
  transform: translateY(0);
}

.download-btn.scrna {
  background-color: #a7e0a7;
  color: white;
}

.download-btn.scrna:hover {
  background-color: #76d176;
}

.download-btn.bulk {
  background-color: #91bcdf;
  color: white;
}

.download-btn.bulk:hover {
  background-color: #6d9cca;
}

/* 示例链接样式 */
#download-sample-data {
  transition: background-color 0.2s;
}

/* 关闭按钮 */
.close-btn {
  position: absolute;
  top: 1%;
  right: -24px;
  background: none;
  border: none;
  font-size: 22px;
  color: #999;
  cursor: pointer;
  padding: 5px;
}

.close-btn:hover {
  color: #333;
  background: none;
}

/* 点击外部关闭卡片 */
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  z-index: 999;
}