/* 全局样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: all 0.2s linear;
}
input::placeholder {
  color: #fff;
}
body,
div,
dl,
dt,
dd,
ul,
ol,
li,
h1,
h2,
h3,
h4,
h5,
h6,
pre,
code,
form,
fieldset,
legend,
input,
textarea,
p,
blockquote,
th,
td {
  margin: 0;
  padding: 0;
}
table /* 设置table 的样式*/ {
  border-collapse: collapse;
  border-spacing: 0;
}
fieldset,
img {
  border: 0;
}
em,
strong {
  font-style: normal;
  font-weight: normal;
}
li {
  list-style: none;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: 100%;
  font-weight: normal;
}
body,
input,
button,
textarea {
  font-size: 12px;
  font-family: "Lato";
}
a {
  text-decoration: none;
  outline: none;
}
a:hover {
  cursor: pointer;
}
th,
td {
  vertical-align: top;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html,
body {
  max-width: 1920px;
  margin: 0 auto;
  width: 100%;
}
body {
  background-color: #5f5d5e;
  font-family: Arial, sans-serif;
  color: #fff;
  background-color: #1e181a;
  font-family: "Lato";
}
@font-face {
  font-family: "ErasBoldITC";
  src: url("font/Eras Bold ITC.ttf") format("truetype");
  font-weight: bold;
  font-style: normal;
}
.tabs {
  display: flex;
  justify-content: center;
  width: calc(100% - 220px);
}
.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #221e1f;
  color: #fff;
  padding: 0 20px;
  margin-bottom: 50px;
  width: 100%;
}

.nav-left {
  display: flex;
  align-items: center;
  background-color: rgba(220, 221, 221, 0.25);
  border-radius: 0 0 10px 10px;
  border: 1px solid rgba(220, 221, 221, 0.6);
  padding: 18px 16px;
  height: 75px;
}

.nav-left .saf-logo {
  color: #00bcd4;
  font-weight: bold;
  margin-right: 10px;
}
.nav-left .saf-logo img {
  max-width: 60px;
}
.nav-left .ai-mapping {
  display: flex;
  align-items: center;
  font-family: "ErasBoldITC";
  font-size: 1.25rem;
}

.nav-left .ai-mapping img {
  width: 30px;
  height: 30px;
  margin-left: 10px;
}

.nav-right {
  display: flex;
  align-items: center;
  background-color: rgba(220, 221, 221, 0.25);
  border-radius: 0 0 10px 10px;
  border: 1px solid rgba(220, 221, 221, 0.6);
  padding: 18px 30px;
  height: 75px;
}

.nav-right a {
  color: #fff;
  text-decoration: none;
  margin: 10px;
  font-size: 16px;
}

.contents {
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  background-color: #221e1f;
  border-radius: 5px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  background: url("../images/images/ai_03.jpg") no-repeat bottom center;
  background-size: 1920px auto;
}

.content h1 {
  padding: 20px 0;
  border-bottom: 1px solid #eee;
}

.content p {
  padding: 20px 0;
  line-height: 1.6;
}
.sidebar {
  width: 220px;
  height: 100vh;
  /* background-color: #221e1f; */
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-right: 20px;
}

.sidebar ul {
  list-style: none;
}

.sidebar li {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: color 0.3s ease;
  padding-left: 20px;
  font-size: 0.9rem;
}
.sidebar li .menu1 {
  background: url("../images/images/ai_11.png") no-repeat center left;
  background-size: auto 35px;
}
.sidebar li:hover .menu1 {
  background-image: url("../images/images/ai_11h.png");
}
.sidebar li .menu2 {
  background: url("../images/images/ai_12.png") no-repeat center left;
  background-size: auto 35px;
}
.sidebar li:hover .menu2 {
  background-image: url("../images/images/ai_12h.png");
}
.sidebar li .menu3 {
  background: url("../images/images/ai_19.png") no-repeat center left;
  background-size: auto 35px;
}
.sidebar li:hover .menu3 {
  background-image: url("../images/images/ai_19h.png");
}
.sidebar li .menu4 {
  background: url("../images/images/ai_31.png") no-repeat center left;
  background-size: auto 35px;
}
.sidebar li:hover .menu4 {
  background-image: url("../images/images/ai_31h.png");
}
.sidebar li .menu5 {
  background: url("../images/images/ai_38.png") no-repeat center left;
  background-size: auto 30px;
}
.sidebar li:hover .menu5 {
  background-image: url("../images/images/ai_38h.png");
}
.sidebar li .menu6 {
  background: url("../images/images/ai_42.png") no-repeat center left;
  background-size: auto 35px;
}
.sidebar li:hover .menu6 {
  background-image: url("../images/images/ai_42h.png");
}
.sidebar li .menu7 {
  background: url("../images/images/ai_50.png") no-repeat center left;
  background-size: auto 35px;
}
.sidebar li:hover .menu7 {
  background-image: url("../images/images/ai_50h.png");
}
.sidebar li a {
  display: block;
  display: flex;
  align-items: center;
  color: #fff;
  height: 30px;
  padding-left: 55px;
  height: 38px;
}
.sidebar li:hover a {
  color: #009a97;
}
.sidebar li:hover {
  background: linear-gradient(to right, #313131, #1a1a1a);
  border-radius: 20px;
}

.sidebar li img {
  max-width: 38px;
  margin-right: 10px;
}

.sidebar .bot-section {
  text-align: center;
  margin-bottom: 30vh;
  margin-top: 20vh;
}

.sidebar .bot-section img {
  max-width: 100%;
  margin-bottom: 10px;
}

.bottom-banner {
  width: 220px;
  height: auto;

  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 15px;
  margin-top: 10vh;
}

.bottom-banner h2 {
  font-size: 18px;
  margin-bottom: 5px;
}

.bottom-banner p {
  font-size: 14px;
}
.rbox {
  width: 1020px;
  position: relative;
  margin-left: 15px;
}

.rbox .b-bg {
  background-color: #1d1d1d;
  padding: 15px;
  margin-bottom: 15px;
  border-radius: 15px;
}
.rbox .container {
  display: flex;
  align-items: center;
}
.rbox .time {
  background-color: #2f2f2f;
  padding: 15px;
  border-radius: 15px;
  width: 50%;
}
.rbox .form-section {
}
/* .form-section {
  margin-bottom: 10px;
} */

.form-section h3 {
  margin: 15px 0;
  font-size: 0.9rem;
}

.upload-box {
  background-color: #2f2f2f;
  padding: 20px;
  border-radius: 15px;
}

.upload-box input {
  display: none;
}

.upload-btn {
  display: block;
  padding: 8px 12px;
  background-color: #333;
  border: 1px solid #444;
  border-radius: 4px;
  border: 1px solid #fff;
  cursor: pointer;
  margin: 0 auto;
  display: flex;
  align-items: center;
  width: 140px;
}
.upload-btn:hover {
  border-color: #009a97;
  background-color: #1e8d8b;
}

.upload-btn img {
  width: 20px;
  margin-right: 10px;
}

.support-text {
  font-size: 0.7rem;
  color: #fff;
  margin: 15px 0 8px;
}

.recommend-imgs {
  display: flex;
  gap: 10px;
  align-items: center;
}

.recommend-imgs img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #000;
}

.search-input {
  width: 100%;
  padding: 15px 0 15px 50px;
  border-radius: 14px;
  color: #fff;
  background: #2f2f2f url("../images/images/ai_45.png") 20px center no-repeat;
  background-size: 20px;
  border: none;
  font-size: 1rem;
}
.reference-file input {
  display: none;
}
.reference-file label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.reference-file img {
  padding: 20px;
  width: 80px;
  background: #1d1d1d;
  height: 80px;
  border-radius: 15px;
}
.reference-file {
  background-color: #2f2f2f;
  padding: 15px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 1rem;
}

.production-fields {
  background-color: #2f2f2f;
  padding: 15px;
  border-radius: 15px;
  color: #fff;
}

.row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  align-items: center;
}

.row label span {
  color: #009a97;
}

.row input {
  padding: 6px;
  border: 1px solid #009a97;
  background-color: #2f2f2f;
  border-radius: 4px;
  color: #fff;
  flex: 1;
}

.color-picker-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 6px;
}

.color-picker-row label {
  width: 120px;
}

.production-fields .color-picker {
  width: 50px;
  height: 25px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  padding: 0;
  background-color: #009a97;
}

.production-fields label {
  display: flex;
  align-items: center;
}
.finish-select {
  padding: 6px;
  background-color: #2f2f2f;
  border: 1px solid #009a97;
  border-radius: 4px;
  color: #fff;
  width: 150px;
}

.pcb-type {
  background-color: #2f2f2f;
  padding: 15px;
  border-radius: 6px;
}

.item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0;
}

.icon {
  width: 70px;
  height: 50px;
  border: 2px solid #00cccc;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 4px;
  box-sizing: border-box;
}

.box {
  width: 28px;
  height: 18px;
  background-color: #99cc33;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  font-weight: bold;
  font-size: 14px;
  border-radius: 2px;
}
.box1 {
  width: 28px;
  height: 41px;
}
.box2 {
  flex-direction: column;
}

/* 单个PCB样式 */
.icon-single .box {
  width: 100%;
  height: 100%;
  font-size: 20px;
}

/* 相同PCB拼版样式 */
.icon-identical .row {
  display: flex;
  gap: 4px;
  margin-bottom: 4px;
}

.icon-identical .row:last-child {
  margin-bottom: 0;
}

/* 不同PCB拼版样式 */
.icon-different .row {
  display: flex;
  gap: 4px;
  margin-bottom: 4px;
}

.icon-different .row:last-child {
  margin-bottom: 0;
}

.text {
  font-size: 16px;
  line-height: 1.4;
}

.prompt-word {
  border-radius: 6px;
}

.prompt-word textarea {
  width: 100%;
  height: 80px;
  padding: 15px;
  background-color: #2f2f2f;
  border: 1px solid #2f2f2f;
  border-radius: 16px;
  color: #fff;
  resize: none;
}

.special-btn {
  display: block;
  width: 250px;
  padding: 4px 12px;
  background-color: #46eacf;
  border: 2px solid #000;
  border-radius: 8px;
  color: #000;
  cursor: pointer;
  box-shadow: 0 0 3px #ebeaeb;
  margin: 15px auto 15px;
}

.generate-btn {
  width: 100%;
  padding: 10px;
  background-color: #999999;
  border: none;
  border-radius: 16px;
  color: #000;
  font-size: 16px;
  cursor: pointer;
}
.generate-btn:hover {
  background-color: #46eacf;
}
.container {
  display: flex;
  gap: 20px;
}

.upwrap {
  width: 500px;
  background-color: #1d1d1d;
  padding: 5px 15px 25px;
  border-radius: 15px;
  margin-bottom: 20px;
}
.form-section {
  width: 100%;
}
.form-section .dot {
  display: inline-block;
}

production-fields label {
  display: block;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
}

input {
  width: 100%;
  padding: 8px;
  box-sizing: border-box;
  background-color: #3a3a3a;
  border: 1px solid #444;
  color: #fff;
  border-radius: 4px;
}
.rbox input {
  border: 1px solid #009a97;
  width: auto;
  margin-left: 10px;
}
.container {
  margin: 0 auto;
}
.rbox .form-section {
  display: flex;
  align-items: center;
}
.time .form-section {
  margin: 10px 0;
}
.time label {
  width: 75px;
}
/* 顶部标题栏样式，简单模拟顶部的 Pic Top 显示 */
.top-bar {
  display: flex;
  align-items: center;
  padding: 10px 0;
}

.top-bar .dot,
.form-section .dot {
  width: 10px;
  height: 10px;
  border-radius: 100%;
  background-color: #009a97; /* 模拟小蓝点 */
  margin-right: 8px;
}

.top-bar .title {
  font-size: 16px;
}

.divider {
  width: 100%;
  height: 1px;
  background-color: #444; /* 分割线颜色，模拟细线 */
  margin: 8px 0;
}

/* 中间内容区域，放置 Pic Top 图标和文字 */
.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 60vh; /* 让中间内容垂直居中，减去顶部和可能的底部高度 */
}

.content img {
  width: 60px; /* 图标宽度，可按需调整 */
  height: 60px;
  margin-bottom: 10px;
}

.content .text {
  font-size: 18px;
}
.robot {
  position: absolute;
  right: 50px;
  bottom: 50px;
  width: 200px;
  /* 可根据实际调整机器人图片大小 */
  height: auto;
}

.robot img {
  width: 100%;
  height: 100%;
}
