:root {
  --primary: #0b62f5;
  --primary-dark: #084fc8;
  --primary-soft: #eff6ff;
  --bg: #f6f9ff;
  --card: #ffffff;
  --text: #0f2148;
  --text-secondary: #50607e;
  --muted: #8c99ad;
  --line: #e4eaf2;
  --line-dark: #d3dceb;
  --success: #17a45b;
  --success-bg: #edf9f1;
  --danger: #e74949;
  --danger-bg: #fff1f1;
  --warning-bg: #fff9eb;
  --warning-line: #f8df96;
  --shadow: 0 8px 28px rgba(54, 77, 120, .08);
  --radius: 12px;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 60% -80px, rgba(44, 113, 255, .09), transparent 340px),
    linear-gradient(180deg, #f9fbff 0%, #f5f8fe 100%);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 14px;
}

button, select, input { font: inherit; }
button { cursor: pointer; }

.page-container {
  width: min(100% - 40px, 1820px);
  margin: 0 auto;
}

.site-header {
  height: 72px;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-size: 25px;
  background: #eef5ff;
}
.brand strong { display:block; font-size:20px; }
.brand span { display:block; margin-top:3px; color:var(--text-secondary); font-size:12px; }

.main-nav { display:flex; gap:12px; }
.nav-item {
  height: 42px;
  padding: 0 20px;
  color: var(--text);
  background: white;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  font-weight: 700;
}
.nav-item-active {
  color: #fff;
  border-color: var(--primary);
  background: linear-gradient(180deg, #1371ff, #0758eb);
}
.nav-item-contact:hover, .nav-item:hover { border-color:var(--primary); color:var(--primary); }
.nav-item-active:hover { color:#fff; }

.notice-bar {
  display:flex;
  align-items:center;
  gap:10px;
  min-height: 42px;
  margin: 12px 0 14px;
  padding: 0 14px;
  border:1px solid var(--warning-line);
  border-radius:8px;
  background:var(--warning-bg);
}
.notice-text { flex:1; color:#735816; }
.notice-icon { margin-right: 2px; }
.notice-link, .notice-close {
  border:0;
  color:var(--primary);
  background:transparent;
  font-weight:700;
}
.notice-close { color:#795e1f; font-size:18px; }

.page-intro { margin: 10px 0 14px; }
.page-intro h1 { margin:0; font-size:28px; letter-spacing:-.5px; }
.page-intro p { margin:6px 0 0; color:var(--text-secondary); }

.content-layout {
  display:grid;
  grid-template-columns:minmax(0, 1fr) 300px;
  gap:16px;
  align-items:start;
}
.left-column { min-width:0; }
.right-column {
  display:flex;
  flex-direction:column;
  gap:14px;
  position:sticky;
  top:14px;
}

.card {
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:rgba(255,255,255,.98);
  box-shadow:var(--shadow);
}

.filter-card { padding:16px; margin-bottom:14px; }
.filter-grid {
  display:grid;
  grid-template-columns:repeat(5, minmax(0, 1fr));
  gap:14px 16px;
}
.field {
  display:flex;
  flex-direction:column;
  gap:7px;
}
.field span { color:var(--text); font-size:12px; font-weight:700; }
.field select, .field input, .multi-select-display {
  min-height:38px;
  width:100%;
  padding:0 10px;
  border:1px solid var(--line-dark);
  border-radius:6px;
  color:#30405e;
  outline:none;
  background:white;
}
.field select:focus, .field input:focus { border-color:var(--primary); box-shadow:0 0 0 3px rgba(11,98,245,.08); }

.multi-select-display {
  display:flex;
  align-items:center;
  gap:5px;
  overflow:hidden;
  cursor:pointer;
  position:relative;
}
.multi-select-display i {
  padding:3px 7px;
  border-radius:4px;
  color:var(--primary);
  background:#eef5ff;
  font-size:12px;
  font-style:normal;
  white-space:nowrap;
  cursor:pointer;
}
.multi-select-display b { margin-left:auto; color:#6f7d95; flex-shrink:0; }
.multi-select-display .ms-placeholder { color:var(--muted); font-size:13px; }

.filter-actions {
  grid-column: 4 / 6;
  display:flex;
  justify-content:flex-end;
  align-items:end;
  gap:14px;
}
.btn {
  min-height:40px;
  padding:0 18px;
  border-radius:7px;
  border:1px solid var(--line-dark);
  background:white;
  color:var(--text);
  font-weight:700;
}
.btn-primary {
  color:white;
  border-color:var(--primary);
  background:linear-gradient(180deg, #1270ff, #0758ec);
}
.btn-primary:hover { background:var(--primary-dark); }
.btn-outline { color:#1d3a74; border-color:#cfd9e8; }
.btn-full { width:100%; margin-top:8px; }

.product-card { overflow:hidden; }
.product-card-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:50px;
  padding:0 16px;
  border-bottom:1px solid var(--line);
}
.product-card-header h2 { display:inline; margin:0 10px 0 0; font-size:17px; }
.product-card-header span { color:var(--text-secondary); font-size:12px; }
.table-wrap { overflow:auto; }
.product-table {
  width:100%;
  min-width:1540px;
  border-collapse:collapse;
}
.product-table th {
  height:43px;
  padding:0 10px;
  color:#30405e;
  background:#f9fbfe;
  border-bottom:1px solid var(--line);
  font-size:12px;
  font-weight:700;
  text-align:left;
  white-space:nowrap;
}
.product-table td {
  min-height:54px;
  padding:10px;
  border-bottom:1px solid #edf1f6;
  color:#233655;
  font-size:13px;
  line-height:1.45;
  vertical-align:middle;
}
.product-table tr:hover td { background:#f7faff; }
.product-table tr.selected td { background:#eff6ff; }
.product-table tr.selected td:first-child { box-shadow:inset 3px 0 0 var(--primary); }
.bank-cell {
  display:flex;
  align-items:center;
  gap:8px;
  min-width:112px;
}
.bank-logo {
  width:22px;
  height:22px;
  display:grid;
  place-items:center;
  border-radius:50%;
  color:white;
  background:var(--primary);
  font-size:11px;
  font-weight:800;
  flex-shrink:0;
}
.city-cell { min-width:110px; }
.long-cell { min-width:128px; max-width:168px; }
.rate { color:var(--primary); font-weight:800; white-space:nowrap; }
.amount { color:var(--primary); font-weight:800; }
.status {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:3px 8px;
  border-radius:5px;
  font-size:12px;
  font-weight:700;
  white-space:nowrap;
}
.status.yes { color:var(--success); background:var(--success-bg); border:1px solid #c7efd4; }
.status.no { color:var(--danger); background:var(--danger-bg); border:1px solid #ffd4d4; }
.consult-mini {
  height:30px;
  padding:0 11px;
  border:1px solid var(--primary);
  border-radius:5px;
  color:var(--primary);
  background:white;
  font-size:12px;
  font-weight:700;
  white-space:nowrap;
}
.consult-mini:hover { color:white; background:var(--primary); }
.pagination {
  display:flex;
  justify-content:center;
  align-items:center;
  gap:7px;
  min-height:48px;
  color:var(--text-secondary);
  font-size:13px;
}

.side-card { padding:16px; }
.side-card h2 { margin:0 0 14px; font-size:18px; }
.detail-empty {
  min-height:180px;
  display:grid;
  place-items:center;
  align-content:center;
  gap:8px;
  color:var(--text-secondary);
  text-align:center;
}
.empty-icon { color:#ccd4df; font-size:42px; }
.detail-head {
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:8px;
}
.detail-head .bank-logo { width:34px; height:34px; font-size:15px; }
.detail-head strong { display:block; font-size:16px; }
.detail-rate { margin-top:2px; color:var(--primary); font-size:21px; font-weight:800; }
.detail-grid { margin-top:8px; }
.detail-row {
  display:grid;
  grid-template-columns:76px 1fr;
  gap:8px;
  padding:7px 0;
  border-bottom:1px dashed #dce3ed;
  font-size:12px;
  line-height:1.45;
}
.detail-row span:first-child { color:#7a879c; }
.detail-row strong { color:#243652; font-weight:600; }

.qr-code {
  display:block;
  width:170px;
  height:170px;
  margin: 0 auto;
  border:1px solid var(--line);
  object-fit:cover;
}
.qr-code.large { width:190px; height:190px; }
.qr-tip { margin:8px 0 12px; color:var(--text-secondary); font-size:12px; text-align:center; }
.contact-row {
  display:grid;
  grid-template-columns:auto 1fr auto;
  gap:8px;
  align-items:center;
  min-height:38px;
  border-bottom:1px solid var(--line);
  font-size:12px;
}
.contact-row span { color:var(--text-secondary); }
.contact-row button {
  border:0;
  color:var(--primary);
  background:transparent;
  font-size:12px;
  font-weight:700;
}

.bottom-grid {
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:14px;
  margin:16px 0 24px;
}
.info-card { min-height:128px; padding:16px; }
.info-card h3 { margin:0 0 10px; font-size:16px; }
.info-card ul, .info-card ol {
  margin:0;
  padding-left:18px;
  color:var(--text-secondary);
  font-size:12px;
  line-height:1.9;
}

.floating-contact {
  position:fixed;
  right:28px;
  bottom:24px;
  width:72px;
  height:72px;
  display:grid;
  place-items:center;
  border:3px solid #fff;
  border-radius:50%;
  color:#fff;
  background:linear-gradient(180deg, #1a7aff, #0757e4);
  box-shadow:0 12px 26px rgba(11,98,245,.25);
  font-size:12px;
  font-weight:700;
  z-index:10;
}
.floating-contact span { display:block; font-size:20px; line-height:1; }
.floating-contact b { display:block; font-size:12px; }

.modal {
  width:min(920px, calc(100vw - 32px));
  border:0;
  border-radius:14px;
  padding:0;
  box-shadow:0 26px 80px rgba(18,35,66,.22);
}
.modal::backdrop { background:rgba(15,31,60,.42); }
.modal-card { position:relative; padding:20px; background:white; }
.modal-close {
  position:absolute;
  top:10px;
  right:12px;
  border:0;
  color:#748199;
  background:transparent;
  font-size:22px;
}
.modal-grid { display:grid; grid-template-columns:minmax(0,1fr) 310px; gap:18px; }
.modal-card h2 { margin:0 0 14px; font-size:19px; }
.modal-product-detail {
  max-height:620px;
  overflow:auto;
  padding-right:8px;
}
.modal-contact {
  padding:14px;
  border-radius:10px;
  background:#f8fbff;
}
.small-modal { width:min(540px, calc(100vw - 32px)); }
.instruction-list { color:var(--text-secondary); line-height:2; }

.toast {
  position:fixed;
  left:50%;
  bottom:26px;
  transform:translate(-50%, 15px);
  min-width:220px;
  padding:12px 16px;
  border-radius:7px;
  color:white;
  background:#15223c;
  text-align:center;
  opacity:0;
  pointer-events:none;
  transition:.2s ease;
  z-index:20;
}
.toast.show { opacity:1; transform:translate(-50%, 0); }

@media (max-width: 1400px) {
  .content-layout { grid-template-columns:minmax(0,1fr) 286px; }
  .filter-grid { grid-template-columns:repeat(4, minmax(0,1fr)); }
  .filter-actions { grid-column:3 / 5; }
}

@media (max-width: 900px) {
  .page-container { width:min(100% - 20px, 760px); }
  .site-header { height:auto; padding:10px 0; }
  .header-inner { align-items:flex-start; flex-direction:column; gap:10px; }
  .main-nav { width:100%; }
  .nav-item { flex:1; padding:0 8px; }
  .page-intro h1 { font-size:23px; }
  .content-layout { display:block; }
  .right-column { position:static; margin-top:14px; }
  .detail-card { display:none; }
  .filter-grid { grid-template-columns:repeat(2, minmax(0,1fr)); }
  .filter-actions { grid-column:1 / 3; }
  .table-wrap { display:none; }
  .pagination { display:none; }
  .mobile-product-list { display:grid !important; gap:10px; padding:12px; }
  .bottom-grid { grid-template-columns:1fr; }
  .contact-card { display:none; }
  .floating-contact { width:62px; height:62px; right:16px; bottom:16px; }
  .modal-grid { grid-template-columns:1fr; }
}

.mobile-product-list { display:none; }
.mobile-product {
  padding:13px;
  border:1px solid var(--line);
  border-radius:9px;
  background:white;
}
.mobile-head { display:flex; justify-content:space-between; gap:10px; }
.mobile-bank { display:flex; align-items:center; gap:7px; font-weight:800; }
.mobile-rate { color:var(--primary); font-weight:800; }
.mobile-city { margin:7px 0; color:var(--text-secondary); font-size:12px; }
.mobile-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin:10px 0; }
.mobile-stats div { padding:8px; border-radius:7px; background:#f8fbff; text-align:center; }
.mobile-stats small { display:block; color:var(--muted); font-size:11px; }
.mobile-stats strong { display:block; margin-top:3px; color:var(--primary); }
.mobile-actions { display:flex; gap:8px; }
.mobile-actions button { flex:1; }
