chore: create Multica handoff checkpoint

This commit is contained in:
leefer
2026-08-06 22:54:46 +08:00
parent bd97ba1829
commit 33f9db43b1
51 changed files with 3054 additions and 2883 deletions
+101 -9
View File
@@ -5,8 +5,8 @@
font-weight: 800;
}
@media (max-width: 720px) {
#auctionView {
@media (max-width: 767px) {
body.mobile-shell #auctionView {
border-radius: 0px;
}
}
@@ -287,7 +287,7 @@
max-width: 155px;
}
@media (max-width: 720px) {
@media (max-width: 767px) {
.auction-phase-notice time {
grid-column: 2;
}
@@ -506,7 +506,7 @@
}
}
@media (max-width: 720px) {
@media (max-width: 767px) {
.auction-phase-notice {
grid-template-columns: 10px minmax(0px, 1fr);
@@ -1962,7 +1962,7 @@
}
}
@media (max-width: 720px) {
@media (max-width: 767px) {
.redesigned-auction-view {
padding: 0px;
}
@@ -2080,7 +2080,7 @@
}
}
@media (min-width: 721px) {
@media (min-width: 768px) {
body[data-active-view="auctionView"] .app-main {
display: flex;
@@ -2104,7 +2104,7 @@
}
}
@media (min-width: 721px) and (max-height: 900px) {
@media (min-width: 768px) and (max-height: 900px) {
.redesigned-auction-view {
padding: 10px 0 12px;
}
@@ -2196,7 +2196,7 @@
padding-right: 0px;
}
@media (min-width: 721px) {
@media (min-width: 768px) {
#auctionView .auction-page-head-v2 {
flex: 0 0 auto;
}
@@ -2242,7 +2242,7 @@
}
}
@media (max-width: 720px), (max-width: 1023px) and (max-height: 600px) {
@media (max-width: 767px), (max-width: 1023px) and (max-height: 600px) {
#auctionView .auction-workspace-v2 {
display: block;
}
@@ -2315,3 +2315,95 @@
color: var(--text-secondary);
}
/* Mobile auction keeps one page scrollbar; dense rows scroll only sideways. */
@media (max-width: 767px) {
#auctionView {
padding-inline: 0;
}
#auctionView .auction-workspace-v2 {
min-height: 0;
display: flex;
flex-direction: column;
gap: var(--space-12);
overflow: visible;
}
#auctionView .auction-primary-card {
width: 100%;
max-width: 100%;
min-height: 0;
min-width: 0;
overflow: visible;
}
#auctionView .auction-tabs-v2 {
width: 100%;
max-width: 100%;
min-width: 0;
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
padding-inline: 0;
overflow: visible;
}
#auctionView .auction-tabs-v2 button {
min-width: 0;
min-height: var(--mobile-touch-size);
justify-content: center;
padding-inline: var(--space-4);
font-size: var(--font-size-label);
}
#auctionView .auction-tabs-v2 .auction-summary-v2 {
width: 100%;
min-width: 0;
grid-column: 1 / -1;
grid-template-columns: repeat(2, minmax(0, 1fr));
margin-left: 0;
border-top: 1px solid var(--border-subtle);
border-left: 0;
}
#auctionView .auction-tools-v2,
#auctionView .auction-expectation-v2,
#auctionView .auction-tool-actions {
width: 100%;
max-width: 100%;
min-width: 0;
}
#auctionView .auction-filter-segments {
width: 100%;
min-width: 0;
}
#auctionView .auction-filter-segments button {
min-width: 0;
flex: 1 1 0;
}
#auctionView .auction-search-v2,
#auctionView .auction-search-v2 input {
min-width: 0;
}
#auctionView .auction-table-frame-v2 {
width: 100%;
max-width: 100%;
min-height: var(--mobile-table-min-height);
max-height: none;
min-width: 0;
overflow-x: auto;
overflow-y: visible;
}
#auctionView .auction-side-v2 {
max-height: none;
display: grid;
grid-template-columns: minmax(0, 1fr);
gap: var(--space-12);
overflow: visible;
}
}
+36 -9
View File
@@ -661,7 +661,7 @@
}
}
@media (max-width: 720px) {
@media (max-width: 767px) {
:where(#dragonView) .dragon-trader-list {
padding: 0px 15px;
}
@@ -842,7 +842,7 @@
padding: 9px 14px;
}
@media (max-width: 720px) {
@media (max-width: 767px) {
.dragon-filterbar {
align-items: stretch;
@@ -1558,7 +1558,7 @@
height: 15px;
}
@media (min-width: 721px) {
@media (min-width: 768px) {
body[data-active-view="dragonView"] .app-main {
height: var(--workspace-height);
@@ -1576,7 +1576,7 @@
}
}
@media (min-width: 721px) and (max-height: 900px) {
@media (min-width: 768px) and (max-height: 900px) {
.redesigned-dragon-view {
padding-top: 9px;
@@ -1688,7 +1688,7 @@
}
}
@media (max-width: 720px) {
@media (max-width: 767px) {
.redesigned-dragon-view {
padding: 10px;
}
@@ -1795,7 +1795,7 @@
flex-direction: column;
}
#dragonView .dragon-trader-detail .trader-operations {
body.mobile-shell #dragonView .dragon-trader-detail .trader-operations {
overflow-x: auto;
}
@@ -2306,13 +2306,13 @@
font-weight: var(--dragon-profile-weight-semibold);
}
@media (min-width: 721px) {
@media (min-width: 768px) {
body[data-active-view="dragonView"] .hot-money-profiles-v2 {
flex: 1 1 auto;
}
}
@media (max-width: 720px) {
@media (max-width: 767px) {
.hot-money-profiles-v2 {
overflow: visible;
}
@@ -2354,7 +2354,7 @@
}
}
@media (min-width: 721px) {
@media (min-width: 768px) {
body[data-active-view="dragonView"] .dragon-daily-content-v2 {
display: block;
@@ -2473,3 +2473,30 @@ table.tbl {
background: var(--surface-muted) !important;
}
/* Mobile dragon-tiger pages use document scrolling, including long operation lists. */
@media (max-width: 767px) {
#dragonView {
padding-inline: 0;
}
#dragonView :is(.dragon-daily-content-v2, .dragon-trader-detail-v2, .dragon-unclassified-v2, .hot-money-profiles-v2) {
max-height: none;
overflow: visible;
}
#dragonView .dragon-trader-detail .trader-operations {
max-height: none;
overflow-x: auto;
overflow-y: visible;
}
#dragonView .hot-money-profile-list-v2 {
max-height: none;
overflow: visible;
}
#dragonView .dragon-operation-table {
min-width: var(--table-wide);
}
}
+1 -1
View File
@@ -261,7 +261,7 @@ function layoutDragonCards(container = document.querySelector("#dragonTraderList
const cards = [...container.querySelectorAll(".dragon-trader-card")];
const hitZones = [...container.querySelectorAll(".dragon-card-hit-zone")];
if (!cards.length) return;
const compact = window.innerWidth <= 720;
const compact = window.innerWidth <= 767;
const cardWidth = compact ? 148 : 176;
const available = Math.max(cardWidth, container.clientWidth - (compact ? 30 : 72));
const spread = Math.min(available - cardWidth, compact ? 310 : 1050);
+20 -7
View File
@@ -81,7 +81,7 @@ body[data-active-view="heavenView"] .workspace-view {
margin-top: 0px;
}
@media (max-width: 720px) {
@media (max-width: 767px) {
body[data-active-view="heavenView"] .workspace-view {
margin-top: 0px;
@@ -1440,7 +1440,7 @@ body[data-active-view="heavenView"] .workspace-view {
}
}
@media (max-width: 720px) {
@media (max-width: 767px) {
body[data-active-view="heavenView"] .overview-strip {
display: none;
}
@@ -5738,7 +5738,7 @@ body[data-active-view="heavenView"] .workspace-view {
margin-top: 12px;
}
@media (max-width: 720px) {
@media (max-width: 767px) {
.heaven-calibration-heading {
align-items: flex-start;
@@ -6139,7 +6139,7 @@ body[data-active-view="heavenView"] .workspace-view {
border-top: 1px solid var(--border);
}
@media (max-width: 720px) {
@media (max-width: 767px) {
.heart-toolbar-controls {
top: 8px;
@@ -6290,7 +6290,7 @@ body[data-active-view="heavenView"] .workspace-view {
min-height: 340px;
}
@media (max-width: 720px) {
@media (max-width: 767px) {
#heavenView .heaven-toolbar {
min-height: 62px;
@@ -6653,7 +6653,7 @@ body[data-active-view="heavenView"] .workspace-view {
--wt-history-bg: #fbfaf6;
}
@media (min-width: 721px) {
@media (min-width: 768px) {
:root[data-theme="light"] body[data-active-view="heavenView"] {
--wt-bg: #f4f5f7;
}
@@ -9236,7 +9236,7 @@ body[data-active-view="heavenView"] .workspace-view {
}
}
@media (min-width: 721px) {
@media (min-width: 768px) {
body[data-active-view="heavenView"] {
--wt-bg: #0b1120;
}
@@ -11719,3 +11719,16 @@ body[data-active-view="heavenView"] .workspace-view {
width: min(100% - 40px, 1280px);
}
}
@media (max-width: 767px) {
:root[data-theme="dark"] body.mobile-shell[data-active-view="heavenView"] .app-main,
:root[data-theme="dark"] body.mobile-shell[data-active-view="heavenView"] #heavenView.heaven-shell {
background-color: var(--wt-bg);
background-image: var(--wt-stage-bg);
color: var(--wt-text);
}
:root[data-theme="dark"] body.mobile-shell[data-active-view="heavenView"] #heavenView .heaven-panel {
background: transparent;
}
}
+99 -4
View File
@@ -66,7 +66,7 @@
}
}
@media (max-width: 720px) {
@media (max-width: 767px) {
.ladder-more {
grid-column: auto;
@@ -81,7 +81,7 @@
box-shadow: rgba(22, 34, 46, 0.04) 0px 1px 3px;
}
@media (max-width: 720px) {
@media (max-width: 767px) {
.ladder-board {
align-items: stretch;
@@ -1015,7 +1015,7 @@
}
}
@media (max-width: 720px) {
@media (max-width: 767px) {
.redesigned-ladder-view {
padding: 0px;
}
@@ -1097,7 +1097,7 @@
}
}
@media (min-width: 721px) {
@media (min-width: 768px) {
:root #ladderView.active-view {
height: auto;
@@ -1170,3 +1170,98 @@
color: var(--text-secondary);
}
/* Mobile ladder becomes a readable vertical hierarchy instead of a narrow rail. */
@media (max-width: 767px) {
#ladderView {
padding-inline: 0;
}
#ladderView .ladder-page-head {
gap: var(--space-8);
}
#ladderView .ladder-head-actions {
width: 100%;
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
gap: var(--space-8);
}
#ladderView .ladder-sort-segment {
min-width: 0;
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
}
#ladderView .market-ladder-workspace,
#ladderView .lad-grid {
display: flex;
flex-direction: column;
gap: var(--space-12);
}
#ladderView .market-ladder-board {
width: 100%;
display: flex;
flex-direction: column;
}
#ladderView .market-ladder-tier {
width: 100%;
min-height: 0;
display: block;
}
#ladderView .market-ladder-label {
width: 100%;
min-height: var(--mobile-touch-size);
display: flex;
align-items: center;
gap: var(--space-8);
padding: var(--space-8) var(--space-12);
border-right: 0;
border-bottom: 1px solid var(--border-subtle);
writing-mode: horizontal-tb;
}
#ladderView .market-ladder-level {
display: inline-flex;
margin: 0;
writing-mode: horizontal-tb;
}
#ladderView .market-ladder-rate {
display: inline-flex;
writing-mode: horizontal-tb;
margin-left: auto;
}
#ladderView .market-ladder-stocks {
width: 100%;
display: grid;
grid-template-columns: minmax(0, 1fr);
gap: var(--space-8);
padding: var(--space-8);
}
#ladderView .market-ladder-stock {
width: 100%;
min-width: 0;
}
#ladderView .market-ladder-gap-note,
#ladderView .market-ladder-more {
width: 100%;
min-height: var(--mobile-touch-size);
margin: 0;
justify-content: center;
}
#ladderView .market-ladder-insights {
width: 100%;
display: grid;
grid-template-columns: minmax(0, 1fr);
gap: var(--space-12);
}
}
+3 -3
View File
@@ -1,5 +1,5 @@
/* Canonical CSS owner: market. Historical layers consolidated 2026-08-02. */
@media (max-width: 720px) {
@media (max-width: 767px) {
.stock-dialog {
width: calc(-16px + 100vw);
@@ -628,7 +628,7 @@
height: 14px;
}
@media (max-width: 720px) {
@media (max-width: 767px) {
body.stock-preview-open {
overflow: hidden;
}
@@ -770,7 +770,7 @@
overflow-wrap: anywhere;
}
@media (max-width: 720px) {
@media (max-width: 767px) {
.entity-detail-dialog .detail-grid {
grid-template-columns: repeat(2, minmax(0px, 1fr));
}
+6 -6
View File
@@ -96,7 +96,7 @@ function findStockFallback(code) {
function supportsStockPreviewHover() {
return window.matchMedia("(hover: hover) and (pointer: fine)").matches
&& window.innerWidth > 720;
&& window.innerWidth > 767;
}
function handleStockPreviewPointerOver(event) {
@@ -138,7 +138,7 @@ function handleStockPreviewFocusOut(event) {
}
function handleMobileStockPreviewClick(event) {
if (window.innerWidth > 720) return;
if (window.innerWidth > 767) return;
const trigger = event.target.closest?.(".stock-preview-trigger");
if (!trigger) return;
const code = stockCodeFromTrigger(trigger);
@@ -160,7 +160,7 @@ function handleStockPreviewKeydown(event) {
const code = stockCodeFromTrigger(trigger);
if (!code) return;
event.preventDefault();
if (window.innerWidth <= 720) showStockPreview(code, trigger);
if (window.innerWidth <= 767) showStockPreview(code, trigger);
else openStock(code, findStockFallback(code));
}
@@ -186,7 +186,7 @@ async function showStockPreview(code, trigger) {
state.stockPreviewChart = "daily";
renderStockPreviewLoading();
elements.stockPreview.hidden = false;
const mobile = window.innerWidth <= 720;
const mobile = window.innerWidth <= 767;
elements.stockPreviewBackdrop.hidden = !mobile;
document.body.classList.toggle("stock-preview-open", mobile);
requestAnimationFrame(repositionStockPreview);
@@ -239,7 +239,7 @@ async function showEntityPreview(item, trigger) {
state.stockPreviewChart = "daily";
renderStockPreviewLoading();
elements.stockPreview.hidden = false;
const mobile = window.innerWidth <= 720;
const mobile = window.innerWidth <= 767;
elements.stockPreviewBackdrop.hidden = !mobile;
document.body.classList.toggle("stock-preview-open", mobile);
requestAnimationFrame(repositionStockPreview);
@@ -433,7 +433,7 @@ function openStockDetailFromPreview() {
}
function repositionStockPreview() {
if (elements.stockPreview.hidden || window.innerWidth <= 720 || !stockPreviewAnchor?.isConnected) return;
if (elements.stockPreview.hidden || window.innerWidth <= 767 || !stockPreviewAnchor?.isConnected) return;
const anchor = stockPreviewAnchor.getBoundingClientRect();
const preview = elements.stockPreview.getBoundingClientRect();
const gap = 12;
+677 -2490
View File
File diff suppressed because it is too large Load Diff
+69 -52
View File
@@ -1,72 +1,89 @@
<section id="mentorView" class="workspace-view page member-feature-view redesigned-mentor-view">
<div class="member-gate" hidden><div class="member-gate-icon"><i data-lucide="lock-keyhole"></i></div><div><strong>问师仅对会员开放</strong><span>开通会员后可使用游资思维模型进行对话。会员状态可从顶部账号标识进入。</span></div></div>
<div class="member-gate" hidden><div class="member-gate-icon"><i data-lucide="lock-keyhole"></i></div><div><strong>问师仅对会员开放</strong><span>开通会员后可使用思维模型进行对话。会员状态可从顶部账号标识进入。</span></div></div>
<header class="section-toolbar lad-head mentor-page-header">
<div class="section-title-group mentor-page-title">
<h2>问师</h2>
<span class="section-subtitle">向思维模型请教 · <span id="mentorDataDate">--</span></span>
</div>
<div class="toolbar-controls mentor-page-controls">
<div class="mentor-evidence-filters seg" role="group" aria-label="按素材等级筛选">
<button class="active" type="button" data-mentor-grade="all">全部</button>
<button type="button" data-mentor-grade="A">A级</button>
<button type="button" data-mentor-grade="B">B级</button>
<button type="button" data-mentor-grade="C">C级</button>
</div>
<span class="section-subtitle">与不同交易思维模型持续对话 · <span id="mentorDataDate">--</span></span>
</div>
</header>
<div id="mentorNotice" class="inline-notice" hidden></div>
<div class="mentor-layout mentor-grid">
<aside class="mentor-sidebar mentor-library-card card">
<button id="mentorDirectoryToggle" class="mentor-directory-toggle" type="button" aria-expanded="false" aria-controls="mentorDirectoryContent">
<span><i data-lucide="users-round"></i><span><small>当前思维模型</small><strong id="mobileActiveMentorName">--</strong></span></span>
<i data-lucide="chevron-up"></i>
</button>
<div id="mentorDirectoryBackdrop" class="mentor-directory-backdrop" hidden></div>
<div id="mentorDirectoryContent" class="mentor-directory-content">
<div class="workspace-heading card-h mentor-directory-heading">
<div class="mentor-directory-title"><h3>模型库</h3><span>语料完整度决定回答质量</span></div>
<div class="mentor-directory-actions">
<strong id="mentorCount" class="mentor-count">0 位</strong>
<button id="mentorSortToggle" class="mentor-sort-toggle" type="button" aria-pressed="false" title="整理顺序"><i data-lucide="list-ordered"></i><span>整理</span></button>
<button id="closeMentorDirectory" class="icon-button mentor-directory-close" type="button" aria-label="关闭思维模型目录" title="关闭"><i data-lucide="x"></i></button>
</div>
</div>
<div class="mentor-layout">
<aside class="mentor-sidebar" aria-label="思维模型目录">
<div class="mentor-directory-heading">
<div class="mentor-directory-title"><strong>联系人</strong><span id="mentorCount">0 位</span></div>
<button id="mentorSortToggle" class="mentor-sort-toggle" type="button" aria-pressed="false" title="整理联系人顺序"><i data-lucide="list-ordered"></i><span>整理</span></button>
</div>
<div class="mentor-directory-tools">
<label class="mentor-search-field">
<span class="visually-hidden">搜索思维模型</span>
<i data-lucide="search"></i>
<input id="mentorSearchInput" type="search" maxlength="50" placeholder="搜索姓名、模式或标签" autocomplete="off">
<input id="mentorSearchInput" type="search" maxlength="50" placeholder="搜索联系人或标签" autocomplete="off">
</label>
<p id="mentorSortHint" class="mentor-sort-hint" hidden>拖动卡片,或使用箭头调整顺序</p>
<div id="mentorList" class="mentor-list"></div>
<div id="mentorListEmpty" class="mentor-list-empty" hidden>没有符合条件的思维模型</div>
<p class="mentor-evidence-legend">素材等级反映蒸馏依据,不代表人物能力或收益水平。</p>
</div>
</aside>
<section class="mentor-chat-panel card">
<header class="mentor-chat-header card-h">
<div class="mentor-active-profile">
<div class="mentor-active-title"><h3 id="activeMentorName">--</h3><span id="activeMentorBadges" class="mentor-active-badges"></span></div>
<p id="activeMentorEvidence">--</p>
<div id="activeMentorFocus" class="mentor-active-focus"></div>
<div class="mentor-evidence-filters" role="group" aria-label="按素材等级筛选">
<button class="active" type="button" data-mentor-grade="all">全部</button>
<button type="button" data-mentor-grade="A">A级</button>
<button type="button" data-mentor-grade="B">B级</button>
<button type="button" data-mentor-grade="C">C级</button>
</div>
<button id="clearMentorChatButton" class="button ghost mentor-clear-button" type="button" disabled><i data-lucide="trash-2"></i><span>清空对话</span></button>
</header>
<div class="chat-box">
<div id="mentorMessages" class="mentor-messages chat-log" aria-live="polite"></div>
<div id="mentorQuickPrompts" class="mentor-quick-prompts">
<span class="mentor-prompt-label">试着这样问</span>
<button type="button" data-mentor-prompt="怎么看今天的市场环境?">市场环境</button>
<button type="button" data-mentor-prompt="当前的市场主线和情绪周期是什么?">主线与周期</button>
<button type="button" data-mentor-prompt="如果今天是空仓状态,你会怎么制定操作预案?">空仓预案</button>
<button type="button" data-mentor-prompt="现在最需要防范的风险是什么?">风险检查</button>
<p id="mentorSortHint" class="mentor-sort-hint" hidden>拖动联系人,或使用箭头调整顺序</p>
</div>
<form id="mentorChatForm" class="mentor-chat-form chat-input">
<div id="mentorList" class="mentor-list"></div>
<div id="mentorListEmpty" class="mentor-list-empty" hidden>没有符合条件的思维模型</div>
<p class="mentor-evidence-legend">等级仅表示公开素材完整度</p>
</aside>
<section class="mentor-chat-panel" aria-label="问师对话">
<header class="mentor-chat-header">
<div class="mentor-chat-identity">
<span id="activeMentorAvatar" class="mentor-avatar" aria-hidden="true"></span>
<div>
<div class="mentor-active-title"><h3 id="activeMentorName">--</h3><span id="activeMentorBadges" class="mentor-active-badges"></span></div>
<p id="activeMentorStatus">思维模型已就绪</p>
</div>
</div>
<button id="clearMentorChatButton" class="icon-button mentor-clear-button" type="button" disabled aria-label="清空当前对话" title="清空对话"><i data-lucide="trash-2"></i></button>
</header>
<div id="mentorMessages" class="mentor-messages" aria-live="polite"></div>
<div id="mentorQuickPrompts" class="mentor-quick-prompts">
<span class="mentor-prompt-label">开始一个话题</span>
<button type="button" data-mentor-prompt="怎么看今天的市场环境?"><i data-lucide="activity"></i>市场环境</button>
<button type="button" data-mentor-prompt="当前的市场主线和情绪周期是什么?"><i data-lucide="route"></i>主线与周期</button>
<button type="button" data-mentor-prompt="如果今天是空仓状态,你会怎么制定操作预案?"><i data-lucide="notebook-tabs"></i>空仓预案</button>
<button type="button" data-mentor-prompt="现在最需要防范的风险是什么?"><i data-lucide="shield-alert"></i>风险检查</button>
</div>
<form id="mentorChatForm" class="mentor-chat-form">
<label class="visually-hidden" for="mentorQuestion">向当前思维模型提问</label>
<textarea id="mentorQuestion" maxlength="2000" placeholder="输入市场、板块、个股代码或交易问题"></textarea>
<button id="sendMentorQuestion" class="button primary" type="submit"><i data-lucide="send-horizontal"></i><span>发送</span></button>
<div class="mentor-composer-actions">
<span>Enter 发送 · Shift + Enter 换行</span>
<button id="stopMentorQuestion" class="button ghost mentor-stop-button" type="button" hidden><i data-lucide="square"></i><span>停止</span></button>
<button id="sendMentorQuestion" class="button primary mentor-send-button" type="submit"><i data-lucide="send-horizontal"></i><span>发送</span></button>
</div>
</form>
<p class="mentor-disclaimer">基于公开资料提炼的思维模型模拟,不代表本人观点,不构成投资建议。</p>
</div>
</section>
<aside class="mentor-profile-panel" aria-label="当前思维模型资料">
<div class="mentor-profile-hero">
<span id="mentorProfileAvatar" class="mentor-profile-avatar" aria-hidden="true"></span>
<h3 id="mentorProfileName">--</h3>
<p id="mentorProfileTagline">--</p>
<div id="mentorProfileBadges" class="mentor-profile-badges"></div>
</div>
<section class="mentor-profile-section">
<h4>关注维度</h4>
<div id="activeMentorFocus" class="mentor-active-focus"></div>
</section>
<section class="mentor-profile-section">
<h4>资料依据</h4>
<strong id="mentorProfileSource">--</strong>
<p id="activeMentorEvidence">--</p>
</section>
<section class="mentor-profile-section mentor-profile-boundary">
<h4>数据边界</h4>
<p><i data-lucide="calendar-days"></i><span id="mentorProfileDataDate">--</span></p>
<p><i data-lucide="database"></i><span>仅使用网页已提供的市场数据</span></p>
</section>
</aside>
</div>
</section>
+75 -51
View File
@@ -37,8 +37,14 @@ function renderMentorWorkspace() {
const selected = setup.mentors.find((item) => item.id === state.selectedMentorId) || null;
setText("mentorDataDate", `数据日期 ${displayCompactDate(setup.trade_date)}`);
setText("activeMentorName", selected?.name || "--");
setText("mobileActiveMentorName", selected?.name || "选择思维模型");
setText("mentorProfileName", selected?.name || "--");
setText("mentorProfileTagline", selected?.tagline || selected?.description || "--");
setText("mentorProfileSource", selected?.evidence?.label || "公开资料整理");
setText("mentorProfileDataDate", `行情数据 ${displayCompactDate(setup.trade_date)}`);
setText("activeMentorAvatar", mentorAvatarText(selected));
setText("mentorProfileAvatar", mentorAvatarText(selected));
document.querySelector("#activeMentorBadges").innerHTML = selected ? renderMentorBadges(selected, true) : "";
document.querySelector("#mentorProfileBadges").innerHTML = selected ? renderMentorBadges(selected, true) : "";
setText("activeMentorEvidence", selected?.evidence?.note || selected?.description || "--");
document.querySelector("#activeMentorFocus").innerHTML = (selected?.focus || []).slice(0, 4)
.map((item) => `<span>${escapeHtml(item)}</span>`).join("");
@@ -82,16 +88,14 @@ function renderMentorDirectory() {
<article class="mentor-option ${mentor.id === state.selectedMentorId ? "active" : ""} ${mentor.pinned ? "is-pinned" : ""}"
data-mentor-card="${escapeHtml(mentor.id)}" draggable="${state.mentorSortMode && !state.mentorSavingPreferences}">
<button type="button" class="mentor-option-main" data-mentor-id="${escapeHtml(mentor.id)}" aria-pressed="${mentor.id === state.selectedMentorId}" ${state.mentorLoading ? "disabled" : ""}>
<span class="mentor-avatar" data-grade="${escapeHtml(String(mentor.evidence?.grade || "").toLowerCase())}" aria-hidden="true">${escapeHtml(mentorAvatarText(mentor))}</span>
<span class="mentor-option-copy">
<span class="mentor-option-heading">
<strong>${escapeHtml(mentor.name)}</strong>
<span class="mentor-option-badges">${renderMentorBadges(mentor)}</span>
</span>
<em title="${escapeHtml(mentor.description || "")}">${escapeHtml(mentor.description || mentor.tagline || "思维模型")}</em>
<span class="mentor-option-meta">
${mentor.evidence?.label ? `<span class="mentor-evidence-source" title="${escapeHtml(mentor.evidence?.note || "素材说明")}">${escapeHtml(mentor.evidence.label)}</span>` : ""}
${(mentor.focus || []).slice(0, 2).map((item) => `<span>#${escapeHtml(item)}</span>`).join("")}
</span>
<span class="mentor-option-meta">${escapeHtml((mentor.focus || [])[0] || mentor.evidence?.label || "公开资料模型")}</span>
</span>
</button>
<span class="mentor-option-tools">
@@ -254,29 +258,16 @@ function renderMentorBadges(mentor, expanded = false) {
return badges.join("");
}
function toggleMentorDirectory(open) {
const mobileOpen = Boolean(open) && window.innerWidth <= 720;
state.mentorDirectoryOpen = mobileOpen;
const sidebar = document.querySelector("#mentorView .mentor-sidebar");
const backdrop = document.querySelector("#mentorDirectoryBackdrop");
const toggle = document.querySelector("#mentorDirectoryToggle");
sidebar.classList.toggle("is-open", mobileOpen);
backdrop.hidden = !mobileOpen;
toggle.setAttribute("aria-expanded", String(mobileOpen));
document.body.classList.toggle("mentor-directory-open", mobileOpen);
if (mobileOpen) requestAnimationFrame(() => document.querySelector("#mentorSearchInput").focus());
function mentorAvatarText(mentor) {
return Array.from(String(mentor?.name || "师").trim())[0] || "师";
}
async function selectMentor(mentorId) {
if (mentorId === state.selectedMentorId) {
toggleMentorDirectory(false);
return;
}
if (mentorId === state.selectedMentorId) return;
state.selectedMentorId = mentorId;
state.mentorMessages = [];
hideMentorNotice();
renderMentorWorkspace();
toggleMentorDirectory(false);
state.mentorMessages = await loadMentorMessages();
renderMentorMessages();
}
@@ -289,35 +280,53 @@ function renderMentorMessages() {
<div class="mentor-empty-state">
<span class="mentor-empty-mark" aria-hidden="true"><i data-lucide="messages-square"></i></span>
<strong>向「${escapeHtml(selected?.name || "问师")}」请教</strong>
<p>${escapeHtml(selected?.tagline || selected?.description || "选择一个问题开始对话")}</p>
<p>${escapeHtml(selected?.tagline || selected?.description || "从一个具体问题开始对话")}</p>
</div>
`;
refreshIcons();
} else {
container.innerHTML = state.mentorMessages.map((message) => `
<article class="mentor-message ${message.role} ${message.error ? "is-error" : ""}">
<div class="mentor-message-label">${message.role === "user" ? "我" : escapeHtml(selected?.name || "问师")}</div>
<div class="mentor-message-content">${message.role === "assistant" ? formatMentorAnswer(message.content) : escapeHtml(message.content)}</div>
${message.streaming ? '<span class="assistant-stream-caret" aria-hidden="true"></span>' : ""}
${message.meta && !message.streaming ? `<small>${escapeHtml(message.meta)}</small>` : ""}
<span class="mentor-message-avatar" aria-hidden="true">${message.role === "user" ? "我" : escapeHtml(mentorAvatarText(selected))}</span>
<div class="mentor-message-body">
<div class="mentor-message-label">${message.role === "user" ? "我" : escapeHtml(selected?.name || "问师")}</div>
<div class="mentor-message-content">${message.role === "assistant"
? (message.content ? formatMentorAnswer(message.content) : '<p class="mentor-loading-copy">正在读取复盘数据并推演...</p>')
: escapeHtml(message.content)}</div>
${message.streaming ? '<span class="assistant-stream-caret" aria-hidden="true"></span>' : ""}
${renderMentorFollowUps(message)}
${message.meta && !message.streaming ? `<small>${escapeHtml(message.meta)}</small>` : ""}
</div>
</article>
`).join("");
if (state.mentorLoading && !state.mentorMessages.some((message) => message.streaming)) {
container.insertAdjacentHTML("beforeend", `
<article class="mentor-message assistant loading-message">
<div class="mentor-message-label">${escapeHtml(selected?.name || "问师")}</div>
<p>正在读取复盘数据并推演...</p>
</article>
`);
}
}
document.querySelector("#mentorQuickPrompts").hidden = state.mentorMessages.length > 0 || state.mentorLoading;
document.querySelector("#clearMentorChatButton").disabled = !state.mentorMessages.length || state.mentorLoading;
document.querySelector("#mentorQuestion").disabled = state.mentorLoading || !state.selectedMentorId;
document.querySelector("#sendMentorQuestion").disabled = state.mentorLoading || !state.selectedMentorId;
document.querySelector("#sendMentorQuestion").hidden = state.mentorLoading;
document.querySelector("#stopMentorQuestion").hidden = !state.mentorLoading;
document.querySelector("#mentorSortToggle").disabled = state.mentorLoading;
setText("activeMentorStatus", state.mentorLoading ? "正在生成回答..." : "思维模型已就绪");
container.querySelectorAll("[data-mentor-follow-up]").forEach((button) => {
button.addEventListener("click", () => useMentorQuickPrompt(button.dataset.mentorFollowUp));
});
refreshIcons();
requestAnimationFrame(() => { container.scrollTop = container.scrollHeight; });
}
function renderMentorFollowUps(message) {
if (message.role !== "assistant" || message.streaming || message.error || !Array.isArray(message.followUps)) return "";
const items = message.followUps.filter(Boolean).slice(0, 3);
if (items.length < 2) return "";
return `
<div class="mentor-follow-ups" aria-label="继续追问">
<span>继续追问</span>
${items.map((item) => `<button type="button" data-mentor-follow-up="${escapeHtml(item)}"><i data-lucide="corner-down-right"></i><span>${escapeHtml(item)}</span></button>`).join("")}
</div>
`;
}
async function sendMentorQuestion(event) {
event.preventDefault();
if (state.mentorLoading || !state.selectedMentorId) return;
@@ -328,8 +337,9 @@ async function sendMentorQuestion(event) {
role: item.role,
content: item.content.slice(0, 3500),
}));
state.mentorMessages.forEach((message) => { delete message.followUps; });
state.mentorMessages.push({ role: "user", content: question });
const responseMessage = { role: "assistant", content: "", streaming: true, meta: "" };
const responseMessage = { role: "assistant", content: "", streaming: true, meta: "", followUps: [] };
state.mentorMessages.push(responseMessage);
input.value = "";
state.mentorLoading = true;
@@ -353,6 +363,9 @@ async function sendMentorQuestion(event) {
},
(meta) => {
responseMessage.meta = `${displayCompactDate(meta.data_trade_date || elements.tradeDate.value)} · 回答完成`;
responseMessage.followUps = Array.isArray(meta.follow_ups)
? meta.follow_ups.filter((item) => typeof item === "string" && item.trim()).slice(0, 3)
: [];
if (meta.notice) showMentorNotice(meta.notice);
},
);
@@ -360,13 +373,23 @@ async function sendMentorQuestion(event) {
setStatus("问师回答完成");
} catch (error) {
responseMessage.streaming = false;
responseMessage.error = true;
if (!responseMessage.content) {
state.mentorMessages = state.mentorMessages.filter((item) => item !== responseMessage);
responseMessage.followUps = [];
if (state.mentorController?.signal.aborted) {
if (responseMessage.content) {
responseMessage.meta = "生成已停止";
} else {
state.mentorMessages = state.mentorMessages.filter((item) => item !== responseMessage);
}
setStatus("已停止问师回答");
} else {
responseMessage.error = true;
if (!responseMessage.content) {
state.mentorMessages = state.mentorMessages.filter((item) => item !== responseMessage);
}
showMentorNotice(error.message || "问师回答失败");
showToast(error.message || "问师回答失败");
setStatus("问师回答失败");
}
showMentorNotice(error.message || "问师回答失败");
showToast(error.message || "问师回答失败");
setStatus("问师回答失败");
} finally {
state.mentorLoading = false;
state.mentorController = null;
@@ -376,6 +399,12 @@ async function sendMentorQuestion(event) {
}
}
function stopMentorGeneration() {
if (!state.mentorLoading || !state.mentorController) return;
state.mentorController.abort();
setText("activeMentorStatus", "正在停止...");
}
let mentorRenderFrame = 0;
function scheduleMentorRender() {
@@ -497,12 +526,8 @@ function formatMentorInline(content) {
function bindMentorEvents() {
document.querySelector("#mentorChatForm").addEventListener("submit", sendMentorQuestion);
document.querySelector("#stopMentorQuestion").addEventListener("click", stopMentorGeneration);
document.querySelector("#clearMentorChatButton").addEventListener("click", clearMentorConversation);
document.querySelector("#mentorDirectoryToggle").addEventListener("click", () => {
toggleMentorDirectory(!state.mentorDirectoryOpen);
});
document.querySelector("#closeMentorDirectory").addEventListener("click", () => toggleMentorDirectory(false));
document.querySelector("#mentorDirectoryBackdrop").addEventListener("click", () => toggleMentorDirectory(false));
document.querySelector("#mentorSortToggle").addEventListener("click", toggleMentorSortMode);
document.querySelector("#mentorSearchInput").addEventListener("input", (event) => {
state.mentorQuery = event.target.value.trim().toLocaleLowerCase("zh-CN");
@@ -520,10 +545,9 @@ function bindMentorEvents() {
document.querySelectorAll("[data-mentor-prompt]").forEach((button) => {
button.addEventListener("click", () => useMentorQuickPrompt(button.dataset.mentorPrompt));
});
document.addEventListener("keydown", (event) => {
if (event.key === "Escape") toggleMentorDirectory(false);
});
window.addEventListener("resize", () => {
if (window.innerWidth > 720) toggleMentorDirectory(false);
document.querySelector("#mentorQuestion").addEventListener("keydown", (event) => {
if (event.key !== "Enter" || event.shiftKey || event.isComposing) return;
event.preventDefault();
document.querySelector("#mentorChatForm").requestSubmit();
});
}
+83 -7
View File
@@ -584,7 +584,7 @@
border-bottom-color: var(--border);
}
@media (max-width: 720px) {
@media (max-width: 767px) {
.main-grid {
display: block;
@@ -1146,7 +1146,7 @@
}
}
@media (max-width: 720px), (max-width: 1023px) and (max-height: 600px) {
@media (max-width: 767px), (max-width: 1023px) and (max-height: 600px) {
.pool-page-head .toolbar-controls {
flex-wrap: wrap;
}
@@ -1290,7 +1290,7 @@
line-height: 1.6;
}
@media (max-width: 720px), (max-width: 1023px) and (max-height: 600px) {
@media (max-width: 767px), (max-width: 1023px) and (max-height: 600px) {
.broken-page-head .toolbar-controls {
flex-wrap: nowrap;
}
@@ -2182,7 +2182,7 @@
}
}
@media (max-width: 720px) {
@media (max-width: 767px) {
.redesigned-performance-view .performance-cards {
grid-template-columns: repeat(2, minmax(0px, 1fr));
}
@@ -2211,7 +2211,7 @@
}
}
@media (max-width: 720px) {
@media (max-width: 767px) {
.redesigned-performance-view {
padding: 0px;
}
@@ -2284,7 +2284,7 @@
}
}
@media (max-width: 720px) {
@media (max-width: 767px) {
:is(#limitTable, #brokenTable, #downTable, #yesterdayTable) .pool-reason-cell {
white-space: normal;
}
@@ -2374,7 +2374,7 @@
overflow: auto;
}
@media (min-width: 721px) {
@media (min-width: 768px) {
#yesterdayView.active-view {
min-height: 0px;
@@ -2489,3 +2489,79 @@
.ladder-mini.pool-side-list {
display: block;
}
/* Mobile pool workspaces keep filters usable and tables locally horizontal. */
@media (max-width: 767px) {
:is(#limitPool, #brokenView, #downView, #yesterdayView, #performanceView) {
padding-inline: 0;
}
:is(.pool-page-head, .broken-page-head, .down-page-head, .yesterday-page-head) {
gap: var(--space-8);
}
body.mobile-shell :is(.pool-page-head, .broken-page-head, .down-page-head, .yesterday-page-head) .toolbar-controls {
width: 100%;
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
gap: var(--space-8);
overflow: visible;
}
.pool-page-head .pool-filter-segments {
width: 100%;
min-width: 0;
grid-column: 1 / -1;
}
.pool-page-head .pool-filter-segments .segment {
min-width: 0;
flex: 1 1 0;
padding-inline: var(--space-8);
}
:is(.pool-page-head, .broken-page-head, .down-page-head, .yesterday-page-head) .pool-search-field {
width: 100%;
min-width: 0;
}
:is(.pool-page-head, .broken-page-head, .down-page-head, .yesterday-page-head) .pool-search-field input {
width: 100%;
min-width: 0;
flex: 1 1 auto;
}
#limitPool .redesigned-pool-grid {
display: flex;
flex-direction: column;
gap: var(--space-12);
}
:is(#limitPool, #brokenView, #downView, #yesterdayView) .tbl-wrap {
min-height: var(--mobile-table-min-height);
max-height: none;
overflow-x: auto;
overflow-y: visible;
}
#limitPool .pool-insight-rail {
display: grid;
grid-template-columns: minmax(0, 1fr);
gap: var(--space-12);
}
#limitPool .pool-insight-rail .rail-section {
min-height: 0;
}
#yesterdayView .yesterday-result-summary {
display: flex;
overflow-x: auto;
scrollbar-width: none;
}
#yesterdayView .yesterday-summary-cell {
min-width: var(--mobile-summary-card-width);
flex: 0 0 auto;
}
}
+17 -4
View File
@@ -602,7 +602,7 @@
color: var(--r2-amber);
}
@media (min-width: 721px) {
@media (min-width: 768px) {
body[data-active-view="popularityView"] .app-main {
display: flex;
@@ -626,7 +626,7 @@
}
}
@media (min-width: 721px) and (max-height: 900px) {
@media (min-width: 768px) and (max-height: 900px) {
.redesigned-popularity-view {
padding-top: 9px;
@@ -684,7 +684,7 @@
}
}
@media (max-width: 720px) {
@media (max-width: 767px) {
.redesigned-popularity-view {
padding: 10px;
}
@@ -869,7 +869,7 @@
width: var(--col-number);
}
@media (min-width: 721px) {
@media (min-width: 768px) {
#popularityView .popularity-glance-v2,
#popularityView .popularity-page-head-v2 {
flex: 0 0 auto;
@@ -919,3 +919,16 @@
box-shadow: var(--control-shadow);
}
@media (max-width: 767px) {
#popularityView {
padding-inline: 0;
}
#popularityView .popularity-table-frame-v2 {
min-height: var(--mobile-table-min-height);
max-height: none;
overflow-x: auto;
overflow-y: visible;
}
}
+42 -8
View File
@@ -109,7 +109,7 @@
}
}
@media (max-width: 720px) {
@media (max-width: 767px) {
.trade-log-dialog {
width: calc(-16px + 100vw);
@@ -154,7 +154,7 @@
border-bottom-color: var(--border);
}
@media (max-width: 720px) {
@media (max-width: 767px) {
:where(#reviewWorkspaceView) .workspace-section {
min-width: 0px;
@@ -207,7 +207,7 @@ body[data-active-view="reviewWorkspaceView"] .workspace-view {
border-top: 1px solid var(--border);
}
@media (max-width: 720px) {
@media (max-width: 767px) {
body[data-active-view="reviewWorkspaceView"] .workspace-view {
margin-top: 0px;
@@ -315,7 +315,7 @@ body[data-active-view="reviewWorkspaceView"] .overview-strip {
color: var(--primary);
}
@media (max-width: 720px) {
@media (max-width: 767px) {
:where(#reviewWorkspaceView) .review-workspace {
display: block;
@@ -1058,7 +1058,7 @@ body[data-active-view="reviewWorkspaceView"] .overview-strip {
}
}
@media (max-width: 720px) {
@media (max-width: 767px) {
#reviewWorkspaceView .note-row {
grid-template-columns: 1fr auto;
}
@@ -1091,7 +1091,7 @@ body[data-active-view="reviewWorkspaceView"] .overview-strip {
}
}
@media (max-width: 720px) {
@media (max-width: 767px) {
#reviewWorkspaceView .review-page-header {
min-height: 68px;
@@ -1908,7 +1908,7 @@ body[data-active-view="reviewWorkspaceView"] .overview-strip {
}
}
@media (max-width: 720px) {
@media (max-width: 767px) {
#reviewWorkspaceView .review-watchlist-table {
min-width: 760px;
}
@@ -2057,7 +2057,7 @@ body[data-active-view="reviewWorkspaceView"] .overview-strip {
white-space: normal;
}
@media (min-width: 721px) {
@media (min-width: 768px) {
:root #reviewWorkspaceView.active-view {
height: auto;
@@ -2167,3 +2167,37 @@ body[data-active-view="reviewWorkspaceView"] .overview-strip {
:root[data-theme="dark"] #reviewWorkspaceView .data-table tbody td {
color: var(--text-primary);
}
/* Mobile review is a single vertical workflow with locally horizontal tables. */
@media (max-width: 767px) {
body.mobile-shell #reviewWorkspaceView {
padding-inline: 0;
}
body.mobile-shell #reviewWorkspaceView .review-workspace,
body.mobile-shell #reviewWorkspaceView .review-grid,
body.mobile-shell #reviewWorkspaceView .review-left-stack {
width: 100%;
height: auto;
display: flex;
flex-direction: column;
gap: var(--space-12);
}
body.mobile-shell #reviewWorkspaceView :is(.workspace-table-frame, .trade-log-table-frame) {
min-height: 0;
max-height: none;
overflow-x: auto;
overflow-y: visible;
}
body.mobile-shell #reviewWorkspaceView :is(.notes-history-section, .notes-history) {
max-height: none;
overflow: visible;
}
body.mobile-shell #reviewWorkspaceView .journal-section {
width: 100%;
height: auto;
}
}
+15 -4
View File
@@ -62,7 +62,7 @@
}
}
@media (max-width: 720px) {
@media (max-width: 767px) {
.rotation-history {
min-height: 224px;
}
@@ -991,7 +991,7 @@
}
}
@media (max-width: 720px) {
@media (max-width: 767px) {
.redesigned-rotation-view {
padding: 0px;
}
@@ -1087,7 +1087,7 @@
min-width: var(--table-wide);
}
@media (min-width: 721px) {
@media (min-width: 768px) {
#rotationView.active-view {
display: grid;
@@ -1157,7 +1157,7 @@
}
}
@media (max-width: 720px), (max-width: 1023px) and (max-height: 600px) {
@media (max-width: 767px), (max-width: 1023px) and (max-height: 600px) {
#rotationView.active-view {
display: block;
@@ -1245,3 +1245,14 @@
background: var(--surface-muted);
}
@media (max-width: 767px) {
#rotationView :is(.rotation-table-frame, .rotation-detail-card) {
max-height: none;
overflow-y: visible;
}
#rotationView .rotation-table-frame {
overflow-x: auto;
}
}
+67 -11
View File
@@ -5,7 +5,7 @@
font-weight: 800;
}
@media (max-width: 720px) {
@media (max-width: 767px) {
#screenerView {
border-radius: 0px;
}
@@ -311,7 +311,7 @@
}
}
@media (max-width: 720px) {
@media (max-width: 767px) {
#screenerView.mobile-results [data-screener-panel]:not([hidden]) {
display: block !important;
}
@@ -786,7 +786,7 @@
box-shadow: 1px 0 0 var(--border);
}
@media (max-width: 1023px) and (min-width: 721px) {
@media (max-width: 1023px) and (min-width: 768px) {
#screenerView .factor-data-status,
#screenerView .regime-evidence {
@@ -794,7 +794,7 @@
}
}
@media (max-width: 720px) {
@media (max-width: 767px) {
body[data-active-view="screenerView"] .overview-strip {
display: none;
}
@@ -1114,7 +1114,7 @@
color: var(--market-down);
}
@media (max-width: 720px) {
@media (max-width: 767px) {
.tracking-summary {
grid-template-columns: repeat(2, minmax(0px, 1fr));
}
@@ -1450,7 +1450,63 @@
}
}
@media (max-width: 720px) {
@media (max-width: 767px) {
body.mobile-shell #screenerView .screener-stepper {
width: 100%;
display: flex;
padding-inline: var(--space-8);
overflow: visible;
}
body.mobile-shell #screenerView .screener-step {
min-width: 0;
flex: 1 1 0;
flex-direction: column;
justify-content: flex-start;
gap: var(--space-4);
text-align: center;
}
body.mobile-shell #screenerView .screener-step > div {
width: 100%;
min-width: 0;
}
body.mobile-shell #screenerView .screener-step :is(strong, small) {
width: 100%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
body.mobile-shell #screenerView .step-line {
width: var(--space-8);
flex: 0 0 var(--space-8);
align-self: flex-start;
margin: var(--space-12) var(--space-4) 0;
}
}
@media (max-width: 767px) {
body.mobile-shell #screenerView,
body.mobile-shell #screenerTrackingView {
padding-inline: 0;
}
body.mobile-shell #screenerView :is(.screener-result-frame, .curated-strategy-list, .quant-builder-pane, .quant-summary-pane),
body.mobile-shell #screenerTrackingView .tracking-table-frame.tbl-wrap {
max-height: none;
overflow-y: visible;
}
body.mobile-shell #screenerView .screener-result-frame,
body.mobile-shell #screenerTrackingView .tracking-table-frame {
overflow-x: auto;
}
}
@media (max-width: 767px) {
.screener-page-heading {
min-height: 54px;
@@ -1673,7 +1729,7 @@
border-color: var(--border-strong);
}
@media (max-width: 720px) {
@media (max-width: 767px) {
#screenerView .screener-strategy-view {
padding: 8px;
}
@@ -2031,7 +2087,7 @@ body[data-active-view="screenerView"] .workspace-view {
min-height: 45px;
}
@media (min-width: 721px) and (max-width: 1279px) {
@media (min-width: 768px) and (max-width: 1279px) {
.quant-screener-panel {
grid-template-columns: 1fr;
}
@@ -2041,7 +2097,7 @@ body[data-active-view="screenerView"] .workspace-view {
}
}
@media (max-width: 720px) {
@media (max-width: 767px) {
body[data-active-view="screenerView"] .workspace-view {
margin-top: 0px;
@@ -2373,7 +2429,7 @@ body[data-active-view="screenerView"] .overview-strip {
}
}
@media (max-width: 720px) {
@media (max-width: 767px) {
.screener-mode-tabs {
min-height: 50px;
@@ -6042,7 +6098,7 @@ body[data-active-view="screenerView"] .overview-strip {
min-width: var(--table-wide);
}
@media (min-width: 721px) {
@media (min-width: 768px) {
:root #screenerView.active-view {
height: auto;
+1 -1
View File
@@ -859,7 +859,7 @@ async function executeScreenerFormula({ mode, formula, strategyName, strategyId
renderScreenerResult();
if (executionMode === "smart") setText("screenerRunStatus", `完成 · ${payload.result.candidates.length}`);
updateBacktestTaskStatus();
if (window.innerWidth <= 720) selectScreenerMobileView("results");
if (window.innerWidth <= 767) selectScreenerMobileView("results");
setStatus(`${strategyName}完成 · ${payload.result.candidates.length} 只候选`);
} catch (error) {
showToast(error.message);
+96 -10
View File
@@ -1,5 +1,5 @@
/* Canonical CSS owner: sentiment. Historical layers consolidated 2026-08-02. */
@media (max-width: 720px), (max-width: 1023px) and (max-height: 600px) {
@media (max-width: 767px), (max-width: 1023px) and (max-height: 600px) {
#sentimentCycleView {
--sentiment-history-max-height: min(480px, calc(100dvh - 210px));
}
@@ -428,7 +428,7 @@
}
}
@media (max-width: 720px) {
@media (max-width: 767px) {
body[data-active-view="sentimentCycleView"] .overview-strip {
display: none;
}
@@ -541,7 +541,7 @@
background: rgb(238, 243, 246);
}
@media (max-width: 720px) {
@media (max-width: 767px) {
.sentiment-block {
min-height: 0px;
@@ -619,7 +619,7 @@
}
}
@media (max-width: 720px) {
@media (max-width: 767px) {
.overview-strip .sentiment-block {
grid-area: 1 / 1 / 3;
@@ -1336,7 +1336,7 @@
}
}
@media (max-width: 1023px) and (min-width: 721px) {
@media (max-width: 1023px) and (min-width: 768px) {
.redesigned-emotion-grid {
grid-template-columns: 1fr;
}
@@ -1348,7 +1348,7 @@
}
}
@media (max-width: 720px), (max-width: 1023px) and (max-height: 600px) {
@media (max-width: 767px), (max-width: 1023px) and (max-height: 600px) {
.redesigned-emotion-grid {
grid-template-columns: 1fr;
}
@@ -1508,7 +1508,7 @@
text-align: center;
}
@media (min-width: 721px) {
@media (min-width: 768px) {
#sentimentCycleView.active-view {
min-height: 0px;
@@ -1534,7 +1534,7 @@
}
}
@media (min-width: 721px) and (max-height: 1100px) {
@media (min-width: 768px) and (max-height: 1100px) {
#sentimentCycleView .sentiment-phase-block {
gap: 12px;
@@ -1570,7 +1570,7 @@
}
}
@media (min-width: 721px) {
@media (min-width: 768px) {
:root #sentimentCycleView.active-view {
height: auto;
@@ -1661,7 +1661,7 @@
padding-bottom: var(--card-gap);
}
@media (min-width: 721px) {
@media (min-width: 768px) {
.redesigned-sentiment-view .sentiment-chart-shell {
padding-right: 16px;
@@ -1674,3 +1674,89 @@
grid-template-columns: minmax(270px, 1.25fr) repeat(3, minmax(160px, 1fr));
}
}
/* Mobile information order: trend, current phase, composition, then history. */
@media (max-width: 767px) {
#sentimentCycleView .sentiment-cycle-toolbar {
gap: var(--space-8);
padding: 0;
}
#sentimentCycleView .sentiment-cycle-analysis,
#sentimentCycleView .redesigned-emotion-grid {
display: flex;
flex-direction: column;
gap: var(--space-12);
}
#sentimentCycleView .sentiment-analysis-main {
order: 1;
}
#sentimentCycleView .sentiment-analysis-rail {
order: 2;
display: grid !important;
grid-template-columns: minmax(0, 1fr);
gap: var(--space-12);
}
#sentimentCycleView .sentiment-trend-panel,
#sentimentCycleView .sentiment-components-panel {
padding: 0;
}
#sentimentCycleView .sentiment-chart-legend {
gap: var(--space-12);
padding: 0 var(--space-12);
overflow-x: auto;
white-space: nowrap;
scrollbar-width: none;
}
#sentimentCycleView .sentiment-chart-shell,
#sentimentCycleView .sentiment-chart-shell canvas {
height: var(--mobile-chart-height);
}
#sentimentCycleView .sentiment-phase-block {
display: grid;
grid-template-columns: auto minmax(0, 1fr);
align-items: start;
gap: var(--space-12);
}
#sentimentCycleView .sentiment-current-phase-badge {
min-width: var(--mobile-phase-badge-width);
}
#sentimentCycleView .sentiment-detail-toolbar {
min-height: var(--mobile-touch-size);
padding: var(--space-8) 0;
}
#sentimentCycleView .sentiment-history-frame {
min-height: var(--mobile-table-min-height);
max-height: none;
margin-bottom: 0;
padding-bottom: 0;
overflow-x: auto;
overflow-y: visible;
}
}
@media (max-width: 359px) {
#sentimentCycleView .sentiment-phase-block {
grid-template-columns: minmax(0, 1fr);
}
}
@media (min-width: 768px) and (max-width: 1023px) {
#sentimentCycleView .redesigned-emotion-grid {
grid-template-columns: minmax(0, 1fr);
}
#sentimentCycleView .sentiment-analysis-rail {
display: grid !important;
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
+25 -7
View File
@@ -117,7 +117,7 @@
border-right: 0px;
}
@media (max-width: 720px) {
@media (max-width: 767px) {
.theme-detail-empty {
min-height: 260px;
}
@@ -231,7 +231,7 @@
border-color: var(--border);
}
@media (max-width: 720px) {
@media (max-width: 767px) {
.theme-directory {
max-height: 300px;
@@ -1100,7 +1100,7 @@
}
}
@media (min-width: 721px) and (max-width: 1180px) {
@media (min-width: 768px) and (max-width: 1180px) {
body[data-active-view="themeLibraryView"] .app-main {
overflow: hidden auto;
}
@@ -1128,7 +1128,7 @@
}
}
@media (min-width: 721px) and (max-height: 900px) {
@media (min-width: 768px) and (max-height: 900px) {
.redesigned-theme-view {
padding-top: 9px;
@@ -1192,7 +1192,7 @@
}
}
@media (max-width: 720px) {
@media (max-width: 767px) {
.redesigned-theme-view {
padding: 10px;
}
@@ -1404,7 +1404,7 @@
grid-template-columns: var(--right-rail-wide) minmax(0,1fr);
}
@media (min-width: 721px) {
@media (min-width: 768px) {
#themeLibraryView .theme-page-head-v2,
#themeLibraryView .theme-summary-v2 {
flex: 0 0 auto;
@@ -1452,7 +1452,7 @@
}
}
@media (max-width: 720px), (max-width: 1023px) and (max-height: 600px) {
@media (max-width: 767px), (max-width: 1023px) and (max-height: 600px) {
#themeLibraryView .theme-library-workspace-v2 {
height: auto;
@@ -1534,3 +1534,21 @@
transition: none;
}
}
@media (max-width: 767px) {
#themeLibraryView {
padding-inline: 0;
}
#themeLibraryView :is(.theme-directory-v2, .theme-detail-column-v2, .theme-detail-stack-v2) {
max-height: none;
overflow: visible;
}
#themeLibraryView .theme-members-frame-v2 {
min-height: var(--mobile-table-min-height);
max-height: none;
overflow-x: auto;
overflow-y: visible;
}
}