:root {
  color-scheme: dark;
  --page: #080e1a;
  --panel: #101a2b;
  --line: #233249;
  --text: #edf4ff;
  --muted: #a3b1c6;
  --dim: #8497b0;
  --cyan: #63d7fb;
  --mint: #53e2b7;
  --red: #ff8e98;
  --sans: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--text); font: 1rem/1.55 var(--sans); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
[hidden] { display: none !important; }
.shell { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.site-header { border-bottom: 1px solid #1b293d; background: #0c1422; }
.header-inner { height: 68px; display: flex; align-items: center; gap: 38px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 750; white-space: nowrap; }
.brand-mark { width: 35px; height: 35px; border-radius: 10px; border: 1px solid #3180a0; background: linear-gradient(145deg, #12304b, #11293a); display: flex; align-items: flex-end; justify-content: center; gap: 3px; padding-bottom: 9px; }
.brand-mark i { display: block; width: 3px; border-radius: 2px; background: var(--cyan); height: 7px; }
.brand-mark i:nth-child(2) { height: 11px; }
.brand-mark i:nth-child(3) { height: 16px; background: var(--mint); }
.data-status { margin-left: auto; white-space: nowrap; border: 1px solid #344258; background: #131e30; border-radius: 99px; color: var(--muted); padding: 4px 11px; font-size: .8125rem; }
.data-status i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #a6b6c9; margin-right: 6px; }
.data-status.demo { color: #f0cb88; border-color: #574630; background: #231e1c; }
.data-status.demo i { background: #f0cb88; }
.hero { position: relative; isolation: isolate; min-height: 344px; padding: 38px 42px 35px; margin: 30px 0 26px; border: 1px solid #263a55; border-radius: 18px; background: radial-gradient(ellipse at 78% 24%, #102d43 0%, #101e34 44%, #0d1729 80%); }
.hero-copy { position: relative; z-index: 1; width: min(490px, 100%); }
.hero h1 { margin: 0; font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 850; line-height: 1.12; letter-spacing: -.07em; }
.hero h1 span { background: linear-gradient(100deg, #57c9ff, #66e5bd); background-clip: text; color: transparent; }
.hero p { margin: 13px 0 21px; color: var(--muted); }
#market-art { position: absolute; z-index: -1; right: 0; top: 0; width: 54%; height: 100%; border-radius: inherit; }
.search-panel { position: relative; }
.search { display: flex; gap: 11px; align-items: center; padding: 6px 6px 6px 15px; background: #0b1525; border: 1px solid #34536d; border-radius: 11px; box-shadow: 0 8px 20px #050c1666; }
.search:focus-within { border-color: var(--cyan); }
.search-field { display: flex; flex: 1; min-width: 0; align-items: center; gap: 11px; }
.search input { min-width: 0; flex: 1; padding: 9px 0; background: transparent; color: var(--text); outline: none; border: 0; }
.search input::placeholder { color: #8ea4bb; }
.search-icon { position: relative; flex: 0 0 15px; width: 15px; height: 15px; border: 1.5px solid #8faec7; border-radius: 50%; margin-right: 4px; }
.search-icon::after { content: ""; position: absolute; width: 6px; height: 1.5px; background: #8faec7; right: -4px; bottom: -2px; transform: rotate(45deg); }
.primary { color: #062131; background: linear-gradient(105deg, #50befc, #58e3b9); border: 0; border-radius: 7px; font-weight: 800; padding: 10px 17px; white-space: nowrap; }
.primary:hover { filter: brightness(1.13); }
.quick { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 15px; font-size: .8125rem; color: var(--muted); }
.quick a { border: 1px solid #2a425b; padding: 3px 8px; border-radius: 6px; color: #cfdeee; }
.quick a:hover, .outline:hover { border-color: var(--cyan); color: var(--cyan); }
.quick small { font: inherit; margin-left: 4px; color: var(--dim); }
.board-jump {
  display: flex;
  min-height: 46px;
  margin-top: 17px;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border: 1px solid #3a7992;
  border-radius: 9px;
  background: linear-gradient(105deg, #142b44, #132f36);
  color: #80e4e0;
  font-weight: 750;
}
.board-jump:hover { border-color: var(--mint); }
.suggestions { position: absolute; z-index: 2; inset-inline: 0; margin-top: 4px; background: #142235; border: 1px solid #3b6079; border-radius: 9px; overflow: hidden; box-shadow: 0 14px 32px #0007; }
.suggestions a { display: flex; justify-content: space-between; gap: 10px; padding: 8px 14px; }
.suggestions a:hover, .suggestions a:focus-visible { background: #20364f; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.hero .search-error { margin: 7px 0 0; color: var(--red); font-size: .875rem; }
.search-error:empty { display: none; }
.leaderboard, .card { background: var(--panel); border: 1px solid var(--line); border-radius: 15px; }
.leaderboard { scroll-margin-top: 14px; overflow: hidden; }
.section-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 19px 23px 16px; }
h2, h3, p { margin: 0; }
h2 { font-size: 1.35rem; letter-spacing: -.03em; }
.section-header p, .board-meta { font-size: .875rem; color: var(--muted); }
.section-header p { margin-top: 6px; }
.board-meta { display: flex; gap: 13px; align-items: center; text-align: right; }
.outline { border: 1px solid #34475f; border-radius: 7px; background: #131f31; color: var(--text); padding: 6px 10px; font-size: .875rem; white-space: nowrap; }
.outline:disabled { opacity: .6; cursor: wait; }
.notice { color: var(--muted); padding: 18px 23px; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { background: #142136; color: #aebed4; font-weight: 500; font-size: .875rem; padding: 9px 13px; white-space: nowrap; }
td { padding: 9px 13px; border-top: 1px solid #1e2d42; }
td:first-child, th:first-child { padding-left: 23px; }
td:last-child, th:last-child { padding-right: 23px; }
tbody tr:hover { background: #16253b; }
.right { text-align: right; }
.stock-link { display: inline-flex; gap: 10px; align-items: baseline; font-weight: 700; }
.stock-link:hover { color: var(--cyan); }
.stock-link small, .radar-industry { color: var(--muted); font-size: .8125rem; font-weight: 400; }
.radar-industry { display: block; }
.place { color: #91a5bb; }
.place.leader { color: #77dcfb; font-weight: 700; }
.gain { color: var(--red); }
.loss { color: var(--mint); }
.tag { display: inline-block; color: #a8c5e0; border: 1px solid #2a4861; padding: 2px 8px; border-radius: 6px; font-size: .8125rem; white-space: nowrap; background: #162a40; }
.tag.strong { color: #8ee8fb; border-color: #275d72; background: #153648; }
.radar-page { padding-top: 27px; }
.radar-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.radar-heading h1 { margin: 0; font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.05em; line-height: 1.15; }
.radar-heading p { margin-top: 8px; color: var(--muted); }
.radar-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 18px; }
#radar-results { display: grid; gap: 16px; }
.radar-table { overflow-x: auto; }
.radar-table:focus-visible { outline-offset: -2px; }
.radar-table td { white-space: nowrap; }
.radar-values-mobile { display: none; }
.site-footer { display: flex; justify-content: space-between; gap: 12px; font-size: .8125rem; color: var(--dim); padding-block: 22px; }
.detail { padding-top: 27px; }
.detail-nav { display: flex; align-items: center; gap: 15px; margin-bottom: 21px; }
.detail-nav p { color: var(--muted); font-size: .875rem; }
.identity { padding: 25px; display: flex; justify-content: space-between; align-items: end; gap: 17px; background: linear-gradient(110deg, #12243d, #102132 66%, #132d3a); }
.identity h1 { margin: 0 0 10px; font-size: clamp(1.95rem, 5vw, 3rem); line-height: 1.16; letter-spacing: -.045em; }
.ticker { color: var(--cyan); font-size: 1rem; letter-spacing: 0; }
.stock-price { text-align: right; white-space: nowrap; }
.stock-price strong { display: block; font-size: 2rem; }
.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 14px 0; }
.metric, .outlook, .mainline { padding: 19px 21px; }
.metric h2, .mainline h2 { color: #b3c2d7; font-weight: 600; font-size: .9375rem; }
.metric-value { font-size: 1.7rem; font-weight: 750; margin: 5px 0 3px; color: var(--cyan); }
.metric-value small { font: 400 .875rem var(--sans); color: var(--muted); }
.metric-value.gain { color: var(--red); }
.metric-value.loss { color: var(--mint); }
.muted { color: var(--muted); font-size: .875rem; }
.detail-lower { display: grid; grid-template-columns: 1.7fr 1fr; gap: 14px; }
.mainline h2 { color: var(--text); font-size: 1.125rem; }
.rings { display: grid; grid-template-columns: 1fr 1fr; text-align: center; gap: 14px; margin-block: 18px; }
.ring { width: 108px; height: 108px; margin: 0 auto 7px; display: grid; place-items: center; position: relative; }
.ring canvas { width: 100%; height: 100%; position: absolute; inset: 0; }
.ring strong { font: 700 1.26rem var(--mono); color: var(--cyan); }
.rings > div:nth-child(2) strong { color: var(--mint); }
.stock-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.mainline .tag { margin: 12px 0 8px; }
.mainline p + p { margin-top: 9px; }
.error-page { padding-block: 36px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

@media (max-width: 750px) {
  .shell { width: calc(100% - 34px); }
  .header-inner { gap: 16px; height: 60px; }
  .hero { padding: 29px 23px 25px; min-height: 0; margin-top: 19px; }
  #market-art { width: 76%; opacity: .38; }
  .section-header { padding-inline: 15px; }
  .board-meta { flex-direction: column; align-items: flex-end; gap: 3px; font-size: .8125rem; white-space: nowrap; }
  td:first-child, th:first-child { padding-left: 14px; }
  td:last-child, th:last-child { padding-right: 14px; }
  td, th { padding-inline: 7px; }
  .stock-link { flex-direction: column; gap: 0; line-height: 1.4; }
  .detail-lower { grid-template-columns: 1fr; }
  .detail-grid { gap: 8px; }
  .metric { padding: 13px; }
}
@media (max-width: 600px) {
  .radar-table th, .radar-table td { padding-inline: 6px; }
  .radar-table th:first-child, .radar-table td:first-child { padding-left: 10px; }
  .radar-table th:last-child, .radar-table td:last-child { padding-right: 10px; }
  .radar-table .stock-link strong { white-space: normal; overflow-wrap: anywhere; }
  .radar-table .tag { padding-inline: 4px; }
  .radar-table .radar-value { display: none; }
  .radar-values-mobile { display: table-cell; text-align: right; }
  .radar-values-mobile dl, .radar-values-mobile dd { margin: 0; }
  .radar-values-mobile dl > div { display: flex; gap: 4px; justify-content: flex-end; align-items: baseline; flex-wrap: wrap; }
  .radar-values-mobile dt { color: var(--muted); font-size: .8125rem; }
  .radar-values-mobile dd { font-size: .875rem; }
  .hero { padding: 30px 17px 19px; overflow: visible; background: radial-gradient(ellipse at 65% 5%, #13273c, #0c1728 65%); }
  .hero-copy { margin-inline: auto; }
  .hero h1 {
    font-size: clamp(2.125rem, 9.3vw, 3.25rem);
    letter-spacing: -.065em;
    text-align: center;
    background: linear-gradient(108deg, #6acaff 23%, #78e8c8 77%);
    background-clip: text;
    color: transparent;
  }
  .hero h1 span { background: none; }
  .hero h1::after {
    content: "";
    display: block;
    width: min(64%, 190px);
    height: 2px;
    margin: 16px auto 0;
    background: linear-gradient(90deg, transparent, #45bde7 42%, #61ddb5 58%, transparent);
  }
  .hero-copy > p { margin: 13px 0 21px; text-align: center; font-size: .875rem; }
  #market-art { width: 100%; height: 61%; opacity: .16; }
  .search-panel { padding: 12px; border-radius: 12px; border: 1px solid #2c405a; background: #142035; box-shadow: 0 10px 22px #050c1644; }
  .search { display: grid; gap: 10px; padding: 0; background: transparent; border: none; box-shadow: none; }
  .search-field { padding: 0 11px; border: 1px solid #3a5770; border-radius: 8px; background: #0c1728; }
  .search-field:focus-within { border-color: var(--cyan); }
  .search input { min-height: 44px; }
  .primary { min-height: 44px; }
  .suggestions { inset-inline: 12px; }
  .quick { display: none; }
  .board-jump { margin-top: 14px; }
}
@media (max-width: 480px) {
  .shell { width: calc(100% - 26px); }
  .brand { font-size: .875rem; gap: 7px; }
  .brand-mark { width: 29px; height: 29px; padding-bottom: 6px; }
  .header-inner { gap: 13px; }
  .data-status { padding-inline: 7px; font-size: .75rem; }
  .hero { padding-inline: 16px; }
  .hero p { font-size: .875rem; }
  .primary { padding-inline: 10px; font-size: .875rem; }
  .detail-grid { grid-template-columns: 1fr; gap: 9px; }
  .metric { padding: 15px 19px; }
  .identity { align-items: start; padding: 18px; }
  .stock-price strong { font-size: 1.35rem; }
  .site-footer { justify-content: center; }
  .site-footer span:first-child { display: none; }
}
