:root {
  --nav: #17345f;
  --nav-deep: #112848;
  --blue: #2362d1;
  --blue-2: #3f84df;
  --gold: #e9a42d;
  --bg: #eef2f7;
  --side: #f5f8fd;
  --panel: #fff;
  --line: #dfe6f1;
  --line-dark: #cbd6e6;
  --text: #20304a;
  --muted: #73819a;
  --soft-blue: #edf5ff;
  --soft-gold: #fff5dc;
  --green: #16a36b;
  --red: #e65c5c;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family:
    "PingFang SC", "Microsoft YaHei", Inter, ui-sans-serif, system-ui,
    -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.login-screen {
  min-height: 100svh;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 42%, rgba(59, 104, 178, 0.18), transparent 22rem),
    linear-gradient(110deg, #f3f7ff 0%, #e8eef8 48%, #dfe7f2 100%);
}

.login-logo {
  position: absolute;
  top: 54px;
  left: 58px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #143d93;
  font-weight: 800;
  font-size: 19px;
}

.brand-emblem,
.nav-logo,
.mini-emblem {
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #315ac8, #17345f);
  font-weight: 900;
}

.brand-emblem {
  width: 38px;
  height: 38px;
  border-radius: 50%;
}

.login-visual {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.orbit {
  position: absolute;
  right: -8vw;
  bottom: -28vh;
  width: 76vw;
  height: 52vw;
  border: 28px solid rgba(42, 72, 122, 0.13);
  border-radius: 50%;
  transform: rotate(-12deg);
}

.cube {
  position: absolute;
  width: 78px;
  height: 78px;
  border-radius: 12px;
  background: linear-gradient(135deg, #dbe9ff 0%, #2f5bad 68%, #163b78 100%);
  box-shadow: 0 18px 38px rgba(30, 58, 108, 0.22);
  transform: rotate(36deg) skew(-8deg);
  opacity: 0.88;
}

.cube.c1 {
  right: 305px;
  top: 350px;
}

.cube.c2 {
  right: 455px;
  top: 440px;
  width: 62px;
  height: 62px;
  opacity: 0.68;
}

.cube.c3 {
  right: 225px;
  top: 505px;
  width: 54px;
  height: 54px;
}

.login-card {
  position: absolute;
  left: 18vw;
  top: 23vh;
  width: 482px;
  min-height: 480px;
  padding: 70px 48px 42px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 28px 90px rgba(21, 42, 76, 0.18);
  backdrop-filter: blur(8px);
}

.system-title {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #102c64;
  font-size: 24px;
  font-weight: 900;
}

.mini-emblem {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.login-tabs {
  display: flex;
  gap: 28px;
  margin-top: 28px;
  border-bottom: 1px solid var(--line);
}

.login-tab {
  padding: 0 0 14px;
  color: #425572;
}

.login-tab.active {
  color: #1956b9;
  border-bottom: 3px solid #1956b9;
}

.login-field {
  height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding: 0 16px;
  background: #f4f6fb;
  color: #9aa7b9;
  border: 1px solid #e5eaf3;
}

.login-field input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
}

.login-field button {
  min-width: 118px;
  height: 34px;
  border: 1px solid #c6d1e6;
  border-radius: 3px;
  background: #eef3fb;
  color: #1f5ec5;
}

.login-submit {
  width: 100%;
  height: 52px;
  margin-top: 34px;
  border: 0;
  border-radius: 3px;
  background: #163f9f;
  color: #fff;
  font-size: 16px;
}

.risk-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  color: #54647d;
}

.risk-check input {
  accent-color: #174fb6;
}

.slogan {
  position: absolute;
  right: 16vw;
  top: 24vh;
  color: #164496;
  font-size: 52px;
  font-weight: 900;
  letter-spacing: 0;
}

.modal-mask {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: start center;
  padding-top: 112px;
  background: rgba(18, 29, 48, 0.38);
  z-index: 20;
}

.alert-modal {
  width: 420px;
  min-height: 168px;
  padding: 34px 36px 24px;
  background: #fff;
  border-radius: 3px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.24);
}

.alert-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 800;
}

.alert-icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid #d99a39;
  border-radius: 50%;
  color: #d99a39;
}

.alert-modal p {
  margin: 20px 0 24px 42px;
  color: #40506b;
}

.alert-modal button {
  float: right;
  width: 66px;
  height: 34px;
  border: 0;
  border-radius: 3px;
  background: #3266d5;
  color: #fff;
}

.site {
  min-height: 100svh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 60px;
  display: flex;
  align-items: stretch;
  background:
    radial-gradient(circle at 86% -30%, rgba(80, 122, 196, 0.42), transparent 270px),
    linear-gradient(90deg, var(--nav-deep), var(--nav));
  color: #fff;
}

.nav-logo {
  flex: 0 0 60px;
  height: 60px;
  background: transparent;
  font-size: 24px;
}

.top-menu {
  display: flex;
  align-items: stretch;
}

.top-slot {
  position: relative;
  display: flex;
  align-items: stretch;
}

.top-item {
  min-width: 112px;
  padding: 0 22px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  transition: background 160ms ease;
}

.top-item:hover,
.top-item.active {
  background: rgba(255, 255, 255, 0.08);
}

.top-item.active {
  border-bottom: 4px solid var(--gold);
}

.top-dropdown {
  position: absolute;
  top: 60px;
  left: 0;
  z-index: 18;
  min-width: 190px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 38px rgba(21, 45, 88, 0.18);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 140ms ease, transform 140ms ease;
}

.top-slot:hover .top-dropdown,
.top-slot:focus-within .top-dropdown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.top-dropdown button {
  width: 100%;
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: #2b4163;
  text-align: left;
}

.top-dropdown button:hover {
  background: #eef5ff;
  color: #1858c8;
}

.user-chip {
  margin-left: auto;
  display: flex;
  align-items: center;
  padding-right: 26px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.92);
}

.layout {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
}

.sidebar {
  min-height: calc(100svh - 60px);
  padding: 18px 14px 28px;
  background: var(--side);
  border-right: 1px solid var(--line);
}

.side-group {
  margin-bottom: 12px;
}

.side-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 10px;
  color: #1f3762;
  font-weight: 800;
}

.side-head .star {
  color: #306cce;
}

.side-link {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px 0 22px;
  border: 0;
  border-radius: 2px;
  background: #edf3fc;
  color: #42536d;
  text-align: left;
}

.side-link + .side-link {
  margin-top: 2px;
}

.side-link:hover,
.side-link.active {
  background: #e2edff;
  color: #1858c8;
}

.side-link.active::before {
  color: #1858c8;
}

.side-link::before {
  content: "☆";
  color: #91a0b7;
}

.main {
  min-width: 0;
  padding: 18px 20px 34px;
}

.main.no-side {
  max-width: 1080px;
  margin: 0 auto;
  padding-top: 18px;
}

.main.page-only {
  width: min(1440px, calc(100vw - 180px));
  margin: 0 auto;
  padding: 16px 0 34px;
}

.hero-banner {
  min-height: 160px;
  padding: 28px 48px;
  background:
    linear-gradient(90deg, rgba(229, 240, 255, 0.82), rgba(255, 255, 255, 0.62)),
    radial-gradient(circle at 84% 18%, rgba(56, 113, 210, 0.18), transparent 240px);
  border: 1px solid var(--line);
  overflow: hidden;
}

.hero-banner h1 {
  margin: 0 0 20px;
  color: #1c5dba;
  font-size: 34px;
  font-style: italic;
  font-weight: 900;
}

.headline-pill {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 9px 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  color: #233d64;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(31, 79, 147, 0.1);
}

.fire {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffcf57;
}

.panel {
  margin-top: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.panel.pad {
  padding: 16px;
}

.panel-title {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 16px;
  color: #183a68;
  font-size: 19px;
  font-weight: 900;
}

.panel-title small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.page-head {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 14px;
  background:
    linear-gradient(90deg, #edf5ff, #fff 64%),
    #fff;
  border: 1px solid var(--line);
}

.page-head h1 {
  margin: 0;
  color: #183a68;
  font-size: 22px;
}

.head-note {
  color: #5b7194;
  font-size: 13px;
  font-weight: 400;
}

.head-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.select,
.input {
  height: 34px;
  min-width: 122px;
  padding: 0 10px;
  border: 1px solid var(--line-dark);
  border-radius: 2px;
  background: #f9fbff;
  color: #31435f;
}

.btn {
  height: 32px;
  padding: 0 12px;
  border: 1px solid #9db9e8;
  border-radius: 3px;
  background: #fff;
  color: #1859c6;
}

.btn.primary {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.method {
  margin-top: 14px;
  padding: 14px;
  background: #eaf3ff;
  border: 1px solid #d8e7fb;
  color: #173a63;
  line-height: 1.9;
}

.method b {
  display: inline-block;
  margin-right: 8px;
  padding: 1px 10px;
  border-radius: 2px;
  background: var(--blue);
  color: #fff;
}

.grid {
  display: grid;
  gap: 14px;
}

.grid.two {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fund-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  padding: 0 14px 14px;
  background: #dcebff;
}

.fund-card {
  min-height: 90px;
  padding: 12px;
  background: #f9fcff;
  border: 1px solid #cfe0f7;
  position: relative;
}

.fund-card::after {
  content: "";
  position: absolute;
  right: 16px;
  bottom: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d8e9ff, #4384df);
}

.fund-card small {
  color: #2974c9;
}

.fund-card strong {
  display: block;
  margin-top: 6px;
  color: #173a63;
  font-size: 15px;
}

.stars {
  margin-top: 8px;
  color: #f3b43b;
  letter-spacing: 2px;
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.kpi {
  padding: 18px;
  border-right: 1px solid var(--line);
}

.kpi:last-child {
  border-right: 0;
}

.kpi span {
  display: block;
  color: var(--muted);
}

.kpi strong {
  display: block;
  margin-top: 8px;
  color: #153d75;
  font-size: 24px;
}

.kpi em {
  color: var(--red);
  font-style: normal;
  font-size: 13px;
}

.chart-box {
  min-height: 300px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
}

.chart-box.tall {
  min-height: 430px;
}

.chart-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  color: #193b68;
  font-weight: 800;
}

.chart-title small {
  color: var(--muted);
  font-weight: 400;
}

.svg-chart {
  display: block;
  width: 100%;
  height: 260px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.table th,
.table td {
  height: 34px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  text-align: left;
}

.table th {
  background: #f1f4fa;
  color: #263a58;
  font-weight: 800;
}

.table tr:nth-child(even) td {
  background: #fafcff;
}

.table a,
.link {
  color: #1760c9;
  text-decoration: none;
}

.tabs {
  display: flex;
  gap: 6px;
  margin: 12px 0 10px;
}

.tab {
  height: 30px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #f4f6fa;
  color: #536176;
}

.tab.active {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.tag {
  display: inline-block;
  margin: 2px;
  padding: 2px 8px;
  border-radius: 2px;
  background: #eef4ff;
  color: #315c9f;
  font-size: 12px;
}

.tag.warm {
  background: #fff2df;
  color: #965b13;
}

.arrow-up {
  color: #e58b28;
  font-weight: 900;
}

.arrow-down {
  color: #357bd7;
  font-weight: 900;
}

.heat {
  position: relative;
  min-width: 80px;
  background: linear-gradient(90deg, rgba(255, 194, 44, 0.7) var(--w), transparent var(--w));
}

.bar-cell {
  position: relative;
  min-width: 88px;
}

.bar-cell::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: var(--w);
  background: rgba(232, 84, 97, 0.78);
}

.bar-cell.positive::before {
  background: rgba(51, 179, 111, 0.72);
}

.bar-cell span {
  position: relative;
}

.notice-line {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 14px;
  background: #edf5ff;
  color: #22446f;
}

.radio-grid {
  display: grid;
  grid-template-columns: 150px repeat(6, 1fr);
  border: 1px solid var(--line);
}

.radio-grid div {
  min-height: 34px;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.radio-grid .head {
  background: #eaf2ff;
  font-weight: 800;
}

.dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #b9d6ff, #2e78de);
  box-shadow: 0 0 10px rgba(42, 116, 220, 0.32);
}

.gauges {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 16px;
  padding: 18px 14px;
}

.gauge {
  display: grid;
  place-items: center;
  min-height: 112px;
  color: #26538e;
}

.gauge-ring {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    conic-gradient(var(--gold) 0 var(--p), #e7edf6 var(--p) 78%, var(--blue) 78% 100%);
  position: relative;
}

.gauge-ring::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: #fff;
}

.gauge strong {
  position: relative;
  z-index: 1;
  font-size: 15px;
}

.gauge span {
  margin-top: 8px;
  font-size: 12px;
}

.empty-state {
  min-height: 360px;
  display: grid;
  place-items: center;
  color: #71809a;
  background: #fff;
  border: 1px solid var(--line);
}

.spinner {
  width: 34px;
  height: 34px;
  margin: 0 auto 10px;
  border: 4px solid #d9e7ff;
  border-top-color: #357bd7;
  border-radius: 50%;
  animation: spin 900ms linear infinite;
}

.product-line {
  padding: 0 12px 14px;
}

.product-section-label {
  width: fit-content;
  margin: 12px 0 6px;
  padding: 3px 12px;
  transform: skew(-12deg);
  background: #1f64c7;
  color: #fff;
  font-weight: 900;
}

.product-section-label.secondary {
  background: #f1c64c;
  color: #1c355f;
}

.product-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 1.1fr 1.15fr 1.25fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.product-col {
  min-height: 245px;
  padding: 12px;
  background: #fff;
}

.product-col h3 {
  margin: 0 0 12px;
  color: #1a3f73;
  font-size: 20px;
}

.product-col h4 {
  margin: 14px 0 8px;
  color: #1d5cb7;
  font-size: 16px;
}

.product-col p {
  margin: 8px 0;
  font-size: 16px;
  font-weight: 800;
}

.mini-tag {
  display: inline-block;
  margin-left: 3px;
  padding: 0 3px;
  border: 1px solid #ccd8ea;
  border-radius: 2px;
  color: #6b7d98;
  font-size: 10px;
  font-weight: 400;
}

.forum-hero {
  height: 130px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 66% 35%, rgba(63, 132, 223, 0.16), transparent 180px),
    linear-gradient(90deg, #f5fbff, #e5f2ff);
  text-align: center;
}

.forum-hero h1 {
  margin: 0 0 10px;
  color: #1b5dba;
  font-size: 20px;
}

.forum-board {
  max-width: 680px;
  margin: 0 auto;
  padding: 18px 0 40px;
}

.suggest-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px;
  align-items: end;
  gap: 10px;
  margin-bottom: 12px;
}

.suggest-box textarea {
  height: 74px;
  padding: 14px;
  resize: none;
  border: 1px solid var(--line);
  background: #f6f8fc;
}

.suggest-box button {
  height: 36px;
  border: 0;
  border-radius: 2px;
  background: var(--blue);
  color: #fff;
}

.post {
  margin-bottom: 12px;
  padding: 13px 14px;
  background: #f2f6fc;
  border: 1px solid #e6edf7;
}

.post strong {
  display: block;
  margin-bottom: 8px;
  color: #26466d;
}

.post p {
  margin: 0 0 10px;
  line-height: 1.7;
}

.reply {
  padding: 10px 12px;
  background: #fff;
  color: #2a4770;
}

.reply b {
  display: inline-block;
  margin-bottom: 6px;
  padding: 2px 8px;
  background: #fff6d7;
  color: #906416;
}

.footer {
  padding: 20px;
  color: #5b6575;
  text-align: center;
  font-size: 12px;
}

.dialog {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  place-items: center;
  background: rgba(21, 34, 56, 0.36);
}

.dialog.open {
  display: grid;
}

.dialog-card {
  width: min(900px, calc(100vw - 40px));
  max-height: min(720px, calc(100svh - 60px));
  overflow: auto;
  background: #fff;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.24);
}

.dialog-head {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  color: #193b68;
  font-weight: 900;
}

.dialog-head button {
  width: 30px;
  height: 30px;
  border: 0;
  background: #eef3fb;
  color: #26466d;
}

.dialog-body {
  padding: 18px;
  line-height: 1.9;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1180px) {
  .layout {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .fund-strip,
  .grid.four,
  .gauges {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-grid,
  .grid.three,
  .grid.two {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .topbar {
    overflow-x: auto;
  }

  .layout {
    display: block;
  }

  .sidebar {
    display: none;
  }

  .main {
    padding: 12px;
  }

  .main.page-only {
    width: auto;
    padding: 12px;
  }

  .login-card {
    left: 18px;
    right: 18px;
    width: auto;
    top: 140px;
  }

  .slogan {
    display: none;
  }
}
