705 lines
11 KiB
CSS
705 lines
11 KiB
CSS
.recommendations-viewer {
|
|
padding: 20px;
|
|
max-width: 1400px;
|
|
margin: 0 auto;
|
|
min-height: 100vh;
|
|
background-color: #f5f5f5;
|
|
}
|
|
|
|
.viewer-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 20px;
|
|
padding: 20px;
|
|
background-color: white;
|
|
border-radius: 8px;
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.viewer-header h1 {
|
|
margin: 0;
|
|
color: #333;
|
|
font-size: 24px;
|
|
}
|
|
|
|
.header-info {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 15px;
|
|
}
|
|
|
|
.update-info {
|
|
font-size: 12px;
|
|
color: #666;
|
|
}
|
|
|
|
.btn-refresh {
|
|
padding: 8px 16px;
|
|
background-color: #2196F3;
|
|
color: white;
|
|
border: none;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
transition: background-color 0.3s;
|
|
}
|
|
|
|
.btn-refresh:hover:not(:disabled) {
|
|
background-color: #0b7dda;
|
|
}
|
|
|
|
.btn-refresh:disabled {
|
|
background-color: #cccccc;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.filters {
|
|
display: flex;
|
|
gap: 10px;
|
|
margin-bottom: 20px;
|
|
padding: 15px;
|
|
background-color: white;
|
|
border-radius: 8px;
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.filter-select {
|
|
padding: 8px 12px;
|
|
border: 1px solid #ddd;
|
|
border-radius: 4px;
|
|
font-size: 14px;
|
|
background-color: white;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.error-message {
|
|
padding: 12px;
|
|
background-color: #ffebee;
|
|
color: #c62828;
|
|
border-radius: 4px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.loading {
|
|
text-align: center;
|
|
padding: 40px;
|
|
color: #666;
|
|
background-color: white;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.empty-state {
|
|
text-align: center;
|
|
padding: 60px 20px;
|
|
color: #666;
|
|
background-color: white;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.empty-state p {
|
|
margin-bottom: 20px;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.recommendations-list {
|
|
display: grid;
|
|
gap: 20px;
|
|
}
|
|
|
|
.recommendation-card {
|
|
background-color: white;
|
|
border-radius: 8px;
|
|
padding: 20px;
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
transition: box-shadow 0.3s;
|
|
}
|
|
|
|
.recommendation-card:hover {
|
|
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
|
|
}
|
|
|
|
.card-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-start;
|
|
margin-bottom: 15px;
|
|
padding-bottom: 15px;
|
|
border-bottom: 1px solid #eee;
|
|
}
|
|
|
|
.card-title {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.symbol {
|
|
font-size: 18px;
|
|
font-weight: bold;
|
|
color: #333;
|
|
}
|
|
|
|
.direction {
|
|
padding: 4px 8px;
|
|
border-radius: 4px;
|
|
font-size: 12px;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.direction.buy {
|
|
background-color: #4CAF50;
|
|
color: white;
|
|
}
|
|
|
|
.direction.sell {
|
|
background-color: #f44336;
|
|
color: white;
|
|
}
|
|
|
|
.card-meta {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-end;
|
|
gap: 5px;
|
|
}
|
|
|
|
.signal-strength {
|
|
padding: 4px 8px;
|
|
border-radius: 4px;
|
|
font-size: 12px;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.signal-strong {
|
|
background-color: #4CAF50;
|
|
color: white;
|
|
}
|
|
|
|
.signal-medium {
|
|
background-color: #FF9800;
|
|
color: white;
|
|
}
|
|
|
|
.signal-weak {
|
|
background-color: #9E9E9E;
|
|
color: white;
|
|
}
|
|
|
|
.time {
|
|
font-size: 12px;
|
|
color: #666;
|
|
}
|
|
|
|
.card-content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 15px;
|
|
}
|
|
|
|
.price-info {
|
|
display: flex;
|
|
gap: 20px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.price-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.price-item.price-meta {
|
|
font-size: 12px;
|
|
color: #666;
|
|
}
|
|
|
|
.price-item label {
|
|
font-weight: bold;
|
|
color: #666;
|
|
}
|
|
|
|
.price-item .positive {
|
|
color: #4CAF50;
|
|
}
|
|
|
|
.price-item .negative {
|
|
color: #f44336;
|
|
}
|
|
|
|
.price-updated-badge {
|
|
margin-left: 5px;
|
|
font-size: 10px;
|
|
}
|
|
|
|
.recommendation-reason {
|
|
background-color: #f5f5f5;
|
|
padding: 12px;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.recommendation-reason strong {
|
|
display: block;
|
|
margin-bottom: 8px;
|
|
color: #333;
|
|
}
|
|
|
|
.recommendation-reason p {
|
|
margin: 0;
|
|
color: #666;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.suggested-params {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
|
|
gap: 15px;
|
|
padding: 15px;
|
|
background-color: #f9f9f9;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.param-item {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 5px;
|
|
}
|
|
|
|
.param-item label {
|
|
font-size: 12px;
|
|
color: #666;
|
|
font-weight: bold;
|
|
width: 100px;
|
|
}
|
|
|
|
.param-item span {
|
|
font-size: 14px;
|
|
color: #333;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.param-item.order-type {
|
|
grid-column: span 2;
|
|
}
|
|
|
|
.order-type-badge {
|
|
display: inline-block;
|
|
padding: 4px 8px;
|
|
border-radius: 4px;
|
|
font-size: 12px;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.order-type-badge.limit {
|
|
background-color: #2196F3;
|
|
color: white;
|
|
}
|
|
|
|
.order-type-badge.market {
|
|
background-color: #FF9800;
|
|
color: white;
|
|
}
|
|
|
|
.param-item.limit-price {
|
|
grid-column: span 2;
|
|
}
|
|
|
|
.param-item.limit-price.highlight {
|
|
background-color: #e3f2fd;
|
|
border: 2px solid #2196F3;
|
|
border-radius: 6px;
|
|
padding: 10px;
|
|
margin: 5px 0;
|
|
}
|
|
|
|
.param-item.limit-price.highlight label {
|
|
color: #1976d2;
|
|
font-weight: bold;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.limit-price-value {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
|
|
.limit-price-value.highlight-price {
|
|
font-size: 18px;
|
|
font-weight: bold;
|
|
color: #1976d2;
|
|
}
|
|
|
|
.price-diff {
|
|
font-size: 11px;
|
|
color: #666;
|
|
font-weight: normal;
|
|
font-style: italic;
|
|
}
|
|
|
|
.btn-toggle-details {
|
|
padding: 8px 16px;
|
|
background-color: #e0e0e0;
|
|
border: none;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
transition: background-color 0.3s;
|
|
align-self: flex-start;
|
|
}
|
|
|
|
.btn-toggle-details:hover {
|
|
background-color: #d0d0d0;
|
|
}
|
|
|
|
.details-panel {
|
|
margin-top: 15px;
|
|
padding: 15px;
|
|
background-color: #f9f9f9;
|
|
border-radius: 4px;
|
|
border: 1px solid #e0e0e0;
|
|
}
|
|
|
|
.details-section {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.details-section:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.details-section h4 {
|
|
margin: 0 0 10px 0;
|
|
color: #333;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.indicators-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
|
|
gap: 10px;
|
|
}
|
|
|
|
.indicator-item {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
padding: 8px;
|
|
background-color: white;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.indicator-item label {
|
|
font-size: 12px;
|
|
color: #666;
|
|
}
|
|
|
|
.indicator-item span {
|
|
font-size: 12px;
|
|
color: #333;
|
|
font-weight: 500;
|
|
}
|
|
|
|
/* 推荐分类和风险标签 */
|
|
.recommendation-tags {
|
|
display: flex;
|
|
gap: 8px;
|
|
flex-wrap: wrap;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.category-tag,
|
|
.risk-tag {
|
|
padding: 4px 10px;
|
|
border-radius: 4px;
|
|
font-size: 12px;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.category-tag {
|
|
background-color: #2196F3;
|
|
color: white;
|
|
}
|
|
|
|
.category-tag.category-逆势反弹高风险 {
|
|
background-color: #f44336;
|
|
}
|
|
|
|
.category-tag.category-震荡区间操作 {
|
|
background-color: #FF9800;
|
|
}
|
|
|
|
.risk-tag {
|
|
background-color: #9E9E9E;
|
|
color: white;
|
|
}
|
|
|
|
.risk-tag.risk-高 {
|
|
background-color: #f44336;
|
|
}
|
|
|
|
.risk-tag.risk-中高 {
|
|
background-color: #FF5722;
|
|
}
|
|
|
|
.risk-tag.risk-中等 {
|
|
background-color: #FF9800;
|
|
}
|
|
|
|
.risk-tag.risk-低中 {
|
|
background-color: #4CAF50;
|
|
}
|
|
|
|
/* 用户指南 */
|
|
.user-guide {
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
color: white;
|
|
padding: 15px;
|
|
border-radius: 8px;
|
|
margin: 10px 0;
|
|
}
|
|
|
|
.user-guide.buy-bg{
|
|
background: linear-gradient(135deg, #05e567 0%, #795f94 100%);
|
|
}
|
|
|
|
.user-guide.sell-bg{
|
|
background: linear-gradient(135deg, #e72215 0%, #891810 100%);
|
|
}
|
|
|
|
.user-guide-head {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-start;
|
|
gap: 12px;
|
|
flex-wrap: wrap;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.user-guide strong {
|
|
display: block;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.user-guide-prices {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.ug-direction-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 28px;
|
|
height: 28px;
|
|
border-radius: 999px;
|
|
border: 2px solid rgba(255, 255, 255, 0.9);
|
|
background: rgba(0, 0, 0, 0.15);
|
|
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
|
|
backdrop-filter: blur(4px);
|
|
}
|
|
|
|
.ug-direction-badge.buy {
|
|
background: rgba(46, 204, 113, 0.22);
|
|
}
|
|
|
|
.ug-direction-badge.sell {
|
|
background: rgba(231, 76, 60, 0.22);
|
|
}
|
|
|
|
.ug-direction-icon {
|
|
flex: 0 0 auto;
|
|
opacity: 0.95;
|
|
color: rgba(255, 255, 255, 0.95);
|
|
filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.15));
|
|
}
|
|
|
|
.ug-pill {
|
|
display: inline-block;
|
|
padding: 4px 8px;
|
|
border-radius: 999px;
|
|
font-size: 12px;
|
|
background: rgba(255, 255, 255, 0.16);
|
|
border: 1px solid rgba(255, 255, 255, 0.22);
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.ug-entry-status {
|
|
margin-left: 6px;
|
|
font-size: 11px;
|
|
padding: 2px 6px;
|
|
border-radius: 999px;
|
|
background: rgba(255, 255, 255, 0.14);
|
|
border: 1px solid rgba(255, 255, 255, 0.18);
|
|
}
|
|
|
|
.ug-entry-status.hit {
|
|
background: rgba(255, 255, 255, 0.18);
|
|
}
|
|
|
|
.ug-entry-status.wait {
|
|
opacity: 0.9;
|
|
}
|
|
|
|
.ug-pill.entry {
|
|
background: rgba(46, 204, 113, 0.22);
|
|
border-color: rgba(46, 204, 113, 0.35);
|
|
font-size: 18px;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.ug-pill.stop {
|
|
background: rgba(231, 76, 60, 0.22);
|
|
border-color: rgba(231, 76, 60, 0.35);
|
|
font-size: 18px;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.ug-pill.tp1 {
|
|
background: rgba(241, 196, 15, 0.22);
|
|
border-color: rgba(241, 196, 15, 0.35);
|
|
}
|
|
|
|
.ug-pill.tp2 {
|
|
background: rgba(52, 152, 219, 0.22);
|
|
border-color: rgba(52, 152, 219, 0.35);
|
|
}
|
|
|
|
.collapsible-user-guide .cug-body {
|
|
position: relative;
|
|
}
|
|
|
|
.collapsible-user-guide .cug-body.collapsed {
|
|
overflow: hidden;
|
|
}
|
|
|
|
.collapsible-user-guide .cug-fade {
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
height: 36px;
|
|
background: linear-gradient(to bottom, rgba(102, 126, 234, 0), rgba(118, 75, 162, 0.9));
|
|
pointer-events: none;
|
|
}
|
|
|
|
.collapsible-user-guide .cug-toggle {
|
|
margin-top: 8px;
|
|
background: rgba(255, 255, 255, 0.14);
|
|
color: #fff;
|
|
border: 1px solid rgba(255, 255, 255, 0.22);
|
|
border-radius: 6px;
|
|
padding: 6px 10px;
|
|
cursor: pointer;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.collapsible-user-guide .cug-toggle:hover {
|
|
background: rgba(255, 255, 255, 0.22);
|
|
}
|
|
|
|
.user-guide-content {
|
|
margin: 0;
|
|
white-space: pre-wrap;
|
|
font-family: 'Courier New', monospace;
|
|
font-size: 13px;
|
|
line-height: 1.8;
|
|
background: rgba(255, 255, 255, 0.1);
|
|
padding: 12px;
|
|
border-radius: 4px;
|
|
overflow-x: auto;
|
|
}
|
|
|
|
/* 交易教程 */
|
|
.trading-tutorial {
|
|
background-color: #fff3cd;
|
|
border-left: 4px solid #ffc107;
|
|
padding: 12px 15px;
|
|
border-radius: 4px;
|
|
margin: 10px 0;
|
|
}
|
|
|
|
.trading-tutorial strong {
|
|
display: block;
|
|
margin-bottom: 8px;
|
|
color: #856404;
|
|
}
|
|
|
|
.trading-tutorial p {
|
|
margin: 0;
|
|
color: #856404;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
/* 预期持仓时间和退出提醒 */
|
|
.expected-hold-time,
|
|
.max-hold-warning {
|
|
background-color: #e3f2fd;
|
|
border-left: 4px solid #2196F3;
|
|
padding: 10px 15px;
|
|
border-radius: 4px;
|
|
margin: 10px 0;
|
|
}
|
|
|
|
.expected-hold-time strong,
|
|
.max-hold-warning strong {
|
|
display: inline-block;
|
|
margin-right: 8px;
|
|
color: #1976d2;
|
|
}
|
|
|
|
.expected-hold-time span,
|
|
.max-hold-warning span {
|
|
color: #1976d2;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.max-hold-warning {
|
|
background-color: #fff3e0;
|
|
border-left-color: #ff9800;
|
|
}
|
|
|
|
.max-hold-warning strong,
|
|
.max-hold-warning span {
|
|
color: #e65100;
|
|
}
|
|
|
|
/* 响应式设计 */
|
|
@media (max-width: 768px) {
|
|
.recommendations-viewer {
|
|
padding: 10px;
|
|
}
|
|
|
|
.viewer-header {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
gap: 15px;
|
|
}
|
|
|
|
.header-info {
|
|
width: 100%;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.card-header {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.card-meta {
|
|
align-items: flex-start;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.suggested-params {
|
|
/* grid-template-columns: 1fr; */
|
|
}
|
|
|
|
.param-item.order-type,
|
|
.param-item.limit-price {
|
|
grid-column: span 1;
|
|
}
|
|
}
|