:root {
  font-family: Roboto, "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
  color: #1f1f1f;
  background: #f8fafd;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  background: #f8fafd;
}

body { min-width: 320px; min-height: 100vh; }

.header-banner {
  position: fixed;
  top: 0;
  left: 10px;
  width: calc(100% - 20px);
  height: 20px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  background: #0b57d0;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 1px 2px #3c404333;
  cursor: pointer;
  font-size: 12px;
  line-height: 20px;
  user-select: none;
}

.content {
  margin-top: 20px;
  padding: 10px;
  min-height: calc(100vh - 60px);
}

#zhuti {
  max-width: 1110px;
  margin: 0 auto;
  text-align: center;
}

.func-title {
  margin: 10px 0 8px;
  color: #202124;
  font-size: 16px;
  letter-spacing: 0;
}

.func-title b { font-weight: 700; }

.row {
  margin: 0 auto;
  display: flex;
  gap: 1px;
  align-items: center;
}

.search-row {
  gap: 8px;
  width: 100%;
}

.search-row input {
  flex: 1;
  height: 34px;
  border: 1px solid #aeb8c4;
  border-radius: 8px;
  background: #fff;
  color: #202124;
  box-shadow: 0 1px 3px #3c40431f;
  text-align: center;
  font: inherit;
  font-size: 14px;
  outline: none;
  caret-color: #213654;
  padding: 0 12px;
}

.search-row input::placeholder {
  color: #98a1ad;
  opacity: 1;
  font-weight: 400;
}

.search-row input:hover { border-color: #a8c7fa; }

.search-row input:focus {
  border-color: #0b57d0;
  box-shadow: 0 0 0 1px #0b57d0;
}

.search-row button,
.more-row button {
  height: 34px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: #0b57d0;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 1px 2px #3c404338;
  cursor: pointer;
  white-space: nowrap;
}

.search-row button:hover,
.more-row button:hover { background: #1a73e8; }

.search-row button:active { background: #0842a0; }

.search-row button:disabled,
.more-row button:disabled {
  opacity: 0.7;
  cursor: default;
}

.gap { height: 16px; }

.glass-card {
  background: #fff;
  border: 1px solid #e0e3e7;
  box-shadow: 0 1px 2px #3c404329;
  border-radius: 10px;
  padding: 5px 8px 8px;
  text-align: center;
}

.card-text {
  margin: 1px;
  padding: 1px;
  font-size: 13px;
  line-height: 1.7;
  color: #1f1f1f;
}

.addr-row {
  width: 90%;
  margin: 4px auto 6px;
  gap: 4px;
}

.addr {
  flex: 1;
  width: 100%;
  height: 22px;
  padding: 0 8px;
  border-radius: 11px;
  background: #fff;
  color: #202124;
  font: inherit;
  font-size: 12px;
  text-align: center;
  outline: none;
}

.addr.warn { border: 1px solid #f9ab00; }
.addr.danger { border: 1px solid #d93025; }

.copy {
  width: 60px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  color: #fff;
  font: inherit;
  font-size: 11px;
  line-height: 20px;
  cursor: pointer;
  flex: none;
  box-shadow: 0 1px 2px #3c404338;
}

.copy.warn { background: #f9ab00; }
.copy.danger { background: #d93025; }
.copy.warn:hover { background: #e39b00; }
.copy.danger:hover { background: #c5221f; }

.price-line {
  margin: 12px 0;
  color: #5f6368;
  font-size: 13px;
}

.accent-green { color: #188038; font-weight: 700; }

.kefu {
  margin: 14px 0 8px;
  font-size: 13px;
  color: #1f1f1f;
}

.accent-link {
  display: inline-block;
  margin-left: 2px;
  padding: 0 5px;
  color: #fff;
  background: #0b57d0;
  border-radius: 4px;
  box-shadow: 0 1px 2px #3c404338;
  font-size: 13px;
  font-weight: 500;
  line-height: 16px;
  text-decoration: none;
}

.accent-link:hover { color: #fff; background: #1a73e8; }

.result-card { margin-top: 12px; padding: 8px 12px 12px; }

.result-card h2 {
  margin: 2px 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: #202124;
}

.kv {
  width: min(640px, 100%);
  margin: 0 auto;
  text-align: left;
  font-size: 13px;
}

.kv .line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 5px 0;
  border-bottom: 1px solid #f1f3f4;
}

.kv .line span { color: #5f6368; flex: none; }
.kv .line b {
  font-weight: 600;
  color: #202124;
  text-align: right;
  word-break: break-all;
}

.muted { color: #5f6368; font-size: 13px; margin: 8px 0; }

.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}

th {
  color: #5f6368;
  font-weight: 500;
  background: #f8fafd;
}

td, th {
  padding: 7px 8px;
  border-bottom: 1px solid #e0e3e7;
  white-space: nowrap;
}

.tag-in { color: #188038; font-weight: 700; }
.tag-out { color: #d93025; font-weight: 700; }

.linkish {
  color: #0b57d0;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

a.tx-link {
  color: #0b57d0;
  text-decoration: none;
}

a.tx-link:hover,
.linkish:hover { text-decoration: underline; }

.more-row { margin: 10px 0 0; }

.toast {
  position: fixed;
  top: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  background: #fff;
  border: 1px solid #e0e3e7;
  box-shadow: 0 3px 8px #3c404326;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
}

.toast.ok { color: #188038; }
.toast.err { color: #d93025; }
.toast[hidden] { display: none; }

.spin {
  width: 14px;
  height: 14px;
  border: 2px solid #d2e3fc;
  border-top-color: #0b57d0;
  border-radius: 50%;
  display: inline-block;
  vertical-align: -2px;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.empty {
  margin: 8px 0;
  color: #5f6368;
  font-size: 13px;
}

@media (max-width: 640px) {
  .glass-card { box-shadow: 0 1px 2px #3c404324; }
  .addr-row { width: 100%; }
  .addr { font-size: 11px; }
  .search-row { gap: 6px; }
  .search-row button { padding: 0 12px; }
}
