/**
 * 定投模拟器 的样式（原来写在模板的内联 <style> 里）
 *
 * 搬出来的原因：内联样式每次请求都跟着 HTML 重下，浏览器缓存不了。
 * 现在由 functions.php 的 xianer_page_styles() 按模板单独 enqueue，版本号走 filemtime。
 * 新增工具照 tools.css 头部那份约定来。
 */
.dt-container { max-width: 600px; margin: 0 auto; padding: 20px; }
.dt-card { background: rgba(255,255,255,0.6); border-radius: 16px; padding: 20px; margin-bottom: 15px; box-shadow: 0 2px 12px rgba(0,0,0,.1); backdrop-filter: blur(10px); }
html.dark .dt-card { background: rgba(0,0,0,0.3); box-shadow: 0 2px 12px rgba(0,0,0,.3); }
.dt-tabs { display: flex; background: rgba(0,0,0,0.2); border-radius: 12px; padding: 4px; margin-bottom: 20px; }
.dt-tab { flex: 1; text-align: center; padding: 12px; border-radius: 8px; cursor: pointer; font-weight: 500; transition: all 0.3s; }
.dt-tab.active { background: var(--hot-1); color: #1a1a1a; }
.dt-section-title { font-size: 14px; opacity: 0.7; margin-bottom: 10px; }
.dt-years { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.dt-year-btn { padding: 12px; text-align: center; background: rgba(0,0,0,0.2); border-radius: 8px; cursor: pointer; transition: all 0.3s; }
.dt-year-btn.active { background: var(--hot-1); color: #1a1a1a; }
.dt-slider-row { margin-bottom: 20px; }
.dt-slider-label { display: flex; justify-content: space-between; margin-bottom: 8px; }
.dt-slider-value { color: var(--hot-text); font-weight: bold; font-size: 18px; }
.dt-slider { width: 100%; height: 6px; border-radius: 3px; background: var(--border); outline: none; -webkit-appearance: none; }
.dt-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.dt-submit { width: 100%; padding: 16px; background: var(--hot-1); color: #1a1a1a; border: none; border-radius: 12px; font-size: 18px; font-weight: bold; cursor: pointer; }
.dt-hero-number { font-size: 48px; font-weight: bold; color: var(--hot-text); line-height: 1.2; margin: 10px 0; }
.dt-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 20px; text-align: center; }
.dt-stat-label { font-size: 12px; opacity: 0.6; margin-bottom: 5px; }
.dt-stat-value { font-size: 16px; font-weight: bold; }
.dt-stat-value.positive { color: var(--ok); }
.dt-progress-bar { height: 12px; border-radius: 6px; background: var(--border); margin: 15px 0; overflow: hidden; }
.dt-progress-fill { height: 100%; background: var(--hot-text); border-radius: 6px; }
.dt-legend { display: flex; gap: 20px; font-size: 14px; margin-top: 10px; }
.dt-legend-item { display: flex; align-items: center; gap: 6px; }
.dt-legend-dot { width: 12px; height: 12px; border-radius: 3px; }
.dt-yearly-table { width: 100%; border-collapse: collapse; margin-top: 15px; }
.dt-yearly-table th, .dt-yearly-table td { padding: 12px 8px; text-align: right; border-bottom: 1px solid var(--border); }
.dt-yearly-table th:first-child, .dt-yearly-table td:first-child { text-align: left; }
.dt-yearly-table th { font-size: 12px; opacity: 0.6; font-weight: normal; }
.dt-yearly-table td.positive { color: var(--ok); }
.dt-yearly-table td.negative { color: var(--danger); }
.dt-assumptions { font-size: 14px; line-height: 1.8; opacity: 0.8; padding-left: 20px; }
.dt-assumptions li { margin-bottom: 8px; }
.dt-disclaimer { font-size: 12px; opacity: 0.5; line-height: 1.6; margin-top: 15px; }
.dt-select { width: 100%; padding: 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--card); color: var(--text); margin-bottom: 15px; }
.dt-page-title { text-align: center; margin: 20px 0 30px; }
.dt-page-title h1 { font-size: 28px; font-weight: bold; margin-bottom: 8px; }
.dt-page-title p { font-size: 14px; opacity: 0.6; }

/* 手机端自适应 */
@media (max-width: 768px) {
	.dt-container { padding: 15px; }
	.dt-page-title h1 { font-size: 22px; }
	.dt-card { padding: 15px; border-radius: 12px; }
	.dt-hero-number { font-size: 36px; }
	.dt-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
	.dt-stat-value { font-size: 14px; }
	.dt-yearly-table th, .dt-yearly-table td { padding: 8px 4px; font-size: 12px; }
	.dt-assumptions { font-size: 13px; }
	.dt-slider-value { font-size: 16px; }
	.dt-submit { padding: 14px; font-size: 16px; }
	.dt-legend { flex-direction: column; gap: 8px; }
}
