/* ============================================================
   页面样式 —— 由原小程序 pages/index/index.wxss 改写
   说明：小程序 rpx 以 750 设计宽度为基准（1rpx ≈ 0.5px），
   这里换算为 px 并补充桌面端自适应。
   ============================================================ */

/* 全局 */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: #eeeaea;
  font-size: 14px;
  color: #333;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

/* 页面容器：移动端铺满，桌面端限宽居中 */
.container {
  padding: 18px;
  max-width: 520px;
  margin: 0 auto;
}

/* ---------- 语言切换 ---------- */
.lang-bar {
  display: flex;
  justify-content: flex-end;
}

.lang-btn {
  background: #fff;
  color: #07c160;
  border: 1px solid #07c160;
  border-radius: 4px;
  font-size: 12px;
  padding: 4px 12px;
  cursor: pointer;
}

/* ---------- Logo / 标记图 ---------- */
.loge {
  display: flex;
  justify-content: center;
  align-items: center;
}

.loge .logo {
  max-width: 60%;
  height: auto;
}

.mark {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: -35px;
  margin-bottom: 40px;
}

.mark img {
  max-width: 100%;
  height: auto;
}

/* ---------- 搜索框 ---------- */
.search-box {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.input {
  flex: 1;
  height: 44px;
  background: #fff;
  border-radius: 4px;
  padding: 0 10px;
  margin-right: 8px;
  border: 1px solid #e0e0e0;
  font-size: 14px;
  outline: none;
}

.input:focus {
  border-color: #07c160;
}

.btn {
  background: #07c160;
  color: #fff;
  height: 44px;
  padding: 0 16px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
}

.btn:disabled {
  opacity: 0.6;
  cursor: default;
}

/* 查询中的轻微视觉反馈 */
.btn.loading::after {
  content: "…";
  margin-left: 4px;
}

/* ---------- 空状态 ---------- */
.empty {
  text-align: center;
  color: #999;
  margin-top: 40px;
  font-size: 13px;
}

/* ---------- 结果卡片 ---------- */
.card {
  background: #fff;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.row {
  display: flex;
  margin-bottom: 6px;
}

.row:last-child {
  margin-bottom: 0;
}

.label {
  width: 120px;
  color: #999;
  flex-shrink: 0;
}

.value {
  flex: 1;
  color: #333;
  word-break: break-all;
}

/* "最新"标签 */
.tag-latest {
  display: inline-block;
  background: #e8f9ef;
  color: #07c160;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 10px;
  margin-bottom: 6px;
}

/* 历史记录按钮 */
.history-btn {
  display: block;
  width: 100%;
  margin-top: 10px;
  background: #fff;
  color: #666;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 12px;
  padding: 8px 0;
  cursor: pointer;
}

/* ---------- 轻量提示 toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 6px;
  max-width: 80%;
  text-align: center;
  z-index: 1000;
}

/* 隐藏属性统一生效（防止部分样式覆盖 display） */
[hidden] {
  display: none !important;
}

/* 窄屏微调 */
@media (max-width: 360px) {
  .label {
    width: 100px;
  }
}
