/* 全局样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Microsoft YaHei', Arial, sans-serif;
  background-color: #f5f5f5;
  color: #333;
  line-height: 1.6;
}

/* 主容器样式 - 参考pay-firmware页面 */
#tool,
#tool_sfd {
  min-height: 100vh;
  background-color: #f5f5f5;
}

.tool_con {
  max-width: 1200px;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  overflow: hidden;
}

/* SFD页面特定样式 */
.sfd-qr-container {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.sfd-qr-input {
  flex: 1;
  min-width: 300px;
}

.sfd-qr-output {
  text-align: center;
  min-width: 210px;
  margin-top: 10px;
}

.sfd-form-container {
  max-width: 600px;
  margin: 0 auto;
  background: #f9f9f9;
  padding: 30px;
  border-radius: 8px;
}

/* 页面头部 - 参考pay-firmware页面 */
.tool_header {
  text-align: center;
  padding: 30px;
  border-bottom: 1px solid #f5f5f5;
}

.tool_header h1 {
  color: #f07775;
  font-size: 28px;
  font-weight: 600;
  margin: 0;
}

/* 工具说明 - 参考pay-firmware页面 */
.param_head {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 30px;
  margin: 30px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: flex-start;
}

.param_head span {
  font-weight: 700;
  color: #f07775;
  margin-right: 20px;
  font-size: 16px;
  min-width: 80px;
}

.param_head p {
  flex: 1;
  font-size: 15px;
  color: #666;
  line-height: 1.8;
}

/* 客服联系方式 - 参考pay-firmware页面 */
.customer-service {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 30px;
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.customer-service > div:first-child {
  font-weight: 600;
  color: #333;
  font-size: 16px;
  display: flex;
  align-items: center;
}

.customer-service a {
  display: inline-flex;
  align-items: center;
  color: #f07775;
  text-decoration: none;
  font-size: 15px;
  transition: all 0.2s;
  padding: 8px 16px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #f07775;
}

.customer-service a:hover {
  background: #f07775;
  color: #fff;
  transform: translateY(-1px);
}

.customer-service i {
  margin-right: 8px;
  font-size: 16px;
}

/* 工具列表 - 参考pay-firmware页面 */
.tool_con_main {
  margin: 30px;
}

.tool_main_list {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.intr_tight {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

/* 工具项样式 - 参考pay-firmware页面 */
.tool-item {
  cursor: pointer;
  background: #ffffff;
  border: 2px solid #f07775;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  color: #f07775;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  transition: all 0.2s;
  text-align: center;
  min-width: 180px;
  text-decoration: none;
}

.tool-item:hover {
  background: #f07775;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(240,119,117,0.2);
  transform: translateY(-2px);
}

.tool-item.active {
  background: #f07775;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(240,119,117,0.2);
}

/* 底部提示 - 参考pay-firmware页面 */
.tool_food {
  background-color: #f8f9fa;
  border: 1px dashed #f07775;
  border-radius: 8px;
  margin: 30px;
  font-size: 16px;
  font-weight: 500;
  color: #f07775;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  transition: all 0.2s;
}

.tool_food:hover {
  box-shadow: 0 2px 8px rgba(240,119,117,0.1);
  transform: translateY(-1px);
}

/* 响应式布局 - 参考pay-firmware页面 */
@media screen and (max-width: 768px) {
  .tool_con {
    margin: 15px;
    border-radius: 8px;
  }
  
  .tool_header {
    padding: 20px;
  }
  
  .tool_header h1 {
    font-size: 24px;
  }
  
  .param_head {
    flex-direction: column;
    padding: 20px;
    margin: 20px;
  }
  
  .param_head span {
    margin-right: 0;
    margin-bottom: 10px;
  }
  
  .customer-service {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 16px;
    margin: 20px;
  }
  
  .customer-service > div:first-child {
    margin-bottom: 8px;
  }
  
  .tool_con_main {
    margin: 20px;
  }
  
  .tool_main_list {
    padding: 20px;
  }
  
  .intr_tight {
    flex-direction: column;
    align-items: center;
  }
  
  .tool-item {
    width: 100%;
    max-width: 300px;
    padding: 14px 24px;
    font-size: 15px;
  }
  
  .tool_food {
    padding: 16px;
    font-size: 15px;
    margin: 20px;
  }
  
  /* SFD页面响应式设计 */
  .sfd-qr-container {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  
  .sfd-qr-input {
    min-width: 100%;
  }
  
  .sfd-qr-output {
    min-width: 200px;
  }
  
  .sfd-form-container {
    padding: 20px;
    margin: 0;
  }
  
  /* 表单元素响应式 */
  .sfd-form-container input,
  .sfd-form-container select,
  .sfd-form-container textarea {
    width: 100%;
    box-sizing: border-box;
  }
  
  .sfd-form-container button {
    width: 100%;
    margin-top: 10px;
  }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
  .intr_tight {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .tool-item {
    min-width: 160px;
    padding: 14px 24px;
  }
}

@media screen and (min-width: 1025px) {
  .intr_tight {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 查询相关样式 - 参考pay-firmware页面 */
.ser_manua_con {
  margin: 30px;
  padding: 30px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.ser_manua_con .form-group {
  display: flex;
  align-items: center;
  margin-top: 20px;
  margin-bottom: 0;
  position: relative;
}

.ser_manua_con .form-group label {
  width: 100px;
  font-size: 15px;
  font-weight: 500;
  color: #333;
}

.ser_manua_con .form-group input {
  width: 350px;
  height: 45px;
  border: 2px solid #f07775;
  border-radius: 8px;
  font-size: 15px;
  color: #333;
  padding: 0 15px;
  transition: all 0.2s;
}

.ser_manua_con .form-group input:focus {
  outline: none;
  border-color: #f07775;
  box-shadow: 0 0 0 3px rgba(240,119,117,0.1);
}

.ser_manua_con .ser_manua_seach {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 45px;
  background: #f07775;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
  margin-top: 30px;
  margin-left: 100px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.ser_manua_con .ser_manua_seach:hover {
  background: #e06664;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(240,119,117,0.2);
}

.ser_manua_con .ser_manua_title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-top: 30px;
  margin-left: 100px;
}

.ser_manua_con .ser_manua_title span {
  color: #f07775;
}

.ser_manua_con .form-group.bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.ser_manua_con .form-group p {
  width: 100%;
  margin-top: 10px;
  font-size: 15px;
  color: #666;
  border: 1px solid #f5f5f5;
  border-radius: 8px;
  padding: 20px;
  background-color: #f9f9f9;
}

.ser_manua_con .ser_manua_reads {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 400px;
  height: 100px;
  border: 2px solid #f07775;
  border-radius: 8px;
  font-size: 20px;
  font-weight: 500;
  color: #f07775;
  margin: 0 auto;
  margin-top: 40px;
  transition: all 0.2s;
  cursor: pointer;
}

.ser_manua_con .ser_manua_reads:hover {
  background-color: #f07775;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(240,119,117,0.2);
}

/* 侧边栏显示 */
.aside-container {
  display: block !important;
}

/* 在手机端隐藏侧边栏 */
@media screen and (max-width: 768px) {
  .aside-container {
    display: none !important;
  }
}

/* 动画效果 - 参考pay-firmware页面 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tool-item {
  animation: fadeInUp 0.4s ease forwards;
}

.tool-item:nth-child(1) { animation-delay: 0.1s; }
.tool-item:nth-child(2) { animation-delay: 0.15s; }
.tool-item:nth-child(3) { animation-delay: 0.2s; }
.tool-item:nth-child(4) { animation-delay: 0.25s; }
.tool-item:nth-child(5) { animation-delay: 0.3s; }
.tool-item:nth-child(6) { animation-delay: 0.35s; }
.tool-item:nth-child(7) { animation-delay: 0.4s; }
.tool-item:nth-child(8) { animation-delay: 0.45s; }
.tool-item:nth-child(9) { animation-delay: 0.5s; }
