.wb-wrap {
  width: 100%;
  padding: 4px 0 28px;
  box-sizing: border-box;
}

.wb-hint {
  margin: 0 0 16px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.6;
  color: #374151;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 6px;
}

.wb-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.wb-input-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.wb-input {
  flex: 1 1 220px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 16px;
  line-height: 1.5;
  color: #111827;
  box-sizing: border-box;
}

.wb-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.15);
}

.wb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  line-height: 1.4;
  white-space: nowrap;
}

.wb-btn-primary {
  background: #10b981;
  color: #fff;
}

.wb-btn-primary:hover:not(:disabled) {
  background: #059669;
}

.wb-btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.wb-btn-secondary {
  background: #e5e7eb;
  color: #374151;
}

.wb-btn-secondary:hover {
  background: #d1d5db;
}

.wb-btn-sm {
  padding: 6px 12px;
  font-size: 13px;
}

.wb-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  font-size: 13px;
  color: #6b7280;
}

.wb-status {
  color: #059669;
}

.wb-error {
  margin: 10px 0 0;
  font-size: 14px;
  color: #dc2626;
}

.wb-result {
  margin-top: 18px;
}

.wb-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.wb-result-title {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: #111827;
}

.wb-table-wrap {
  overflow-x: auto;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
}

.wb-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  background: #fff;
}

.wb-table th,
.wb-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f3f4f6;
  text-align: left;
  font-size: 14px;
  color: #111827;
}

.wb-table th {
  background: #f9fafb;
  font-weight: 600;
  color: #374151;
}

.wb-table tbody tr:last-child td {
  border-bottom: none;
}

.wb-table tbody tr:hover {
  background: #f9fafb;
}

.wb-char {
  font-size: 22px;
  font-weight: 600;
}

.wb-pinyin {
  font-size: 14px;
  color: #374151;
  white-space: nowrap;
}

.wb-code-sep {
  display: inline-block;
  margin: 0 6px;
  color: #9ca3af;
  font-size: 13px;
}

.wb-code {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.wb-code button {
  border: 0;
  background: #ecfdf5;
  color: #047857;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 12px;
  cursor: pointer;
}

.wb-code button:hover {
  background: #d1fae5;
}

.wb-empty {
  color: #9ca3af;
}

.wb-miss {
  margin: 10px 0 0;
  font-size: 13px;
  color: #b45309;
}

.wb-roots {
  margin-top: 28px;
}

.wb-roots > h2,
.wb-intro h2 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 600;
  color: #111827;
}

.wb-roots > p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.7;
  color: #4b5563;
}

.wb-zigen {
  margin: 0;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  box-sizing: border-box;
}

.wb-zigen a {
  display: block;
}

.wb-zigen img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.wb-zigen figcaption {
  margin-top: 10px;
  text-align: right;
}

.wb-zigen-link {
  font-size: 13px;
  color: #059669;
  text-decoration: none;
}

.wb-zigen-link:hover {
  text-decoration: underline;
}

.wb-intro {
  margin-top: 28px;
  padding: 20px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
}

.wb-intro h2:not(:first-child) {
  margin-top: 20px;
}

.wb-intro h3 {
  margin: 12px 0 6px;
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
}

.wb-intro p,
.wb-intro li {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.7;
  color: #4b5563;
}

.wb-intro ul {
  margin: 0;
  padding-left: 1.3em;
}

.wb-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 1000;
  transform: translateX(-50%);
  padding: 10px 18px;
  border-radius: 6px;
  background: rgba(17, 24, 39, 0.92);
  color: #fff;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  pointer-events: none;
}

@media (max-width: 640px) {
  .wb-input-row {
    flex-direction: column;
  }

  .wb-btn {
    width: 100%;
  }
}
