/* 联系我们页面布局 */
.query {
  padding-top: 100px;
  padding-bottom: 80px;
}

.query_header {
  text-align: center;
  margin-bottom: 60px;
}

.query_header h1 {
  font-size: 2.5em;
  color: var(--dark-color);
  margin-bottom: 20px;
}

.query_header p {
  font-size: 1.2em;
  color: #636e72;
  max-width: 600px;
  margin: 0 auto;
}

.query_grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}

.query_form {
  background: white;
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--box-shadow);
}

.query_form p {
  font-size: 0.8rem;
  color: #636e72;
  max-width: 600px;
  margin: 10px auto;
}

.query_form-group {
  margin-bottom: 20px;
}

.query_form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--dark-color);
  font-weight: 500;
}

.query_form-group input,
.query_form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #dfe6e9;
  border-radius: var(--border-radius);
  font-size: 1em;
  transition: var(--transition);
}

.query_form-group input:focus,
.query_form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(74, 107, 255, 0.1);
}

.query_form-group textarea {
  height: 150px;
  resize: vertical;
}

.submit-btn {
  width: 100%;
  padding: 14px;
  font-size: 1.1em;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .query_grid {
    grid-template-columns: 1fr;
  }
}

/* 表格 */
.modal_table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 30px;
  background: white;
  box-shadow: var(--box-shadow);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.modal_table th,
.modal_table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.modal_table th {
  background: #f9fafc;
  font-weight: 600;
  color: var(--dark-color);
}

.modal_table tr:last-child td {
  border-bottom: none;
}

.modal_table tr:hover {
  background: #f9fafc;
}

.software {
  display: inline-block;
  padding: 4px 8px;
  background: #4a6bff;
  color: white;
  border-radius: 4px;
  font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .modal_table {
    display: block;
    overflow-x: auto;
  }
}

/* 全局 */
/* Add your CSS styles here */
#rotation {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.modal_check {
  --slider-size: 42px;
  width: 330px;
  background: white;
  border-radius: 16px;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal_check .title {
  color: #464b52;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}

.modal_check .img-con {
  position: relative;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  width: 256px;
  height: 256px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  /* 垂直居中 */
  justify-content: center;
  /* 水平居中 */
}

.modal_check .img-con img {
  max-width: 100%;
  max-height: 100%;
  user-select: none;
}

.modal_check .slider-con {
  width: 80%;
  height: var(--slider-size);
  border-radius: 42px;
  margin-top: 1rem;
  position: relative;
  background: linear-gradient(to right, #8c9eff 0%, #8c9eff 50%, #8c9eff 100%);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  background-size: 0% 100%;
  background-repeat: no-repeat;
}

.slider-con .slider {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
  cursor: move;
  --move: 0px;
  transform: translateX(var(--move));
  background: url("/statics/images/code.svg") no-repeat;
  background-size: cover;
}

.check-state {
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slider-con.err-anim {
  animation: jitter 0.5s;
}

.slider-con.err-anim .slider {
  background: #ff4e4e;
}

@keyframes jitter {
  20% {
    transform: translateX(-5px);
  }

  40% {
    transform: translateX(10px);
  }

  60% {
    transform: translateX(-5px);
  }

  80% {
    transform: translateX(10px);
  }

  100% {
    transform: translateX(0);
  }
}

/* 模态框 */
/* 模态框背景 */
.modal_overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  user-select: none;
  transition: opacity 0.3s ease;
}

/* 显示时的模态框背景 */
.modal_overlay.show {
  opacity: 1;
  pointer-events: auto;
}

/* 模态框容器 */
.modal_container {
  background-color: white;
  border-radius: 20px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transform: translateY(-20px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* 显示时的模态框容器 */
.modal_overlay.show .modal_container {
  transform: translateY(0);
  opacity: 1;
}

/* 模态框头部 */
.modal_header {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: none;
}

.modal_title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: bold;
}

.modal_close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #6c757d;
}

/* 模态框内容 */
.modal_body {
  padding: 0 20px 20px;
}
