:root {
  --blue: #1f6fad;
  --teal: #2db8a0;
  --text: #2c3640;
  --muted: #6b7785;
  --line: #e6ebf0;
  --bg: #f3f6f8;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
}
a { color: inherit; text-decoration: none; }
.container { width: min(1100px, calc(100% - 32px)); margin: 0 auto; }

.topbar { background: #fff; border-bottom: 1px solid var(--line); }
.topbar-inner { min-height: 56px; display: flex; align-items: center; justify-content: space-between; }
.brand { font-weight: 800; color: var(--blue); font-size: 18px; }
.lang-switch { display: flex; gap: 8px; align-items: center; font-weight: 700; }
.lang-switch a.active { color: var(--teal); }

.hero {
  position: relative;
  min-height: 280px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(90deg, rgba(20,90,150,.55), rgba(20,90,150,.25)),
    var(--hero, url('https://images.unsplash.com/photo-1582719471384-894fbb16e074?auto=format&fit=crop&w=1600&q=80')) center/cover;
}
.hero-mask { position: absolute; inset: 0; }
.hero-title {
  position: relative;
  margin: 0;
  padding: 14px 28px;
  color: #fff;
  font-size: clamp(28px, 4vw, 42px);
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.35);
  backdrop-filter: blur(2px);
}

.tabs { background: #fff; border-bottom: 1px solid var(--line); }
.tabs-inner { display: flex; gap: 28px; min-height: 54px; align-items: center; }
.tabs a { color: #333; font-weight: 700; padding: 16px 0; border-bottom: 3px solid transparent; }
.tabs a.active { color: var(--teal); border-bottom-color: var(--teal); }

.query-wrap { padding: 36px 0 60px; }
.query-card {
  width: min(720px, 100%);
  margin: 0 auto;
  background: #fff;
  border-radius: 10px;
  padding: 32px 36px 36px;
  box-shadow: 0 10px 30px rgba(20,40,60,.06);
}
.query-card h2 { text-align: center; margin: 0 0 16px; }
.hint { color: var(--muted); line-height: 1.7; margin: 0 0 22px; }
.field { display: grid; gap: 8px; margin-bottom: 18px; font-weight: 700; }
.field em { color: #e74c3c; font-style: normal; }
.field input {
  height: 44px; border: 1px solid #d7dee6; border-radius: 4px;
  padding: 0 12px; font: inherit; font-weight: 400;
}
.captcha-row { display: flex; gap: 12px; align-items: center; }
.captcha-row input { flex: 1; }
.captcha-img { height: 44px; width: 110px; border: 1px solid #d7dee6; border-radius: 4px; cursor: pointer; background: #fff; }
.btn-search {
  display: block; width: 160px; margin: 10px auto 0; height: 44px;
  border: 0; border-radius: 4px; background: var(--teal); color: #fff;
  font-size: 16px; font-weight: 800; cursor: pointer;
}
.alert { background: #fef0f0; color: #f56c6c; padding: 10px 12px; border-radius: 4px; margin-bottom: 14px; }

.result-page { padding: 36px 0 60px; }
.result-card {
  background: #fff; border-radius: 10px; padding: 28px;
  box-shadow: 0 10px 30px rgba(20,40,60,.06);
}
.result-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.result-head h1 { margin: 0; font-size: 24px; }
.back-link { color: var(--blue); font-weight: 700; }
.result-table { width: 100%; border-collapse: collapse; }
.result-table th, .result-table td {
  border: 1px solid var(--line); padding: 12px 14px; text-align: left; vertical-align: top;
}
.result-table th { width: 28%; background: #f7fafc; color: #456; font-weight: 700; }
.status { font-weight: 800; }
.status.ok { color: #1aae6f; }
.status.bad { color: #e74c3c; }
.empty { color: var(--muted); padding: 24px 0; }

@media (max-width: 720px) {
  .tabs-inner { gap: 16px; overflow-x: auto; }
  .query-card { padding: 22px 16px; }
  .result-table th { width: 36%; }
  .captcha-row { flex-wrap: wrap; }
}
