:root {
  --ink: #1c1418;
  --ink-soft: #5c4e54;
  --muted: #8f8188;
  --paper: #fbf7f7;
  --paper-2: #f4ebea;
  --line: rgba(150, 70, 80, 0.12);
  --accent: #e8a3a0;
  --accent-deep: #c45a5a;
  --accent-soft: #f8e9e8;
  --jade: #e8a3a0;
  --jade-deep: #c45a5a;
  --jade-soft: #f8e9e8;
  --info: #3a6db0;
  --info-soft: rgba(58, 109, 176, 0.12);
  --related: #c45a5a;
  --related-soft: rgba(196, 90, 90, 0.12);
  --gold: #a8893d;
  --up: #d64545;
  --down: #2f8f6b;
  --danger: #a83232;
  --radius: 2px;
  --font-display: "PingFang SC", "Helvetica Neue", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: "PingFang SC", "Helvetica Neue", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "PingFang SC", "Helvetica Neue", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-num: "PingFang SC", "Helvetica Neue", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(900px 480px at 80% -8%, rgba(232, 163, 160, 0.35), transparent 55%),
    linear-gradient(180deg, #f3e4e3 0%, var(--paper) 42%, #faf6f6 100%);
  line-height: 1.55;
}

body.app-body {
  overflow: hidden;
  height: 100dvh;
}

.app-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100dvh;
  max-width: 560px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.72);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  box-shadow: 0 0 48px rgba(196, 90, 90, 0.06);
}

.app-topbar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.35rem 1rem;
  padding-top: calc(0.35rem + env(safe-area-inset-top));
  border-bottom: 1px solid var(--line);
  background: rgba(251, 247, 247, 0.94);
  backdrop-filter: blur(12px);
}

.app-topbar-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.04em;
  text-align: center;
}

.app-topbar .brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.app-topbar .brand-name {
  font-size: 1.15rem;
}

.page-title {
  margin: 0;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
}

.top-meta {
  margin: 0;
  font-size: 0.68rem;
  color: var(--muted);
  font-family: var(--font-mono);
  text-align: right;
  max-width: 9.5rem;
  line-height: 1.25;
}

.app-main {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.9rem 0.9rem 1.1rem;
  padding-bottom: 1.25rem;
}

.app-page {
  display: none;
  animation: fade 0.25s ease;
}

.app-page.active {
  display: block;
}

#page-watch.active {
  position: relative;
  min-height: calc(100dvh - 7.5rem);
}

#page-quotes.active {
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - 7.5rem);
}

.home-hero {
  padding: 1.1rem 0.2rem 1rem;
}

.home-kicker {
  margin: 0 0 0.35rem;
  color: var(--accent-deep);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.home-hero h2 {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.25;
  font-weight: 700;
}

.home-lead {
  margin: 0.55rem 0 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.home-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
}

.home-ticker {
  position: relative;
  margin: 0.4rem 0 1rem;
  padding: 0.55rem 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.panel {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  padding: 0.9rem;
  margin-bottom: 0.85rem;
}

.home-highlight-panel {
  border-radius: 14px;
  padding: 0.75rem 0.8rem 0.8rem;
  margin-bottom: 0.65rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: none;
}

.home-highlight-panel .hl-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
  flex-wrap: nowrap;
}

.home-highlight-panel .hl-head h3 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  color: #1f1f1f;
  letter-spacing: 0.01em;
  flex: 0 0 auto;
}

.home-highlight-panel .home-live-stamp {
  margin-left: 0;
  flex: 0 0 auto;
  font-size: 0.58rem;
  color: #b0b0b0;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

.home-highlight-panel .home-live-stamp.on {
  color: #3a9a5c;
}

.home-highlight-panel .hotspot.compact {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
  max-width: none;
  margin: 0 0 0.65rem;
  padding: 0.32rem 0.45rem;
  border-radius: 8px;
  border: 0;
  background: #f7f7f8;
}

.home-highlight-panel .hot-tag {
  flex: 0 0 auto;
  padding: 0.1rem 0.34rem;
  font-size: 0.58rem;
  font-weight: 700;
  border-radius: 4px;
  background: #edf3fa;
  color: #5b7ea6;
  letter-spacing: 0.02em;
}

.home-highlight-panel .hot-marquee {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.home-highlight-panel .hot-track {
  display: flex;
  width: max-content;
  gap: 2.5rem;
  animation: hot-marquee 16s linear infinite;
}

.home-highlight-panel .hot-text {
  white-space: nowrap;
  font-size: 0.66rem;
  color: #7a7a7a;
  line-height: 1.35;
}

@keyframes hot-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.home-highlight-panel .highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

.home-highlight-panel .hl-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.12rem;
  padding: 0.48rem 0.5rem 0.5rem;
  border-radius: 10px;
  background: #fafafa;
  border: 1px solid transparent;
  min-width: 0;
}

.home-highlight-panel .hl-card:hover {
  transform: none;
  background: #f5f5f5;
}

.home-highlight-panel .hl-tag {
  align-self: center;
  margin: 0 0 0.1rem;
  padding: 0.06rem 0.28rem;
  font-size: 0.56rem;
  font-weight: 650;
  border-radius: 3px;
  line-height: 1.3;
}

.home-highlight-panel .hl-card h3 {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 500;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
  max-width: 100%;
}

.home-highlight-panel .hl-price {
  margin: 0.18rem 0 0;
  font-size: 1.02rem;
  font-weight: 700;
  font-family: var(--font-num);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.home-highlight-panel .hl-change {
  margin: 0;
  font-size: 0.62rem;
  font-family: var(--font-num);
  opacity: 0.92;
  line-height: 1.2;
}

.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}

.panel-head h3 {
  margin: 0;
  font-size: 1.05rem;
}

.panel-desc {
  margin: 0 0 0.75rem;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.hotspot.compact {
  max-width: none;
  padding: 0.4rem 0.55rem;
}

.hotspot.compact p {
  font-size: 0.78rem;
}

.tab-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  padding: 0.35rem 0.25rem;
  padding-bottom: calc(0.35rem + env(safe-area-inset-bottom));
}

.tab-item {
  display: grid;
  justify-items: center;
  gap: 0.15rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.35rem 0.2rem;
  cursor: pointer;
}

.tab-item svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: currentColor;
}

.tab-item.active {
  color: var(--accent-deep);
}

/* —— 行情页（参考 IMG_8776 / IMG_8777） —— */
.quotes-sheet {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px 16px 0 0;
  min-height: calc(100% - 0.2rem);
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
  height: 100%;
}

.quotes-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem 0.35rem;
  background: linear-gradient(180deg, #f0d6d5 0%, #fff 100%);
}

.quotes-title {
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.quotes-head-actions {
  display: flex;
  gap: 0.15rem;
}

.market-tabs {
  display: flex;
  gap: 0.15rem;
  overflow-x: auto;
  padding: 0.15rem 0.55rem 0.35rem;
  background: #fff;
  scrollbar-width: none;
}

.market-tabs::-webkit-scrollbar {
  display: none;
}

.market-tabs button {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.45rem 0.55rem 0.55rem;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
}

.market-tabs button.active {
  color: var(--accent-deep);
  font-weight: 700;
}

.market-tabs button.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.1rem;
  width: 1.2rem;
  height: 0.18rem;
  border-radius: 2px;
  background: var(--accent);
  transform: translateX(-50%);
}

.quote-cols {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr 0.75fr 0.85fr;
  gap: 0.25rem;
  padding: 0.35rem 0.85rem;
  border-bottom: 1px solid var(--line);
  background: #fafcfe;
}

.q-sort {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.75rem;
  padding: 0;
  cursor: pointer;
  text-align: right;
}

.q-sort:first-child {
  text-align: left;
}

.q-sort.active {
  color: var(--accent-deep);
  font-weight: 700;
}

.quote-list {
  flex: 1;
  overflow: auto;
  padding: 0 0.85rem;
  min-height: 12rem;
}

.quote-row {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr 0.75fr 0.85fr;
  gap: 0.25rem;
  align-items: center;
  padding: 0.72rem 0;
  border-bottom: 1px solid rgba(150, 70, 80, 0.07);
  cursor: pointer;
}

.quote-row:active {
  background: rgba(232, 163, 160, 0.1);
}

.qr-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink);
}

.qr-code {
  margin-top: 0.12rem;
  font-size: 0.72rem;
  color: var(--muted);
  font-family: var(--font-mono);
}

.role-tag {
  display: inline-block;
  margin-left: 0.28rem;
  padding: 0 0.18rem;
  border: 1px solid rgba(58, 109, 176, 0.35);
  color: var(--info);
  font-size: 0.62rem;
  line-height: 1.15;
  vertical-align: middle;
  background: var(--info-soft);
}

.qr-price,
.qr-chg,
.qr-oi {
  text-align: right;
  font-family: var(--font-num);
  font-weight: 500;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.qr-oi {
  color: var(--info);
  font-weight: 600;
}

.quote-pills {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding: 0.55rem 0.75rem;
  border-top: 1px solid var(--line);
  background: #fff;
  scrollbar-width: none;
}

.quote-pills::-webkit-scrollbar {
  display: none;
}

.pill {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}

.pill.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

#page-quotes {
  position: relative;
  height: 100%;
}

/* —— 首页（参考 IMG_8778 / 8779 / 8780） —— */
.home-search-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.65rem;
}

.avatar-btn,
.login-btn {
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(196, 90, 90, 0.12);
}

.login-btn svg {
  width: 1.2rem;
  height: 1.2rem;
}

.login-btn.is-on {
  background: var(--accent);
  color: #fff;
}

.home-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.5rem;
  padding: 0 0.85rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(150, 70, 80, 0.1);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
}

.home-search-icon {
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  color: #b8a8ad;
}

.home-search input {
  flex: 1;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.82rem;
  color: var(--ink-soft);
  min-width: 0;
}

.home-search input::placeholder {
  color: #b8a8ad;
}

.login-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.login-modal.hidden {
  display: none;
}

.login-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 12, 16, 0.42);
}

.login-sheet {
  position: relative;
  width: min(100%, 430px);
  padding: 1rem 1rem calc(1.2rem + env(safe-area-inset-bottom));
  border-radius: 16px 16px 0 0;
  background: #fff;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.12);
}

.login-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.login-head h2 {
  margin: 0;
  font-size: 1.05rem;
}

.login-close {
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.login-form {
  display: grid;
  gap: 0.85rem;
}

.login-field {
  display: grid;
  gap: 0.35rem;
}

.login-field span {
  font-size: 0.78rem;
  color: var(--muted);
}

.login-field input {
  width: 100%;
  min-height: 2.6rem;
  padding: 0 0.85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  font-size: 0.88rem;
  color: var(--ink);
  background: #fff;
}

.login-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 163, 160, 0.25);
}

.login-msg {
  min-height: 1.1rem;
  margin: 0;
  font-size: 0.78rem;
  color: var(--danger);
}

.login-submit {
  min-height: 2.75rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #efafac, #e08f8c);
  color: #fff;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
}

.app-toast {
  position: fixed;
  left: 50%;
  bottom: calc(5.5rem + env(safe-area-inset-bottom));
  z-index: 1300;
  transform: translateX(-50%) translateY(12px);
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: rgba(28, 20, 24, 0.88);
  color: #fff;
  font-size: 0.82rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.app-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.announce-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.7rem;
  padding: 0.45rem 0.55rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.announce-tag {
  flex: 0 0 auto;
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  background: #f0c96a;
  color: #5a3d00;
  font-size: 0.68rem;
  font-weight: 700;
}

.announce-bar p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-top-quotes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 0.4rem;
  margin-bottom: 0.65rem;
}

.top-q-card {
  border: 0;
  border-radius: 10px;
  background: var(--accent-soft);
  padding: 0.55rem 0.45rem;
  text-align: left;
  cursor: pointer;
  font: inherit;
  min-width: 0;
}

.top-q-card span {
  display: block;
  font-size: 0.7rem;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-q-card strong,
.top-q-card em {
  display: block;
  font-style: normal;
  font-family: var(--font-mono);
  font-weight: 700;
}

.top-q-card strong {
  margin-top: 0.2rem;
  font-size: 0.92rem;
}

.top-q-card em {
  font-size: 0.72rem;
}

.top-q-all {
  writing-mode: vertical-rl;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--info);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.4rem 0.35rem;
  cursor: pointer;
}

.sentiment-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.75rem;
  margin-bottom: 0.65rem;
}

.sentiment-nums {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  margin-bottom: 0.4rem;
}

.sentiment-track {
  display: flex;
  height: 0.42rem;
  border-radius: 999px;
  overflow: hidden;
  background: #eee;
  gap: 0.15rem;
}

.sentiment-track i {
  display: block;
  background: var(--up);
}

.sentiment-track b {
  display: block;
  background: var(--down);
  font-weight: 400;
}

.sentiment-heat {
  margin-top: 0;
  text-align: right;
  font-size: 0.72rem;
  color: var(--accent-deep);
  font-weight: 600;
}

.sentiment-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.sentiment-flat {
  font-size: 0.66rem;
  color: #999;
}

.sentiment-flat strong {
  color: #666;
  font-weight: 650;
}

/* —— S0 今日决策台 / 信号卡 —— */
.decision-desk {
  background: linear-gradient(165deg, #1a2744 0%, #243556 48%, #2a3d5c 100%);
  border-radius: 14px;
  padding: 0.85rem 0.8rem 0.7rem;
  margin-bottom: 0.7rem;
  color: #eef3fb;
  box-shadow: 0 8px 24px rgba(26, 39, 68, 0.22);
}

.decision-desk-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
}

.decision-desk-head h3 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 750;
  color: #fff;
}

.decision-desk-head p {
  margin: 0.22rem 0 0;
  font-size: 0.68rem;
  color: rgba(220, 230, 245, 0.72);
  line-height: 1.35;
}

.decision-desk-badge {
  flex: 0 0 auto;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 196, 90, 0.18);
  color: #ffd27a;
  font-size: 0.62rem;
  font-weight: 700;
  white-space: nowrap;
}

.signal-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.signal-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 0.6rem;
  padding: 0.7rem 0.75rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  text-align: left;
  color: inherit;
  width: 100%;
  font: inherit;
  transition: background 0.15s ease, transform 0.12s ease;
}

.signal-card:active {
  transform: scale(0.99);
  background: rgba(255, 255, 255, 0.12);
}

.signal-card.is-reject {
  opacity: 0.78;
  border-color: rgba(255, 140, 120, 0.35);
}

.signal-card-top {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  min-width: 0;
}

.signal-card-top strong {
  font-size: 0.92rem;
  font-weight: 750;
  color: #fff;
}

.signal-dir {
  padding: 0.08rem 0.38rem;
  border-radius: 5px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.signal-dir.long {
  background: rgba(230, 70, 70, 0.22);
  color: #ff8e8e;
}

.signal-dir.short {
  background: rgba(40, 180, 120, 0.2);
  color: #6ee0b0;
}

.signal-dir.flat {
  background: rgba(180, 190, 210, 0.18);
  color: #c5cddc;
}

.signal-reject-tag {
  padding: 0.06rem 0.35rem;
  border-radius: 4px;
  background: rgba(255, 100, 80, 0.25);
  color: #ffb4a4;
  font-size: 0.6rem;
  font-weight: 750;
}

.signal-score-box {
  text-align: right;
  line-height: 1.15;
}

.signal-score-box em {
  display: block;
  font-style: normal;
  font-size: 0.58rem;
  color: rgba(220, 230, 245, 0.55);
}

.signal-score-box strong {
  font-size: 1.15rem;
  font-family: var(--font-mono);
  font-weight: 750;
  color: #fff;
}

.signal-meta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  font-size: 0.68rem;
  color: rgba(220, 230, 245, 0.78);
}

.signal-meta b {
  font-weight: 700;
  color: #fff;
  font-family: var(--font-mono);
}

.signal-factors {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.28rem;
}

.signal-factors span {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  font-size: 0.55rem;
  color: rgba(220, 230, 245, 0.55);
}

.signal-factors i {
  display: block;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.signal-factors i b {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #6aa8ff, #8fd3ff);
}

.signal-card-foot {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-top: 0.1rem;
  font-size: 0.66rem;
  color: rgba(220, 230, 245, 0.62);
}

.signal-card-foot .enter {
  color: #9ec5ff;
  font-weight: 650;
}

.decision-desk-note {
  margin: 0.55rem 0 0;
  font-size: 0.58rem;
  color: rgba(220, 230, 245, 0.48);
  line-height: 1.4;
}

/* 信号详情页 */
body.signal-mode .app-topbar,
body.signal-mode .tab-bar { display: none; }

body.signal-mode .app-shell {
  grid-template-rows: 1fr;
  max-width: 560px;
  background: #f4f6fa;
}

body.signal-mode .app-main {
  padding: 0;
  overflow-y: auto;
}

#page-signal.active {
  display: block;
  min-height: 100%;
}

.sig-page {
  min-height: 100%;
  background: #f4f6fa;
  padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
}

.sig-head {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.75rem;
  padding-top: calc(0.55rem + env(safe-area-inset-top, 0px));
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 5;
}

.sig-back {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  font-size: 1.45rem;
  color: #333;
  border-radius: 10px;
  cursor: pointer;
}

.sig-head-title {
  min-width: 0;
}

.sig-head-title strong {
  display: block;
  font-size: 0.98rem;
}

.sig-head-title span {
  font-size: 0.62rem;
  color: #98a0ae;
}

.sig-head-actions {
  display: flex;
  gap: 0.35rem;
}

.sig-head-actions button {
  border: 0;
  background: #eef3fb;
  color: #3a5f9a;
  border-radius: 8px;
  padding: 0.35rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 650;
  cursor: pointer;
}

.sig-hero {
  margin: 0.75rem;
  padding: 0.9rem 0.85rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
}

.sig-hero-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.sig-hero-dir {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.sig-hero-dir .big {
  font-size: 1.35rem;
  font-weight: 800;
}

.sig-hero-dir .big.long { color: #d44; }
.sig-hero-dir .big.short { color: #1a9a5c; }
.sig-hero-dir .big.flat { color: #778; }

.sig-hero-score {
  text-align: right;
}

.sig-hero-score em {
  display: block;
  font-style: normal;
  font-size: 0.62rem;
  color: #99a;
}

.sig-hero-score strong {
  font-size: 1.6rem;
  font-family: var(--font-mono);
  color: #1a2333;
}

.sig-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.65rem;
}

.sig-chips span {
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: #f0f3f8;
  color: #556;
  font-size: 0.68rem;
  font-weight: 650;
}

.sig-chips span.warn {
  background: #ffe8e4;
  color: #c45;
}

.sig-block {
  margin: 0 0.75rem 0.65rem;
  padding: 0.8rem 0.85rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
}

.sig-block h4 {
  margin: 0 0 0.55rem;
  font-size: 0.88rem;
}

.sig-factor-rows {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.sig-factor-row {
  display: grid;
  grid-template-columns: 52px 1fr 36px;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.74rem;
  color: #556;
}

.sig-factor-row .bar {
  height: 7px;
  border-radius: 99px;
  background: #eef1f6;
  overflow: hidden;
}

.sig-factor-row .bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #4a8fff, #7eb6ff);
}

.sig-factor-row b {
  text-align: right;
  font-family: var(--font-mono);
  color: #234;
}

.sig-block ul {
  margin: 0;
  padding-left: 1.05rem;
  font-size: 0.82rem;
  color: #445;
  line-height: 1.55;
}

.sig-block li { margin-bottom: 0.28rem; }

.sig-range {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.sig-range div {
  padding: 0.55rem 0.6rem;
  border-radius: 10px;
  background: #f7f9fc;
}

.sig-range em {
  display: block;
  font-style: normal;
  font-size: 0.62rem;
  color: #99a;
  margin-bottom: 0.15rem;
}

.sig-range strong {
  font-family: var(--font-mono);
  font-size: 0.95rem;
}

.sig-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin: 0.75rem;
}

.sig-actions button {
  border: 0;
  border-radius: 12px;
  padding: 0.75rem 0.6rem;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
}

.sig-actions .primary {
  background: #3d7eff;
  color: #fff;
}

.sig-actions .ghost {
  background: #fff;
  color: #345;
  border: 1px solid var(--line);
}

.sig-disclaimer {
  margin: 0 0.85rem 1rem;
  font-size: 0.62rem;
  color: #a0a8b5;
  line-height: 1.45;
  text-align: center;
}

.ai-card {
  background: linear-gradient(135deg, #eef4fb, #f8ecec);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem;
  margin-bottom: 0.65rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ai-card:active {
  transform: scale(0.99);
  opacity: 0.95;
}

.ai-card:focus-visible {
  outline: 2px solid #4a7bbd;
  outline-offset: 2px;
}

.ai-head {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  margin-bottom: 0.45rem;
}

.ai-hot-tag {
  margin-left: auto;
  padding: 0.08rem 0.38rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff6b4a, #e64545);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.ai-head em {
  font-style: normal;
  font-family: var(--font-mono);
  font-weight: 700;
}

.ai-badge {
  display: inline-block;
  margin-right: 0.35rem;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  background: var(--info);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
}

.ai-body p {
  margin: 0.35rem 0 0;
  display: inline;
  font-size: 0.84rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.home-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem 0.75rem;
  margin-bottom: 0.65rem;
}

.home-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.55rem;
}

.home-card-head h3 {
  margin: 0;
  font-size: 1rem;
}

.inst-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
  overflow-x: auto;
  background: var(--paper-2);
  border-radius: 8px;
  padding: 0.2rem;
}

.inst-tabs button {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 0.4rem;
  border-radius: 6px;
  cursor: pointer;
}

.inst-tabs button.active {
  background: #fff;
  color: var(--accent-deep);
  box-shadow: 0 1px 4px rgba(196, 90, 90, 0.12);
}

.more-link,
.dots {
  border: 0;
  background: transparent;
  color: var(--info);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.dots {
  color: var(--muted);
  letter-spacing: 0.08em;
}

.insight-card {
  box-shadow: 0 2px 10px rgba(160, 90, 90, 0.06);
}

.insight-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 0.55rem;
  overflow-x: auto;
  background: #f3e9e9;
  border-radius: 8px;
  padding: 0.2rem;
}

.insight-tabs button {
  flex: 1;
  border: 0;
  background: transparent;
  color: #666;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.5rem 0.4rem;
  border-radius: 6px;
  cursor: pointer;
}

.insight-tabs button.active {
  background: #fff;
  color: #b54a4a;
  box-shadow: 0 1px 4px rgba(160, 70, 70, 0.14);
}

.insight-panel {
  cursor: pointer;
  border-radius: 8px;
}

.insight-panel:active {
  opacity: 0.92;
}

.insight-panel .price-tile {
  position: relative;
}

.pt-enter {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.58rem;
  color: #b07a7a;
  font-weight: 600;
}

.insight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.insight-tile {
  border-radius: 12px;
  padding: 0.6rem 0.65rem;
  min-width: 0;
  background: #fff;
  border: 1px solid rgba(180, 160, 160, 0.16);
}

.price-tile {
  position: relative;
  overflow: hidden;
}

.price-tile.down {
  background: linear-gradient(165deg, #f4fbf7 0%, #e8f5ee 100%);
  border-color: transparent;
}

.price-tile.up {
  background: linear-gradient(165deg, #fff6f6 0%, #fceeee 100%);
  border-color: transparent;
}

.pt-name {
  position: relative;
  z-index: 1;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
}

.pt-price {
  position: relative;
  z-index: 1;
  margin-top: 0.2rem;
  font-family: var(--font-mono);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.1;
}

.pt-chg {
  position: relative;
  z-index: 1;
  margin-top: 0.15rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
}

.pt-spark {
  position: absolute;
  right: 0.35rem;
  bottom: 0.25rem;
  width: 3.2rem;
  height: 1.8rem;
  opacity: 0.28;
  pointer-events: none;
}

.price-tile.down .pt-spark {
  fill: #6fbf96;
  stroke: #6fbf96;
}

.price-tile.up .pt-spark {
  fill: #e08a8a;
  stroke: #e08a8a;
}

.trend-tile {
  background: #fbf6ef;
  border-color: transparent;
}

.tile-title {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.3rem;
}

.trend-title {
  color: #d4833a;
}

.trend-ico {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f0c48a, #d4833a);
  box-shadow: 0 0 0 2px rgba(212, 131, 58, 0.18);
  flex: 0 0 auto;
}

.trend-tile p {
  margin: 0;
  font-size: 0.74rem;
  color: #777;
  line-height: 1.45;
}

.tile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.3rem;
  margin-bottom: 0.4rem;
}

.tile-title .blue { color: var(--info); }
.tile-title .red { color: var(--up); }
.tile-title .orange { color: #d4833a; }

.view-tag {
  flex: 0 0 auto;
  font-style: normal;
  font-size: 0.66rem;
  font-weight: 700;
  padding: 0.12rem 0.35rem;
  border-radius: 4px;
  line-height: 1.2;
}

.view-tag.bull {
  color: var(--up);
  background: #fceeee;
}

.view-tag.bear {
  color: var(--down);
  background: #e8f6ee;
}

.view-tag.mid {
  color: #666;
  background: #ececec;
}

.mini-bars {
  display: grid;
  gap: 0.32rem;
}

.mini-bars > div {
  display: grid;
  grid-template-columns: 2rem 1fr 1rem;
  gap: 0.3rem;
  align-items: center;
  font-size: 0.7rem;
  color: #666;
}

.mini-bars .track {
  display: block;
  height: 0.36rem;
  border-radius: 999px;
  background: #ebebeb;
  overflow: hidden;
}

.mini-bars i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #ddd;
  min-width: 0;
}

.mini-bars i.bull { background: var(--up); }
.mini-bars i.mid { background: #8a8a8a; }
.mini-bars i.bear { background: var(--down); }

.mini-bars b {
  text-align: right;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--ink-soft);
}

.ls-bar {
  display: flex;
  height: 0.42rem;
  border-radius: 999px;
  overflow: hidden;
  margin: 0.55rem 0 0.4rem;
  background: #eee;
}

.ls-bar i { background: var(--up); }
.ls-bar b { background: var(--down); font-weight: 400; }

.ls-desc {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 700;
  font-family: var(--font-mono);
}

.insight-rows {
  display: grid;
  gap: 0.4rem;
}

.insight-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 0.7rem;
  border-radius: 10px;
  background: #f7f4f4;
  border: 0;
}

.ir-label {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: baseline;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.ir-label em {
  font-style: normal;
}

.ir-label .red { color: var(--up); }
.ir-label .orange { color: #d4833a; }

.flow-row .ir-note {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 0.72rem;
  color: #888;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.insight-row > strong {
  flex: 0 0 auto;
  margin-left: auto;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.8rem;
  text-align: right;
  white-space: nowrap;
}

.fund-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.fund-box {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem;
  min-width: 0;
  background: var(--paper);
}

.fund-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
}

.dot.orange { background: #e29a4a; }
.dot.sand { background: #c4a57a; }

.fund-row {
  display: flex;
  justify-content: space-between;
  gap: 0.35rem;
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

.fund-row strong {
  font-family: var(--font-mono);
  font-weight: 700;
}

.data-btns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
  margin-bottom: 0.55rem;
}

.data-btns button {
  border: 0;
  border-radius: 8px;
  background: var(--info-soft);
  color: var(--info);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.55rem 0.3rem;
  cursor: pointer;
}

.data-feed {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.data-feed li {
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

.tag-neu,
.tag-new {
  display: inline-block;
  margin-right: 0.3rem;
  padding: 0.05rem 0.3rem;
  border-radius: 3px;
  font-size: 0.68rem;
  font-weight: 700;
}

.tag-neu { background: #e8e8e8; color: #666; }
.tag-new { background: #f3b36a; color: #fff; }

.broker-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem;
  background: var(--paper);
}

.broker-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.55rem;
}

.verified {
  display: inline-grid;
  place-items: center;
  width: 0.95rem;
  height: 0.95rem;
  margin-left: 0.25rem;
  border-radius: 50%;
  background: var(--up);
  color: #fff;
  font-size: 0.65rem;
}

.broker-grade {
  font-style: normal;
  color: var(--up);
  font-weight: 700;
  font-size: 0.85rem;
}

.broker-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
  margin-bottom: 0.55rem;
  text-align: center;
}

.broker-stats b {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.05rem;
}

.broker-stats span {
  font-size: 0.7rem;
  color: var(--muted);
}

.broker-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.3rem;
}

.broker-actions button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.4rem 0.15rem;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
}

.inst-summary {
  display: grid;
  grid-template-columns: auto auto auto 1fr;
  gap: 0.4rem;
  align-items: center;
  margin-bottom: 0.55rem;
}

.inst-summary strong,
.inst-summary em {
  font-family: var(--font-mono);
  font-style: normal;
  font-weight: 700;
}

.inst-notes {
  margin: 0;
  padding: 0;
  list-style: none;
}

.inst-notes li {
  padding: 0.55rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
  color: var(--ink);
  line-height: 1.45;
}

.inst-notes strong {
  color: var(--up);
}

.home-disclaimer {
  margin: 0.4rem 0 1rem;
  text-align: center;
  font-size: 0.7rem;
  color: var(--muted);
  line-height: 1.4;
}

@media (max-width: 560px) {
  .insight-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* —— 自选页（参考 IMG_8775） —— */
.watch-sheet {
  background: #fff;
  border-radius: 16px 16px 0 0;
  min-height: calc(100% - 0.2rem);
  overflow: hidden;
  border: 1px solid var(--line);
}

.watch-subtabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 0.55rem 0.4rem 0;
  background: linear-gradient(180deg, #f0d9d8 0%, #fff 100%);
}

.watch-subtabs button {
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.55rem 0.2rem 0.7rem;
  cursor: pointer;
  position: relative;
}

.watch-subtabs button.active {
  color: var(--ink);
  font-weight: 700;
}

.watch-subtabs button.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.2rem;
  width: 1.1rem;
  height: 0.18rem;
  border-radius: 2px;
  background: var(--up);
  transform: translateX(-50%);
}

.watch-panel {
  display: none;
  padding: 0.55rem 0.75rem 0.85rem;
}

.watch-panel.active {
  display: block;
}

.watch-group-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.55rem;
}

.group-pill {
  border: 0;
  background: var(--accent-soft);
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
}

.icon-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  cursor: pointer;
}

.icon-btn.active {
  color: var(--accent-deep);
  background: var(--accent-soft);
}

.watch-stats {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.55rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.watch-stats strong {
  margin-left: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.add-watch-btn {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--info);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.watch-cols {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.75fr 0.7fr;
  gap: 0.35rem;
  align-items: center;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
}

.sort-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.75rem;
  text-align: right;
  cursor: pointer;
  padding: 0;
}

.sort-btn.active {
  color: var(--up);
  font-weight: 700;
}

.watch-row {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.75fr 0.7fr;
  gap: 0.35rem;
  align-items: center;
  padding: 0.72rem 0;
  border-bottom: 1px solid rgba(150, 70, 80, 0.08);
  position: relative;
  cursor: pointer;
}

.watch-row:active {
  background: rgba(232, 163, 160, 0.1);
}

.w-meta {
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  text-align: left;
  font: inherit;
  cursor: pointer;
  min-width: 0;
  border-radius: 4px;
}
.w-meta:active {
  background: rgba(47, 107, 255, 0.06);
}

.w-name {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink);
}

.w-code {
  margin-top: 0.15rem;
  font-size: 0.72rem;
  color: var(--muted);
  font-family: var(--font-mono);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem;
}

.mini-tag {
  display: inline-block;
  margin-left: 0;
  padding: 0.02rem 0.18rem;
  border: 1px solid rgba(58, 109, 176, 0.45);
  color: #3a6db0;
  font-size: 0.58rem;
  line-height: 1.25;
  vertical-align: middle;
  border-radius: 2px;
  font-family: inherit;
}
.mini-tag.role {
  border-color: #4d8dff;
  color: #4d8dff;
  background: #f3f7ff;
}
.mini-tag.night {
  border-color: rgba(58, 109, 176, 0.45);
  color: #3a6db0;
  background: #f5f8fc;
}

.watch-action-mask {
  position: absolute;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.35);
}
.watch-action-mask.hidden {
  display: none;
}
.watch-action-sheet {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  z-index: 41;
  width: min(17.5rem, calc(100% - 2.4rem));
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(20, 30, 50, 0.22);
  overflow: hidden;
}
.watch-action-sheet.hidden {
  display: none;
}
.wa-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  padding: 0.55rem 2.4rem;
  border-bottom: 1px solid #f0f0f0;
}
.wa-head h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #222;
}
.wa-close {
  position: absolute;
  left: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  border: 0;
  background: transparent;
  color: #bbb;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.wa-list {
  padding: 0.15rem 0 0.35rem;
}
.wa-item {
  display: block;
  width: 100%;
  border: 0;
  border-bottom: 1px solid #f2f2f2;
  background: transparent;
  padding: 0.92rem 1rem;
  font: inherit;
  font-size: 0.92rem;
  color: #222;
  text-align: center;
  cursor: pointer;
}
.wa-item:last-child {
  border-bottom: 0;
}
.wa-item:active {
  background: #f7f7f7;
}

.watch-toast {
  position: fixed;
  left: 50%;
  bottom: 5.5rem;
  transform: translateX(-50%) translateY(12px);
  z-index: 80;
  max-width: 80%;
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
  background: rgba(30, 30, 30, 0.88);
  color: #fff;
  font-size: 0.78rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.watch-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.spark {
  width: 100%;
  height: 2.15rem;
  display: block;
}
.w-chart {
  min-width: 0;
  display: flex;
  align-items: center;
}

.w-price,
.w-chg {
  text-align: right;
  font-family: var(--font-num);
  font-weight: 500;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.watch-del {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1.5rem;
  height: 1.5rem;
  border: 0;
  border-radius: 50%;
  background: var(--related);
  color: #fff;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.watch-row:has(.watch-del) {
  padding-right: 1.8rem;
}

.watch-add-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.85rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
}

.plus-circle {
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  border: 1.5px solid var(--muted);
  display: inline-grid;
  place-items: center;
  font-size: 1rem;
  line-height: 1;
}

.watch-empty {
  padding: 2.5rem 1rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.index-bar {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  padding: 0.55rem 0.85rem;
  border-top: 1px solid var(--line);
  background: var(--paper);
  font-size: 0.78rem;
  color: var(--muted);
}

.index-bar strong,
.index-bar em {
  font-style: normal;
  font-family: var(--font-mono);
  font-weight: 600;
}

.watch-picker {
  position: absolute;
  inset: 0;
  z-index: 30;
  background: rgba(251, 247, 247, 0.98);
  display: flex;
  flex-direction: column;
  padding: 0.85rem;
}

.watch-picker.hidden {
  display: none;
}

.picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.picker-head h3 {
  margin: 0;
  font-size: 1.05rem;
}

#watchSearch {
  width: 100%;
  min-height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  font: inherit;
  background: #fff;
  margin-bottom: 0.65rem;
}
#watchSearch:focus {
  outline: none;
  border-color: #f0a020;
  box-shadow: 0 0 0 2px rgba(240, 160, 32, 0.15);
}

.picker-list {
  overflow: auto;
  flex: 1;
}

.picker-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.35rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.picker-row strong {
  display: block;
  color: var(--ink);
}

.picker-row small {
  color: var(--muted);
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  margin-top: 0.12rem;
}

.picker-row .fut-tag {
  font-style: normal;
  font-weight: 400;
  color: #999;
  font-size: 0.85em;
}

.picker-row .m-tag {
  display: inline-block;
  font-weight: 600;
  font-size: 0.62rem;
  line-height: 1;
  padding: 0.12rem 0.18rem;
  border: 1px solid #4d8dff;
  color: #4d8dff;
  border-radius: 2px;
  background: #f3f7ff;
}

.pick-star {
  font-style: normal;
  font-size: 1.25rem;
  color: #ccc;
  flex: 0 0 auto;
  line-height: 1;
}
.pick-star.on {
  color: #f5b400;
}

.picker-row em {
  font-style: normal;
  color: var(--info);
  font-weight: 700;
  font-size: 0.85rem;
}

.picker-row.on em {
  color: var(--muted);
  font-weight: 500;
}

.app-shell {
  position: relative;
}

.evaluate,
.market,
.quotes,
.related {
  padding: 0;
}

#page-evaluate .eval-layout {
  margin: 0;
}

#page-evaluate .eval-form,
#page-evaluate .eval-result {
  margin: 0;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid var(--jade);
  border-radius: 50% 50% 50% 8%;
  transform: rotate(-18deg);
  box-shadow: inset 0 0 0 3px var(--paper), 0 0 0 1px rgba(232, 163, 160, 0.45);
  background: linear-gradient(135deg, var(--jade-soft), transparent 60%);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: 0.04em;
  line-height: 1;
}

.nav {
  display: flex;
  gap: 1.25rem;
  margin-left: auto;
}

.nav a,
.header-cta {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
}

.nav a:hover,
.header-cta:hover {
  color: var(--jade-deep);
}

.header-cta {
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--jade);
  color: var(--jade-deep);
  transition: background 0.25s ease, color 0.25s ease;
}

.header-cta:hover {
  background: var(--jade);
  color: #fff;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: end;
  min-height: calc(100vh - 4.2rem);
  padding: clamp(2rem, 6vh, 4.5rem) clamp(1.25rem, 4vw, 3.5rem) clamp(2.5rem, 7vh, 5rem);
  overflow: hidden;
}

.brand-hero {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  line-height: 0.9;
  letter-spacing: 0.06em;
  color: var(--jade-deep);
  animation: rise 0.9s ease both;
}

.hero h1 {
  margin: 0;
  max-width: 14ch;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.85rem, 3.6vw, 3rem);
  line-height: 1.2;
  animation: rise 0.9s ease 0.08s both;
}

.hero-lead {
  margin: 1.1rem 0 0;
  max-width: 34ch;
  color: var(--ink-soft);
  font-size: 1.05rem;
  animation: rise 0.9s ease 0.16s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
  animation: rise 0.9s ease 0.24s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.7rem 1.25rem;
  border: 1px solid transparent;
  text-decoration: none;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  background: var(--jade);
  color: #f7fbf8;
}

.btn.primary:hover {
  background: var(--jade-deep);
}

.btn.ghost {
  border-color: var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.35);
}

.btn.ghost:hover {
  border-color: var(--jade);
  color: var(--jade-deep);
}

.btn.full {
  width: 100%;
}

.hero-visual {
  position: relative;
  min-height: 320px;
  align-self: stretch;
  display: grid;
  align-content: end;
  animation: fade 1.1s ease 0.2s both;
}

.ticker-plane {
  position: absolute;
  inset: 0 0 auto;
  display: grid;
  gap: 0.65rem;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.ticker-row {
  display: flex;
  gap: 1.5rem;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--muted);
  animation: marquee 28s linear infinite;
}

.ticker-row.reverse {
  animation-direction: reverse;
  animation-duration: 34s;
}

.ticker-row .up { color: var(--up); }
.ticker-row .down { color: var(--down); }

.hero-chart {
  width: 100%;
  height: auto;
  margin-top: 4.5rem;
  filter: drop-shadow(0 18px 30px rgba(196, 90, 90, 0.12));
}

.chart-grid {
  stroke: rgba(20, 32, 28, 0.08);
  stroke-width: 1;
}

.chart-line {
  stroke: var(--jade);
  stroke-width: 2.5;
  stroke-linecap: round;
  fill: none;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: draw 1.8s ease 0.4s forwards;
}

.chart-dot {
  fill: var(--jade-deep);
  opacity: 0;
  animation: fade 0.5s ease 1.8s forwards;
}

.section-head {
  margin-bottom: 1.75rem;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 400;
}

.section-head p {
  margin: 0.55rem 0 0;
  color: var(--ink-soft);
  max-width: 42ch;
}

.hero-meta {
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-family: var(--font-mono);
}

.hero-meta .down,
.hero-meta .up {
  font-weight: 600;
}

.row-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.hotspot {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  max-width: 34rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.hot-tag {
  flex-shrink: 0;
  padding: 0.15rem 0.45rem;
  background: var(--info);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hotspot p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.hl-card {
  padding: 1rem 1.05rem 1.15rem;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--line);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.hl-card:hover {
  transform: translateY(-2px);
  border-color: rgba(232, 163, 160, 0.45);
}

.hl-tag {
  display: inline-block;
  margin-bottom: 0.55rem;
  padding: 0.15rem 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
}

.hl-tag.low {
  color: var(--down);
  background: rgba(42, 157, 110, 0.12);
}

.hl-tag.high {
  color: var(--up);
  background: rgba(192, 57, 43, 0.1);
}

.hl-card h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.hl-price {
  margin: 0.55rem 0 0.2rem;
  font-family: var(--font-mono);
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1;
}

.hl-change {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.quote-toolbar,
.related-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.quote-toolbar.stacked {
  flex-direction: column;
  align-items: stretch;
  gap: 0.7rem;
}

.toolbar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.toolbar-label {
  flex-shrink: 0;
  min-width: 4.2rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.broker-note,
.quote-summary {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.quote-summary {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
}

.chip em {
  margin-left: 0.3rem;
  font-style: normal;
  opacity: 0.75;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.quote-table.dense th,
.quote-table.dense td {
  padding: 0.75rem 0.7rem;
  font-size: 0.86rem;
}

.quote-table.dense td:nth-child(2),
.quote-table.dense td:nth-child(10) {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--ink-soft);
}

.seg.tabs {
  display: inline-grid;
  grid-template-columns: repeat(3, auto);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.chip {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
}

.chip.active {
  border-color: var(--jade);
  background: var(--jade);
  color: #fff;
}

.mini-seg {
  display: inline-flex;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.mini-seg button {
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 0.8rem;
  cursor: pointer;
}

.mini-seg button.active {
  background: var(--accent-soft);
  color: var(--accent-deep);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.quote-table-wrap {
  overflow-x: auto;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
}

.quote-table {
  width: 100%;
  border-collapse: collapse;
}

.quote-table th,
.quote-table td {
  padding: 0.95rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.quote-table th {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 600;
}

.quote-table td {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 500;
}

.quote-table td:first-child,
.quote-table td:last-child {
  font-family: var(--font-body);
}

.q-name {
  font-weight: 700;
  color: var(--ink);
}

.q-code {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
}

.q-code .tag {
  display: inline-block;
  margin-right: 0.35rem;
  padding: 0.05rem 0.3rem;
  border: 1px solid rgba(58, 109, 176, 0.35);
  color: var(--info);
  font-size: 0.68rem;
  font-weight: 700;
}

.quote-table .empty {
  text-align: center;
  color: var(--muted);
  font-family: var(--font-body);
  padding: 2rem;
}

.quote-table tr:last-child td {
  border-bottom: 0;
}

.up { color: var(--up); }
.down { color: var(--down); }

.related-table th:last-child,
.related-table td:last-child {
  color: var(--related);
  font-family: var(--font-body);
  font-weight: 700;
}

.stock-link {
  color: var(--up);
  font-weight: 700;
}

.stock-link.empty {
  color: var(--muted);
  font-weight: 500;
}

.insights li.related-tip {
  border-left-color: var(--up);
  background: linear-gradient(90deg, var(--related-soft), var(--info-soft));
  color: var(--ink-soft);
}

.insights li.related-tip strong {
  color: var(--info);
}

.eval-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  align-items: start;
  width: 100%;
  max-width: 100%;
}

#page-evaluate .eval-form,
#page-evaluate .eval-result {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.eval-result {
  padding: 1rem;
  display: grid;
  gap: 1rem;
  min-height: auto;
  overflow: hidden;
}

.score-panel {
  display: flex;
  gap: 1rem;
  align-items: center;
  min-width: 0;
}

.score-meta {
  min-width: 0;
  flex: 1;
}

.score-meta .grade-desc {
  margin: 0.35rem 0 0;
  color: var(--ink-soft);
  max-width: none;
}

.eval-form,
.eval-result,
.method-grid article,
.contract-table-wrap {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.eval-form {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
}

.eval-form label {
  display: grid;
  gap: 0.4rem;
}

.eval-form label > span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.eval-form input,
.eval-form select {
  width: 100%;
  min-height: 2.6rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
  font: inherit;
  font-family: var(--font-mono);
  font-size: 0.92rem;
}

.eval-form input:focus,
.eval-form select:focus {
  outline: 2px solid rgba(232, 163, 160, 0.45);
  border-color: var(--jade);
}

.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.65);
}

.seg-btn {
  min-height: 2.6rem;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.seg-btn.active {
  background: var(--jade);
  color: #fff;
}

.range-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.range-wrap input[type="range"] {
  flex: 1;
  accent-color: var(--jade);
  padding: 0;
  min-height: auto;
  border: 0;
  background: transparent;
}

.range-wrap output {
  min-width: 2.5rem;
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--jade-deep);
}

.eval-result {
  padding: 1rem;
  display: grid;
  gap: 1rem;
  min-height: auto;
  overflow: hidden;
}

.score-panel {
  display: flex;
  gap: 1rem;
  align-items: center;
  min-width: 0;
}

.score-ring {
  --score: 0;
  width: 6.5rem;
  height: 6.5rem;
  flex: 0 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.92) 58%, transparent 59%),
    conic-gradient(var(--jade) calc(var(--score) * 1%), rgba(20, 32, 28, 0.08) 0);
  transition: background 0.6s ease;
}

.score-ring span {
  font-family: var(--font-display);
  font-size: 1.85rem;
  line-height: 1;
}

.score-ring small {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.score-meta .grade {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.8rem;
}

.score-meta .grade-desc {
  margin: 0.35rem 0 0;
  color: var(--ink-soft);
  max-width: none;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.metric {
  min-width: 0;
  padding: 0.75rem 0.7rem;
  border: 1px solid var(--line);
  background: var(--accent-soft);
  overflow: hidden;
}

.metric span {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 0.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.metric strong {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(0.78rem, 3.4vw, 0.98rem);
  font-weight: 600;
  line-height: 1.25;
  word-break: break-all;
  overflow-wrap: anywhere;
}

.bars {
  display: grid;
  gap: 0.7rem;
}

.bar-row {
  display: grid;
  grid-template-columns: 5.5rem 1fr 2.5rem;
  gap: 0.75rem;
  align-items: center;
  font-size: 0.88rem;
}

.bar {
  height: 0.45rem;
  background: rgba(20, 32, 28, 0.08);
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--info));
  transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.bar-row em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-align: right;
  color: var(--ink-soft);
}

.insights {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.insights li {
  padding: 0.75rem 0.9rem;
  border-left: 3px solid var(--jade);
  background: var(--jade-soft);
  color: var(--ink-soft);
  font-size: 0.92rem;
  animation: rise 0.45s ease both;
}

.insights li.warn {
  border-left-color: var(--gold);
  background: rgba(168, 137, 61, 0.14);
}

.insights li.danger {
  border-left-color: var(--danger);
  background: rgba(155, 47, 36, 0.1);
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.method-grid article {
  padding: 1.25rem 1.15rem 1.4rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.method-grid article:hover {
  transform: translateY(-3px);
  border-color: rgba(232, 163, 160, 0.45);
}

.method-grid h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 400;
}

.method-grid p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.contract-table-wrap {
  overflow-x: auto;
}

.contract-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.contract-table th,
.contract-table td {
  padding: 0.9rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.contract-table th {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.contract-table td {
  font-family: var(--font-mono);
  font-size: 0.86rem;
}

.contract-table td:first-child,
.contract-table td:nth-child(2) {
  font-family: var(--font-body);
  font-weight: 600;
}

.pick-btn {
  border: 1px solid var(--jade);
  background: transparent;
  color: var(--jade-deep);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
}

.pick-btn:hover {
  background: var(--jade);
  color: #fff;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem clamp(1.25rem, 4vw, 3.5rem) 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.25rem;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 980px) {
  .hero,
  .eval-layout {
    grid-template-columns: 1fr;
  }

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

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

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

@media (max-width: 560px) {
  .app-shell {
    max-width: none;
    border: 0;
    box-shadow: none;
  }

  .top-meta {
    display: none;
  }

  .row-2,
  .highlight-grid {
    grid-template-columns: 1fr;
  }

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

  .score-panel {
    flex-direction: column;
    align-items: flex-start;
  }

  .bar-row {
    grid-template-columns: 4.5rem 1fr 2.2rem;
  }

  .seg.tabs {
    width: 100%;
    grid-template-columns: repeat(3, 1fr);
  }

  .eval-layout {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 900px) {
  .highlight-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* —— 曲和风格品种详情页 —— */
body.detail-mode .app-topbar,
body.detail-mode .tab-bar { display: none; }

body.detail-mode .app-shell {
  grid-template-rows: 1fr;
  max-width: 560px;
  background: #fff;
}

body.detail-mode .app-main {
  padding: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

body.xiaozhi-mode .app-topbar,
body.xiaozhi-mode .tab-bar { display: none; }

body.xiaozhi-mode .app-shell {
  grid-template-rows: 1fr;
  max-width: 560px;
  background: #f4f7fb;
}

body.xiaozhi-mode .app-main {
  padding: 0;
  overflow: hidden;
}

#page-detail.active {
  display: block;
  min-height: 100%;
}

#page-xiaozhi.active {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
}

.xz-page {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
  background: linear-gradient(180deg, #eef4fb 0%, #f7f9fc 40%, #f4f7fb 100%);
}

.xz-head {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  gap: 0.25rem;
  padding: 0.55rem 0.65rem;
  padding-top: calc(0.55rem + env(safe-area-inset-top, 0px));
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid #e6ecf4;
  backdrop-filter: blur(8px);
}

.xz-back,
.xz-gear {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: #333;
  font-size: 1.45rem;
  line-height: 1;
  border-radius: 10px;
  cursor: pointer;
}

.xz-gear {
  font-size: 1.05rem;
  color: #667;
}

.xz-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  min-width: 0;
}

.xz-logo {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(145deg, #ff8a3d, #e85a2a);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  position: relative;
  box-shadow: 0 2px 6px rgba(232, 90, 42, 0.28);
}

.xz-logo::after {
  content: "Ai";
  position: absolute;
  right: -6px;
  top: -5px;
  font-size: 0.48rem;
  font-weight: 800;
  background: #e64545;
  color: #fff;
  padding: 0.05rem 0.18rem;
  border-radius: 4px;
}

.xz-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.xz-brand-text strong {
  font-size: 0.98rem;
  color: #1f2430;
}

.xz-brand-text span {
  font-size: 0.62rem;
  color: #98a0ae;
  font-weight: 500;
}

.xz-messages {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.75rem 0.7rem 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.xz-bubble-user {
  align-self: flex-end;
  max-width: 86%;
  background: #3d7eff;
  color: #fff;
  border-radius: 14px 14px 4px 14px;
  padding: 0.55rem 0.75rem;
  font-size: 0.88rem;
  line-height: 1.45;
  box-shadow: 0 2px 8px rgba(61, 126, 255, 0.22);
}

.xz-bubble-ai {
  align-self: stretch;
  display: flex;
  gap: 0.45rem;
}

.xz-ai-avatar {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ff8a3d, #e85a2a);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  margin-top: 0.15rem;
}

.xz-ai-col {
  flex: 1;
  min-width: 0;
}

.xz-ai-ready {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  color: #8a93a3;
}

.xz-ai-card {
  background: linear-gradient(180deg, #eaf3ff, #f7faff);
  border: 1px solid #d9e6f7;
  border-radius: 12px;
  padding: 0.75rem 0.8rem;
  color: #243044;
  font-size: 0.84rem;
  line-height: 1.65;
}

.xz-ai-card h4 {
  margin: 0 0 0.45rem;
  font-size: 0.92rem;
  color: #1a2333;
}

.xz-ai-card .xz-meta {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  color: #7a8799;
}

.xz-ai-card .xz-quote-mini {
  margin: 0.55rem 0;
  padding: 0.55rem 0.6rem;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e6ecf4;
}

.xz-quote-mini .qm-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.25rem;
}

.xz-quote-mini .qm-top strong {
  font-size: 0.86rem;
}

.xz-quote-mini .qm-tag {
  font-size: 0.62rem;
  padding: 0.08rem 0.35rem;
  border-radius: 4px;
  background: #ffe8e8;
  color: #d44;
  font-weight: 700;
}

.xz-quote-mini .qm-tag.up {
  background: #ffe8e8;
  color: #d44;
}

.xz-quote-mini .qm-tag.down {
  background: #e6f7ee;
  color: #1a9a5c;
}

.xz-quote-mini .qm-price {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 750;
}

.xz-quote-mini .qm-chg {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  margin-left: 0.35rem;
}

.xz-quote-mini .qm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.28rem 0.4rem;
  margin-top: 0.45rem;
  font-size: 0.68rem;
  color: #6b7788;
}

.xz-quote-mini .qm-grid b {
  color: #2a3344;
  font-weight: 650;
  font-family: var(--font-mono);
}

.xz-ai-card section {
  margin-top: 0.65rem;
}

.xz-ai-card section:first-of-type {
  margin-top: 0.35rem;
}

.xz-ai-card h5 {
  margin: 0 0 0.25rem;
  font-size: 0.86rem;
  color: #1a2333;
}

.xz-ai-card p {
  margin: 0 0 0.35rem;
}

.xz-ai-card ul {
  margin: 0.2rem 0 0.4rem;
  padding-left: 1.05rem;
}

.xz-ai-card li {
  margin-bottom: 0.2rem;
}

.xz-typing {
  display: inline-flex;
  gap: 0.28rem;
  padding: 0.55rem 0.75rem;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e6ecf4;
}

.xz-typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9aa8bc;
  animation: xzDot 1.1s infinite ease-in-out;
}

.xz-typing i:nth-child(2) { animation-delay: 0.15s; }
.xz-typing i:nth-child(3) { animation-delay: 0.3s; }

@keyframes xzDot {
  0%, 80%, 100% { opacity: 0.35; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}

.xz-dock {
  flex: 0 0 auto;
  padding: 0.35rem 0.65rem calc(0.55rem + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, transparent, #f4f7fb 28%);
}

.xz-chips {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding: 0.2rem 0 0.45rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.xz-chips::-webkit-scrollbar { display: none; }

.xz-chips button {
  flex: 0 0 auto;
  border: 0;
  background: #e8f1ff;
  color: #3a5f9a;
  border-radius: 999px;
  padding: 0.38rem 0.72rem;
  font-size: 0.76rem;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
}

.xz-chips button.active {
  background: #3d7eff;
  color: #fff;
}

.xz-composer {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: #fff;
  border: 1px solid #dde5f0;
  border-radius: 999px;
  padding: 0.28rem 0.35rem 0.28rem 0.45rem;
  box-shadow: 0 2px 10px rgba(40, 70, 120, 0.06);
}

.xz-mic {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #f0f4fa;
  color: #667;
  font-size: 0.95rem;
  cursor: pointer;
}

.xz-composer input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 0.9rem;
  padding: 0.35rem 0.2rem;
  min-width: 0;
}

.xz-send {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #3d7eff;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.xz-send:disabled {
  opacity: 0.45;
  cursor: default;
}

.xz-disclaimer {
  margin: 0.4rem 0 0;
  text-align: center;
  font-size: 0.58rem;
  color: #a0a8b5;
  line-height: 1.35;
}

.detail-page {
  min-height: 100%;
  overflow: visible;
  background: #fff;
}

.qh-page {
  display: block;
  min-height: 100%;
  background: #fff;
  position: relative;
  overflow: visible;
  padding-bottom: calc(3.4rem + env(safe-area-inset-bottom));
}

.qh-top {
  flex: 0 0 auto;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  padding-top: env(safe-area-inset-top);
}

.qh-nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem;
  min-height: 2.85rem;
  padding: 0.55rem 0.35rem 0.5rem;
}
.qh-icon {
  border: 0;
  background: transparent;
  color: #333;
  font-size: 0.98rem;
  padding: 0.12rem;
  cursor: pointer;
  line-height: 1;
}
.qh-nav-back {
  flex: 0 0 auto;
  z-index: 2;
  font-size: 1.65rem;
  font-weight: 400;
  padding: 0.15rem 0.45rem 0.15rem 0.2rem;
  min-width: 2.4rem;
  min-height: 2.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.qh-nav-mid {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 3.8rem);
  pointer-events: none;
}
.qh-name-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.22rem;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.qh-name-row strong {
  font-size: 1rem;
  font-weight: 700;
  color: #222;
  line-height: 1.35;
}
.qh-main-tag {
  font-style: normal;
  font-size: 0.58rem;
  color: #fff;
  background: #f08a2a;
  border-radius: 2px;
  padding: 0.05rem 0.2rem;
  line-height: 1.2;
}
.qh-nav-price {
  font-size: 0.78rem;
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.qh-sub {
  margin: 0.02rem 0 0;
  font-size: 0.52rem;
  color: #999;
}

.qh-quote {
  position: relative;
  padding: 0.1rem 0.55rem 0;
}
.qh-quote-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.55rem 1.15rem;
  align-items: start;
}
.qh-quote .qh-last-block {
  min-width: 5.2rem;
  margin: 0;
  padding-right: 0.15rem;
}
.qh-quote .qh-last {
  font-size: 1.7rem;
  letter-spacing: -0.02em;
}
.qh-quote .qh-chg {
  margin-top: 0.12rem;
  font-size: 0.7rem;
}
.qh-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.18rem 0.45rem;
  min-width: 0;
}
.qh-grid-base {
  margin-left: 0.2rem;
}
.qh-grid-more {
  margin-top: 0.35rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-top: 0.15rem;
  border-top: 1px solid #f3f3f3;
}
.qh-cell span {
  display: block;
  font-size: 0.52rem;
  color: #999;
  line-height: 1.15;
}
.qh-cell b {
  display: block;
  margin-top: 0.04rem;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  color: #333;
  line-height: 1.2;
}
.qh-quote-extra {
  display: flex;
  justify-content: flex-end;
  padding: 0.2rem 0 0;
}
.qh-pankou-custom {
  border: 0;
  background: transparent;
  color: #f08a2a;
  font: inherit;
  font-size: 0.62rem;
  padding: 0.1rem 0;
  cursor: pointer;
}
.qh-quote-fold {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  border: 0;
  background: transparent;
  color: #c0c0c0;
  font-size: 0.72rem;
  line-height: 1;
  padding: 0.18rem 0 0.28rem;
  cursor: pointer;
}
.qh-quote-fold:active { color: #f08a2a; }
.qh-status {
  border: 0;
  background: transparent;
  color: #999;
  font: inherit;
  font-size: 0.58rem;
  padding: 0.05rem 0;
  cursor: pointer;
  margin-left: 0.15rem;
}
.qh-status.is-live {
  color: #2f9f6e;
  font-weight: 600;
}
.qh-closed-tip {
  margin: 0.15rem 0.55rem 0.25rem;
  padding: 0.28rem 0.4rem;
  background: #f5f5f5;
  border-radius: 4px;
  color: #888;
  font-size: 0.58rem;
}
.qh-quote-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.45rem;
  align-items: center;
  padding: 0.1rem 0.4rem 0.28rem;
}
.qh-last-block { margin-bottom: 0; min-width: 4.6rem; }
.qh-last {
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1;
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}
.qh-chg {
  margin-top: 0.08rem;
  font-size: 0.66rem;
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
}
.qh-mini-quote {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}
.qh-mini-quote > div {
  display: grid;
  grid-template-columns: 1.6rem 1fr auto;
  gap: 0.25rem;
  align-items: baseline;
  font-size: 0.62rem;
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
}
.qh-mini-quote span { color: #999; }
.qh-mini-quote b { font-weight: 650; color: #333; }
.qh-mini-quote em {
  font-style: normal;
  color: #666;
  min-width: 2.2rem;
  text-align: right;
}
.qh-pankou-btn {
  display: grid;
  justify-items: center;
  gap: 0.05rem;
  border: 1px solid #e5e5e5;
  background: #fafafa;
  color: #888;
  font: inherit;
  font-size: 0.52rem;
  line-height: 1.1;
  padding: 0.35rem 0.22rem;
  border-radius: 4px;
  cursor: pointer;
  writing-mode: horizontal-tb;
  min-width: 1.7rem;
}
.qh-pankou-btn i { font-style: normal; font-size: 0.55rem; }
.qh-pankou-btn.open {
  color: #f08a2a;
  border-color: #f2c28a;
  background: #fff8f0;
}
.qh-icon.on { color: #f08a2a; }

.qh-pankou-mask {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.18);
  z-index: 12;
}
.qh-pankou-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(3.2rem + env(safe-area-inset-bottom));
  z-index: 13;
  background: #fff;
  border-radius: 10px 10px 0 0;
  box-shadow: 0 -6px 24px rgba(0,0,0,0.12);
  padding: 0.1rem 0.55rem 0.45rem;
  max-height: 55%;
  overflow: auto;
}
.qh-pankou-handle {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  color: #bbb;
  font-size: 0.85rem;
  line-height: 1;
  padding: 0.2rem 0 0.15rem;
  cursor: pointer;
}
.qh-pankou-grid { display: grid; gap: 0.08rem; }
.qh-pankou-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  padding: 0.18rem 0;
  border-bottom: 1px solid #f3f3f3;
}
.qh-pankou-cell {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.35rem;
  font-size: 0.7rem;
}
.qh-pankou-cell span { color: #999; flex: 0 0 auto; }
.qh-pankou-cell b {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: #333;
  text-align: right;
}

.qh-related {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0.1rem 0.55rem 0;
  padding: 0.14rem 0.28rem;
  background: #fff5f5;
  border-radius: 3px;
  font-size: 0.62rem;
}
.qh-related b {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.qh-related em { font-style: normal; }
.qh-alert {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  margin: 0.12rem 0.55rem 0.18rem;
  font-size: 0.58rem;
  color: #666;
}
.qh-alert i {
  font-style: normal;
  color: #f08a2a;
  font-weight: 600;
}
.qh-alert em { font-style: normal; }

.qh-compact {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0.25rem;
  padding: 0.12rem 0.45rem 0.25rem;
}
.qh-mini-chart {
  height: 2.6rem;
  background: #fafafa;
  border-radius: 3px;
  overflow: hidden;
}
.qh-mini-chart svg { width: 100%; height: 100%; display: block; }
.qh-mini-tape {
  font-size: 0.62rem;
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
}
.qh-mini-tape div {
  display: flex;
  justify-content: space-between;
  gap: 0.25rem;
  padding: 0.08rem 0;
}
.qh-mini-tape em { font-style: normal; color: #aaa; }
.qh-mini-tape b { font-weight: 600; }
.qh-mini-tape i { font-style: normal; }
.qh-mini-filters {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.2rem;
}
.qh-mini-filters button {
  border: 0;
  background: #f5f5f5;
  color: #666;
  font: inherit;
  font-size: 0.58rem;
  padding: 0.15rem 0.35rem;
  border-radius: 3px;
  cursor: pointer;
}

.qh-periods {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 0.25rem;
  border-bottom: 1px solid #f0f0f0;
  flex: 0 0 auto;
  overflow-x: auto;
}
.qh-periods button {
  border: 0;
  background: transparent;
  color: #666;
  font: inherit;
  font-size: 0.72rem;
  padding: 0.32rem 0.38rem 0.28rem;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
}
.qh-periods button.active {
  color: #f08a2a;
  font-weight: 700;
}
.qh-periods button.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 1rem;
  height: 2px;
  background: #f08a2a;
}
.qh-more-period {
  margin-left: auto;
  color: #999;
  font-size: 0.72rem;
  padding: 0.35rem;
}

.qh-tech-banner {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: calc(100% - 1.1rem);
  margin: 0 0.55rem 0.45rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid #f0f0f0;
  border-radius: 10px;
  background: linear-gradient(90deg, #fafafa, #fff);
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.qh-tech-banner.bull {
  border-color: #ffd8d0;
  background: linear-gradient(90deg, #fff7f5, #fff);
}

.qh-tech-banner.bear {
  border-color: #d8efe3;
  background: linear-gradient(90deg, #f5fbf7, #fff);
}

.qh-tech-score {
  flex: 0 0 auto;
  min-width: 2.6rem;
  text-align: center;
}

.qh-tech-score b {
  display: block;
  font-size: 1.05rem;
  font-family: var(--font-num);
  line-height: 1.1;
}

.qh-tech-score.bull b { color: var(--up); }
.qh-tech-score.bear b { color: var(--down); }
.qh-tech-score.mid b { color: #666; }

.qh-tech-score span {
  display: block;
  margin-top: 0.08rem;
  font-size: 0.58rem;
  color: #999;
}

.qh-tech-main {
  flex: 1;
  min-width: 0;
}

.qh-tech-main strong {
  display: block;
  font-size: 0.78rem;
  color: #222;
}

.qh-tech-banner.bull .qh-tech-main strong { color: var(--up); }
.qh-tech-banner.bear .qh-tech-main strong { color: var(--down); }

.qh-tech-main em {
  display: block;
  margin-top: 0.1rem;
  font-style: normal;
  font-size: 0.62rem;
  color: #888;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qh-tech-go {
  flex: 0 0 auto;
  font-size: 0.62rem;
  color: #f08a2a;
}

.tech-sheet-mask {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.45);
}

.tech-sheet-mask.hidden { display: none; }

.tech-sheet {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  z-index: 91;
  width: 100%;
  max-width: 560px;
  max-height: 78vh;
  background: #fff;
  border-radius: 14px 14px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.tech-sheet.hidden { display: none; }

.tech-sheet-hd {
  position: relative;
  padding: 0.65rem 0.75rem 0.55rem;
  border-bottom: 1px solid #f0f0f0;
  text-align: center;
}

.tech-sheet-hd h3 {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
}

.tech-sheet-close {
  position: absolute;
  left: 0.55rem;
  top: 0.45rem;
  border: 0;
  background: transparent;
  font-size: 1.35rem;
  line-height: 1;
  color: #999;
  cursor: pointer;
}

.tech-sheet-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.55rem 0.65rem calc(0.75rem + env(safe-area-inset-bottom));
}

.tech-sheet-section { display: grid; gap: 0.65rem; }

.tech-score-card {
  padding: 0.65rem 0.7rem 0.55rem;
  border-radius: 10px;
  background: #fafafa;
  border: 1px solid #f0f0f0;
}

.tech-score-card.bull {
  background: linear-gradient(135deg, #fff7f5, #fff);
  border-color: #ffd8d0;
}

.tech-score-card.bear {
  background: linear-gradient(135deg, #f5fbf7, #fff);
  border-color: #d8efe3;
}

.tech-score-top {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.tech-score-top b {
  font-size: 1.65rem;
  font-family: var(--font-num);
  line-height: 1;
}

.tech-score-card.bull .tech-score-top b { color: var(--up); }
.tech-score-card.bear .tech-score-top b { color: var(--down); }

.tech-score-top span {
  font-size: 0.68rem;
  color: #888;
}

.tech-score-meter {
  position: relative;
  height: 0.28rem;
  margin: 0.55rem 0 0.35rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--down), #eee 50%, var(--up));
  overflow: hidden;
}

.tech-score-meter i {
  display: block;
  height: 100%;
  border-right: 2px solid #333;
  opacity: 0.85;
}

.tech-score-tags {
  display: flex;
  justify-content: space-between;
  font-size: 0.58rem;
  color: #aaa;
}

.tech-score-tags .up { color: var(--up); }
.tech-score-tags .down { color: var(--down); }

.tech-dims {
  display: grid;
  gap: 0.38rem;
}

.tech-dim {
  display: grid;
  grid-template-columns: 2.1rem 1fr 2rem;
  gap: 0.35rem;
  align-items: center;
  font-size: 0.68rem;
}

.tech-dim > span { color: #666; }

.tech-dim-track {
  position: relative;
  height: 0.35rem;
  border-radius: 999px;
  background: #f0f0f0;
  overflow: hidden;
}

.tech-dim-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
}

.tech-dim-fill.up { background: rgba(214, 69, 69, 0.55); }
.tech-dim-fill.down { background: rgba(47, 143, 107, 0.55); }
.tech-dim-fill.mid { background: #ccc; }

.tech-dim-track b {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: #333;
  border: 1px solid #fff;
}

.tech-dim > em {
  text-align: right;
  font-style: normal;
  font-family: var(--font-num);
  font-size: 0.62rem;
  color: #666;
}

.tech-signal-card {
  border: 1px solid #f0f0f0;
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  background: #fff;
}

.tech-signal-card.bull { border-color: #ffd8d0; background: #fffaf8; }
.tech-signal-card.bear { border-color: #d8efe3; background: #f8fcfa; }

.tech-signal-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.tech-signal-hd strong {
  font-size: 0.88rem;
}

.tech-signal-hd em {
  font-style: normal;
  font-size: 0.62rem;
  color: #999;
}

.tech-signal-reasons {
  margin: 0;
  padding-left: 1rem;
  color: #666;
  font-size: 0.68rem;
  line-height: 1.55;
}

.tech-signal-wait {
  margin: 0.35rem 0 0;
  font-size: 0.68rem;
  color: #888;
  line-height: 1.5;
}

.tech-signal-levels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 0.55rem;
  margin-top: 0.45rem;
}

.tech-signal-levels div span {
  display: block;
  font-size: 0.58rem;
  color: #999;
}

.tech-signal-levels div b {
  display: block;
  margin-top: 0.06rem;
  font-size: 0.76rem;
  font-family: var(--font-num);
  color: #222;
}

.tech-ind-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  font-size: 0.62rem;
  color: #888;
  font-family: var(--font-num);
}

.tech-disclaimer {
  margin: 0;
  font-size: 0.58rem;
  color: #aaa;
  line-height: 1.45;
}

.tech-alert-now h4,
.tech-alert-rules h4 {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
}

.tech-alert-now h4 i {
  display: inline-block;
  min-width: 1rem;
  height: 1rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: var(--up);
  color: #fff;
  font-style: normal;
  font-size: 0.58rem;
  line-height: 1rem;
  text-align: center;
}

.tech-alert-now ul {
  margin: 0;
  padding-left: 1rem;
  font-size: 0.68rem;
  color: #444;
  line-height: 1.55;
}

.tech-alert-empty {
  margin: 0;
  font-size: 0.68rem;
  color: #999;
}

.tech-alert-rules {
  display: grid;
  gap: 0.35rem;
}

.tech-alert-rule {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  padding: 0.45rem 0.5rem;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  cursor: pointer;
}

.tech-alert-rule input {
  margin-top: 0.15rem;
  accent-color: #f08a2a;
}

.tech-alert-rule strong {
  display: block;
  font-size: 0.72rem;
  color: #222;
}

.tech-alert-rule span {
  display: block;
  margin-top: 0.06rem;
  font-size: 0.6rem;
  color: #999;
}

.qh-market {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 6.8rem;
  overflow: hidden;
  border-bottom: 1px solid #f0f0f0;
  align-items: stretch;
  min-height: 16.5rem;
}
.qh-chart {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}
.qh-side {
  border-left: 1px solid #eee;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  background: #fff;
  height: 100%;
}
.qh-side-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid #f0f0f0;
}
.qh-side-tabs button {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.6rem;
  color: #888;
  padding: 0.22rem 0;
  cursor: pointer;
}
.qh-side-tabs button.active {
  color: #f08a2a;
  font-weight: 700;
}

.qh-danmu {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0.18rem 0.4rem;
  padding: 0.22rem 0.4rem;
  background: #f6f6f6;
  border-radius: 999px;
  color: #aaa;
  font-size: 0.62rem;
}
.qh-danmu-btn {
  border: 0;
  background: #f08a2a;
  color: #fff;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  font-size: 0.55rem;
  font-weight: 700;
  cursor: pointer;
}

.qh-feed {
  overflow: visible;
}

.qh-content-tabs {
  position: sticky;
  top: 0;
  z-index: 6;
  display: flex;
  gap: 0;
  overflow-x: auto;
  padding: 0 0.25rem;
  border-bottom: 1px solid #f0f0f0;
  background: #fff;
  scrollbar-width: none;
}
.qh-content-tabs::-webkit-scrollbar { display: none; }
.qh-content-tabs button {
  border: 0;
  background: transparent;
  color: #666;
  font: inherit;
  font-size: 0.74rem;
  padding: 0.35rem 0.45rem 0.3rem;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
}
.qh-content-tabs button.active {
  color: #222;
  font-weight: 700;
}
.qh-content-tabs button.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 1.15rem;
  height: 2px;
  background: #f08a2a;
}

.qh-content-body {
  flex: 0 0 auto;
  min-height: auto;
  overflow: visible;
}

.qh-opt-wrap {
  background: #fff;
}

.qh-opt-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.42rem 0.55rem 0.28rem;
  border-bottom: 1px solid #f5f5f5;
}

.qh-opt-underlying {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  min-width: 0;
}

.qh-opt-underlying span {
  font-size: 0.68rem;
  color: #888;
}

.qh-opt-underlying b {
  font-size: 0.82rem;
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
}

.qh-opt-expiry {
  flex: 0 0 auto;
  font-size: 0.62rem;
  color: #999;
  white-space: nowrap;
}

.qh-opt-months {
  display: flex;
  gap: 0.35rem;
  padding: 0.45rem 0.55rem 0.35rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.qh-opt-months::-webkit-scrollbar {
  display: none;
}

.qh-opt-month {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  padding: 0.34rem 0.72rem;
  border-radius: 999px;
  font: inherit;
  font-size: 0.76rem;
  color: #666;
  white-space: nowrap;
  cursor: pointer;
}

.qh-opt-month.active {
  background: #f08a2a;
  color: #fff;
  font-weight: 600;
}

.qh-opt-table {
  border-top: 1px solid #f0f0f0;
}

.qh-opt-head,
.qh-opt-row {
  display: grid;
  grid-template-columns: 1fr 4.6rem 1fr;
  align-items: stretch;
}

.qh-opt-head {
  position: sticky;
  top: 0;
  z-index: 4;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
}

.qh-opt-call,
.qh-opt-put {
  display: grid;
  grid-template-rows: auto auto;
  min-width: 0;
}

.qh-opt-call {
  background: #fff3f3;
}

.qh-opt-put {
  background: #f2faf5;
}

.qh-opt-side-title {
  padding: 0.38rem 0.35rem 0.18rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}

.qh-opt-side-title.call {
  color: #d64545;
}

.qh-opt-side-title.put {
  color: #2f8f6b;
}

.qh-opt-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.15rem;
  padding: 0 0.25rem 0.32rem;
  font-size: 0.62rem;
  color: #999;
  text-align: center;
}

.qh-opt-strike {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  color: #333;
  border-left: 1px solid #f0f0f0;
  border-right: 1px solid #f0f0f0;
  position: relative;
}

.qh-opt-strike.hd {
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.35rem 0.15rem;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 600;
  color: #666;
  cursor: pointer;
}

.qh-opt-strike.hd i {
  font-style: normal;
  color: #f08a2a;
  font-size: 0.62rem;
}

.qh-opt-tag {
  position: absolute;
  top: 0.12rem;
  right: 0.12rem;
  font-style: normal;
  font-size: 0.48rem;
  font-weight: 700;
  color: #fff;
  background: #f08a2a;
  border-radius: 2px;
  padding: 0 0.14rem;
  line-height: 1.25;
}

.qh-opt-row {
  border-bottom: 1px solid #f3f3f3;
}

.qh-opt-row.is-atm {
  background: rgba(240, 138, 42, 0.04);
}

.qh-opt-row.is-atm .qh-opt-strike {
  color: #f08a2a;
}

.qh-opt-row .qh-opt-call,
.qh-opt-row .qh-opt-put {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  padding: 0.34rem 0.2rem 0.28rem;
  font-size: 0.72rem;
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.qh-opt-row .qh-opt-call em,
.qh-opt-row .qh-opt-put em {
  grid-column: 1 / -1;
  font-style: normal;
  font-size: 0.52rem;
  color: #aaa;
  line-height: 1.2;
  margin-top: 0.06rem;
}

.qh-opt-row .qh-opt-call.is-itm span:nth-child(2),
.qh-opt-row .qh-opt-put.is-itm span:first-child {
  font-weight: 700;
}

.qh-opt-row .qh-opt-strike {
  font-size: 0.76rem;
  padding: 0.42rem 0.1rem;
}

.qh-opt-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  padding: 0.45rem 0.55rem 0.65rem;
  border-top: 1px solid #f0f0f0;
  background: #fafafa;
  font-size: 0.62rem;
  color: #888;
}

.qh-opt-foot span {
  white-space: nowrap;
}

.qh-data-wrap {
  background: #fff;
  padding-bottom: 0.5rem;
}

.qh-data-cats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.35rem;
  padding: 0.45rem 0.55rem 0.55rem;
}

.qh-data-cat-btn {
  border: 0;
  background: #f5f5f5;
  color: #666;
  border-radius: 999px;
  padding: 0.34rem 0.2rem;
  font: inherit;
  font-size: 0.72rem;
  cursor: pointer;
}

.qh-data-cat-btn.active {
  background: #fff0e8;
  color: #f08a2a;
  font-weight: 700;
}

.qh-data-panel {
  margin: 0 0.55rem 0.65rem;
  border: 1px solid #f0f0f0;
  border-radius: 10px;
  overflow: hidden;
}

.qh-data-panel-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.55rem;
  background: linear-gradient(90deg, #eef6ff, #fff);
}

.qh-data-panel-hd strong {
  font-size: 0.78rem;
  color: #3a6db0;
}

.qh-data-panel-hd span {
  font-size: 0.58rem;
  color: #999;
}

.qh-data-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.68rem;
}

.qh-data-table th {
  padding: 0.4rem 0.35rem;
  background: #f7fbff;
  color: #999;
  font-weight: 600;
  text-align: left;
  border-bottom: 1px solid #eef2f6;
}

.qh-data-th-cat {
  width: 2.1rem;
  padding: 0;
  background: #f7fbff;
  border-right: 1px solid #eef2f6;
}

.qh-data-table th:nth-child(3),
.qh-data-table th:nth-child(4) {
  text-align: center;
}

.qh-data-tr {
  cursor: pointer;
}

.qh-data-tr td {
  padding: 0.72rem 0.4rem;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
}

.qh-data-cat {
  width: 2.1rem;
  padding: 0.72rem 0.25rem;
  text-align: center;
  vertical-align: middle;
  font-size: 0.68rem;
  color: #888;
  background: #fafafa;
  border-right: 1px solid #f0f0f0;
}

.qh-data-name {
  vertical-align: top;
}

.qh-data-name strong {
  display: block;
  font-size: 0.72rem;
  color: #222;
  line-height: 1.35;
}

.qh-data-name span {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.58rem;
  color: #aaa;
}

.qh-data-val {
  text-align: center;
  white-space: nowrap;
}

.qh-data-val b {
  display: block;
  font-size: 0.82rem;
  font-family: var(--font-num);
  color: #222;
}

.qh-data-val em {
  display: block;
  margin-top: 0.1rem;
  font-style: normal;
  font-size: 0.58rem;
  color: #aaa;
}

.qh-data-read {
  text-align: center;
}

.qh-data-read i,
.tag-bull,
.tag-bear,
.tag-neutral {
  display: inline-block;
  font-style: normal;
  font-size: 0.58rem;
  padding: 0.08rem 0.32rem;
  border-radius: 3px;
  line-height: 1.2;
}

.tag-neutral {
  background: #b8b8b8;
  color: #fff;
}

.tag-bull {
  background: #e54b35;
  color: #fff;
}

.tag-bear {
  background: #e6f4eb;
  color: #2d8a4e;
}

.qh-data-read b {
  display: block;
  margin-top: 0.18rem;
  font-size: 0.72rem;
}

.qh-data-model-wrap {
  margin: 0 0.55rem 0.65rem;
}

.qh-data-model-wrap h4 {
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
  color: #222;
}

.qh-data-model {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.15rem;
  padding: 0.35rem 0;
}

.qh-data-model-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.qh-data-model-box {
  width: 100%;
  text-align: center;
  padding: 0.28rem 0.2rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fafafa;
  font-size: 0.68rem;
  color: #666;
}

.qh-data-model-arrow {
  color: #f08a2a;
  font-size: 0.9rem;
  line-height: 1.1;
  margin: 0.08rem 0;
}

.qh-data-model-list {
  width: 100%;
  display: grid;
  gap: 0.28rem;
}

.qh-data-model-item {
  position: relative;
  width: 100%;
  border: 1px solid #ffe2cc;
  background: #fff7f0;
  color: #f08a2a;
  border-radius: 6px;
  padding: 0.38rem 0.28rem;
  font: inherit;
  font-size: 0.58rem;
  line-height: 1.35;
  text-align: center;
  cursor: pointer;
}

.qh-data-model-link {
  flex: 0 0 auto;
  align-self: center;
  color: #ccc;
  font-size: 0.72rem;
  padding-top: 1.2rem;
}

.qh-data-dot {
  position: absolute;
  top: 0.18rem;
  right: 0.18rem;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: #e05a5a;
}

.qh-data-disclaimer {
  margin: 0.55rem 0 0;
  padding: 0.45rem 0.5rem;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  font-size: 0.58rem;
  color: #999;
  line-height: 1.45;
}

.qh-data-list {
  display: grid;
  gap: 0.35rem;
  padding: 0 0.55rem 0.65rem;
}

.qh-data-list-item {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 0.12rem 0.35rem;
  align-items: center;
  width: 100%;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  background: #fff;
  padding: 0.55rem 0.6rem;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.qh-data-list-item span {
  grid-column: 1;
  font-size: 0.76rem;
  color: #222;
}

.qh-data-list-item em {
  grid-column: 1;
  font-style: normal;
  font-size: 0.62rem;
  color: #999;
}

.qh-data-list-item i {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.qh-data-feed {
  padding: 0 0.55rem 0.65rem;
}

.qh-data-section {
  padding: 0.35rem 0 0.85rem;
  border-bottom: 1px solid #f0f0f0;
}

.qh-data-section:last-of-type {
  border-bottom: 0;
  padding-bottom: 0.35rem;
}

.qh-data-section h3,
.qh-data-detail h3 {
  margin: 0 0 0.45rem;
  font-size: 0.88rem;
  color: #222;
}

.qh-data-feed .qh-data-disclaimer {
  margin-top: 0.15rem;
}

.qh-data-detail {
  padding: 0 0.55rem 0.65rem;
}

.qh-data-back {
  border: 0;
  background: transparent;
  color: #666;
  font: inherit;
  font-size: 0.76rem;
  padding: 0.2rem 0;
  cursor: pointer;
}

.qh-data-insight {
  position: relative;
  padding: 0.55rem 0.65rem 0.65rem;
  background: #fff7f0;
  border-radius: 8px;
  margin-bottom: 0.55rem;
}

.qh-data-insight::after {
  content: "”";
  position: absolute;
  right: 0.45rem;
  bottom: 0.15rem;
  font-size: 1.4rem;
  line-height: 1;
  color: #ffd4b0;
}

.qh-data-insight p {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  color: #666;
  line-height: 1.5;
}

.qh-data-chart-hd {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  margin-bottom: 0.28rem;
  font-size: 0.62rem;
  color: #999;
}

.qh-data-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.08rem;
  font-size: 0.68rem;
  color: #333;
}

.qh-data-legend em {
  font-style: normal;
  color: #444;
}

.qh-data-legend-val {
  color: #f08a2a;
  font-weight: 700;
  font-family: var(--font-num);
}

.qh-data-chart-hd .dot {
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #4a90e2;
  margin-right: 0.2rem;
  flex: 0 0 auto;
}

.qh-data-chart {
  width: 100%;
  height: 11.2rem;
  display: block;
  background: #fff;
}

.qh-data-axis {
  font-size: 8px;
  fill: #aaa;
}

.qh-basis-page {
  padding: 0 0.55rem 0.65rem;
}

.qh-basis-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

.qh-basis-title {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.qh-basis-title strong {
  font-size: 0.92rem;
  color: #222;
}

.qh-basis-info {
  font-style: normal;
  font-size: 0.72rem;
  color: #bbb;
}

.qh-basis-ref {
  display: flex;
  gap: 0.2rem;
}

.qh-basis-ref button,
.qh-basis-ref-btn {
  border: 1px solid #eee;
  background: #fafafa;
  color: #666;
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
  font: inherit;
  font-size: 0.62rem;
  cursor: pointer;
}

.qh-basis-ref button.active,
.qh-basis-ref-btn {
  border-color: #ffd4b0;
  background: #fff7f0;
  color: #f08a2a;
  font-weight: 600;
}

.qh-basis-updated {
  margin-top: 0.25rem;
  font-size: 0.58rem;
  color: #aaa;
}

.qh-basis-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 0.45rem;
  padding: 0.55rem 0;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  background: #fff;
}

.qh-basis-metrics > div {
  text-align: center;
  padding: 0 0.2rem;
  border-right: 1px solid #f3f3f3;
}

.qh-basis-metrics > div:last-child {
  border-right: 0;
}

.qh-basis-metrics span {
  display: block;
  font-size: 0.58rem;
  color: #999;
}

.qh-basis-metrics b {
  display: block;
  margin-top: 0.18rem;
  font-size: 0.86rem;
  font-family: var(--font-num);
  color: #222;
  font-weight: 700;
}

.qh-basis-block {
  margin-top: 0.75rem;
}

.qh-basis-block-hd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem;
}

.qh-basis-block-hd strong {
  font-size: 0.84rem;
  color: #222;
}

.qh-basis-block-hd em {
  font-style: normal;
  font-size: 0.58rem;
  color: #aaa;
}

.qh-basis-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.7rem;
  margin: 0.35rem 0 0.25rem;
  font-size: 0.62rem;
  color: #666;
}

.qh-basis-legend .dot {
  display: inline-block;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  margin-right: 0.18rem;
  vertical-align: middle;
}

.qh-basis-legend .dot.gray { background: #9aa3ad; }
.qh-basis-legend .dot.blue { background: #4a90e2; }
.qh-basis-legend .dot.orange { background: #f08a2a; }

.qh-basis-legend b {
  font-family: var(--font-num);
  color: #222;
}

.qh-basis-chart {
  width: 100%;
  height: 12.5rem;
  display: block;
  background: #fff;
  overflow: visible;
}

.qh-basis-seg-wrap {
  display: flex;
  justify-content: center;
  margin: 0.45rem 0 0.4rem;
}

.qh-basis-seg {
  display: inline-flex;
  padding: 0.12rem;
  border-radius: 999px;
  background: #f3f3f3;
}

.qh-basis-seg button {
  border: 0;
  background: transparent;
  color: #666;
  border-radius: 999px;
  padding: 0.22rem 0.85rem;
  font: inherit;
  font-size: 0.68rem;
  cursor: pointer;
}

.qh-basis-seg button.active {
  background: #fff;
  color: #f08a2a;
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.qh-basis-years {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem 0.55rem;
  margin-bottom: 0.4rem;
}

.qh-basis-year {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 0.28rem;
  border: 0;
  background: transparent;
  padding: 0.1rem 0;
  text-align: left;
  cursor: pointer;
  font: inherit;
  opacity: 0.45;
}

.qh-basis-year.on {
  opacity: 1;
}

.qh-basis-check {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 2px;
  border: 1.5px solid #ccc;
  box-sizing: border-box;
}

.qh-basis-year i {
  grid-row: auto;
  width: auto;
  height: auto;
  border-radius: 2px;
}

.qh-basis-year em {
  font-style: normal;
  font-size: 0.68rem;
  color: #666;
}

.qh-basis-year b {
  justify-self: end;
  font-size: 0.72rem;
  font-family: var(--font-num);
  font-weight: 600;
}

.qh-ai-banner {
  margin: 0.35rem 0.45rem 0.2rem;
  padding: 0.35rem 0.45rem;
  background: linear-gradient(90deg, #eaf4ff, #f5f9ff);
  border-radius: 6px;
  color: #3a6db0;
  font-size: 0.66rem;
  font-weight: 600;
}
.qh-news-list { padding: 0 0.45rem 0.6rem; }
.qh-news-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.4rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid #f3f3f3;
}
.qh-news-main h4 {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 650;
  color: #222;
  line-height: 1.3;
}
.qh-news-main p {
  margin: 0.2rem 0 0;
  font-size: 0.58rem;
  color: #999;
}
.qh-news-thumb {
  width: 4.6rem;
  height: 3.2rem;
  border-radius: 6px;
  background: linear-gradient(145deg, #ffb35c, #f08a2a);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.qh-empty-card {
  margin: 0.8rem 0.65rem;
  padding: 0.9rem;
  background: #fafafa;
  border-radius: 8px;
  color: #666;
  font-size: 0.82rem;
}
.qh-empty-card strong {
  display: block;
  margin-top: 0.25rem;
  color: #222;
  font-size: 1rem;
}
.qh-empty-card .mt { margin-top: 0.7rem; }
.qh-data-row {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0;
  border-bottom: 1px solid #f0f0f0;
  font-family: var(--font-num);
}

.qh-board-fab { display: none; }

.qh-bar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  z-index: 20;
  width: 100%;
  max-width: 560px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 0.12rem;
  padding: 0.2rem 0.28rem calc(0.2rem + env(safe-area-inset-bottom));
  border-top: 1px solid #eee;
  background: #fff;
}
.qh-cta {
  border-radius: 999px;
  font: inherit;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.32rem 0.48rem;
  cursor: pointer;
}
.qh-cta.solid {
  border: 0;
  background: #f08a2a;
  color: #fff;
}
.qh-cta.outline,
.qh-cta.ghost {
  border: 1px solid #f08a2a;
  background: #fff;
  color: #f08a2a;
}
.qh-tool {
  border: 0;
  background: transparent;
  color: #666;
  font: inherit;
  display: grid;
  justify-items: center;
  gap: 0.05rem;
  padding: 0.1rem;
  cursor: pointer;
  min-width: 0;
}
.qh-tool.on { color: #f08a2a; }
.qh-tool i { font-style: normal; font-size: 0.85rem; line-height: 1; }
.qh-tool span { font-size: 0.5rem; white-space: nowrap; }

.qh-readout {
  flex: 0 0 auto;
  min-height: 1.4rem;
  padding: 0.2rem 0.35rem;
  font-size: 0.58rem;
  color: #666;
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  background: #fff7ef;
  border-bottom: 1px solid #f3e6d6;
  display: flex;
  flex-wrap: wrap;
  gap: 0.18rem 0.5rem;
  align-items: center;
}
.qh-readout.is-on { color: #222; background: #fff1e3; }
.qh-readout em {
  font-style: normal;
  font-weight: 700;
  color: #f08a2a;
}
.qh-readout span b { font-weight: 700; }
.qh-side-fab {
  position: absolute;
  right: 0;
  top: 42%;
  z-index: 6;
  width: 0.85rem;
  height: 1.6rem;
  border: 1px solid #e5e5e5;
  border-right: 0;
  border-radius: 4px 0 0 4px;
  background: #fafafa;
  color: #999;
  font-size: 0.7rem;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}
.qh-market.side-closed {
  grid-template-columns: 1fr;
}
.qh-market.side-closed .qh-side-fab {
  right: 0;
}
.qh-chart { position: relative; }
.qh-vp-empty {
  flex: 1;
  display: grid;
  place-items: center;
  color: #bbb;
  font-size: 0.7rem;
}
.qh-page .up { color: var(--up); }
.qh-page .down { color: var(--down); }

/* 图表复用 */
.fz-ind {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.35rem;
  padding: 0.1rem 0.28rem 0.02rem;
  font-size: 0.52rem;
  color: #888;
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
}
.fz-ind .c-price.up { color: var(--up); font-weight: 600; }
.fz-ind .c-price.down { color: var(--down); font-weight: 600; }
.fz-ind .c-avg, .fz-ind .c-ma10 { color: #f0a020; font-weight: 600; }
.fz-ind .c-prev { color: #999; }
.fz-ind .c-chg { font-weight: 600; }
.fz-ind .c-ma5 { color: #888; font-weight: 600; }
.fz-ind .c-ma20 { color: #9b6bce; font-weight: 600; }
.fz-ind .c-ma40 { color: #2aa39a; font-weight: 600; }
.fz-ind .c-ma60 { color: #3b82c4; font-weight: 600; }

.detail-chart-wrap {
  position: relative;
  touch-action: none;
  background: #fff;
  flex: 0 0 auto;
}
.chart-frame {
  display: grid;
  grid-template-columns: 1fr 2.05rem;
  align-items: stretch;
}
.chart-frame.has-dual-axis { grid-template-columns: 2.35rem 1fr 2.35rem; }
.chart-frame.fs-inaxis { grid-template-columns: 1fr; }
.chart-frame.vol-frame { grid-template-columns: 1fr; }
.chart-frame.macd-frame { grid-template-columns: 1fr; }
.chart-plot { min-width: 0; height: 8.5rem; }
.qh-chart .has-dual-axis .chart-plot { height: 11.2rem; }
.qh-chart .fs-plot,
.fz-chart .fs-plot {
  position: relative;
  height: 13.5rem;
  overflow: hidden;
}
.vol-frame .chart-plot,
.macd-frame .chart-plot { height: 4.1rem; }
.fz-chart .macd-frame .chart-plot { height: 4.2rem; }
.qh-chart .macd-frame .chart-plot { height: 4.2rem; }
.qh-chart .vol-frame .chart-plot { height: 2.55rem; }
.chart-svg { width: 100%; height: 100%; display: block; }

.chart-yaxis {
  position: relative;
  font-size: 0.46rem;
  font-family: var(--font-num);
  color: #888;
}
.chart-yaxis span {
  position: absolute;
  right: 0.04rem;
  transform: translateY(-50%);
  white-space: nowrap;
  line-height: 1;
}
.has-dual-axis .y-left span { right: 0.06rem; }
.has-dual-axis .y-right span { right: auto; left: 0.06rem; }
.chart-yaxis .up { color: var(--up); }
.chart-yaxis .down { color: var(--down); }
.chart-yaxis .mid { color: #666; }

.fs-sess {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.08rem;
  display: grid;
  grid-template-columns: var(--day-start, 45%) 1fr;
  pointer-events: none;
  z-index: 2;
  font-size: 0.44rem;
  color: #8b949e;
  text-align: center;
  line-height: 1;
}
.fs-xaxis {
  padding: 0.06rem 0.15rem 0 !important;
}
.fs-xaxis-abs {
  position: relative;
  height: 0.85rem;
  padding: 0 2.35rem !important;
}
.fs-xaxis-abs span {
  position: absolute;
  top: 0.05rem;
  transform: translateX(-50%);
  white-space: nowrap;
}
.fs-xaxis-abs span:first-child { transform: translateX(0); left: 2.35rem !important; }
.fs-xaxis-abs span:last-child { transform: translateX(-100%); }

.chart-yaxis {
  position: relative;
  font-size: 0.46rem;
  font-family: var(--font-num);
  color: #888;
}
.chart-yaxis span {
  position: absolute;
  right: 0.04rem;
  transform: translateY(-50%);
  white-space: nowrap;
  line-height: 1;
}
.has-dual-axis .y-right span { right: auto; left: 0.04rem; }
.chart-yaxis .up { color: var(--up); }
.chart-yaxis .down { color: var(--down); }
.chart-xaxis {
  display: flex;
  justify-content: space-between;
  padding: 0.04rem 2.05rem 0;
  font-size: 0.46rem;
  color: #999;
  font-family: var(--font-num);
}
.session-axis { padding-left: 2.15rem; padding-right: 2.15rem; }
.session-tags {
  display: grid;
  grid-template-columns: var(--day-start, 45%) 1fr;
  margin: -0.95rem 2.15rem 0.02rem;
  pointer-events: none;
  font-size: 0.42rem;
  color: #9aa3ad;
  text-align: center;
  line-height: 1;
  height: 0.7rem;
}
.detail-vol-wrap,
.detail-macd-wrap { border-top: 1px solid #f3f3f3; }
.vol-ind,
.macd-ind,
.sub-ind-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.18rem 0.32rem;
  padding: 0.1rem 0.28rem 0.04rem;
  font-size: 0.5rem;
  font-family: var(--font-num);
  color: #888;
}
.vol-ind .c-oi,
.macd-ind .c-dea { color: #f0a020; }
.macd-ind .c-diff { color: #26c6da; }
.macd-ind .c-macd { color: #ef5350; }
.macd-ind .macd-title { color: #666; font-weight: 600; }
.macd-ind .macd-params { color: #333; font-weight: 500; }
.sub-ind-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
  border: 0;
  margin: 0;
  padding: 0.06rem 0.28rem 0.06rem 0.34rem;
  border-radius: 999px;
  background: #f0f1f3;
  color: #333;
  font-size: 0.5rem;
  font-weight: 600;
  font-family: inherit;
  line-height: 1.2;
  cursor: pointer;
}
.sub-ind-pill i {
  font-style: normal;
  font-size: 0.42rem;
  color: #888;
  transform: scaleX(1.2);
}
.sub-ind-hint { color: #bbb; }

.chart-frame.macd-frame.has-macd-axis {
  grid-template-columns: 1.7rem minmax(0, 1fr);
}
.macd-yaxis {
  font-size: 0.48rem;
  color: #b0b6be;
}
.macd-yaxis span {
  transform: translateY(-50%);
}

/* 分时副图指标弹窗 */
.qh-ind-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
  z-index: 40;
}
.qh-ind-modal {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  width: min(19.5rem, calc(100% - 1.6rem));
  z-index: 41;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(20, 30, 50, 0.22);
  padding: 0.85rem 0.85rem 0.75rem;
}
.qh-ind-head {
  position: relative;
  text-align: center;
  margin-bottom: 0.75rem;
}
.qh-ind-head h3 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: #1a1a1a;
}
.qh-ind-close {
  position: absolute;
  right: -0.15rem;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #bbb;
  font-size: 1.25rem;
  line-height: 1;
  width: 1.6rem;
  height: 1.6rem;
  cursor: pointer;
}
.qh-ind-sec-title {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.55rem;
}
.qh-ind-sec-ico {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #5b9dff 0 28%, transparent 30%),
    conic-gradient(from 210deg, #5b9dff 0 70%, #fff 0);
  box-shadow: inset 0 0 0 1.5px #5b9dff;
  flex: 0 0 auto;
}
.qh-ind-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}
.qh-ind-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-height: 1.85rem;
  padding: 0.28rem 0.35rem;
  border: 0;
  border-radius: 6px;
  background: #f3f4f6;
  color: #222;
  font-size: 0.68rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
}
.qh-ind-chip.on {
  background: #fff3e6;
  color: #f08a2a;
  font-weight: 600;
}
.qh-ind-gear {
  font-style: normal;
  font-size: 0.58rem;
  color: #888;
  line-height: 1;
}
.qh-ind-settings {
  display: block;
  width: 100%;
  min-height: 2.2rem;
  border: 1px solid #e6e6e6;
  border-radius: 999px;
  background: #fff;
  color: #222;
  font-size: 0.78rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
}

.chart-inspect { display: none; position: absolute; inset: 0; pointer-events: none; z-index: 20; overflow: visible; }
.chart-inspect.is-on { display: block; }
.cross-v {
  position: absolute;
  width: 0;
  border-left: 1px dashed #2f6bff;
  background: transparent;
  z-index: 21;
}
.cross-h {
  position: absolute;
  height: 0;
  border-top: 1px dashed rgba(80, 80, 80, 0.65);
  background: transparent;
  z-index: 21;
}
.cross-price {
  position: absolute;
  background: #e05a5a;
  color: #fff;
  font-size: 0.54rem;
  font-family: var(--font-num);
  padding: 0.08rem 0.22rem;
  border-radius: 2px;
  white-space: nowrap;
  z-index: 22;
}
.cross-time {
  position: absolute;
  background: #2f6bff;
  color: #fff;
  font-size: 0.54rem;
  font-family: var(--font-num);
  padding: 0.08rem 0.2rem;
  border-radius: 2px;
  white-space: nowrap;
  z-index: 22;
}
.cross-tip {
  position: absolute;
  z-index: 30;
  pointer-events: none;
  max-width: calc(100% - 0.5rem);
}
.cross-tip.right { left: auto; }
.inspect-card {
  min-width: 7.8rem;
  max-width: 9.2rem;
  background: #fff;
  border: 1px solid #c5d3ea;
  box-shadow: 0 8px 22px rgba(15, 40, 80, 0.22);
  border-radius: 4px;
  padding: 0.4rem 0.48rem;
  font-size: 0.6rem;
  color: #666;
  line-height: 1.5;
}
.inspect-card .ic-date { font-weight: 700; color: #333; margin-bottom: 0.08rem; }
.inspect-card div { display: flex; justify-content: space-between; gap: 0.25rem; }
.inspect-card span { color: #999; }
.inspect-card b {
  font-weight: 500;
  color: #333;
  font-family: var(--font-num);
  text-align: right;
}
.inspect-card .ic-fs-btn {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  border: 0;
  border-radius: 3px;
  background: #f08a2a;
  color: #fff;
  font: inherit;
  font-size: 0.58rem;
  font-weight: 600;
  padding: 0.24rem;
  cursor: pointer;
}

.fs-depth { padding: 0.06rem 0.14rem; flex: 0 0 auto; }
.depth-row {
  display: grid;
  grid-template-columns: 1.2rem 1fr 1rem;
  gap: 0.04rem;
  align-items: center;
  padding: 0.02rem 0;
  font-size: 0.48rem;
}
.depth-row span { color: #9a9a9a; }
.depth-row b {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  color: var(--up);
  letter-spacing: 0;
}
.depth-row em {
  font-style: normal;
  font-family: var(--font-num);
  color: #555;
  text-align: right;
}
.depth-split { height: 1px; margin: 0.08rem 0; background: #eee; }
.fs-deal-head {
  padding: 0.1rem 0.14rem 0.02rem;
  font-size: 0.48rem;
  color: #666;
  font-weight: 600;
}
.fs-ticks {
  flex: 1;
  overflow-y: auto;
  padding: 0 0.1rem 0.12rem;
  min-height: 0;
}
.fs-tick {
  display: grid;
  grid-template-columns: 1.9rem minmax(0, 1fr) 1.35rem 0.85rem;
  gap: 0.04rem;
  align-items: center;
  padding: 0.06rem 0;
  border-bottom: 1px solid #f5f5f5;
  font-size: 0.44rem;
}
.fs-tick em { font-style: normal; color: #aaa; font-family: var(--font-num); }
.fs-tick b {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
}
.fs-tick i { font-style: normal; text-align: right; }
.fs-tick i.tone-up { color: var(--up); }
.fs-tick i.tone-down { color: var(--down); }
.fs-tick span { text-align: right; font-family: var(--font-num); color: #555; }

.qh-chart .fs-plot { height: 11.2rem; }
.qh-chart .vol-frame .chart-plot { height: 2.7rem; }
.qh-chart .has-dual-axis { grid-template-columns: 2.35rem minmax(0, 1fr) 2.35rem; }
.qh-chart .detail-chart-wrap { overflow: visible; z-index: 2; }

/* —— 方正中期风格单品种详情 —— */
.fz-page {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: #fff;
  position: relative;
  overflow: hidden;
}
.fz-page .up { color: var(--up); }
.fz-page .down { color: var(--down); }

.fz-top {
  flex: 0 0 auto;
  background: #e54545;
  color: #fff;
  padding-top: env(safe-area-inset-top);
}
.fz-page.down .fz-top { background: #1aad6b; }

.fz-nav {
  display: grid;
  grid-template-columns: 1.6rem 1fr auto auto;
  align-items: center;
  gap: 0.15rem;
  padding: 0.28rem 0.45rem 0.1rem;
}
.fz-icon {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.05rem;
  padding: 0.15rem;
  cursor: pointer;
  line-height: 1;
}
.fz-icon.on { color: #ffd666; }
.fz-nav-mid { text-align: center; min-width: 0; }
.fz-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}
.fz-sub {
  margin-top: 0.08rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.58rem;
  opacity: 0.92;
}
.fz-tag {
  font-style: normal;
  font-size: 0.5rem;
  border: 1px solid rgba(255,255,255,0.75);
  border-radius: 2px;
  padding: 0 0.18rem;
  line-height: 1.25;
}

.fz-quote {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.4rem;
  align-items: center;
  padding: 0.15rem 0.35rem 0.35rem 0.55rem;
}
.fz-last-col { min-width: 5rem; }
.fz-last {
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1;
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
}
.fz-chg {
  margin-top: 0.18rem;
  font-size: 0.72rem;
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  opacity: 0.95;
}
.fz-mini {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}
.fz-mini > div {
  display: grid;
  grid-template-columns: 1.6rem 1fr auto;
  gap: 0.28rem;
  align-items: baseline;
  font-size: 0.66rem;
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
}
.fz-mini span { opacity: 0.85; }
.fz-mini b { font-weight: 650; }
.fz-mini em { font-style: normal; text-align: right; min-width: 2rem; opacity: 0.95; }

.fz-pankou {
  display: grid;
  justify-items: center;
  gap: 0.08rem;
  align-self: stretch;
  border: 1px solid rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.12);
  color: #fff;
  font: inherit;
  font-size: 0.55rem;
  line-height: 1.15;
  padding: 0.35rem 0.2rem;
  border-radius: 3px;
  cursor: pointer;
  min-width: 1.55rem;
}
.fz-pankou i { font-style: normal; font-size: 0.55rem; }
.fz-pankou.open { background: rgba(255,255,255,0.22); }

.fz-periods {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 0.2rem;
  border-bottom: 1px solid #eee;
  background: #fff;
  overflow-x: auto;
}
.fz-periods button {
  border: 0;
  background: transparent;
  color: #555;
  font: inherit;
  font-size: 0.78rem;
  padding: 0.42rem 0.55rem 0.38rem;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
}
.fz-periods button.active {
  color: #2f6bff;
  font-weight: 700;
}
.fz-periods button.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 1.1rem;
  height: 2px;
  background: #2f6bff;
}
.fz-more-period {
  margin-left: auto;
  color: #999;
  font-size: 0.9rem;
  padding: 0.35rem 0.45rem;
  letter-spacing: 0.05em;
}

.fz-market {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 7.2rem;
  overflow: hidden;
  background: #fff;
}
.fz-chart {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #eee;
  padding-top: 0;
}
.fz-readout {
  flex: 0 0 auto;
  min-height: 1.55rem;
  padding: 0.28rem 0.4rem;
  font-size: 0.62rem;
  color: #888;
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  background: #eef4ff;
  border-bottom: 1px solid #d7e3f7;
  display: flex;
  flex-wrap: wrap;
  gap: 0.22rem 0.6rem;
  align-items: center;
  line-height: 1.35;
}
.fz-readout.is-on {
  color: #222;
  background: #e8f0ff;
}
.fz-readout em {
  font-style: normal;
  font-weight: 700;
  color: #2f6bff;
  margin-right: 0.15rem;
}
.fz-readout span b { font-weight: 700; }
.fz-chart .fz-ind {
  flex: 0 0 auto;
  padding: 0.12rem 0.35rem 0.06rem;
  font-size: 0.56rem;
  gap: 0.45rem;
  border-bottom: 0;
}
.fz-chart .fs-plot { height: 12.4rem; }
.fz-chart .macd-frame .chart-plot { height: 4.2rem; }
.fz-chart .has-dual-axis { grid-template-columns: 2.5rem minmax(0, 1fr) 2.5rem; }
.fz-chart .chart-yaxis { font-size: 0.5rem; }
.fz-chart .detail-chart-wrap {
  overflow: visible;
  z-index: 2;
  position: relative;
}
.fz-side {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 7.2rem;
  overflow: hidden;
  background: #fff;
}
.fz-more-ticks {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: #2f6bff;
  font: inherit;
  font-size: 0.52rem;
  padding: 0.28rem 0.2rem 0.35rem;
  cursor: pointer;
  text-align: center;
}

.fz-bar {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  gap: 0.1rem;
  padding: 0.28rem 0.2rem calc(0.28rem + env(safe-area-inset-bottom));
  border-top: 1px solid #eee;
  background: #fff;
}
.fz-tool {
  position: relative;
  border: 0;
  background: transparent;
  color: #2f6bff;
  font: inherit;
  display: grid;
  justify-items: center;
  gap: 0.08rem;
  padding: 0.15rem 0.1rem;
  cursor: pointer;
  min-width: 0;
}
.fz-tool i { font-style: normal; font-size: 0.95rem; line-height: 1; }
.fz-tool span { font-size: 0.52rem; color: #666; white-space: nowrap; }
.fz-tool.primary {
  background: #2f6bff;
  color: #fff;
  border-radius: 6px;
  margin: 0 0.1rem;
  padding: 0.28rem 0.1rem;
}
.fz-tool.primary span { color: #fff; }
.fz-new {
  position: absolute;
  top: -0.05rem;
  right: 0.35rem;
  font-style: normal;
  font-size: 0.42rem;
  background: #e54545;
  color: #fff;
  border-radius: 2px;
  padding: 0.02rem 0.12rem;
  line-height: 1.2;
}

.fz-page .qh-pankou-sheet {
  bottom: calc(3.4rem + env(safe-area-inset-bottom));
}

.fz-page .fs-y .up { color: var(--up); }
.fz-page .fs-y .down { color: var(--down); }
.fz-page .depth-row b { color: var(--up); }
.fz-page .chart-yaxis .up { color: var(--up); }
.fz-page .chart-yaxis .down { color: var(--down); }

@media (max-width: 560px) {
  body.detail-mode .app-shell { max-width: none; }
}


.qh-basis-legend .dot.green { background: #2d8a4e; }

.qh-receipt-legend {
  flex-wrap: wrap;
  gap: 0.35rem 0.7rem;
}

.qh-receipt-bars {
  height: 9.5rem;
}

.qh-receipt-scrub {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.35rem;
  padding: 0 0.1rem;
}

.qh-receipt-scrub-track {
  position: relative;
  flex: 1;
  height: 0.55rem;
  border-radius: 999px;
  background: #efefef;
  cursor: pointer;
}

.qh-receipt-scrub-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 999px;
  background: #cfd8e3;
}

.qh-receipt-scrub-fill::before,
.qh-receipt-scrub-fill::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #9aa8b8;
  transform: translateY(-50%);
}

.qh-receipt-scrub-fill::before { left: -0.2rem; }
.qh-receipt-scrub-fill::after { right: -0.2rem; }

.qh-receipt-scrub-btn,
.qh-receipt-scrub-focus {
  border: 1px solid #e8e8e8;
  background: #fafafa;
  color: #888;
  border-radius: 6px;
  font: inherit;
  font-size: 0.62rem;
  padding: 0.12rem 0.35rem;
  cursor: pointer;
}

.qh-receipt-quote {
  position: relative;
  margin: 0.45rem 0 0.55rem;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  background: #fff7f0;
  color: #555;
  font-size: 0.72rem;
  line-height: 1.45;
}

.qh-receipt-quote p {
  margin: 0;
  padding: 0 0.35rem;
}

.qh-receipt-qmark {
  position: absolute;
  top: 0.15rem;
  left: 0.45rem;
  font-style: normal;
  font-size: 1.35rem;
  color: #f0b07a;
  line-height: 1;
  opacity: 0.85;
}

.qh-receipt-qmark.end {
  top: auto;
  left: auto;
  right: 0.45rem;
  bottom: 0.1rem;
}

.qh-receipt-years {
  grid-template-columns: 1fr 1fr;
}

.qh-receipt-date {
  grid-column: 1 / -1;
  font-size: 0.72rem;
  color: #666;
  font-weight: 600;
  margin-bottom: 0.1rem;
}

.qh-basis-metrics b.up { color: #e54b35; }
.qh-basis-metrics b.down { color: #2d8a4e; }
.qh-basis-legend b.up { color: #e54b35; }
.qh-basis-legend b.down { color: #2d8a4e; }

.qh-receipt-corr-date {
  width: 100%;
  flex-basis: 100%;
  font-style: normal;
  font-size: 0.62rem;
  color: #999;
  margin-bottom: 0.1rem;
}

.qh-receipt-years {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.3rem 0.4rem;
}

.qh-receipt-years .qh-receipt-date {
  grid-column: 1 / -1;
}

.qh-receipt-years .qh-basis-year:nth-child(n+5) {
  /* 2023/2022 wrap to second row under 3-col */
}


.qh-season-chart {
  height: 13rem;
}

.qh-season-legend {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.35rem 0.4rem;
  margin: 0.45rem 0 0.25rem;
}

.qh-season-key {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  cursor: pointer;
  color: #888;
}

.qh-season-key.on {
  color: #444;
}

.qh-season-key em {
  font-style: normal;
  font-size: 0.68rem;
  font-family: var(--font-num);
}

.qh-season-insight {
  margin: 0.35rem 0 0.55rem;
  font-size: 0.72rem;
  color: #555;
  line-height: 1.5;
}

.qh-season-em {
  color: #e54b35;
  font-weight: 700;
}

.qh-season-heat-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #eee;
  border-radius: 8px;
  background: #fff;
}

.qh-season-heat-row {
  display: grid;
  grid-template-columns: 4.2rem 3.6rem repeat(12, 3.4rem);
  min-width: max-content;
}

.qh-season-heat-row > div {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 1.85rem;
  font-size: 0.62rem;
  border-right: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
  font-family: var(--font-num);
}

.qh-season-heat-row.head > div {
  background: #f7f7f7;
  color: #666;
  font-weight: 600;
}

.qh-season-heat-sticky {
  position: sticky;
  left: 0;
  z-index: 1;
  background: #f7f7f7 !important;
  color: #444 !important;
  font-weight: 600;
  justify-content: flex-start !important;
  padding-left: 0.35rem;
}

.qh-season-heat-cell {
  font-weight: 600;
}

.qh-season-heat-row.foot .qh-season-up-cell {
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.25rem 0.15rem;
  background: #fff;
}

.qh-season-up-cell b {
  color: #e54b35;
  font-size: 0.6rem;
}

.qh-season-up-cell i {
  display: block;
  height: 0.22rem;
  border-radius: 999px;
  background: #e54b35;
  max-width: 100%;
  margin-top: 0.12rem;
  box-shadow: inset 0 0 0 99px transparent;
  background-image: linear-gradient(#e8e8e8, #e8e8e8);
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

.qh-season-up-cell {
  position: relative;
}

.qh-season-up-cell::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 0.35rem;
  height: 0.22rem;
  border-radius: 999px;
  background: #ececec;
  z-index: 0;
}

.qh-season-up-cell i {
  position: relative;
  z-index: 1;
  left: 12%;
  width: auto;
  margin: 0.12rem 0 0;
  max-width: 76%;
}

.qh-season-scale {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.15rem;
  margin-top: 0.55rem;
  font-size: 0.58rem;
  color: #888;
  text-align: center;
}

.qh-season-scale-bar {
  grid-column: 1 / -1;
  height: 0.55rem;
  border-radius: 4px;
  background: linear-gradient(90deg, #c94a4a 0%, #e8a0a0 25%, #d0d0d0 50%, #9dceb0 75%, #4a9a6a 100%);
}

.home-live-stamp {
  margin-left: auto;
  font-size: 0.58rem;
  color: #aaa;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.home-live-stamp.on {
  color: #2d8a4e;
  font-weight: 600;
}
.home-highlight-panel .panel-head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
