:root {
  --primary: #1a5cff;
  --primary-dark: #0f46c9;
  --primary-light: #eaf0ff;
  --green: #16a34a;
  --green-light: #e8f7ee;
  --orange: #d97706;
  --orange-light: #fdf3e3;
  --red: #dc2626;
  --red-light: #fdecec;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 36px rgba(15, 23, 42, 0.14);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  background: var(--gray-50);
  color: var(--gray-800);
  line-height: 1.6;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ------------------------- 顶部导航 ------------------------- */
.site-header {
  background: linear-gradient(135deg, #0f46c9 0%, #1a5cff 55%, #3b82f6 100%);
  color: #fff;
  padding: 0 24px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 12px rgba(15, 70, 201, 0.25);
  flex-shrink: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 1px;
}

.brand .logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.site-header .nav-link {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.site-header .nav-link:hover {
  background: rgba(255, 255, 255, 0.15);
  text-decoration: none;
}

/* ------------------------- 主区域 ------------------------- */
.main {
  flex: 1;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 36px 20px 60px;
}

.hero {
  text-align: center;
  margin-bottom: 30px;
}

.hero h1 {
  font-size: 30px;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.hero p {
  color: var(--gray-500);
  font-size: 15px;
}

.query-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  max-width: 760px;
  margin: 0 auto 24px;
}

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

.query-input-row input,
.query-input-row textarea {
  flex: 1;
  padding: 14px 16px;
  font-size: 17px;
  border: 2px solid var(--gray-200);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
  letter-spacing: 1px;
}

.query-input-row input:focus,
.query-input-row textarea:focus {
  border-color: var(--primary);
}

.query-input-row textarea {
  min-height: 140px;
  resize: vertical;
  font-size: 15px;
  letter-spacing: 1px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  cursor: pointer;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  padding: 11px 20px;
  transition: all 0.15s;
  font-weight: 600;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover:not(:disabled) { background: var(--primary-dark); }

.btn-outline {
  background: #fff;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-outline:hover:not(:disabled) { background: var(--primary-light); }

.btn-danger-outline {
  background: #fff;
  color: var(--red);
  border: 1.5px solid var(--red);
}
.btn-danger-outline:hover:not(:disabled) { background: var(--red-light); }

.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }

.mode-switch {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 16px;
}

.mode-switch button {
  border: none;
  background: var(--gray-100);
  color: var(--gray-500);
  padding: 8px 18px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
}

.mode-switch button.active {
  background: var(--primary);
  color: #fff;
}

/* ------------------------- 查询结果 ------------------------- */
.result {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 760px;
  margin: 0 auto 24px;
  overflow: hidden;
}

.result-head {
  padding: 26px;
  text-align: center;
}

.result-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.result-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}

.result-sub {
  font-size: 14px;
  color: var(--gray-500);
}

.result.authentic .result-icon { background: var(--green-light); }
.result.authentic .result-title { color: var(--green); }
.result.suspect .result-icon { background: var(--orange-light); }
.result.suspect .result-title { color: var(--orange); }
.result.invalid .result-icon { background: var(--red-light); }
.result.invalid .result-title { color: var(--red); }

.count-banner {
  background: var(--primary-light);
  border-top: 1px solid #dbe5ff;
  padding: 16px 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 15px;
  color: var(--primary-dark);
}

.count-banner strong {
  font-size: 30px;
  color: var(--primary);
}

.result-detail {
  padding: 22px 26px;
  border-top: 1px solid var(--gray-100);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.detail-item .label {
  font-size: 12px;
  color: var(--gray-400);
  margin-bottom: 2px;
}

.detail-item .value {
  font-size: 15px;
  color: var(--gray-800);
  font-weight: 600;
  word-break: break-all;
}

.notice {
  padding: 12px 26px;
  border-top: 1px solid var(--gray-100);
  font-size: 13px;
  color: var(--gray-500);
  text-align: center;
}

/* 批量查询表格 */
.table-wrap {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 900px;
  margin: 0 auto 24px;
  overflow: hidden;
}

.table-wrap h3 {
  padding: 18px 24px;
  font-size: 16px;
  border-bottom: 1px solid var(--gray-100);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th, td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--gray-100);
}

th {
  background: var(--gray-50);
  color: var(--gray-500);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

td { color: var(--gray-800); }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.badge-green { background: var(--green-light); color: var(--green); }
.badge-orange { background: var(--orange-light); color: var(--orange); }
.badge-red { background: var(--red-light); color: var(--red); }
.badge-blue { background: var(--primary-light); color: var(--primary-dark); }
.badge-gray { background: var(--gray-100); color: var(--gray-500); }

.site-footer {
  background: #fff;
  border-top: 1px solid var(--gray-200);
  padding: 18px 24px;
  text-align: center;
  color: var(--gray-500);
  font-size: 13px;
  flex-shrink: 0;
}

.site-footer strong { color: var(--primary); font-size: 15px; }

/* ------------------------- 后台布局 ------------------------- */
.admin-body {
  background: var(--gray-100);
  display: block;
}

.admin-layout {
  display: flex;
  min-height: calc(100vh - 62px);
}

.sidebar {
  width: 220px;
  background: #fff;
  border-right: 1px solid var(--gray-200);
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.sidebar .menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 10px;
  color: var(--gray-600);
  cursor: pointer;
  font-size: 14.5px;
  margin-bottom: 4px;
  font-weight: 500;
  border: none;
  background: none;
  width: 100%;
  font-family: inherit;
  text-align: left;
}

.sidebar .menu-item:hover { background: var(--gray-100); }
.sidebar .menu-item.active {
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 700;
}

.sidebar .user-box {
  margin-top: auto;
  padding: 14px;
  border-top: 1px solid var(--gray-100);
  font-size: 13px;
  color: var(--gray-500);
}

.sidebar .user-box .name { color: var(--gray-800); font-weight: 700; font-size: 14px; }

.admin-main {
  flex: 1;
  padding: 26px 30px;
  min-width: 0;
}

.page-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.page-desc { color: var(--gray-500); font-size: 13px; margin-bottom: 20px; }

.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  margin-bottom: 22px;
}

.card h3 {
  font-size: 16px;
  margin-bottom: 16px;
  color: var(--gray-900);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.stat-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  border-left: 4px solid var(--primary);
}

.stat-card .num {
  font-size: 28px;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.2;
}

.stat-card .lbl {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 4px;
}

.stat-card.blue { border-left-color: var(--primary); }
.stat-card.green { border-left-color: var(--green); }
.stat-card.orange { border-left-color: var(--orange); }
.stat-card.red { border-left-color: var(--red); }

/* ------------------------- 表单 ------------------------- */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.form-group { margin-bottom: 14px; }

.form-group label {
  display: block;
  font-size: 13px;
  color: var(--gray-600);
  margin-bottom: 6px;
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--gray-200);
  border-radius: 9px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  background: #fff;
  color: var(--gray-800);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--primary); }

.form-hint { font-size: 12px; color: var(--gray-400); margin-top: 4px; }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}

.toolbar input {
  padding: 9px 12px;
  border: 1.5px solid var(--gray-200);
  border-radius: 9px;
  font-size: 14px;
  outline: none;
  min-width: 240px;
}

.toolbar input:focus { border-color: var(--primary); }

/* ------------------------- 模态框 ------------------------- */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
  z-index: 100;
  overflow-y: auto;
}

.modal-mask.show { display: flex; }

.modal {
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 860px;
  padding: 24px;
  animation: slideIn 0.18s ease-out;
}

.modal.small { max-width: 460px; }

@keyframes slideIn {
  from { transform: translateY(14px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

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

.modal-head h3 { font-size: 17px; color: var(--gray-900); }

.modal-close {
  border: none;
  background: var(--gray-100);
  width: 30px;
  height: 30px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  color: var(--gray-500);
}

.modal-close:hover { background: var(--gray-200); }

.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

/* ------------------------- 提示 ------------------------- */
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-80px);
  background: var(--gray-900);
  color: #fff;
  padding: 11px 22px;
  border-radius: 10px;
  font-size: 14px;
  z-index: 200;
  transition: transform 0.25s;
  box-shadow: var(--shadow-lg);
  max-width: 80vw;
}

.toast.show { transform: translateX(-50%) translateY(0); }
.toast.success { background: var(--green); }
.toast.error { background: var(--red); }

.empty {
  text-align: center;
  color: var(--gray-400);
  padding: 36px 0;
  font-size: 14px;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  font-size: 13px;
  color: var(--gray-500);
}

/* 登录页 */
.login-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 16px;
}

.login-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 34px;
  width: 100%;
  max-width: 400px;
}

.login-card h1 {
  font-size: 22px;
  text-align: center;
  margin-bottom: 6px;
  color: var(--gray-900);
}

.login-card .sub {
  text-align: center;
  color: var(--gray-500);
  font-size: 13px;
  margin-bottom: 24px;
}

.error-text {
  color: var(--red);
  font-size: 13px;
  margin-top: 10px;
  text-align: center;
  min-height: 18px;
}

.hidden { display: none !important; }

.actions-cell { white-space: nowrap; }
.actions-cell .btn { margin-right: 6px; }
.actions-cell .btn:last-child { margin-right: 0; }

@media (max-width: 768px) {
  .sidebar { width: 62px; padding: 12px 6px; }
  .sidebar .menu-item span.menu-text { display: none; }
  .sidebar .menu-item { justify-content: center; padding: 12px; }
  .admin-main { padding: 18px 14px; }
  .query-input-row { flex-direction: column; }
  .hero h1 { font-size: 24px; }
  .table-wrap { overflow-x: auto; }
  .modal-mask { padding: 20px 10px; }
}

/* ==================================================================
 * 前台查询页美化（作用域限定在 body.front-page，不影响后台）
 * ================================================================== */

body.front-page {
  background:
    radial-gradient(800px 420px at 12% -8%, rgba(26, 92, 255, 0.14), transparent 60%),
    radial-gradient(700px 380px at 92% 4%, rgba(59, 130, 246, 0.16), transparent 62%),
    radial-gradient(560px 420px at 50% 110%, rgba(14, 165, 233, 0.10), transparent 60%),
    linear-gradient(180deg, #f6f9ff 0%, #eef4ff 42%, #f7fafd 100%);
  background-attachment: fixed;
}

.front-page .site-header {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--gray-900);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 1px 18px rgba(15, 70, 201, 0.06);
  height: 64px;
}

.front-page .brand .logo {
  background: linear-gradient(135deg, #1a5cff, #3b82f6);
  box-shadow: 0 6px 14px rgba(26, 92, 255, 0.35);
}

.front-page .header-nav {
  display: flex;
  gap: 10px;
}

.front-page .nav-link {
  color: var(--gray-600);
  border: 1px solid transparent;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 10px;
  transition: all 0.18s;
}

.front-page .nav-link:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
  text-decoration: none;
}

.front-page .nav-link.solid {
  background: #fff;
  border-color: var(--gray-200);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.front-page .nav-link.solid:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.front-main {
  max-width: 860px;
  padding-top: 46px;
}

/* ------------------------- 品牌区 ------------------------- */
.front-hero {
  text-align: center;
  margin-bottom: 28px;
  animation: fadeUp 0.6s ease-out both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(26, 92, 255, 0.18);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(26, 92, 255, 0.10);
  margin-bottom: 18px;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55);
  animation: pulse 2s infinite;
}

.front-hero h1 {
  font-size: 40px;
  line-height: 1.25;
  color: var(--gray-900);
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.front-hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, #1a5cff, #0ea5e9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  color: var(--gray-500);
  font-size: 16px;
  margin-bottom: 18px;
}

.trust-chips {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  color: var(--gray-600);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--gray-200);
  padding: 6px 13px;
  border-radius: 999px;
}

.chip::first-letter {
  color: var(--green);
  font-weight: 700;
}

/* ------------------------- 查询卡片 ------------------------- */
.front-query-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 48px rgba(26, 92, 255, 0.14), 0 4px 14px rgba(15, 23, 42, 0.05);
  border-radius: 18px;
  padding: 26px 28px 24px;
  margin-bottom: 30px;
  animation: fadeUp 0.6s 0.08s ease-out both;
}

.seg {
  background: var(--gray-100);
  border-radius: 12px;
  padding: 4px;
  display: inline-flex;
  margin-bottom: 18px;
}

.seg button {
  border: none;
  background: transparent;
  color: var(--gray-500);
  padding: 8px 22px;
  border-radius: 9px;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  font-weight: 600;
  transition: all 0.18s;
}

.seg button.active {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.10);
}

.front-input-row {
  gap: 12px;
}

.input-shell {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
  border-radius: 13px;
  padding: 0 14px;
  transition: all 0.2s;
}

.input-shell:focus-within {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(26, 92, 255, 0.10);
}

.input-icon {
  color: var(--gray-400);
  display: inline-flex;
  flex-shrink: 0;
}

.input-shell input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 15px 0;
  font-size: 17px;
  letter-spacing: 1.5px;
  outline: none;
  font-family: Consolas, "Courier New", monospace;
  color: var(--gray-900);
  min-width: 0;
}

.input-shell input::placeholder {
  letter-spacing: 0.5px;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--gray-400);
}

.input-tip {
  font-size: 12px;
  color: var(--gray-400);
  background: var(--gray-100);
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-query {
  padding: 0 30px;
  height: 54px;
  border-radius: 13px;
  font-size: 16px;
  background: linear-gradient(135deg, #1a5cff, #3b82f6);
  box-shadow: 0 8px 20px rgba(26, 92, 255, 0.32);
  white-space: nowrap;
}

.btn-query:hover:not(:disabled) {
  background: linear-gradient(135deg, #0f46c9, #1a5cff);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(26, 92, 255, 0.38);
}

.input-help {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--gray-400);
  text-align: center;
}

.batch-actions {
  text-align: center;
  margin-top: 16px;
}

.front-query-card textarea {
  width: 100%;
  min-height: 130px;
  resize: vertical;
  border: 2px solid var(--gray-200);
  border-radius: 13px;
  padding: 14px 16px;
  font-size: 15px;
  font-family: Consolas, "Courier New", monospace;
  letter-spacing: 1px;
  outline: none;
  background: var(--gray-50);
  transition: all 0.2s;
}

.front-query-card textarea:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(26, 92, 255, 0.10);
}

/* ------------------------- 查询结果 ------------------------- */
.front-page .result {
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.10);
  overflow: hidden;
  margin-bottom: 30px;
  animation: fadeUp 0.45s ease-out both;
  position: relative;
}

.front-page .result::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--gray-200);
}

.front-page .result.authentic::before { background: linear-gradient(90deg, #16a34a, #4ade80); }
.front-page .result.suspect::before { background: linear-gradient(90deg, #d97706, #fbbf24); }
.front-page .result.invalid::before { background: linear-gradient(90deg, #dc2626, #f87171); }

.front-page .result-head {
  padding: 34px 26px 22px;
  text-align: center;
}

.front-page .result-icon {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.10);
  animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.front-page .result.authentic .result-icon {
  background: var(--green-light);
  color: var(--green);
  box-shadow: 0 10px 26px rgba(22, 163, 74, 0.22);
}

.front-page .result.suspect .result-icon {
  background: var(--orange-light);
  color: var(--orange);
  box-shadow: 0 10px 26px rgba(217, 119, 6, 0.22);
}

.front-page .result.invalid .result-icon {
  background: var(--red-light);
  color: var(--red);
  box-shadow: 0 10px 26px rgba(220, 38, 38, 0.20);
}

.front-page .result-title {
  font-size: 25px;
  margin-bottom: 8px;
}

.front-page .result-sub {
  font-size: 14px;
}

/* 查询次数面板 */
.count-panel {
  background: linear-gradient(180deg, #f8faff, #f1f5ff);
  border-top: 1px solid #e6ecff;
  padding: 22px 26px 24px;
  text-align: center;
}

.count-panel .count-label {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 4px;
}

.count-panel .count-num {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.1;
  background: linear-gradient(135deg, #1a5cff, #3b82f6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.count-panel .count-unit {
  font-size: 15px;
  color: var(--gray-500);
  margin-top: 2px;
}

.count-meter {
  max-width: 340px;
  height: 8px;
  border-radius: 999px;
  background: #e2e8f0;
  margin: 16px auto 0;
  overflow: hidden;
}

.count-meter span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #3b82f6, #1a5cff);
  transition: width 0.8s ease-out;
}

.count-meter.warn span {
  background: linear-gradient(90deg, #fbbf24, #d97706);
}

.front-page .result-detail {
  padding: 22px 26px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.front-page .detail-item .label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.front-page .notice {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-100);
  color: var(--gray-500);
}

/* ------------------------- 三步验证 ------------------------- */
.steps {
  text-align: center;
  margin: 8px 0 30px;
  animation: fadeUp 0.6s 0.16s ease-out both;
}

.steps h2 {
  font-size: 22px;
  color: var(--gray-900);
  margin-bottom: 22px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.step-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 16px;
  padding: 24px 18px 20px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

.step-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(26, 92, 255, 0.12);
}

.step-num {
  display: inline-flex;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a5cff, #3b82f6);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 12px;
  box-shadow: 0 6px 14px rgba(26, 92, 255, 0.28);
}

.step-card h3 {
  font-size: 15px;
  color: var(--gray-900);
  margin-bottom: 6px;
}

.step-card p {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ------------------------- 小贴士 ------------------------- */
.tips-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-left: 4px solid var(--primary);
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 34px;
  animation: fadeUp 0.6s 0.22s ease-out both;
}

.tips-card h3 {
  font-size: 15px;
  color: var(--gray-900);
  margin-bottom: 10px;
}

.tips-card ul {
  list-style: none;
}

.tips-card li {
  font-size: 13.5px;
  color: var(--gray-600);
  padding: 4px 0;
  position: relative;
  padding-left: 18px;
}

.tips-card li::before {
  content: '›';
  position: absolute;
  left: 2px;
  color: var(--primary);
  font-weight: 700;
}

.tips-card b {
  color: var(--gray-800);
}

/* ------------------------- 页脚 ------------------------- */
.front-footer {
  background: rgba(255, 255, 255, 0.75);
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.front-footer .footer-brand {
  font-weight: 700;
  color: var(--gray-800);
}

.front-footer .footer-stat strong {
  color: var(--primary);
  font-size: 16px;
}

.front-footer .footer-note {
  color: var(--gray-400);
  font-size: 12px;
}

/* ------------------------- 动效 ------------------------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.55); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  70% { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

@media (max-width: 768px) {
  .front-main { padding-top: 28px; }
  .front-hero h1 { font-size: 28px; }
  .front-input-row { flex-direction: column; }
  .btn-query { width: 100%; height: 50px; }
  .steps-grid { grid-template-columns: 1fr; }
  .front-query-card { padding: 20px 16px; }
  .front-page .count-num { font-size: 36px; }
}

/* ==================================================================
 * 查询系统首页美化 · 第二版：动态装饰与防伪体系
 * ================================================================== */

/* ---------- 主视觉：漂浮光球 ---------- */
.front-hero {
  position: relative;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(46px);
  opacity: 0.55;
  pointer-events: none;
  z-index: -1;
}

.orb-a {
  width: 220px;
  height: 220px;
  top: -70px;
  left: -40px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.5), transparent 70%);
  animation: floatA 9s ease-in-out infinite;
}

.orb-b {
  width: 260px;
  height: 260px;
  bottom: -90px;
  right: -60px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.45), transparent 70%);
  animation: floatB 11s ease-in-out infinite;
}

.orb-c {
  width: 130px;
  height: 130px;
  top: 18px;
  right: 22%;
  background: radial-gradient(circle, rgba(233, 179, 95, 0.4), transparent 70%);
  animation: floatA 7s ease-in-out infinite reverse;
}

@keyframes floatA {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(24px, 18px) scale(1.08); }
}

@keyframes floatB {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-20px, -16px) scale(1.05); }
}

/* ---------- 防伪保障体系 ---------- */
.sys-features {
  text-align: center;
  margin: 10px 0 30px;
  animation: fadeUp 0.6s 0.18s ease-out both;
}

.features-head {
  margin-bottom: 24px;
}

.eyebrow-f {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--primary);
  background: var(--primary-light);
  padding: 5px 16px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.features-head h2 {
  font-size: 23px;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.features-head p {
  font-size: 14px;
  color: var(--gray-500);
}

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

.sys-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 16px;
  padding: 26px 20px 22px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s;
}

.sys-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 34px rgba(26, 92, 255, 0.13);
  border-color: rgba(26, 92, 255, 0.3);
}

.sys-icon {
  display: inline-flex;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  align-items: center;
  justify-content: center;
  font-size: 25px;
  background: linear-gradient(135deg, var(--primary-light), #dbe7ff);
  margin-bottom: 14px;
  box-shadow: 0 6px 14px rgba(26, 92, 255, 0.12);
}

.sys-card h3 {
  font-size: 15.5px;
  color: var(--gray-900);
  margin-bottom: 7px;
}

.sys-card p {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.65;
}

/* ---------- 企业引导条 ---------- */
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(120deg, #0f46c9, #1a5cff 60%, #3b82f6);
  border-radius: 18px;
  padding: 30px 34px;
  margin-bottom: 30px;
  color: #fff;
  box-shadow: 0 16px 40px rgba(26, 92, 255, 0.26);
  animation: fadeUp 0.6s 0.22s ease-out both;
  position: relative;
  overflow: hidden;
}

.cta-band::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 70%);
  pointer-events: none;
}

.cta-text h2 {
  font-size: 19px;
  margin-bottom: 7px;
}

.cta-text p {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.88);
}

.btn-cta {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.2);
  white-space: nowrap;
  flex: none;
}

.btn-cta:hover:not(:disabled) {
  background: #f0f4ff;
  color: var(--primary-dark);
  transform: translateY(-1px);
}

/* ---------- 正品验证印章 ---------- */
.front-page .result {
  position: relative;
}

.seal {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--green);
  animation: sealIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.25s both;
  z-index: 2;
}

.seal::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px dashed rgba(22, 163, 74, 0.7);
  animation: sealSpin 14s linear infinite;
}

.seal::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(22, 163, 74, 0.12), rgba(22, 163, 74, 0.04) 70%);
}

.seal span,
.seal b {
  position: relative;
  z-index: 1;
  font-style: normal;
}

.seal span {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 3px;
  line-height: 1.1;
}

.seal b {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  opacity: 0.75;
}

@keyframes sealIn {
  from { opacity: 0; transform: scale(0.4) rotate(-20deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}

@keyframes sealSpin {
  from { transform: rotate(0); }
  to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
  .sys-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-band { flex-direction: column; text-align: center; padding: 24px 20px; }
  .seal { width: 62px; height: 62px; top: 12px; right: 12px; }
  .seal span { font-size: 13px; }
}

@media (max-width: 440px) {
  .sys-grid { grid-template-columns: 1fr; }
}
