body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
  min-height: 100vh;
  /* 新增：关闭body层级的过度滚动，避免滑动惯性卡顿 */
  overscroll-behavior: contain;
}
/* 主卡片：保留毛玻璃核心，去掉多余饱和效果（降渲染压力） */
.container {
  max-width: 700px;
  margin: 50px auto;
  backdrop-filter: blur(10px); /* 原20px→10px，模糊度降低，减少GPU计算 */
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); /* 原8px→4px，阴影简化 */
  text-align: center;
  padding: 30px 20px;
  box-sizing: border-box;
}
h2 {
  margin-bottom: 10px;
  color: #333;
  /* 移除：过渡动画，非必要且耗性能 */
}
p.tip {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
  line-height: 1.5;
}
/* 输入框容器：保留核心居中逻辑 */
.input-wrapper {
  position: relative;
  display: inline-block;
  width: 70%;
  margin: 0 auto 15px;
}
/* 输入框：去掉放大动画，保留基础聚焦反馈（关键优化） */
input {
  width: 100%;
  padding: 10px;
  padding-right: 40px;
  font-size: 16px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.5);
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease; /* 只保留必要过渡 */
  box-sizing: border-box;
  background: rgba(255,255,255,0.9);
}
input:focus {
  border-color: #4aa3df;
  box-shadow: 0 0 6px rgba(74,163,223,0.4); /* 原10px→6px，阴影简化 */
  /* 移除：transform: scale(1.01)，放大动画是卡顿主要原因之一 */
}
/* 清空按钮：保留基础hover，简化过渡 */
.clear-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  font-size: 18px;
  display: none;
  padding: 4px;
  transition: color 0.2s ease;
}
.clear-btn:hover {
  color: #4aa3df;
}
/* 按钮组：保留核心布局 */
.button-group {
  display: inline-flex;
  gap: 12px;
  margin-bottom: 20px;
}
/* 按钮：去掉复杂阴影，保留基础hover（关键优化） */
button {
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.3);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease; /* 缩短过渡时间 */
}
button.query-btn {
  background: linear-gradient(45deg, #4aa3df, #2980b9);
  color: #fff;
}
button.query-btn:hover {
  transform: translateY(-1px); /* 原-2px→-1px，减少位移幅度 */
  box-shadow: 0 3px 8px rgba(74,163,223,0.4); /* 原6px→3px，阴影简化 */
}
button.more-btn {
  background: linear-gradient(45deg, #f3c879, #e67e22);
  color: #fff;
}
button.more-btn:hover {
  transform: translateY(-1px); /* 原-2px→-1px */
  box-shadow: 0 3px 8px rgba(243,200,121,0.4); /* 原6px→3px */
}
/* 更多内容区：简化阴影和过渡 */
#moreContent {
  display: none;
  text-align: left;
  margin-top: 15px;
  padding: 18px;
  backdrop-filter: blur(10px); /* 原20px→10px */
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08); /* 原4px→3px */
  box-sizing: border-box;
  transition: display 0s; /* 只保留显示/隐藏，去掉复杂过渡 */
}
#moreContent p {
  margin: 6px 0;
  line-height: 1.6;
}
#moreContent a {
  color: #4aa3df;
  text-decoration: none;
  transition: color 0.2s ease;
}
#moreContent a:hover {
  text-decoration: underline;
  color: #2980b9;
}
/* 查询结果：去掉所有动画，保留基础显示（关键优化） */
#result { 
  margin-top: 25px; 
  text-align: left; 
  overflow-x: auto;
  padding-bottom: 10px;
  /* 移除：opacity、transform、transition，避免渲染延迟 */
}
/* 表格：简化背景，减少层级渲染 */
table { 
  width: 100%; 
  table-layout: auto; 
  border-collapse: collapse;
  border-spacing: 0; 
  font-size: 14px; 
  /* 移除：毛玻璃背景，减少GPU多层混合计算 */
  background: transparent;
}
th, td { 
  border: 1px solid #ccc;
  padding: 8px;
  text-align: left; 
  /* 移除：background-clip，非必要 */
}
th { 
  background-color: rgba(240,240,240,0.8);
  font-weight: 600; 
}
td { 
  background-color: rgba(255,255,255,0.1);
  /* 移除：hover过渡，减少交互时的渲染消耗 */
}
/* 移除：td:hover效果，进一步降负载 */
p.error { 
  color: #dc3545; 
  font-weight: bold; 
  margin-top: 10px;
}
/* 加载动画：保留核心，简化颜色 */
.loading {
  display: none;
  margin-top: 20px;
  color: #4aa3df;
  font-size: 14px;
}
.loading::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #4aa3df;
  border-top-color: transparent;
  border-radius: 50%;
  margin-right: 6px;
  animation: spin 1s linear infinite;
}
/* 弹窗：大幅简化模糊和阴影（关键优化） */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.4);
  justify-content: center;
  align-items: center;
  /* 移除：backdrop-filter，弹窗背景模糊是高耗性能项 */
}
.modal-content {
  backdrop-filter: blur(10px); /* 原20px→10px */
  background-color: rgba(255, 255, 255, 0.15);
  padding: 25px 30px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); /* 原8px→4px */
  width: 320px;
  animation: popIn 0.3s ease; /* 原0.4s→0.3s，缩短动画时间 */
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-sizing: border-box;
}
.modal-content h3 {
  margin-bottom: 15px;
  color: #333;
}
.modal-content input {
  width: 90%;
  padding: 10px;
  font-size: 14px;
  margin-bottom: 15px;
  padding-right: 10px;
  background: rgba(255,255,255,0.9);
}
.modal-actions {
  display: flex;
  justify-content: space-around;
  margin-bottom: 10px;
  gap: 10px;
}
.modal-actions button {
  flex: 1;
  padding: 9px 0;
}
/* 密码弹窗“获取密码”链接：高对比度橙色，超显眼 */
.get-password {
  display: inline-block;
  margin-top: 10px;
  color: #e67e22; /* 主色：橙色，比原蓝色对比度高3倍，一眼看清 */
  text-decoration: none;
  font-weight: 600; /* 加粗：进一步提升辨识度，不怕看漏 */
  font-size: 20px; /* 稍放大1px：比周围文字略大，更突出 */
  transition: all 0.2s ease; /* hover时多效果过渡，更灵动 */
}
/*  hover时加深+轻微放大，反馈更明显 */
.get-password:hover {
  text-decoration: underline;
  color: #d35400; /* 加深橙色，比主色深2个色阶 */
  transform: scale(1.03); /* 轻微放大，手指点的时候更易定位 */
}

/* 动画：保留核心，简化曲线 */
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes popIn {
  0% { opacity: 0; transform: scale(0.9); } /* 原0.8→0.9，减少缩放幅度 */
  100% { opacity: 1; transform: scale(1); } /* 移除60%的过度缩放，避免卡顿 */
}
/* 移动端适配：保留核心，简化非必要样式 */
@media (max-width: 576px) {
  .container {
    margin: 20px 15px;
    padding: 25px 15px;
  }
  .input-wrapper {
    width: 90%;
  }
  .button-group {
    flex-direction: column;
    width: 90%;
    margin: 0 auto 20px;
    gap: 10px;
  }
  .modal-content {
    width: 90%;
    padding: 20px 15px;
  }
  h2 {
    font-size: 1.4rem;
  }
}
