diff --git a/app/static/futures_analysis.html b/app/static/futures_analysis.html index b36717c..9dd739d 100644 --- a/app/static/futures_analysis.html +++ b/app/static/futures_analysis.html @@ -582,12 +582,133 @@ .tr-empty-icon { font-size: 56px; opacity: 0.3; } .tr-empty-text { font-size: 15px; color: var(--text-tertiary); } + /* ============================================ + 交易反思子系统样式 + ============================================ */ + .tr-subtabs { display: flex; gap: 8px; margin-bottom: 24px; background: rgba(255,255,255,0.6); padding: 4px; border-radius: 14px; backdrop-filter: blur(8px); width: fit-content; } + .tr-subtab { padding: 8px 20px; border-radius: 10px; font-size: 14px; font-weight: 500; cursor: pointer; border: none; background: transparent; color: var(--text-secondary); transition: all 0.2s; font-family: inherit; } + .tr-subtab:hover { background: rgba(0,0,0,0.03); color: var(--text-primary); } + .tr-subtab.active { background: #fff; color: var(--color-brand); box-shadow: var(--shadow-sm); font-weight: 600; } + + .tr-tab-panel { display: none; } + .tr-tab-panel.active { display: block; } + + /* 交易反思 - 日期导航 */ + .tr-refl-datebar { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 24px; } + .tr-refl-datebtn { width: 36px; height: 36px; border-radius: 50%; border: none; background: #fff; color: var(--text-secondary); cursor: pointer; box-shadow: var(--shadow-sm); transition: all 0.2s; font-size: 16px; } + .tr-refl-datebtn:hover { background: var(--color-brand); color: #fff; } + .tr-refl-datetext { font-size: 20px; font-weight: 700; color: var(--text-primary); min-width: 120px; text-align: center; } + .tr-refl-actions { display: flex; gap: 10px; margin-left: auto; } + + /* 反思统计卡片 */ + .tr-refl-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; } + .tr-refl-statcard { background: var(--bg-card); border-radius: var(--radius-card); padding: 20px; text-align: center; box-shadow: var(--shadow-sm); transition: transform 0.2s; } + .tr-refl-statcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); } + .tr-refl-statlabel { font-size: 12px; color: var(--text-tertiary); margin-bottom: 8px; font-weight: 600; } + .tr-refl-statvalue { font-size: 26px; font-weight: 700; } + .tr-refl-statvalue.profit { color: var(--color-down); } + .tr-refl-statvalue.loss { color: var(--color-up); } + .tr-refl-reflected { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 9999px; font-size: 12px; font-weight: 600; } + .tr-refl-reflected.yes { background: rgba(52,199,89,0.12); color: var(--color-down); } + .tr-refl-reflected.no { background: rgba(255,59,48,0.12); color: var(--color-up); } + + /* 当日反思区域 */ + .tr-refl-daily { background: var(--bg-card); border-radius: var(--radius-card); padding: 24px; margin-bottom: 24px; box-shadow: var(--shadow-sm); } + .tr-refl-daily-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; } + .tr-refl-daily-title { font-size: 17px; font-weight: 700; color: var(--text-primary); } + .tr-refl-daily-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; } + .tr-refl-daily-item { background: #F5F5F7; border-radius: 12px; padding: 14px; } + .tr-refl-daily-label { font-size: 11px; color: var(--text-tertiary); margin-bottom: 6px; font-weight: 600; text-transform: uppercase; } + .tr-refl-daily-value { font-size: 14px; color: var(--text-primary); font-weight: 500; line-height: 1.4; } + .tr-refl-daily-value.empty { color: var(--text-tertiary); font-style: italic; } + + /* 交易配对卡片 */ + .tr-refl-section-title { font-size: 17px; font-weight: 700; margin-bottom: 16px; color: var(--text-primary); } + .tr-refl-pairs { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; margin-bottom: 24px; } + .tr-refl-card { background: var(--bg-card); border-radius: var(--radius-card); padding: 20px; box-shadow: var(--shadow-sm); transition: transform 0.2s, box-shadow 0.2s; position: relative; overflow: hidden; } + .tr-refl-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); } + .tr-refl-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--color-brand); } + .tr-refl-card.profit::before { background: var(--color-down); } + .tr-refl-card.loss::before { background: var(--color-up); } + .tr-refl-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; } + .tr-refl-card-symbol { font-size: 16px; font-weight: 700; } + .tr-refl-card-dir { font-size: 12px; padding: 3px 10px; border-radius: 6px; font-weight: 600; } + .tr-refl-card-dir.long { background: rgba(52,199,89,0.12); color: var(--color-down); } + .tr-refl-card-dir.short { background: rgba(255,59,48,0.12); color: var(--color-up); } + .tr-refl-card-pnl { font-size: 20px; font-weight: 700; text-align: right; } + .tr-refl-card-pnl.profit { color: var(--color-down); } + .tr-refl-card-pnl.loss { color: var(--color-up); } + .tr-refl-card-nodes { font-size: 13px; color: var(--text-secondary); margin-bottom: 14px; line-height: 1.6; } + .tr-refl-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; } + .tr-refl-tag { font-size: 11px; padding: 4px 10px; border-radius: 9999px; background: #F5F5F7; color: var(--text-secondary); font-weight: 500; } + .tr-refl-tag.active { background: rgba(0,122,255,0.12); color: var(--color-brand); } + .tr-refl-card-actions { display: flex; gap: 8px; flex-wrap: wrap; } + .tr-refl-card-actions .tr-btn { padding: 6px 12px; font-size: 12px; } + + /* 未配对交易 */ + .tr-refl-unpaired { background: var(--bg-card); border-radius: var(--radius-card); padding: 20px; box-shadow: var(--shadow-sm); } + .tr-refl-unpaired-table { width: 100%; border-collapse: collapse; font-size: 13px; } + .tr-refl-unpaired-table th { background: #F5F5F7; padding: 10px 8px; text-align: left; font-weight: 600; color: var(--text-tertiary); font-size: 12px; } + .tr-refl-unpaired-table td { padding: 10px 8px; border-bottom: 1px solid rgba(0,0,0,0.04); color: var(--text-primary); } + + /* 经验库 */ + .tr-exp-toolbar { display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; align-items: center; } + .tr-exp-search { background: #fff; border: 1px solid rgba(0,0,0,0.05); border-radius: 12px; padding: 0 14px; height: 40px; font-size: 14px; width: 260px; outline: none; } + .tr-exp-search:focus { border-color: var(--color-brand); box-shadow: 0 0 0 3px rgba(0,122,255,0.15); } + .tr-exp-filter { background: #fff; border: 1px solid rgba(0,0,0,0.05); border-radius: 10px; padding: 0 12px; height: 36px; font-size: 13px; color: var(--text-primary); outline: none; } + .tr-exp-viewtabs { display: flex; gap: 6px; margin-left: auto; } + .tr-exp-viewtab { padding: 6px 14px; border-radius: 10px; font-size: 13px; cursor: pointer; border: none; background: #fff; color: var(--text-secondary); transition: all 0.2s; } + .tr-exp-viewtab:hover { background: #F5F5F7; } + .tr-exp-viewtab.active { background: var(--color-brand); color: #fff; } + .tr-exp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; } + .tr-exp-card { background: var(--bg-card); border-radius: var(--radius-card); padding: 20px; box-shadow: var(--shadow-sm); transition: all 0.2s; } + .tr-exp-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); } + .tr-exp-card-title { font-size: 15px; font-weight: 700; margin-bottom: 10px; color: var(--text-primary); } + .tr-exp-card-meta { font-size: 12px; color: var(--text-tertiary); margin-bottom: 12px; } + .tr-exp-card-content { font-size: 13px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 14px; } + .tr-exp-card-tags { display: flex; flex-wrap: wrap; gap: 6px; } + + /* Modal 表单 */ + .tr-form-group { margin-bottom: 18px; } + .tr-form-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 8px; } + .tr-form-input, .tr-form-select, .tr-form-textarea { width: 100%; background: #F5F5F7; border: 1px solid transparent; border-radius: 10px; padding: 10px 12px; font-size: 14px; color: var(--text-primary); font-family: inherit; outline: none; transition: all 0.2s; } + .tr-form-input:focus, .tr-form-select:focus, .tr-form-textarea:focus { border-color: var(--color-brand); background: #fff; box-shadow: 0 0 0 3px rgba(0,122,255,0.1); } + .tr-form-textarea { min-height: 90px; resize: vertical; } + .tr-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } + .tr-form-rating { display: flex; gap: 6px; } + .tr-form-star { font-size: 22px; color: #E5E5E7; cursor: pointer; transition: color 0.15s; } + .tr-form-star.active { color: #FF9F0A; } + .tr-form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; } + + /* 标签管理 */ + .tr-tag-section { margin-bottom: 18px; } + .tr-tag-section-title { font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 10px; } + .tr-tag-pool { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; } + .tr-tag-chip { padding: 6px 12px; border-radius: 9999px; font-size: 12px; cursor: pointer; border: 1px solid rgba(0,0,0,0.06); background: #fff; color: var(--text-secondary); transition: all 0.15s; } + .tr-tag-chip:hover { border-color: var(--color-brand); color: var(--color-brand); } + .tr-tag-chip.selected { background: rgba(0,122,255,0.12); border-color: var(--color-brand); color: var(--color-brand); font-weight: 500; } + .tr-tag-custom { display: flex; gap: 8px; margin-top: 12px; } + .tr-tag-custom .tr-form-input { flex: 1; } + + /* AI 分析结果 */ + .tr-ai-result-section { margin-bottom: 18px; } + .tr-ai-result-title { font-size: 14px; font-weight: 700; color: var(--color-brand); margin-bottom: 8px; } + .tr-ai-result-content { font-size: 14px; color: var(--text-primary); line-height: 1.8; background: #F5F5F7; border-radius: 12px; padding: 14px; } + .tr-ai-list { padding-left: 18px; margin: 0; } + .tr-ai-list li { margin-bottom: 6px; line-height: 1.6; } + @media (max-width: 1200px) { .tr-stats-grid { grid-template-columns: repeat(3, 1fr); } + .tr-refl-stats { grid-template-columns: repeat(2, 1fr); } + .tr-refl-daily-grid { grid-template-columns: repeat(2, 1fr); } } @media (max-width: 768px) { .tr-stats-grid { grid-template-columns: repeat(2, 1fr); } .tr-overview-grid { grid-template-columns: repeat(2, 1fr); } + .tr-refl-stats { grid-template-columns: 1fr; } + .tr-refl-daily-grid { grid-template-columns: 1fr; } + .tr-form-row { grid-template-columns: 1fr; } + .tr-refl-pairs { grid-template-columns: 1fr; } } @media (max-width: 768px) { @@ -974,82 +1095,396 @@
- -
-
- - - - - - ~ - - + +
+ + + +
+ + +
+ +
+
+ + + + + + ~ + + +
+
+ + +
-
- - + + +
+ + +
+
账户权益曲线(累计净盈亏 + 每日盈亏)
+
+
+ + +
+
品种盈亏分布(气泡大小=手续费占比,颜色=净盈亏)
+
+
+ + +
+
每日交易详情(点击日期查看详情)
+ + + + + + + + + +
日期笔数平仓盈亏手续费净盈亏盈利笔亏损笔胜率最大盈利最大亏损品种数操作
+ +
+ + +
+
品种盈亏排行(点击查看品种详情)
+ + + + + + + + + +
排名代码名称净盈亏平仓盈亏手续费胜率盈亏比笔数操作
+ +
+
+ + +
+
+ + - + +
+ +
+
+ +
+
+
总盈亏
+
-
+
+
+
交易笔数
+
-
+
+
+
胜率
+
-
+
+
+
已反思
+
-
+
+
+ +
+
+
当日反思
+
+
+
+
情绪状态
+
-
+
+
+
执行纪律
+
-
+
+
+
总体评价
+
-
+
+
+
市场判断
+
-
+
+
+
+ +
交易配对
+
+ +
+
未配对交易
+ + + + + +
时间品种方向价格手数盈亏
+
- -
+ +
+
+ + + +
+ + + +
+
+
+ +
- -
-
账户权益曲线(累计净盈亏 + 每日盈亏)
-
+ +
+
+
+ 写反思 + +
+
+
+ +
+
+ + +
+
+ + +
+
+
+
+ + +
+
+ + +
+
+
+ + +
+
+ +
+ + + + + +
+
+
+ + +
+
+ +
+
+
+ + +
+
+
+
- -
-
品种盈亏分布(气泡大小=手续费占比,颜色=净盈亏)
-
+ +
+
+
+ 当日反思编辑 + +
+
+
+
+
+ + +
+
+ +
+ + + + + +
+
+
+
+
+ + +
+
+ + +
+
+
+ + +
+
+ + +
+
+ + +
+
+
+
- -
-
每日交易详情(点击日期查看详情)
- - - - - - - - - -
日期笔数平仓盈亏手续费净盈亏盈利笔亏损笔胜率最大盈利最大亏损品种数
-