:root {
  --primary: #0B3D91;
  --primary-dark: #072b68;
  --primary-soft: #eaf1fb;
  --ink: #172033;
  --muted: #657086;
  --line: #dfe5ee;
  --surface: #ffffff;
  --surface-soft: #f5f7fa;
  --success: #087f5b;
  --warning: #a86600;
  --danger: #b4232d;
  --shadow: 0 10px 30px rgba(20, 35, 65, .09);
  --container: 1200px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--surface-soft);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  line-height: 1.65;
}
body,
button,
input,
select {
  font: inherit;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
}
.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}
.topbar {
  color: #dce6f6;
  background: #10213c;
  font-size: 13px;
}
.topbar .container {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.topbar a {
  margin-left: 22px;
  transition: color .2s ease;
}
.topbar a:hover {
  color: #ffffff;
}
.header {
  position: relative;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .98);
}
.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.logo {
  min-width: 180px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--primary-dark);
  font-size: 18px;
  font-weight: 800;
}
.logo img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}
.main-nav {
  align-self: stretch;
  flex: 1;
}
.nav-list {
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
  list-style: none;
}
.nav-item {
  position: relative;
  display: flex;
  align-items: stretch;
}
.nav-link {
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #2d3749;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  transition: color .2s ease, background .2s ease;
}
.nav-link:hover,
.nav-item:focus-within > .nav-link {
  color: var(--primary);
  background: var(--primary-soft);
}
.has-arrow::after {
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  content: "";
  transform: rotate(45deg) translateY(-2px);
}
.dropdown-panel,
.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  visibility: hidden;
  opacity: 0;
  transform: translate(-50%, 8px);
  border: 1px solid var(--line);
  border-top: 3px solid var(--primary);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  pointer-events: none;
}
.dropdown-panel::before,
.mega-menu::before {
  position: absolute;
  right: 0;
  bottom: 100%;
  left: 0;
  height: 10px;
  content: "";
}
.dropdown-panel {
  width: 310px;
  padding: 20px;
}
.mega-menu {
  width: min(720px, calc(100vw - 40px));
  padding: 22px;
}
.nav-item:hover > .dropdown-panel,
.nav-item:hover > .mega-menu,
.nav-item:focus-within > .dropdown-panel,
.nav-item:focus-within > .mega-menu {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}
.panel-title {
  margin: 0 0 14px;
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 800;
}
.panel-list {
  display: grid;
  gap: 4px;
}
.panel-list a {
  padding: 8px 10px;
  border-radius: 4px;
  color: #435069;
  font-size: 14px;
}
.panel-list a:hover {
  color: var(--primary);
  background: var(--primary-soft);
}
.mega-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.mega-card {
  min-width: 0;
  padding: 13px;
  display: grid;
  align-content: start;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfe;
  transition: border-color .2s ease, transform .2s ease;
}
.mega-card:hover {
  border-color: #9bb5dd;
  transform: translateY(-2px);
}
.mega-card img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.mega-card strong {
  overflow: hidden;
  color: #26334a;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mega-card small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mega-footer {
  margin-top: 14px;
  padding: 10px 12px;
  display: block;
  border-top: 1px solid var(--line);
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  text-align: right;
}
.header-btns {
  display: flex;
  align-items: center;
  gap: 9px;
}
.member,
.open-account {
  min-height: 38px;
  padding: 7px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}
.member {
  border: 1px solid #b8c5d8;
  color: var(--primary);
  background: #fff;
}
.open-account {
  border: 1px solid var(--primary);
  color: #fff;
  background: var(--primary);
}
.member:hover {
  border-color: var(--primary);
}
.open-account:hover {
  background: var(--primary-dark);
}
.hamburger {
  width: 42px;
  height: 42px;
  padding: 0;
  display: none;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
}
.hamburger span {
  width: 20px;
  height: 2px;
  margin: 4px auto;
  display: block;
  background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}
.hamburger.active span:first-child {
  transform: translateY(6px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:last-child {
  transform: translateY(-6px) rotate(-45deg);
}
.drawer-overlay {
  position: fixed;
  z-index: 80;
  inset: 0;
  visibility: hidden;
  opacity: 0;
  background: rgba(7, 19, 39, .58);
  transition: opacity .25s ease, visibility .25s ease;
}
.drawer-overlay.open {
  visibility: visible;
  opacity: 1;
}
.mobile-drawer {
  position: fixed;
  z-index: 90;
  top: 0;
  right: 0;
  width: min(390px, 90vw);
  height: 100dvh;
  overflow-y: auto;
  background: #fff;
  box-shadow: -16px 0 40px rgba(9, 25, 52, .2);
  transform: translateX(105%);
  transition: transform .25s ease;
}
.mobile-drawer.open {
  transform: translateX(0);
}
.drawer-head {
  min-height: 72px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  background: #f7f9fc;
}
.drawer-head > a {
  padding: 7px 11px;
  border: 1px solid #b9c7da;
  border-radius: 4px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
}
.drawer-close {
  width: 38px;
  height: 38px;
  margin-left: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #28364b;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}
.drawer-menu {
  padding: 12px 18px 30px;
}
.drawer-link,
.drawer-toggle {
  width: 100%;
  min-height: 48px;
  padding: 11px 4px;
  display: flex;
  align-items: center;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: #26334a;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}
.drawer-toggle {
  justify-content: space-between;
}
.drawer-toggle::after {
  width: 8px;
  height: 8px;
  margin-right: 5px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.drawer-toggle.active::after {
  transform: rotate(225deg);
}
.drawer-submenu {
  max-height: 0;
  overflow: hidden;
  background: #f6f8fb;
  transition: max-height .3s ease;
}
.drawer-submenu.open {
  max-height: 760px;
}
.drawer-submenu a {
  padding: 10px 14px;
  display: block;
  border-bottom: 1px solid #e6ebf2;
  color: #536077;
  font-size: 14px;
}
.drawer-submenu a:hover {
  color: var(--primary);
}
.brokerlist-page {
  min-height: 650px;
}
.brokerlist-page .page-heading {
  padding: 58px 0 48px;
  color: #fff;
  background:
    linear-gradient(115deg, rgba(11, 61, 145, .98), rgba(8, 41, 96, .94)),
    #0B3D91;
}
.brokerlist-page .page-heading-inner {
  max-width: 850px;
}
.brokerlist-page .eyebrow {
  margin: 0 0 8px;
  color: #bcd4fa;
  font-size: 13px;
  font-weight: 800;
}
.brokerlist-page .page-heading h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.2;
}
.brokerlist-page .page-heading p {
  max-width: 720px;
  margin: 15px 0 0;
  color: #e0e9f7;
  font-size: 16px;
}
.brokerlist-page .broker-toolbar {
  margin-top: -22px;
  padding: 18px;
  display: grid;
  grid-template-columns: 1.3fr repeat(3, minmax(150px, .7fr)) auto;
  gap: 12px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  box-shadow: var(--shadow);
}
.brokerlist-page .filter-field {
  min-width: 0;
}
.brokerlist-page .filter-field label {
  margin-bottom: 6px;
  display: block;
  color: #4c5870;
  font-size: 12px;
  font-weight: 800;
}
.brokerlist-page .filter-field input,
.brokerlist-page .filter-field select {
  width: 100%;
  height: 42px;
  padding: 0 11px;
  border: 1px solid #cdd6e2;
  border-radius: 4px;
  outline: none;
  color: #27344a;
  background: #fff;
}
.brokerlist-page .filter-field input:focus,
.brokerlist-page .filter-field select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(11, 61, 145, .1);
}
.brokerlist-page .filter-button {
  height: 42px;
  padding: 0 22px;
  border: 1px solid var(--primary);
  border-radius: 4px;
  color: #fff;
  background: var(--primary);
  font-weight: 800;
  cursor: pointer;
}
.brokerlist-page .filter-button:hover {
  background: var(--primary-dark);
}
.brokerlist-page .list-layout {
  padding: 42px 0 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 28px;
  align-items: start;
}
.brokerlist-page .section-head {
  margin-bottom: 18px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}
.brokerlist-page .section-head h2 {
  margin: 0;
  color: #202d43;
  font-size: 24px;
}
.brokerlist-page .section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.brokerlist-page .broker-grid {
  display: grid;
  gap: 16px;
}
.brokerlist-page .broker-card {
  min-width: 0;
  padding: 20px;
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) 180px;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.brokerlist-page .broker-card:hover {
  border-color: #9fb5d6;
  box-shadow: 0 9px 25px rgba(22, 42, 74, .08);
}
.brokerlist-page .broker-logo {
  width: 80px;
  height: 80px;
  padding: 10px;
  display: grid;
  place-items: center;
  border: 1px solid #e2e7ef;
  border-radius: 6px;
  background: #f8fafc;
}
.brokerlist-page .broker-logo img {
  max-width: 58px;
  max-height: 58px;
  object-fit: contain;
}
.brokerlist-page .broker-content {
  min-width: 0;
}
.brokerlist-page .broker-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.brokerlist-page .broker-title-row h3 {
  margin: 0;
  color: #1b2940;
  font-size: 20px;
}
.brokerlist-page .rating {
  padding: 2px 8px;
  border: 1px solid #ead5a4;
  border-radius: 3px;
  color: #805500;
  background: #fff8e5;
  font-size: 12px;
  font-weight: 800;
}
.brokerlist-page .broker-summary {
  margin: 8px 0 12px;
  overflow: hidden;
  color: #606c80;
  font-size: 14px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.brokerlist-page .broker-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 15px;
  color: #445168;
  font-size: 13px;
}
.brokerlist-page .broker-facts span {
  position: relative;
}
.brokerlist-page .broker-facts span:not(:last-child)::after {
  position: absolute;
  top: 6px;
  right: -9px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #9ba7b9;
  content: "";
}
.brokerlist-page .broker-actions {
  display: grid;
  gap: 9px;
}
.brokerlist-page .review-link,
.brokerlist-page .affiliate-link {
  min-height: 40px;
  padding: 8px 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}
.brokerlist-page .review-link {
  border: 1px solid #b9c7db;
  color: var(--primary);
  background: #fff;
}
.brokerlist-page .affiliate-link {
  border: 1px solid var(--primary);
  color: #fff;
  background: var(--primary);
}
.brokerlist-page .review-link:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}
.brokerlist-page .affiliate-link:hover {
  background: var(--primary-dark);
}
.brokerlist-page .side-panel {
  margin-bottom: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}
.brokerlist-page .side-panel h2 {
  margin: 0 0 12px;
  color: #243249;
  font-size: 18px;
}
.brokerlist-page .side-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.brokerlist-page .side-panel ul {
  margin: 13px 0 0;
  padding: 0;
  list-style: none;
}
.brokerlist-page .side-panel li {
  position: relative;
  padding: 8px 0 8px 18px;
  border-bottom: 1px solid #edf0f4;
  color: #455168;
  font-size: 14px;
}
.brokerlist-page .side-panel li::before {
  position: absolute;
  top: 17px;
  left: 2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  content: "";
}
.brokerlist-page .risk-panel {
  border-top: 3px solid var(--danger);
}
.brokerlist-page .pagination {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.brokerlist-page .pagination a {
  min-width: 38px;
  height: 38px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ccd5e1;
  border-radius: 4px;
  color: #3c4960;
  background: #fff;
  font-size: 14px;
}
.brokerlist-page .pagination a:hover,
.brokerlist-page .pagination a.active,
.brokerlist-page .pagination a.current {
  border-color: var(--primary);
  color: #fff;
  background: var(--primary);
}
.footer {
  padding-top: 48px;
  color: #cbd5e5;
  background: #101b2d;
}
.footer-grid {
  padding-bottom: 38px;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
}
.footer-brand img {
  width: 48px;
  height: 48px;
  margin-bottom: 10px;
  object-fit: contain;
}
.footer-brand strong {
  color: #fff;
  font-size: 19px;
}
.footer h3 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 15px;
}
.footer p {
  margin: 10px 0 0;
  color: #9faec3;
  font-size: 13px;
}
.footer-grid > div > a {
  margin: 8px 0;
  display: block;
  color: #b9c5d6;
  font-size: 14px;
}
.footer-grid > div > a:hover {
  color: #fff;
}
.footer-bottom {
  padding: 19px 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
  color: #93a2b8;
  font-size: 13px;
  text-align: center;
}
@media (max-width: 1080px) {
  .main-nav {
    display: none;
  }
  .hamburger {
    display: block;
  }
  .header-inner {
    gap: 16px;
  }
  .header-btns {
    margin-left: auto;
  }
  .brokerlist-page .broker-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .brokerlist-page .filter-button {
    width: 100%;
  }
}
@media (max-width: 860px) {
  .brokerlist-page .list-layout {
    grid-template-columns: 1fr;
  }
  .brokerlist-page .side-column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .brokerlist-page .broker-card {
    grid-template-columns: 72px minmax(0, 1fr);
  }
  .brokerlist-page .broker-logo {
    width: 72px;
    height: 72px;
  }
  .brokerlist-page .broker-actions {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, var(--container));
  }
  .topbar .container {
    padding: 8px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }
  .topbar a {
    margin: 0 14px 0 0;
  }
  .header-inner {
    min-height: 66px;
  }
  .logo {
    min-width: 0;
    max-width: calc(100% - 52px);
  }
  .logo img {
    width: 38px;
    height: 38px;
  }
  .logo span {
    overflow: hidden;
    font-size: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .member,
  .open-account {
    display: none;
  }
  .brokerlist-page .page-heading {
    padding: 42px 0 38px;
  }
  .brokerlist-page .page-heading h1 {
    font-size: 31px;
  }
  .brokerlist-page .broker-toolbar {
    grid-template-columns: 1fr;
  }
  .brokerlist-page .list-layout {
    padding-top: 32px;
  }
  .brokerlist-page .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
  .brokerlist-page .broker-card {
    padding: 16px;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 13px;
  }
  .brokerlist-page .broker-logo {
    width: 58px;
    height: 58px;
    padding: 7px;
  }
  .brokerlist-page .broker-title-row {
    gap: 7px;
  }
  .brokerlist-page .broker-title-row h3 {
    font-size: 17px;
  }
  .brokerlist-page .broker-summary,
  .brokerlist-page .broker-facts {
    grid-column: 1 / -1;
  }
  .brokerlist-page .broker-actions {
    grid-template-columns: 1fr;
  }
  .brokerlist-page .side-column {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}