/* ===========================================
   查询系统 · 前台 H5 样式
   =========================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f5f7fa;
  color: #1f2937;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }

/* 顶部 */
.topbar {
  background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
  padding: 16px 14px;
  color: #fff;
  position: relative;
}
.topbar .topbar-right { position: absolute; right: 12px; top: 16px; display: flex; gap: 10px; align-items: center; }
.topbar .topbar-link { font-size: 13px; color: #fff; text-decoration: none; font-weight: 500; opacity: .95; }
.topbar .topbar-link:hover { opacity: .75; }
.topbar .site-name { font-size: 18px; font-weight: 700; padding-right: 8px; }
.topbar .site-logo { display: block; max-height: 40px; margin-bottom: 8px; }

/* 公告条（独立于顶栏，不与其他内容重叠） */
.notice {
  max-width: 1080px; margin: 12px auto 0; padding: 10px 14px;
  font-size: 12px; line-height: 1.6;
  color: #1e40af; background: #dbeafe; border: 1px solid #bfdbfe; border-radius: 10px;
}

/* 首页居中标题区 */
.hero { text-align: center; padding: 24px 16px 4px; }
.hero-title { font-size: 24px; font-weight: 800; color: #1f2937; letter-spacing: 1px; }
.hero-sub { font-size: 13px; color: #6b7280; margin-top: 8px; }

/* 内容容器（普通文档流，不做负边距叠卡，避免文字被遮盖） */
.container { max-width: 1080px; margin: 0 auto; padding: 12px 14px; }
.project-card {
  background: #fff; border-radius: 14px; padding: 16px;
  margin-bottom: 12px; box-shadow: 0 2px 10px rgba(0,0,0,.06);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.project-card .p-info { flex: 1; min-width: 0; }
.project-card .p-name { font-size: 16px; font-weight: 600; }
.project-card .p-id {
  display: inline-block; background: #eff6ff; color: #2563eb;
  border-radius: 6px; padding: 1px 7px; font-size: 12px; font-weight: 600;
  margin-right: 4px; vertical-align: 1px;
}
.project-card .p-desc {
  font-size: 12px; color: #6b7280; margin-top: 4px;
  overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.project-card .p-price { color: #ef4444; font-weight: 700; font-size: 17px; white-space: nowrap; }
.project-card .p-price small { font-size: 12px; font-weight: 400; color: #9ca3af; }
.project-card .p-btn {
  background: linear-gradient(135deg, #2563eb, #0ea5e9); color: #fff;
  border-radius: 20px; padding: 8px 18px; font-size: 13px; white-space: nowrap; border: none;
}

/* 通用面板 */
.panel {
  background: #fff; border-radius: 14px; padding: 18px 16px; margin-bottom: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.panel-title { font-size: 15px; font-weight: 600; margin-bottom: 14px; }

/* 表单 */
.form-item { margin-bottom: 16px; }
.form-item label { display: block; font-size: 13px; color: #374151; margin-bottom: 6px; font-weight: 500; }
.form-item label .req { color: #ef4444; margin-left: 2px; }
.form-item input {
  width: 100%; height: 44px; border: 1px solid #e5e7eb; border-radius: 10px;
  padding: 0 12px; font-size: 15px; outline: none; background: #f9fafb;
}
.form-item input:focus { border-color: #2563eb; background: #fff; }
.form-item .tip { font-size: 11px; color: #9ca3af; margin-top: 4px; }

/* 提交/操作按钮 */
.btn {
  display: block; width: 100%; height: 48px; border: none; border-radius: 24px;
  font-size: 16px; font-weight: 600; color: #fff; cursor: pointer;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
}
.btn:disabled { opacity: .6; }
.btn.ghost { background: #eef2ff; color: #2563eb; }
.btn.red { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.btn.green { background: linear-gradient(135deg, #10b981, #059669); }

/* 支付方式 */
.pay-methods { display: flex; flex-direction: column; gap: 10px; }
.pay-method {
  display: flex; align-items: center; gap: 12px; border: 1.5px solid #e5e7eb;
  border-radius: 12px; padding: 14px; cursor: pointer; background: #fff;
}
.pay-method.active { border-color: #2563eb; background: #eff6ff; }
.pay-method .pm-icon {
  width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center;
  justify-content: center; font-size: 12px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.pm-wechat { background: #07c160; }
.pm-alipay { background: #1677ff; }
.pay-method .pm-name { flex: 1; font-size: 15px; font-weight: 500; }
.pay-method .pm-desc { font-size: 11px; color: #9ca3af; margin-top: 2px; }
.pay-method .pm-radio {
  width: 20px; height: 20px; border-radius: 50%; border: 2px solid #d1d5db; position: relative;
}
.pay-method.active .pm-radio { border-color: #2563eb; }
.pay-method.active .pm-radio::after {
  content: ''; position: absolute; inset: 3px; border-radius: 50%; background: #2563eb;
}

/* 订单信息 */
.order-info { font-size: 13px; }
.order-info .oi-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed #f0f0f0; }
.order-info .oi-row:last-child { border-bottom: none; }
.order-info .oi-row .k { color: #6b7280; }
.order-info .oi-row .v { font-weight: 500; }
.order-info .oi-price { color: #ef4444; font-size: 22px; font-weight: 700; }

/* 结果展示 */
.result-box { background: #f8fafc; border-radius: 10px; padding: 12px; overflow: auto; }
.result-box pre { font-size: 12px; line-height: 1.6; white-space: pre-wrap; word-break: break-all; color: #334155; }
.result-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.result-table th, .result-table td { border: 1px solid #e5e7eb; padding: 8px 10px; text-align: left; }
.result-table th { background: #f1f5f9; font-weight: 600; }
.empty-tip { text-align: center; color: #9ca3af; padding: 30px 0; font-size: 13px; }

/* 底部 */
.footer { text-align: center; color: #9ca3af; font-size: 11px; padding: 20px 0 30px; }

/* 弹窗 */
.mask {
  position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 100;
  display: none; align-items: center; justify-content: center;
}
.mask.show { display: flex; }
.dialog {
  width: 82%; max-width: 360px; background: #fff; border-radius: 14px; padding: 24px 20px;
  text-align: center;
}
.dialog .d-title { font-size: 16px; font-weight: 600; }
.dialog .d-msg { font-size: 13px; color: #6b7280; margin: 10px 0 18px; line-height: 1.6; word-break: break-all; }
.dialog .d-btn { width: 100%; }

.text-center { text-align: center; }
.mt10 { margin-top: 10px; } .mt20 { margin-top: 20px; }

/* ===========================================
   H5 + PC 响应式兼容（≥768px 走桌面布局）
   =========================================== */
@media (min-width: 768px) {
  .topbar { padding: 22px 32px; }
  .topbar .topbar-right { right: 32px; top: 22px; }
  .topbar .topbar-link { font-size: 15px; }
  .topbar .site-name { font-size: 26px; }

  .container { padding: 24px 28px; }
  .hero { padding: 40px 16px 8px; }
  .hero-title { font-size: 30px; }
  .hero-sub { font-size: 14px; }

  /* 首页项目卡片：多列网格 */
  .project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
  .project-card { margin-bottom: 0; padding: 20px; }
  .project-card .p-name { font-size: 17px; }
  .project-card .p-desc { font-size: 13px; }

  .panel { padding: 22px 24px; border-radius: 16px; }
  .panel-title { font-size: 16px; }

  /* 查询表单：PC 两列 */
  .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
  .form-grid .form-item { margin-bottom: 18px; }
  .form-grid .span2 { grid-column: 1 / -1; }
  .form-grid .btn { grid-column: 1 / -1; max-width: 340px; margin: 6px auto 0; }

  /* 按钮在 PC 上不强制全宽 */
  .btn { max-width: 360px; margin-left: auto; margin-right: auto; }

  .form-item input { height: 46px; font-size: 15px; }

  /* 支付方式：横向排列 */
  .pay-methods { flex-direction: row; flex-wrap: wrap; }
  .pay-method { flex: 1; min-width: 240px; }

  .footer { font-size: 12px; padding: 28px 0 42px; }
  .dialog { max-width: 420px; }
}

