:root {
  --bg: #f4f7fb;
  --panel: #ffffff;
  --panel-2: #eef4ff;
  --text: #182235;
  --muted: #67748a;
  --line: #dce4ef;
  --blue: #2563eb;
  --blue-dark: #1e40af;
  --green: #159947;
  --red: #dc2626;
  --orange: #d97706;
  --shadow: 0 12px 28px rgba(30, 52, 88, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 264px;
  max-height: 100vh;
  padding: 24px 18px;
  background: rgba(255, 255, 255, 0.92);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 28px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

.sidebar::-webkit-scrollbar {
  width: 8px;
}

.sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 999px;
}

.sidebar:hover,
.sidebar:focus-within,
.sidebar:active,
.sidebar.scrolling {
  scrollbar-color: rgba(103, 116, 138, 0.45) transparent;
}

.sidebar:hover::-webkit-scrollbar-thumb,
.sidebar:focus-within::-webkit-scrollbar-thumb,
.sidebar:active::-webkit-scrollbar-thumb,
.sidebar.scrolling::-webkit-scrollbar-thumb {
  background: rgba(103, 116, 138, 0.45);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 6px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 0;
  display: block;
  background: transparent;
  border: 0;
  overflow: hidden;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: none;
  stroke: #845626;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 7;
}

.brand strong {
  display: block;
  font-size: 18px;
}

.brand span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: grid;
  gap: 8px;
}

.nav-item {
  border: 1px solid transparent;
  background: transparent;
  color: #263345;
  padding: 14px 12px;
  border-radius: 8px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-item span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--blue-dark);
  background: #edf3ff;
  border-radius: 7px;
}

.nav-item.active {
  color: var(--blue-dark);
  background: #edf3ff;
  border-color: #b9c9e8;
  font-weight: 700;
}

.profile-nav-item {
  position: sticky;
  bottom: 0;
  margin-top: auto;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -10px 18px rgba(244, 247, 251, 0.9);
}

.shell {
  margin-left: 264px;
  padding: 28px 28px 36px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 28px;
}

.eyebrow {
  margin-bottom: 6px;
  color: var(--blue-dark);
  font-weight: 700;
  font-size: 13px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-dot {
  color: var(--green);
  background: #e9f8ef;
  border: 1px solid #bfe8cc;
  padding: 9px 12px;
  border-radius: 999px;
  font-weight: 700;
}

.status-dot.offline {
  color: var(--red);
  background: #fff0f0;
  border-color: #ffc7c7;
}

.primary,
.ghost {
  border-radius: 8px;
  padding: 10px 16px;
  border: 1px solid var(--blue);
  font-weight: 700;
}

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

.primary:hover {
  background: var(--blue-dark);
}

.primary.small {
  width: 100%;
}

.ghost {
  color: var(--blue-dark);
  background: #fff;
}

.notice,
.brief-status-bar,
.toolbar,
.panel-card,
.feed-card,
.important-card,
.report-card,
.industry-card,
.pricing-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.notice {
  padding: 16px 18px;
  margin-bottom: 16px;
}

.notice p {
  margin: 6px 0 0;
  color: var(--muted);
}

.brief-status-bar {
  padding: 12px 14px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.status-left,
.status-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.clock-text {
  color: #5f6f88;
  font-weight: 800;
}

.pill-button {
  border-radius: 999px;
  padding: 9px 14px;
}

.toolbar {
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.searchbox {
  min-width: 280px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fbfdff;
}

.searchbox input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 12px;
}

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

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 16px;
  align-items: start;
}

.content-grid.wide {
  grid-template-columns: 1fr;
}

.main-panel,
.view {
  min-width: 0;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.feed-header h2 {
  margin-bottom: 0;
}

#briefCount {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  color: var(--red);
  font-weight: 400;
}

#briefCount[hidden] {
  display: none;
}

.brief-update-ticker {
  position: relative;
  display: inline-block;
  height: 24px;
  min-width: 190px;
  overflow: hidden;
  line-height: 24px;
  text-align: right;
}

.brief-update-ticker span {
  display: block;
  color: var(--red);
}

#briefCount.rolling .brief-update-ticker span {
  animation: briefTickerRoll 1.8s ease-in-out infinite;
}

@keyframes briefTickerRoll {
  0%,
  25% {
    transform: translateY(0);
  }

  50%,
  70% {
    transform: translateY(-100%);
  }

  71% {
    transform: translateY(100%);
  }

  100% {
    transform: translateY(0);
  }
}

.unlock-inline {
  margin-left: 10px;
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: 999px;
  background: #eef5ff;
  color: var(--blue);
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 900;
}

.unlock-inline:hover {
  background: var(--blue);
  color: #fff;
}

.feed {
  display: grid;
  gap: 12px;
}

.feed-card {
  padding: 18px;
}

.feed-card.important h3,
.feed-card.important p,
.feed-card.important .feed-meta {
  color: var(--red);
}

.feed-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 10px;
}

.feed-card h3 {
  margin: 0 0 10px;
  font-size: 19px;
}

.feed-card p {
  color: #3d4a5f;
  line-height: 1.7;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag {
  border-radius: 999px;
  padding: 6px 10px;
  background: #eef4ff;
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 700;
}

.tag.hot {
  color: var(--red);
  background: #fff0f0;
}

.tag.warn {
  color: var(--orange);
  background: #fff7ed;
}

.card-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

.card-actions button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--blue-dark);
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 700;
}

.insight-panel {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 20px;
}

.panel-card {
  padding: 18px;
}

.panel-card h2 {
  font-size: 20px;
  margin-bottom: 10px;
}

.panel-card p {
  color: var(--muted);
  line-height: 1.7;
}

.watch-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.watch-list span,
.watch-list button {
  background: #f0f5fb;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 10px;
  color: #34435a;
  font: inherit;
}

.watch-list button {
  cursor: pointer;
}

.watch-list button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.report-grid,
.market-grid,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.report-card,
.important-card,
.market-card,
.pricing-card {
  padding: 18px;
}

.report-card h3,
.important-card h3,
.market-card h3 {
  margin: 0 0 10px;
}

.report-card p,
.important-card p,
.market-card p,
.pricing-card p,
.pricing-card li {
  color: var(--muted);
  line-height: 1.7;
}

.important-card {
  min-height: 280px;
  height: auto;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.important-card:hover {
  border-color: #9fc2f6;
  box-shadow: 0 14px 28px rgba(30, 52, 88, 0.12);
}

.important-card h3 {
  font-size: 19px;
  line-height: 1.45;
  padding-right: 24px;
  font-weight: 700;
}

.important-summary {
  min-height: 96px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.important-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--blue-dark);
  font-size: 14px;
  font-weight: 700;
}

.important-card-actions {
  margin-top: 12px;
  padding-top: 12px;
}

.severe-move-card {
  min-height: 420px;
}

.severe-move-card h3 {
  margin-bottom: 14px;
}

.severe-move-row {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
}

.severe-move-row:first-of-type {
  border-top: 0;
}

.severe-move-top,
.severe-move-value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.severe-move-top strong {
  font-size: 18px;
}

.severe-move-top span,
.severe-move-value span {
  color: var(--muted);
}

.severe-move-top span {
  font-size: 14px;
}

.severe-move-value strong {
  color: var(--red);
  font-size: 18px;
}

.severe-move-row p,
.severe-move-row small {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.severe-move-row p strong,
.severe-move-row p em {
  color: var(--red);
  font-style: normal;
  font-weight: 800;
}

.important-card-actions button {
  border: 1px solid #b8cbed;
  border-radius: 999px;
  background: #f4f8ff;
  color: var(--blue-dark);
  padding: 8px 14px;
  font-weight: 900;
  cursor: pointer;
}

.important-card-actions button:hover {
  border-color: var(--blue);
  background: #eaf2ff;
}

.important-arrow {
  position: absolute;
  right: 18px;
  top: 16px;
  color: #b4bdcc;
  font-size: 34px;
  line-height: 1;
}

.important-detail {
  margin-top: 14px;
  color: #34435a;
}

.important-detail summary {
  color: var(--blue-dark);
  cursor: pointer;
  font-weight: 800;
}

.market-section {
  display: grid;
  gap: 16px;
}

.market-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.market-section-head h2 {
  margin: 4px 0 0;
  font-size: 24px;
}

.market-section-head > span,
.date-query {
  color: var(--muted);
  font-weight: 800;
}

.date-query {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.date-query input {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
  color: var(--text);
}

.limit-hotspot-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(0, 1.05fr);
  gap: 16px;
}

.limit-hotspot-layout .market-card {
  min-height: 420px;
}

.limit-tree {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  position: relative;
}

.limit-tree::before {
  content: "";
  position: absolute;
  left: 54px;
  top: 18px;
  bottom: 18px;
  width: 2px;
  background: #c8d5e8;
}

.limit-tree-row {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  position: relative;
}

.limit-tree-row strong {
  position: relative;
  z-index: 1;
  display: inline-flex;
  justify-content: center;
  border-radius: 999px;
  background: #fff1f1;
  color: var(--red);
  padding: 8px 10px;
  font-size: 13px;
}

.limit-tree-row div,
.stock-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.limit-tree-row span,
.stock-chip-grid span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
  padding: 9px 11px;
  font-weight: 800;
}

.theme-heat-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.theme-heat-list section {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.theme-heat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.theme-heat-head h3,
.theme-heat-head strong {
  margin: 0;
}

.theme-heat-head span {
  color: var(--red);
  font-weight: 900;
}

.heat-bar {
  height: 8px;
  margin: 10px 0;
  overflow: hidden;
  border-radius: 999px;
  background: #eef2f7;
}

.heat-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #dc2626);
}

.risk-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.risk-row {
  display: grid;
  gap: 8px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.risk-row:first-of-type {
  border-top: 0;
}

.risk-row div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.risk-row span,
.risk-row em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.risk-row p {
  margin: 0;
}

.risk-row.empty {
  color: var(--muted);
}

.data-table-card {
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.data-table-card table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.data-table-card th,
.data-table-card td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.data-table-card th {
  background: #f6f8fb;
  color: #53647d;
  font-size: 13px;
}

.positive {
  color: var(--red);
  font-weight: 900;
}

.negative {
  color: var(--green);
  font-weight: 900;
}

.theme-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.stock-chip-grid em {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  margin-top: 3px;
}

.flow-list,
.ranking-list {
  display: grid;
  gap: 12px;
}

.flow-list div,
.ranking-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.flow-list div:first-child,
.ranking-list div:first-child {
  border-top: 0;
}

.ranking-list em {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #edf3ff;
  color: var(--blue-dark);
  font-style: normal;
  font-weight: 900;
}

.ranking-list strong {
  margin-right: auto;
}

.data-table-card small {
  color: var(--muted);
}

.research-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.research-layout.member-active {
  grid-template-columns: minmax(0, 1fr);
}

.research-layout.member-active .research-side {
  display: none;
}

.research-side {
  display: grid;
  gap: 14px;
}

.research-filter,
.research-member-card,
.research-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.research-filter {
  padding: 16px 18px;
  color: var(--text);
  font-weight: 800;
}

.research-member-card {
  padding: 20px;
  background: #edf4ff;
  border-color: #aac4f1;
}

.research-member-card h2 {
  margin: 4px 0 12px;
  font-size: 20px;
}

.research-member-card p,
.research-member-card li {
  color: var(--muted);
  line-height: 1.7;
}

.research-member-card ul {
  margin: 14px 0 18px;
  padding-left: 20px;
}

.research-main {
  min-width: 0;
}

.research-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.research-tabs button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 16px;
  font-weight: 800;
  position: relative;
}

.research-tabs button.active {
  color: var(--blue);
}

.research-tabs button.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: var(--blue);
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.research-card {
  padding: 18px;
}

.research-card h3 {
  margin: 0 0 14px;
  font-size: 18px;
  line-height: 1.5;
}

.research-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.research-type {
  color: var(--blue);
  background: #eaf3ff;
  border: 1px solid #8ec3ff;
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 800;
}

.research-stars {
  color: #f5b400;
  font-size: 18px;
  letter-spacing: 0;
  white-space: nowrap;
}

.research-date {
  color: #9aa3af;
  margin-left: auto;
}

.research-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.research-actions button {
  border: 0;
  border-radius: 999px;
  color: #fff;
  padding: 10px 16px;
  font-weight: 800;
}

.research-actions .green {
  background: #39a24a;
}

.research-actions .purple {
  background: #8f22b5;
}

.macro-panel {
  padding: 32px 40px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.macro-head {
  margin-bottom: 34px;
}

.macro-head h2 {
  margin: 0 0 10px;
  font-size: 32px;
}

.macro-head p {
  color: var(--muted);
  font-size: 18px;
}

.macro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.macro-card {
  min-height: 220px;
  padding: 34px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  align-content: center;
  gap: 14px;
  cursor: pointer;
}

.macro-card:hover {
  border-color: #9fc2f6;
  transform: translateY(-1px);
}

.macro-icon {
  font-size: 40px;
  font-weight: 900;
  letter-spacing: 0;
}

.macro-icon.blue {
  color: #268bed;
}

.macro-icon.green {
  color: #40a857;
}

.macro-icon.orange {
  color: #f08a00;
}

.macro-icon.purple {
  color: #9c27b0;
}

.macro-card h3 {
  margin: 0;
  font-size: 22px;
}

.macro-card p {
  color: var(--muted);
  line-height: 1.7;
}

.macro-detail {
  display: grid;
  gap: 18px;
}

.back-button {
  width: fit-content;
  border: 0;
  background: transparent;
  color: #53647d;
  font-weight: 800;
  padding: 0;
}

.macro-detail h2 {
  margin: 0;
  font-size: 28px;
}

.macro-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.macro-summary-card,
.chart-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.macro-summary-card {
  padding: 18px;
}

.macro-summary-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.macro-summary-card strong {
  display: block;
  margin: 8px 0;
  font-size: 24px;
}

.macro-summary-card em {
  color: var(--red);
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
}

.macro-sub-tabs,
.range-tabs,
.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.macro-sub-tabs button,
.range-tabs button,
.chart-legend span {
  border: 1px solid var(--line);
  background: #fff;
  color: #53647d;
  border-radius: 6px;
  padding: 8px 12px;
  font-weight: 800;
}

.macro-sub-tabs button.active,
.range-tabs button.active {
  color: #fff;
  border-color: var(--blue);
  background: var(--blue);
}

.chart-card {
  padding: 18px;
}

.chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.chart-head h3 {
  margin: 0;
}

.chart-placeholder {
  min-height: 320px;
  border: 1px dashed #cfd8e6;
  border-radius: 8px;
  background:
    linear-gradient(#eef2f7 1px, transparent 1px) 0 0 / 100% 64px,
    linear-gradient(90deg, #f6f8fb 1px, transparent 1px) 0 0 / 96px 100%;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 800;
}

.chart-placeholder.line::before,
.chart-placeholder.bar::before,
.chart-placeholder.pie::before {
  content: "";
  width: 70%;
  height: 44%;
  display: block;
  border-radius: 8px;
}

.chart-placeholder.line::before {
  border-bottom: 4px solid #268bed;
  border-right: 4px solid #ff4b42;
  transform: skewY(-8deg);
}

.chart-placeholder.bar::before {
  background: repeating-linear-gradient(90deg, #2f6fed 0 22px, #38a169 22px 44px, #ff8a00 44px 66px, transparent 66px 92px);
}

.chart-placeholder.pie::before {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: conic-gradient(#5b73d1 0 55%, #8ccf6e 55% 75%, #ffc857 75% 90%, #f56565 90% 100%);
}

.macro-chart {
  width: 100%;
  min-height: 280px;
  border: 1px solid #d7e0ec;
  border-radius: 8px;
  background:
    linear-gradient(#eef2f7 1px, transparent 1px) 0 0 / 100% 64px,
    linear-gradient(90deg, #f6f8fb 1px, transparent 1px) 0 0 / 96px 100%;
}

.macro-chart text {
  fill: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.chart-grid-lines line {
  stroke: #bfcadd;
  stroke-width: 1.5;
}

.chart-line-path {
  fill: none;
  stroke: var(--blue);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.chart-dots circle {
  fill: #fff;
  stroke: var(--blue);
  stroke-width: 4;
}

.chart-bars rect {
  fill: var(--blue);
}

.chart-hit-area {
  outline: none;
}

.chart-hit-area > rect {
  fill: transparent;
  cursor: crosshair;
}

.chart-hover-guide,
.chart-tooltip {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease;
}

.chart-hover-guide {
  stroke: var(--blue);
  stroke-width: 2;
}

.chart-tooltip rect {
  fill: #fff;
  stroke: var(--line);
  filter: drop-shadow(0 8px 18px rgba(15, 23, 42, 0.16));
}

.chart-tooltip text {
  text-anchor: middle;
  font-size: 13px;
  font-weight: 900;
}

.chart-tooltip .tooltip-title {
  font-size: 14px;
}

.chart-hit-area:hover .chart-hover-guide,
.chart-hit-area:hover .chart-tooltip,
.chart-hit-area:focus .chart-hover-guide,
.chart-hit-area:focus .chart-tooltip {
  opacity: 1;
}

.macro-events {
  display: grid;
  gap: 12px;
}

.macro-events h3 {
  margin: 8px 0 0;
}

.macro-event {
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.macro-event h4 {
  margin: 0 0 10px;
  font-size: 17px;
}

.macro-event a {
  color: var(--text);
  text-decoration: none;
}

.macro-event a:hover {
  color: var(--blue);
}

.chart-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.profile-panel {
  display: grid;
  gap: 22px;
}

.profile-head {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 28px 40px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eef2f7;
  border: 1px solid #d7deea;
  color: #4f5f76;
  font-size: 30px;
  font-weight: 900;
}

.profile-head h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.profile-head p {
  margin: 0;
  color: var(--muted);
}

.profile-status {
  margin-left: auto;
  color: var(--green);
  background: #eef9f1;
  border-radius: 999px;
  padding: 7px 12px;
  font-weight: 800;
}

.profile-body {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
}

.profile-membership,
.member-service-panel {
  display: grid;
  gap: 16px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.profile-membership-head,
.member-service-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.profile-membership-head h2,
.member-service-head h2 {
  margin: 4px 0 8px;
  font-size: 24px;
}

.profile-membership-head span,
.member-service-head span {
  color: var(--muted);
}

.member-service-panel {
  padding: 28px;
  border-radius: 12px;
}

.member-plan-grid-wide {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

.member-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.member-plan-card {
  position: relative;
  padding: 18px;
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease,
    background 0.18s ease;
}

.member-plan-card:hover,
.member-plan-card.selected {
  background: #fff;
  border-color: #2493f0;
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.18);
  transform: translateY(-2px);
}

.member-plan-card.newcomer {
  border-color: #b7d7ff;
}

.member-plan-card.selected::after {
  content: "✓ 已选择此套餐";
  display: grid;
  place-items: center;
  margin-top: 18px;
  min-height: 30px;
  border-radius: 8px;
  background: #e8f4ff;
  color: #1f8de8;
  font-size: 13px;
  font-weight: 900;
}

.member-plan-card h3 {
  margin: 0;
  font-size: 18px;
}

.member-plan-card h3 span {
  display: inline-flex;
  margin-left: 6px;
  border-radius: 999px;
  padding: 3px 8px;
  background: #ff9f00;
  color: #fff;
  font-size: 12px;
}

.member-plan-card p {
  margin: 8px 0 18px;
  color: var(--muted);
}

.member-plan-card strong {
  display: block;
  color: #1f8de8;
  font-size: 28px;
}

.member-plan-card em {
  color: #53647d;
  font-size: 13px;
  font-style: normal;
}

.member-save {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 12px;
}

.member-save del {
  color: var(--muted);
}

.member-save b {
  border-radius: 4px;
  padding: 3px 7px;
  background: #fff0f0;
  color: #e11d48;
}

.member-plan-card ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid #edf1f6;
  list-style: none;
}

.member-plan-card li {
  position: relative;
  padding-right: 24px;
  color: #40506a;
  font-weight: 800;
}

.member-plan-card li::after {
  content: "✓";
  position: absolute;
  right: 0;
  top: 1px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 11px;
}

.profile-menu {
  display: grid;
  align-content: start;
  gap: 10px;
}

.profile-menu-item {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #3f4d63;
  padding: 14px 18px;
  text-align: left;
  font-weight: 800;
}

.profile-menu-item.active {
  color: var(--blue);
  background: #e8f1ff;
}

.profile-card {
  min-height: 420px;
  padding: 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.profile-tab {
  display: none;
}

.profile-tab.active {
  display: grid;
  gap: 18px;
}

.profile-tab h3 {
  margin: 0;
  font-size: 22px;
}

.profile-tab p {
  color: var(--muted);
}

.profile-field {
  display: grid;
  gap: 10px;
  font-weight: 800;
}

.profile-field input,
.inline-form input {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 14px;
  outline: none;
}

.inline-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.profile-list {
  display: grid;
  gap: 10px;
}

.profile-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fbff;
}

.profile-list-item button {
  border: 0;
  background: transparent;
  color: var(--red);
  font-weight: 800;
}

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

.pricing-card h2 {
  font-size: 30px;
}

.pricing-card ul {
  padding-left: 18px;
}

.pricing-card.featured {
  border-color: #8fb2ff;
  background: #f8fbff;
}

.benefit-panel {
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid #bcd2f1;
  border-radius: 8px;
  background: linear-gradient(180deg, #f3f8ff 0%, #f8f0fb 100%);
}

.benefit-panel h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.benefit-panel .blue-note {
  color: var(--blue);
  margin-bottom: 10px;
}

.benefit-panel .orange-note {
  color: #ff7a00;
  margin-bottom: 10px;
}

.benefit-panel ul {
  margin: 10px 0 18px;
  padding-left: 20px;
  color: #5d687d;
  line-height: 1.8;
}

.member-lock {
  margin-bottom: 14px;
  padding: 18px;
  border: 1px solid #bcd2f1;
  border-radius: 8px;
  background: #f8fbff;
}

.member-lock h2 {
  margin-bottom: 8px;
  font-size: 20px;
}

.member-lock p {
  color: var(--muted);
}

dialog {
  border: 0;
  padding: 0;
  background: transparent;
}

dialog::backdrop {
  background: rgba(15, 23, 42, 0.36);
}

.dialog-card {
  width: min(440px, calc(100vw - 32px));
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(20, 31, 50, 0.24);
  position: relative;
}

.dialog-close {
  position: absolute;
  right: 14px;
  top: 12px;
  border: 0;
  background: transparent;
  font-size: 24px;
}

.pay-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.pay-options button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
  padding: 12px;
  font-weight: 800;
}

.exclusive-card {
  width: min(350px, calc(100vw - 32px));
  padding: 30px 28px 26px;
  text-align: center;
}

.exclusive-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.exclusive-head h2 {
  margin: 0;
  font-size: 22px;
}

.exclusive-icon {
  width: 24px;
  height: 28px;
  border-radius: 12px 12px 4px 4px;
  background: #ff9f00;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
}

.exclusive-title {
  margin: 0;
  font-size: 17px;
  color: var(--text);
}

.exclusive-desc {
  margin: 14px 0 22px;
  color: var(--muted);
  line-height: 1.6;
}

.exclusive-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.important-dialog-card {
  width: min(760px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
}

.important-dialog-card h2 {
  margin: 8px 0 12px;
  line-height: 1.45;
}

.important-dialog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--blue-dark);
  font-weight: 800;
  margin-bottom: 16px;
}

.important-dialog-body {
  display: grid;
  gap: 16px;
}

.important-dialog-body p {
  margin: 0;
  color: #263345;
  line-height: 1.9;
}

.important-ai-loading,
.important-ai-error {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
  color: var(--muted);
  font-weight: 800;
}

.important-ai-error {
  color: #b42318;
  background: #fff6f4;
}

.important-ai-result {
  display: grid;
  gap: 12px;
}

.important-ai-result section {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.important-ai-result h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.ghost-button,
.primary-button {
  min-width: 100px;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 900;
  cursor: pointer;
}

.ghost-button {
  background: transparent;
  color: #52689a;
}

.primary-button {
  background: #ff9f00;
  color: #fff;
  box-shadow: 0 8px 18px rgba(255, 159, 0, 0.25);
}

.filter-card {
  width: min(520px, calc(100vw - 32px));
  display: grid;
  gap: 14px;
}

.filter-field {
  display: grid;
  gap: 8px;
  color: #41526f;
  font-weight: 800;
}

.filter-field select {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  color: var(--text);
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}

.voice-card {
  width: min(560px, calc(100vw - 32px));
  gap: 12px;
}

.voice-head h2 {
  margin: 0;
  font-size: 22px;
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafcff;
}

.setting-row strong {
  display: block;
  font-size: 16px;
}

.setting-row p,
.speed-tip {
  margin: 4px 0 0;
  color: var(--muted);
}

.switch {
  width: 68px;
  height: 38px;
  border: 1px solid #8f92a3;
  border-radius: 999px;
  background: #e9e9ef;
  position: relative;
  flex: 0 0 auto;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.switch::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #7a7f91;
  transition: transform 0.18s ease, background 0.18s ease;
}

.switch.on {
  background: #e6f0ff;
  border-color: #728ab8;
}

.switch.on::after {
  transform: translateX(30px);
  background: var(--blue-dark);
}

.speed-block {
  padding-top: 10px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
}

.speed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.speed-head span {
  color: var(--blue-dark);
  font-weight: 800;
}

.speed-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.speed-options button {
  min-height: 42px;
  min-width: 64px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-weight: 800;
}

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

@media (max-width: 1100px) {
  .content-grid,
  .pricing-grid,
  .research-layout,
  .macro-grid,
  .macro-summary-grid,
  .chart-row,
  .member-plan-grid,
  .member-plan-grid-wide,
  .limit-hotspot-layout,
  .risk-grid,
  .theme-card-grid,
  .profile-body {
    grid-template-columns: 1fr;
  }

  .insight-panel {
    position: static;
  }
}

@media (max-width: 780px) {
  .sidebar {
    position: static;
    width: auto;
    min-height: 0;
  }

  .shell {
    margin-left: 0;
    padding: 18px;
  }

  .topbar,
  .brief-status-bar,
  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .top-actions,
  .status-left,
  .status-actions,
  .searchbox {
    width: 100%;
  }

  .report-grid,
  .industry-grid,
  .market-grid,
  .limit-hotspot-layout,
  .risk-grid,
  .theme-card-grid {
    grid-template-columns: 1fr;
  }
}
