* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  color: #1a2332;
  background: #ffffff;
  line-height: 1.5;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}
ul {
  list-style: none;
}

/* Vehicle Bar */
.vehicle-bar {
  background: #fff;
  border-bottom: 1px solid #e6e8eb;
}
.vehicle-bar .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.vehicle-info {
  display: flex;
  align-items: center;
}
.vehicle-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  margin-right: 10px;
}
.vehicle-info h1 {
  font-family: AlibabaPuHuiTi, AlibabaPuHuiTi;
  font-weight: 400;
  font-size: 26px;
  color: #23365d;
  font-style: normal;
}
.vehicle-info .img {
  width: 123px;
  height: 34px;
  margin-left: 10px;
}
.vehicle-actions {
  display: flex;
  width: 450px;
  height: 40px;
  background: #ffffff;
  box-shadow: 0px 10px 24px 0px rgba(13, 33, 74, 0.08);
  border-radius: 20px;
  border: 1px solid #dce5f2;
  align-items: center;
  justify-content: space-between;
}
.vehicle-actions input {
  border: none;
  width: 280px;
  margin-left: 20px;
}

.vehicle-actions input:focus {
  outline: none;
  box-shadow: none;
}
.vehicle-actions .button {
  width: 158px;
  height: 36px;
  background: #23365d;
  box-shadow:
    0px 2px 10px 0px #e4edfd,
    inset 0px 1px 3px 0px #2b348f;
  border-radius: 18px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.button-img {
  width: 24px;
  height: 24px;
}
.button-line {
  width: 1px;
  height: 16px;
  background: #ffffff;
  margin: 0 10px;
}

.vehicle-actions span {
  font-family:
    PingFangSC,
    PingFang SC;
  font-weight: 500;
  font-size: 16px;
  color: #ffffff;
  font-style: normal;
}

/* Main Layout */
.main-layout {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
}
.sidebar {
  width: 210px;
  background: #fff;
  border-radius: 4px;
  border: 1px solid #e6e8eb;
  /* padding: 16px 0; */
  /* align-self: start; */
}
.sidebar-title {
  width: 210px;
  height: 70px;
  background: #ec2f23;
  border: 1px solid #ec2f23;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family:
    PingFangSC,
    PingFang SC;
  font-weight: 500;
  font-size: 22px;
  color: #ffffff;
  line-height: 30px;
  text-align: center;
  font-style: normal;
}
.category-tree li {
  position: relative;
  width: 210px;
  height: 45px;
  background: #fffafa;
  border: 1px solid #e4edfd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family:
    PingFangSC,
    PingFang SC;
  font-weight: 500;
  font-size: 15px;
  color: #4d4d4d;
  text-align: center;
  font-style: normal;
}
.category-tree li a {
  color: #4d4d4d;
  transition: all 0.15s;
  cursor: pointer;
}
.category-tree li a:hover,
.category-tree li a.active {
  color: #ec2f23;
}
.category-tree li a::before,
.category-tree li a::after {
  content: none;
}

/* Content */
.content {
  background: #fff;
  border-radius: 4px;
  border: 1px solid #e6e8eb;
  padding: 24px;
  min-height: 600px;
}
.section {
  margin-bottom: 28px;
}
.section:last-child {
  margin-bottom: 0;
}
.section-title {
  font-size: 16px;
  font-weight: 600;
  color: #ec2f23;
  padding: 10px 14px;
  background: #fff5f5;
  border-left: 4px solid #ec2f23;
  margin-bottom: 16px;
}

/* Parameter Table */
.param-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-bottom: 16px;
}
.param-table th,
.param-table td {
  border: 1px solid #e6e8eb;
  padding: 10px 14px;
  text-align: left;
}
.param-table th {
  background: #f7f8fa;
  color: #1a2332;
  font-weight: 600;
}
.param-table td {
  color: #555;
}
.param-table tr:nth-child(even) td {
  background: #fafbfc;
}

/* Diagrams */
.diagram-main {
  width: 100%;
  max-width: 720px;
  margin: 0 auto 16px;
  border: 1px solid #e6e8eb;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
  text-align: center;
}
.diagram-main img {
  width: 100%;
  min-height: 320px;
  max-height: 480px;
  display: block;
  object-fit: contain;
  margin: 0 auto;
  background: #f9f9f9;
}

/* PDF/HTML 嵌入 - 自适应高度 */
.pdf-embed {
  width: 100%;
  max-width: 720px;
  margin: 0 auto 20px;
  border: 1px solid #e6e8eb;
  border-radius: 4px;
  overflow: hidden;
  background: #f9f9f9;
}
.pdf-viewer {
  width: 100%;
  min-height: 600px;
  max-height: calc(100vh - 180px);
  height: 80vh;
  display: block;
  border: none;
}

/* 动态抓取图片展示 */
.pulled-images {
  width: 100%;
  max-width: 720px;
  margin: 0 auto 20px;
}
.pulled-images img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid #e6e8eb;
  border-radius: 4px;
  margin-bottom: 12px;
  background: #f9f9f9;
}
.pulled-images img:last-child {
  margin-bottom: 0;
}
.pulled-loading {
  text-align: center;
  color: #999;
  font-size: 14px;
  padding: 40px 0;
}
.pulled-error {
  text-align: center;
  color: #ec2f23;
  font-size: 14px;
  padding: 20px 0;
}

.diagram-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}
.step-item {
  border: 1px solid #e6e8eb;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}
.step-item .step-img {
  width: 100%;
  height: 140px;
  display: block;
  object-fit: contain;
  background: #f9f9f9;
  padding: 8px;
}
.step-item .step-desc {
  padding: 10px 12px;
  font-size: 12px;
  color: #555;
  line-height: 1.6;
  border-top: 1px solid #f0f0f0;
}
.step-item .step-desc .step-num {
  display: inline-block;
  width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  background: #ec2f23;
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
  margin-right: 6px;
}

/* Tool Table */
.tool-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.tool-table th,
.tool-table td {
  border: 1px solid #e6e8eb;
  padding: 12px 14px;
  text-align: left;
}
.tool-table th {
  background: #f7f8fa;
  color: #1a2332;
  font-weight: 600;
}
.tool-table .tool-thumb-col {
  width: 120px;
}
.tool-table .tool-img {
  width: 80px;
  height: 60px;
  display: block;
  object-fit: contain;
  background: #f9f9f9;
  border-radius: 4px;
}
.tool-table .tool-name {
  font-weight: 500;
  color: #1a2332;
  margin-bottom: 2px;
}
.tool-table .tool-code {
  color: #888;
  font-size: 12px;
}

/* Footer Component */
.footer-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}
#footer-block {
  min-height: 0;
}

@media (max-width: 900px) {
  .main-layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: none;
  }
  .diagram-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .vehicle-bar .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .diagram-steps {
    grid-template-columns: 1fr;
  }
}

.tab-nav {
  /* width: 1200px; */
  margin: 0 auto;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f6f7;
}
.tab-nav .container {
  /* margin: 0 auto; */
  /* padding: 0 24px; */
  display: flex;
  /* gap: 32px; */
}
.tab-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 40px;
  margin: 0;
  /* padding: 14px 0;
  font-size: 14px;
  color: #555;
  border-bottom: 2px solid transparent; */
}
.tab-nav a.active,
.tab-nav a:hover {
  width: 200px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f67d74 0%, #e91a0e 100%);
  box-shadow:
    0px 2 10px 0px #e4edfd,
    inset 0px 1 3px 0px #fb958f;
  font-family: AlibabaPuHuiTi, AlibabaPuHuiTi;
  font-weight: 500;
  font-size: 15px;
  color: #ffffff;
  font-style: normal;
}
