feat: 增加 DCF 等估值工具
This commit is contained in:
@@ -533,3 +533,53 @@ button {
|
||||
.chart { min-width: 560px; }
|
||||
.card { overflow-x: auto; }
|
||||
}
|
||||
|
||||
/* 估值工具沿用图表页的纸白与棕色主题。 */
|
||||
.tools-title { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
|
||||
.app-layout.tools-layout { grid-template-columns: 184px minmax(0, 1fr); }
|
||||
.tools-layout .content { max-width: 1120px; width: 100%; }
|
||||
.chart-sidebar[hidden] { display: none; }
|
||||
.return-calculator {
|
||||
display: grid;
|
||||
gap: 22px;
|
||||
min-width: 0;
|
||||
padding: 26px;
|
||||
background: var(--surface);
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 10px;
|
||||
}
|
||||
.return-calculator [hidden] { display: none !important; }
|
||||
.return-calculator h2 { margin: 0 0 10px; font-size: 22px; font-weight: 600; }
|
||||
.return-calculator [data-company] { margin-bottom: 6px; font-size: 13px; color: var(--accent); }
|
||||
.return-calculator .text-small { font-size: 12px; line-height: 1.8; }
|
||||
.return-calculator .text-muted { color: #75716c; }
|
||||
.return-calculator .viz-controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 16px; }
|
||||
.return-calculator .form-label { display: grid; align-content: start; gap: 8px; min-width: 0; font-size: 12px; line-height: 1.6; }
|
||||
.return-calculator .form-control,
|
||||
.return-calculator .form-select {
|
||||
width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid var(--line);
|
||||
border-radius: 6px; background: #faf9f7; color: var(--ink); font: inherit;
|
||||
font-size: 15px; font-variant-numeric: tabular-nums;
|
||||
}
|
||||
.return-calculator .form-control:focus,
|
||||
.return-calculator .form-select:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
|
||||
.return-calculator details { padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
|
||||
.return-calculator summary { cursor: pointer; font-size: 13px; color: var(--accent); }
|
||||
.return-calculator .calc-advanced { padding-top: 20px; }
|
||||
.return-calculator .calc-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
|
||||
.return-calculator .calc-message { margin: 0; }
|
||||
.return-calculator .text-destructive { padding: 12px; border-radius: 6px; color: #a63f32; background: #fff1ee; font-size: 13px; }
|
||||
.return-calculator .calc-section { display: grid; gap: 12px; min-width: 0; }
|
||||
.return-calculator .viz-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
|
||||
.return-calculator .viz-stat { padding: 18px 14px; border: 1px solid var(--line); box-shadow: none; background: #faf9f7; font-size: 12px; overflow-wrap: anywhere; }
|
||||
.return-calculator .viz-stat:first-child { background: var(--accent-soft); border-color: var(--accent-soft); }
|
||||
.return-calculator .viz-stat-value { margin-top: 12px; font-size: clamp(18px, 1.7vw, 26px); font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }
|
||||
.return-calculator .calc-notes { padding-top: 8px; border-top: 1px solid var(--line); }
|
||||
.return-calculator .calc-notes p { margin: 8px 0 0; }
|
||||
@media (max-width: 680px) {
|
||||
.return-calculator { padding: 20px 16px; gap: 20px; }
|
||||
.return-calculator h2 { font-size: 20px; }
|
||||
.return-calculator .viz-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
|
||||
.return-calculator .viz-grid { grid-template-columns: 1fr; }
|
||||
.return-calculator .viz-stat-value { font-size: 24px; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user