:root {
  --bg: #eef7f5;
  --panel: #ffffff;
  --panel-soft: #f8fcfb;
  --text: #152333;
  --muted: #6a7786;
  --line: #dce8e7;
  --primary: #08a995;
  --primary-dark: #057f74;
  --primary-soft: #e7faf6;
  --success: #14a66d;
  --warning-bg: #fff7ed;
  --warning-text: #b45309;
  --danger: #dc2626;
  --shadow: 0 22px 58px rgba(15, 72, 78, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 0%, rgba(8, 169, 149, 0.14), transparent 34%),
    linear-gradient(180deg, #f7fbfb 0%, var(--bg) 100%);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

.page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0;
}

.query-panel,
.result-section {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(220, 232, 231, 0.86);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.query-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(360px, 1fr);
  gap: 30px;
  align-items: stretch;
  padding: 28px;
}

.brand-side {
  display: flex;
  min-height: 286px;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px 0;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.brand-logo {
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 12px 30px rgba(5, 127, 116, 0.22);
}

.brand-name,
.eyebrow {
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  margin-top: 5px;
  font-size: 32px;
  line-height: 1.18;
}

h2 {
  font-size: 19px;
  line-height: 1.25;
}

.page-subtitle {
  max-width: 360px;
  margin: 24px 0 10px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.official-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 32px;
  margin-bottom: 16px;
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.official-link:hover {
  text-decoration: underline;
}

.quick-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-meta span {
  display: inline-flex;
  align-items: center;
  height: 30px;
  border: 1px solid rgba(8, 169, 149, 0.2);
  border-radius: 999px;
  padding: 0 12px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 700;
}

.form-side {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--panel-soft);
}

.form-title {
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 6px;
}

.query-form label {
  display: block;
  margin-bottom: 8px;
  color: #415466;
  font-size: 14px;
  font-weight: 700;
}

.query-row {
  display: grid;
  grid-template-columns: 1fr 104px;
  gap: 10px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-top: 8px;
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.contact-link:hover {
  text-decoration: underline;
}

.captcha-label {
  margin-top: 12px;
}

.captcha-row {
  display: grid;
  grid-template-columns: 128px 1fr 78px;
  gap: 10px;
}

input,
button {
  height: 44px;
  border-radius: 7px;
  font: inherit;
}

input {
  width: 100%;
  border: 1px solid var(--line);
  padding: 0 14px;
  background: #fff;
  color: var(--text);
  outline: none;
}

input::placeholder {
  color: #9aa7b5;
}

input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(8, 169, 149, 0.14);
}

button {
  border: 0;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
}

button:hover {
  background: var(--primary-dark);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.captcha-question,
.refresh-button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
}

.captcha-question {
  font-weight: 800;
}

.captcha-question:hover,
.refresh-button:hover {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.status-text {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.status-text.error {
  color: var(--danger);
}

.result-section {
  margin-top: 18px;
  padding: 24px;
}

.result-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.result-count {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 0 12px;
  background: #f1f5f9;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.metric {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fff;
}

.metric::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--primary);
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.metric strong {
  display: block;
  margin-top: 9px;
  font-size: 28px;
  line-height: 1.1;
  word-break: break-all;
}

.progress-wrap {
  margin: 22px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.progress-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7efee;
}

.progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--success));
  transition: width 180ms ease;
}

.table-panel {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.minimum-panel {
  margin-top: 20px;
}

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

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 14px;
  white-space: nowrap;
}

th {
  background: #f8fafc;
  color: #4b6072;
  font-weight: 800;
}

td {
  color: #203246;
}

tbody tr:hover {
  background: #fbfefd;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--warning-bg);
  color: var(--warning-text);
  font-size: 12px;
  font-weight: 800;
}

.empty-state {
  padding: 30px;
  color: var(--muted);
  text-align: center;
}

.hidden {
  display: none;
}

@media (max-width: 860px) {
  .page {
    width: min(100% - 24px, 1120px);
    padding: 20px 0;
  }

  .query-panel {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 20px;
  }

  .brand-side {
    min-height: 0;
    gap: 16px;
  }

  .brand-logo {
    width: 60px;
    height: 60px;
  }

  h1 {
    font-size: 27px;
  }

  .page-subtitle {
    margin: 0;
  }

  .summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  body {
    background: #f7fbfb;
  }

  .page {
    width: min(100% - 20px, 1120px);
  }

  .query-panel,
  .result-section,
  .form-side,
  .metric,
  .progress-wrap,
  .table-scroll {
    border-radius: 8px;
  }

  .brand-block {
    align-items: flex-start;
  }

  .brand-logo {
    width: 52px;
    height: 52px;
  }

  h1 {
    font-size: 23px;
  }

  h2 {
    font-size: 18px;
  }

  .form-side {
    padding: 16px;
  }

  .query-row,
  .captcha-row {
    grid-template-columns: 1fr;
  }

  input,
  button {
    width: 100%;
  }

  .result-section {
    padding: 18px;
  }

  .result-head {
    display: block;
  }

  .result-count {
    margin-top: 10px;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }

  .metric {
    padding: 16px;
  }

  .metric strong {
    font-size: 25px;
  }

  table {
    min-width: 560px;
  }

  th,
  td {
    padding: 12px 14px;
  }
}
