/* 全局样式重置 */
* {
  margin: 0;
  padding: 0;
  /* box-sizing: border-box; */
  list-style: none;
  text-decoration: none;
  outline: none;
  border: none;
}

/* 面包屑导航 */
.breadcrumb {
  padding-left: 0 !important;
  margin-bottom: 5px;
  padding-bottom: 0;
}

/* 内容区域 */
.content {
  width: 100%;
  padding: 17px min(9.375vw, 140px) 65px;
}

/* 文本样式 */
strong,
b {
  font-weight: bold;
}

/* 评论相关 */
#checkMood {
  padding: 0 10px;
}

.commentLoginBox {
  width: 100%;
}

#cmtTitle {
  padding-right: 10px;
}

/* 表格样式 */
.borderVisible td {
  border-style: solid;
}

table {
  margin: auto;
}

/* 页面布局 */
.pageWidth {
  width: 1080px;
  margin: 0 auto;
  background-color: #ffffff;
  padding: 0 30px;
}

.posi {
  height: 50px;
  line-height: 50px;
  font-size: 14px;
}

/* 段落样式 */
.pargraph {
  background: #f5f5f5;
  border: 1px solid #eeeeee;
  margin-bottom: 40px;
}

.pargraph h1 {
  padding: 24px 0px;
  font-family: "Microsoft YaHei";
}

.pargraph h6 {
  font-family: "Microsoft YaHei";
  font-size: 14px;
}

/* 步骤2表格样式 */
.step2-box table tr td.th-content {
  text-align: left;
  min-height: 60px;
}

/* 分享区域 */
.mainShareDiv_24 {
  margin: 20px 0px;
}

/* 主要内容区域 */
.mainBg-content {
  width: 1141px;
  height: auto;
  padding-bottom: 25px;
  margin: auto;
  border-top: 1px solid transparent;
  background-color: #fff;
}

.mainBg-content .main {
  width: 100%;
  height: auto;
  margin-top: 20px;
}

/* 进度标题 */
.mainBg-content .progress-title ul {
  width: 100%;
  height: 60px;
  margin: auto;
}

.mainBg-content .progress-title li {
  float: left;
  width: 25%;
  height: 60px;
  line-height: 60px;
  margin: auto;
  text-align: center;
  color: #fff;
  background-color: #5e99d5;
  transition: all 0.3s ease;
  position: relative;
}

/* 当前步骤样式 */
.mainBg-content .progress-title li.active {
  background-color: #1e61a5;
  box-shadow: 0 2px 4px rgba(30, 97, 165, 0.3);
}

/* 可返回步骤样式 */
/* .mainBg-content .progress-title li.returnable {
  background-color: #17a2b8;
  position: relative;
}

.mainBg-content .progress-title li.returnable::after {
  content: "←";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-weight: bold;
  font-size: 12px;
} */

/* 步骤悬停效果 */
.mainBg-content .progress-title li:hover {
  /* background-color: #1e61a5;
  opacity: 1; */
}

/* 步骤连接线 */
.mainBg-content .progress-title li:not(:last-child)::before {
  content: "";
  position: absolute;
  right: -1px;
  top: 0;
  width: 2px;
  height: 100%;
  background-color: #fff;
  z-index: 1;
}

/* 步骤框 */
.step-box {
  display: none;
}

.mainBg-content .step1-box,
.step2-box,
.step3-box,
.step4-box {
  padding-top: 10px;
  padding-bottom: 100px;
  width: 1000px;
  margin: auto;
}

/* 步骤1样式 */
.step1-box .step1-box-item {
  margin-top: 15px;
  position: relative;
}

.step1-box .title {
  display: inline-block;
  width: 110px;
  text-align: right;
  margin: auto;
  margin-right: 15px;
  font-size: 14px;
}

/* 必填项红点样式 */
.required-dot {
  color: #dc3545;
  font-weight: bold;
}

.step1-box .text {
  vertical-align: top;
}

.step1-box .qinput {
  width: 841px;
  height: 34px;
  padding-left: 15px;
  border: 1px solid #e6e6e6;
  border-radius: 4px;
  font-size: 14px;
  font-family: "微软雅黑";
  transition: border-color 0.3s ease;
}

.step1-box .qinput:focus {
  border-color: #1e61a5;
  outline: none;
}

/* 表单验证错误样式 */

.step1-box .error-message {
  position: absolute;
  top: 50%;
  right: -5%;
  transform: translateY(-50%);
  background: #fef2d3;
  border: 1px solid #f9e19a;
  color: #b98900;
  padding: 5px 10px;
  border-radius: 3px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 10;
  display: block;
  margin: 0;
}

.step1-box .error-message::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -5px;
  transform: translateY(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  background: #fef2d3;
  border-left: 1px solid #f9e19a;
  border-bottom: 1px solid #f9e19a;
}

.step1-box .qtext + .error-message {
    top: 8px;
    right: -5%;
    transform: none;
}

.step1-box .qtext + .error-message::before {
    top: 12px;
    transform: rotate(45deg);
}

.step1-box .qtext {
  height: 100px;
  outline: none;
  resize: vertical;
}

.step1-box .submit {
  width: 1000px;
  padding: 15px 0 0 133px;
}

/* 按钮样式 */
.step1-box .button-submit,
.step2-box .button-submit,
.step3-box .select-button {
  height: 41px;
  text-align: center;
  padding: 10px 18px;
  background-color: #009688;
  border: 1px solid #009688;
  border-radius: 2px;
  color: #fff;
  cursor: pointer;
}

.step1-box .button-submit:hover,
.step2-box .button-submit:hover,
.step3-box .select-button:hover {
  background-color: #32aa9f;
}

/* 测试数据按钮样式 */
.test-data-btn {
  height: 41px;
  text-align: center;
  padding: 10px 18px;
  background-color: #ff9800;
  border: 1px solid #ff9800;
  border-radius: 2px;
  color: #fff;
  cursor: pointer;
  margin-right: 10px;
}

.test-data-btn:hover {
  background-color: #f57c00;
}

.step1-box .button-reset {
  background-color: #fff;
  border: 1px solid #c9c9c9;
  color: #333;
}

.step1-box .button-reset:hover {
  background-color: #fff;
  border: 1px solid #009688;
}

/* 步骤2样式 */
.step2-box {
  padding-bottom: 20px;
}

.step2-box .layui-text {
  padding: 20px 0;
  font-size: 30px;
  text-align: center;
}

.step2-box table {
  width: 800px;
}

.step2-box table tr td {
  padding: 10px 10px;
  min-height: 30px;
  text-align: center;
  border: 1px solid #000;
  font-size: 16px;
}

.step2-box .submit {
  width: 1000px;
  text-align: center;
}

.step2-box .button-submit {
  padding: 10px 25px;
  margin-top: 15px;
  letter-spacing: 5px;
}

/* 步骤3和4样式 */
.step3-box,
.step4-box {
  padding-bottom: 400px;
}

.step3-box .upload-quote {
  height: 52px;
  line-height: 52px;
  margin-top: 20px;
  padding-left: 15px;
  border-left: 5px solid #009688;
  font-size: 14px;
  color: #333;
  background-color: #f2f2f2;
}

.step3-box table th,
.step3-box table td {
  padding: 9px 15px;
  min-height: 20px;
  line-height: 20px;
  text-align: left;
  background-color: #f2f2f2;
  font-size: 14px;
  border: 1px solid #e6e6e6;
}

.step3-box table td {
  background-color: #fff;
}

.step3-box table {
  width: 1000px;
  margin: 10px 0;
}

.step3-box .name {
  max-width: 463px !important;
}

.step3-box .delete {
  padding: 5px 10px;
  background-color: #ff5722;
  color: #fff;
  border: 1px solid #ff5722;
  border-radius: 2px;
  cursor: pointer;
}

.step3-box .delete:hover {
  background-color: #fc754b;
  border: 1px solid #fc754b;
}

.step3-box .upload {
  position: relative;
  display: inline-block;
  overflow: hidden;
  border-radius: 3px;
}

.step3-box .file-ele {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  height: 100%;
  width: 100px;
  cursor: pointer;
}

/* 步骤4样式 */
.step4-box p {
  font-size: 14px;
}

/* 输入框自动填充样式 */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-text-fill-color: #333 !important;
  background-color: transparent;
  transition: background-color 50000s ease-in-out 0s;
}

input {
  background-color: transparent;
}

/* 工具类 */
.color {
  background-color: #1e61a5 !important;
}

.block {
  display: block;
}

/* 打印样式 */
@media print {
  .submit {
    display: none;
  }

  .layui-text {
    margin: 30px 0 50px 0;
  }

  .td-content {
    height: 60px;
  }

  .th-content {
    height: 260px;
  }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .mainBg-content .progress-title li {
    font-size: 12px;
    padding: 0 5px;
  }

  .mainBg-content .progress-title li.completed::after {
    right: 5px;
    font-size: 10px;
  }
  
  /* 主要内容区域移动端适配 */
  .mainBg-content {
    width: 100%;
    padding: 0 15px 25px;
  }
  
  .mainBg-content .main {
    margin-top: 10px;
  }
  
  /* 步骤框移动端适配 */
  .mainBg-content .step1-box,
  .step2-box,
  .step3-box,
  .step4-box {
    width: 100%;
    padding: 10px 0 50px;
  }
  
  /* 步骤1表单移动端适配 */
  .step1-box .step1-box-item {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  
  .step1-box .title {
    width: 100%;
    text-align: left;
    margin-right: 0;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 500;
  }
  
  .step1-box .qinput {
    width: 100%;
    height: 44px;
    font-size: 16px;
    padding: 12px 15px;
  }
  
  .step1-box .qtext {
    width: 100%;
    min-height: 120px;
    font-size: 16px;
    padding: 12px 15px;
  }
  
  /* 按钮移动端适配 */
  .step1-box .submit {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 15px;
    margin-top: 30px;
    padding-left: 0 !important;
  }
  
  .step1-box .button-submit,
  .step1-box .button-reset {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
  }
  
  /* 步骤2表格移动端适配 */
  .step2-box .layui-text h1 {
    font-size: 20px;
    text-align: center;
    margin-bottom: 20px;
  }
  
  .step2-box table {
    width: 100%;
    font-size: 14px;
  }
  
  .step2-box table tr td {
    padding: 8px 5px;
    font-size: 14px;
    word-break: break-all;
  }
  
  .step2-box .submit {
    width: 100%;
    margin-top: 20px;
  }
  
  .step2-box .button-submit {
    width: 100%;
    height: 48px;
    font-size: 16px;
  }
  
  /* 步骤3移动端适配 */
  .step3-box .upload-quote {
    height: auto;
    line-height: 1.5;
    padding: 15px;
    font-size: 14px;
  }
  
  .step3-box table {
    width: 100%;
    font-size: 12px;
  }
  
  .step3-box table th,
  .step3-box table td {
    padding: 8px 5px;
    font-size: 12px;
  }
  
  .step3-box .upload {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
  }
  
  .step3-box .select-button {
    width: 100%;
    height: 48px;
    font-size: 16px;
    border-radius: 6px;
  }
  
  /* 步骤4移动端适配 */
  .step4-box p {
    font-size: 16px;
    text-align: center;
    padding: 20px;
  }
}

/* 小屏幕设备适配 */
@media (max-width: 480px) {
  .mainBg-content .progress-title ul {
    height: 50px;
  }
  
  .mainBg-content .progress-title li {
    font-size: 11px;
    padding: 0 2px;
    line-height: 50px;
  }
  
  .step1-box .title {
    font-size: 15px;
  }
  
  .step1-box .qinput {
    height: 42px;
    font-size: 15px;
  }
  
  .step1-box .qtext {
    min-height: 100px;
    font-size: 15px;
  }
  
  .step1-box .button-submit,
  .step1-box .button-reset {
    height: 44px;
    font-size: 15px;
  }
  
  .step2-box .layui-text h1 {
    font-size: 18px;
  }
  
  .step2-box table tr td {
    font-size: 12px;
    padding: 6px 3px;
  }
  
  .step3-box table th,
  .step3-box table td {
    font-size: 11px;
    padding: 6px 3px;
  }
  
  .step3-box .select-button {
    height: 44px;
    font-size: 15px;
  }
}

/* 超小屏幕设备适配 */
@media (max-width: 360px) {
  .mainBg-content .progress-title li {
    font-size: 10px;
    padding: 0 1px;
  }
  
  .step1-box .title {
    font-size: 14px;
  }
  
  .step1-box .qinput {
    height: 40px;
    font-size: 14px;
  }
  
  .step1-box .qtext {
    min-height: 90px;
    font-size: 14px;
  }
  
  .step1-box .button-submit,
  .step1-box .button-reset {
    height: 42px;
    font-size: 14px;
  }
  
  .step2-box .layui-text h1 {
    font-size: 16px;
  }
  
  .step2-box table tr td {
    font-size: 11px;
  }
  
  .step3-box table th,
  .step3-box table td {
    font-size: 10px;
  }
  
  .step3-box .select-button {
    height: 42px;
    font-size: 14px;
  }
}

/* 横屏模式适配 */
@media (orientation: landscape) and (max-height: 500px) {
  .mainBg-content .progress-title ul {
    height: 40px;
  }
  
  .mainBg-content .progress-title li {
    line-height: 40px;
    font-size: 12px;
  }
  
  .mainBg-content .step1-box,
  .step2-box,
  .step3-box,
  .step4-box {
    padding-bottom: 30px;
  }
  
  .step1-box .qtext {
    min-height: 80px;
  }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
  .step1-box .qinput:focus,
  .step1-box .qtext:focus {
    border-color: #1e61a5;
    box-shadow: 0 0 0 2px rgba(30, 97, 165, 0.2);
  }
  
  .step1-box .button-submit:active,
  .step1-box .button-reset:active,
  .step3-box .select-button:active {
    transform: scale(0.98);
  }
  
  .step3-box .delete:active {
    background-color: #d84315;
  }
}

/* 高对比度模式 */
@media (prefers-contrast: high) {
  .step1-box .qinput,
  .step1-box .qtext {
    border: 2px solid #000;
  }
  
  .step1-box .button-submit,
  .step1-box .button-reset,
  .step3-box .select-button {
    border: 2px solid #000;
  }
  
  .step2-box table tr td {
    border: 2px solid #000;
  }
}

/* 减少动画模式 */
@media (prefers-reduced-motion: reduce) {
  .mainBg-content .progress-title li {
    transition: none;
  }
  
  .step1-box .button-submit:hover,
  .step1-box .button-reset:hover,
  .step3-box .select-button:hover,
  .step3-box .delete:hover {
    transition: none;
  }
}

/* 步骤提示框样式 */
.step-alert {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #e3f2fd;
  color: #1976d2;
  padding: 15px 20px;
  border: 1px solid #bbdefb;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  font-size: 14px;
  max-width: 300px;
  text-align: center;
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* 禁用状态的文件选择框样式 */
.step3-box .file-ele.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* 禁用状态的文件选择框容器样式 */
.step3-box .upload.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.step3-box .upload.disabled .file-ele {
  cursor: not-allowed;
  pointer-events: none;
}
