*{box-sizing:border-box}body{margin:0;background:#f5f7fb;color:#243044;font-family:Arial,Microsoft YaHei,sans-serif}.page{width:min(1360px,calc(100vw - 32px));margin:0 auto;padding:12px 0 20px}.toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:8px}h1,h2,p{margin:0}h1{font-size:21px;line-height:1.3}p{margin-top:3px;color:#667085;font-size:13px}.code-form{display:flex;gap:10px}.controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}.segmented{display:inline-grid;grid-template-columns:repeat(2,64px);height:34px;border:1px solid #cbd5e1;border-radius:6px;overflow:hidden;background:#fff}.segmented button{height:32px;border-radius:0;padding:0;background:#fff;color:#334155}.segmented button.active{background:#1d4ed8;color:#fff}input{width:240px;height:34px;border:1px solid #cbd5e1;border-radius:6px;padding:0 12px;font-size:15px;background:#fff}.search-box{position:relative}.search-results{position:absolute;z-index:20;top:44px;right:0;width:320px;max-height:280px;overflow-y:auto;border:1px solid #cbd5e1;border-radius:8px;background:#fff;box-shadow:0 12px 30px #0f172a24}.search-results button{display:flex;align-items:center;justify-content:space-between;width:100%;height:auto;min-height:42px;border-radius:0;padding:8px 12px;background:#fff;color:#243044;font-weight:400;text-align:left}.search-results button:hover{background:#f1f5f9}.search-results span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.search-results strong{margin-left:12px;color:#64748b;font-size:12px}select{height:34px;border:1px solid #cbd5e1;border-radius:6px;padding:0 34px 0 12px;font-size:15px;background:#fff;color:#243044}button{height:34px;border:0;border-radius:6px;padding:0 18px;background:#1d4ed8;color:#fff;font-weight:700;cursor:pointer}button:disabled{background:#94a3b8;cursor:default}.metrics{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin:8px 0}.metrics div{background:#fff;border:1px solid #e2e8f0;border-radius:6px;padding:7px 10px}.metrics span{display:block;color:#64748b;font-size:12px}.metrics strong{display:block;margin-top:3px;font-size:15px}.chart-section{background:#fff;border:1px solid #e2e8f0;border-radius:6px;margin-top:8px;padding:8px}.chart-head{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:4px}.chart-head h2{font-size:14px}.chart-head span{color:#64748b;font-size:12px}.chart{width:100%;height:300px}.chart-sub{height:150px}.chart-amount{height:100px}.chart-buying{height:170px}.alert{border:1px solid #fecaca;background:#fef2f2;color:#991b1b;border-radius:8px;padding:12px 14px;margin:14px 0}.note{color:#667085;font-size:12px;line-height:1.4;margin-top:8px}@media(max-width:760px){.toolbar{align-items:stretch;flex-direction:column}.code-form{width:100%}.controls{justify-content:stretch}.segmented,select{flex:1}input{flex:1;min-width:0}.search-box{flex:1}.search-box input,.search-results{width:100%}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
