:root {
  --primary: #00aeef;
  --primary-dark: #008fc7;
  --accent: #e23a3a;
  --bg: #f2f5fb;
  --card-bg: #ffffff;
  --border: #e2e8f2;
  --text: #2b3446;
  --muted: #8a93a6;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-header {
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 20px 0;
  box-shadow: 0 2px 10px rgba(0, 174, 239, 0.25);
}
.site-title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #fff;
  text-align: center;
}

.container { width: 84%; max-width: 1600px; margin: 40px auto; padding: 0; }

.card {
  background: var(--card-bg);
  border: none;
  border-radius: 0;
  box-shadow: none;
  margin-bottom: 24px;
  overflow: hidden;
}

.card-title {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px;
  font-size: 17px; font-weight: 700;
  border-bottom: 1px solid var(--border);
  background: #fafbfe;
  position: relative;
}
.card-title .bar {
  width: 4px; height: 18px; background: var(--primary); border-radius: 2px;
}
.result-count { margin-left: auto; font-size: 13px; color: var(--muted); font-weight: 500; }

.card-body { padding: 90px 64px 80px;height: 70vh; }

.form-row {
  display: flex; align-items: center; gap: 26px;
  margin-bottom: 32px;
  justify-content: center;
}
.form-label {
  width: 150px; flex-shrink: 0; text-align: right;
  font-weight: 600; font-size: 16px; line-height: 1.3;
}
.form-label small { color: var(--muted); font-weight: 400; font-size: 12px; }
.form-label .req { color: var(--accent); font-style: normal; margin-right: 2px; }

.form-control { flex: 0 1 620px; }
.form-control input[type="text"],
.form-control select {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 15px;
  background: #f3f8ff;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.form-control input:focus,
.form-control select:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.18);
}

.tip {
  text-align: center; color: var(--accent);
  font-size: 14px; margin: 26px 0 32px;
}

.btn-row { justify-content: center; margin-top: 38px; margin-bottom: 0; }
.btn-search {
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  color: #fff; border: none;
  padding: 13px 54px; font-size: 17px; font-weight: 600; letter-spacing: 1px;
  border-radius: 6px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: transform 0.1s, box-shadow 0.2s;
  box-shadow: 0 4px 12px rgba(0, 174, 239, 0.35);
}
.btn-search:hover { box-shadow: 0 6px 18px rgba(0, 174, 239, 0.45); }
.btn-search:active { transform: translateY(1px); }
.btn-search:disabled { opacity: 0.6; cursor: not-allowed; }

/* CSS-only search icon (no emoji) */
.btn-search .ico {
  position: relative;
  width: 14px;
  height: 14px;
  border: 2px solid #fff;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.btn-search .ico::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 7px;
  background: #fff;
  border-radius: 1px;
  right: -4px;
  bottom: -5px;
  transform: rotate(-45deg);
}

.message {
  margin-top: 8px; padding: 10px 14px; border-radius: 6px;
  font-size: 14px; text-align: center;
}
.message.error { background: #fdecec; color: var(--accent); border: 1px solid #f7c6c6; }
.message.info { background: #e8f7fd; color: var(--primary-dark); border: 1px solid #b8e6f7; }

/* ---------- Result view ---------- */
.result-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 24px;
}
.btn-tool {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  transition: background 0.15s, box-shadow 0.2s, transform 0.1s;
}
.btn-tool:hover { background: #f2f6fb; }
.btn-tool:active { transform: translateY(1px); }
.btn-tool-primary {
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  color: #fff;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 174, 239, 0.35);
}
.btn-tool-primary:hover { background: linear-gradient(90deg, var(--primary), var(--primary-dark)); box-shadow: 0 6px 18px rgba(0, 174, 239, 0.45); }
.btn-tool:disabled { opacity: 0.6; cursor: not-allowed; }
.pdf-ico {
  width: 13px; height: 15px;
  border: 2px solid currentColor;
  border-radius: 2px;
  position: relative;
  flex-shrink: 0;
}
.pdf-ico::after {
  content: "";
  position: absolute;
  left: 50%; top: 55%;
  width: 5px; height: 5px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translate(-50%, -50%) rotate(45deg);
}

.result-capture { background: #fff; padding: 8px 4px 4px; }
.result-heading {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 24px;
  letter-spacing: 1px;
}

.table-wrap { overflow-x: auto; }
.result-table {
  width: 100%; border-collapse: collapse; font-size: 14px;
  min-width: 900px;
}
.result-table th, .result-table td {
  border: 1px solid var(--border);
  padding: 12px 12px; text-align: center;
  vertical-align: middle;
}
.result-table thead th {
  background: #e8f7fd; color: var(--text); font-weight: 600;
}
.result-table thead small { color: var(--muted); font-weight: 400; }
.result-table tbody tr:nth-child(even) { background: #fafbfe; }
.result-table tbody tr:hover { background: #eef9fe; }

.empty-result {
  text-align: center; color: var(--muted);
  padding: 40px 0; font-size: 15px;
}

.result-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}
.result-url { color: var(--primary-dark); text-decoration: none; }
.result-url:hover { text-decoration: underline; }

.site-footer {
  text-align: center; color: var(--muted);
  font-size: 13px; padding: 24px 0 32px;
}

@media (max-width: 720px) {
  .site-title { font-size: 19px; letter-spacing: 1px; }
  .card-body { padding: 28px 18px; }
  .form-row { flex-direction: column; gap: 6px; align-items: stretch; }
  .form-label { text-align: left; width: auto; }
  .form-control { flex: 1 1 auto; }
  .btn-search { width: 100%; justify-content: center; }
  .result-heading { font-size: 18px; }
  .result-footer { flex-direction: column; align-items: flex-start; }
}
