/* 外汇 / 出口退税查询页共用样式 */
.query-tool-page {
  padding-bottom: 4rem;
}
.query-hero {
  background: linear-gradient(135deg, #1f73e5 0%, #252758 100%);
  border-radius: 16px;
  padding: 2rem 2.25rem;
  color: #fff;
  box-shadow: 0 12px 40px rgba(31, 115, 229, 0.25);
  margin-bottom: 1.75rem;
}
.query-hero h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
}
.query-hero p {
  margin: 0;
  opacity: 0.88;
  font-size: 0.9375rem;
}
.query-panel {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(37, 39, 88, 0.08);
  border: 1px solid rgba(31, 115, 229, 0.08);
  overflow: hidden;
}
.query-filter {
  padding: 1.25rem 1.5rem;
  background: linear-gradient(180deg, #f8faff 0%, #fff 100%);
  border-bottom: 1px solid #eef2f8;
}
.query-filter .form-label {
  font-weight: 600;
  color: #252758;
  font-size: 0.875rem;
  margin-bottom: 0.35rem;
}
.query-filter .form-control {
  border-radius: 10px;
  border-color: #dce4f0;
  height: calc(1.5em + 0.85rem + 2px);
}
.query-filter .form-control:focus {
  border-color: #1f73e5;
  box-shadow: 0 0 0 0.2rem rgba(31, 115, 229, 0.15);
}
.btn-query {
  background: linear-gradient(135deg, #1f73e5, #1557b0);
  border: none;
  border-radius: 10px;
  padding: 0.5rem 1.75rem;
  font-weight: 600;
  color: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-query:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(31, 115, 229, 0.35);
}
.btn-query:disabled {
  opacity: 0.65;
  transform: none;
}
.query-meta {
  font-size: 0.8125rem;
  color: #6c757d;
  padding: 0.75rem 1.5rem;
  background: #fafbfc;
  border-bottom: 1px solid #eef2f8;
}
.query-meta strong {
  color: #1f73e5;
}
.query-empty,
.query-error {
  text-align: center;
  padding: 3.5rem 1.5rem;
  color: #6c757d;
}
.query-empty i,
.query-error i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  opacity: 0.35;
}
.query-error {
  color: #c0392b;
}
.query-error i {
  opacity: 0.6;
  color: #c0392b;
}

/* 外汇滚动列表 */
.forex-table-head {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr 1.2fr;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  background: #252758;
  color: #fff;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
}
.forex-scroll-wrap {
  position: relative;
  height: 420px;
  overflow: hidden;
  background: #fff;
}
.forex-scroll-wrap::before,
.forex-scroll-wrap::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 48px;
  z-index: 2;
  pointer-events: none;
}
.forex-scroll-wrap::before {
  top: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), transparent);
}
.forex-scroll-wrap::after {
  bottom: 0;
  background: linear-gradient(0deg, rgba(255, 255, 255, 0.95), transparent);
}
.forex-scroll-track {
  will-change: transform;
}
.forex-scroll-track.is-scrolling {
  animation: forexMarquee var(--scroll-duration, 40s) linear infinite;
}
.forex-scroll-wrap:hover .forex-scroll-track.is-scrolling {
  animation-play-state: paused;
}
@keyframes forexMarquee {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}
.forex-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr 1.2fr;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid #f0f3f8;
  font-size: 0.9375rem;
  transition: background 0.2s ease;
}
.forex-row:nth-child(even) {
  background: #fafcff;
}
.forex-row:hover {
  background: rgba(31, 115, 229, 0.06);
}
.forex-row .amount {
  font-weight: 700;
  color: #1f73e5;
  font-variant-numeric: tabular-nums;
}
.forex-row .currency {
  color: #252758;
  font-weight: 500;
}

/* 出口退税表格 */
.rebate-table-wrap {
  overflow-x: auto;
}
.rebate-table {
  width: 100%;
  margin: 0;
  font-size: 0.875rem;
}
.rebate-table thead th {
  background: #252758;
  color: #fff;
  border: none;
  white-space: nowrap;
  padding: 0.85rem 1rem;
  font-weight: 600;
  vertical-align: middle;
}
.rebate-table tbody td {
  padding: 0.75rem 1rem;
  vertical-align: middle;
  border-color: #eef2f8;
  color: #252758;
}
.rebate-table tbody tr {
  transition: background 0.2s ease;
}
.rebate-table tbody tr:nth-child(even) {
  background: #fafcff;
}
.rebate-table tbody tr:hover {
  background: rgba(31, 115, 229, 0.06);
}
.badge-rate {
  display: inline-block;
  min-width: 3rem;
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  background: rgba(31, 115, 229, 0.12);
  color: #1f73e5;
  font-weight: 700;
}
.badge-rate.is-zero {
  background: rgba(108, 117, 125, 0.12);
  color: #6c757d;
}
.badge-special {
  font-size: 0.75rem;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  background: #fff3cd;
  color: #856404;
}
.rebate-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid #eef2f8;
  background: #fafbfc;
}
.rebate-footer .pagination {
  margin: 0;
}
.rebate-footer .page-link {
  border-radius: 8px;
  margin: 0 2px;
  color: #252758;
  border-color: #dce4f0;
}
.rebate-footer .page-item.active .page-link {
  background: #1f73e5;
  border-color: #1f73e5;
}
.spinner-query {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 0.35rem;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@media (max-width: 767px) {
  .forex-table-head,
  .forex-row {
    grid-template-columns: 1fr 1fr;
    font-size: 0.8125rem;
  }
  .forex-table-head span:nth-child(3),
  .forex-table-head span:nth-child(4),
  .forex-row span:nth-child(3),
  .forex-row span:nth-child(4) {
    display: none;
  }
  .query-hero {
    padding: 1.5rem;
  }
}
