:root{--bg:#f7faff;--panel:#fff;--line:#e7edf7;--text:#172033;--muted:#74829a;--red:#f0444d;--green:#0ca579;--blue:#2877e8;--shadow:0 4px 16px rgba(67,102,157,.10)}
*{box-sizing:border-box}body{margin:0;background:linear-gradient(180deg,#fff 0,#f4f8ff 100%);color:var(--text);font-family:Inter,"Microsoft YaHei","PingFang SC",system-ui,sans-serif}.shell{max-width:1120px;margin:auto;padding:0 14px}
.topbar{height:57px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;border-bottom:1px solid #edf1f7}.top-time{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--muted);background:#fff;border:1px solid var(--line);border-radius:12px;padding:7px 12px;width:max-content;box-shadow:var(--shadow)}.top-time svg{width:16px;height:16px;fill:none;stroke:#6f829f;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.brand{font-size:28px;font-weight:900;color:#111b2d;text-decoration:none;text-align:center;letter-spacing:1px}.top-actions{justify-self:end;display:flex;align-items:center;gap:7px}.market-status{font-size:12px;color:var(--green)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:5px;border:1px solid #d9e4f5;border-radius:10px;padding:8px 15px;background:#fff;color:var(--text);font-weight:800;cursor:pointer;font-size:13px}.btn.primary{background:var(--blue);border-color:var(--blue);color:#fff}.btn-icon{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.hidden{display:none!important}
.content{padding:10px 0 20px}.hero{display:flex;justify-content:space-between;align-items:center;background:#fff;border:1px solid #edf2f8;border-radius:18px 18px 0 0;padding:13px 20px 9px}.section-title{display:flex;align-items:center;gap:10px}.section-icon{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--blue);color:#fff;font-size:15px;line-height:1;vertical-align:middle;margin-right:7px}.hero h2{font-size:21px;margin:0;font-weight:900}.subtitle{color:var(--muted);font-size:13px;margin:3px 0 0}.refresh-box{color:var(--muted);font-size:12px;display:flex;align-items:center;gap:6px}.status-dot{width:8px;height:8px;border-radius:50%;background:#5795f3;display:inline-block}
.market-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;padding:0 20px 9px;background:#fff;border-left:1px solid #edf2f8;border-right:1px solid #edf2f8}.index-card,.metric-card,.sector-card,.watch-card{background:linear-gradient(145deg,#fff,#fbfdff);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow)}.index-card{height:91px;padding:14px 18px;position:relative;overflow:hidden}.index-name{font-size:16px;font-weight:700}.index-price{display:none}.index-card .change{font-size:25px;margin-top:9px}.index-card:after{content:"";position:absolute;right:12px;bottom:12px;width:68px;height:28px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 40'%3E%3Cpath d='M0 35 C10 30 12 22 22 25 S32 18 40 20 S50 9 60 12 S72 2 80 9 S90 0 100 7' fill='none' stroke='%23ff9da3' stroke-width='2'/%3E%3C/svg%3E") center/contain no-repeat;opacity:.8}
.metric-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:9px;padding:0 20px 12px;background:#fff;border:1px solid #edf2f8;border-top:0}.metric-card{position:relative;padding:10px 46px 9px 13px;min-height:76px}.metric-card:nth-child(1),.metric-card:nth-child(2){grid-column:span 3}.metric-card:nth-child(n+3){grid-column:span 2}.metric-label{font-size:12px;color:#52627b}.metric-value{font-size:19px;font-weight:900;margin-top:4px;line-height:1.08}.metric-sub{display:block;color:var(--muted);font-size:10px;font-weight:500;margin-top:5px}.positive{color:var(--red)}.negative{color:var(--green)}.flat{color:var(--muted)}.split-value{white-space:nowrap}
.metric-card:after{content:"";position:absolute;right:10px;top:50%;width:27px;height:27px;transform:translateY(-50%);border-radius:8px;background-color:#eef5ff;background-position:center;background-repeat:no-repeat;background-size:20px}.metric-card:nth-child(1):after{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 19V11M12 19V5M19 19V8' stroke='%23f05a65' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E")}.metric-card:nth-child(2):after{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3a9 9 0 1 0 9 9h-9z' fill='%23f0444d'/%3E%3Cpath d='M13 3v8h8a9 9 0 0 0-8-8z' fill='%230ca579'/%3E%3C/svg%3E")}.metric-card:nth-child(3):after{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13 2L5 13h6l-1 9 9-12h-6z' fill='%23669df0'/%3E%3C/svg%3E")}.metric-card:nth-child(4):after{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' fill='%23ff9aa1'/%3E%3Cpath d='M8 14l7-7m-5 0h5v5' fill='none' stroke='white' stroke-width='2'/%3E%3C/svg%3E")}.metric-card:nth-child(5):after{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 13h5l2-7 4 13 2-6h7' fill='none' stroke='%230ca579' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E")}
.section-heading{display:flex;justify-content:space-between;align-items:center;margin:0;padding:12px 20px 8px;background:#fff;border:1px solid #edf2f8;border-top:0}.section-heading h2{font-size:19px;margin:0;font-weight:900}.section-heading .section-icon{width:27px;height:27px;margin-right:5px}.small-title{font-size:14px;color:#172033}.pill{font-size:13px;color:var(--blue);border:1px solid #b9d3fb;border-radius:12px;padding:6px 12px;background:#fff}.sector-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;padding:0 20px 10px;background:#fff;border:1px solid #edf2f8;border-top:0}.sector-card{padding:9px 8px;min-height:76px;text-align:center}.sector-rank{color:var(--muted);font-size:11px}.sector-name{font-size:13px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:6px 0 3px}.sector-count{font-size:15px;font-weight:900;color:var(--red)}
.watch-heading{margin-top:0}.watch-actions{display:flex;gap:7px}.watch-actions input{width:150px;border:1px solid #d7e1ef;border-radius:9px;padding:7px 11px;font-size:13px}.watch-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;padding:0 20px 12px;background:#fff;border:1px solid #edf2f8;border-top:0}.watch-card{padding:9px 11px;display:flex;justify-content:space-between;min-height:64px;min-width:0}.watch-card>div:first-child{min-width:0}.watch-name{font-size:13px;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.watch-code{display:block;font-size:10px;color:var(--muted);margin-top:3px}.watch-right{text-align:right;flex:0 0 auto}.watch-price{font-size:10px;color:var(--muted)}.watch-right .change{font-size:17px;margin-top:2px}.delete-stock{font-size:9px;color:var(--muted);cursor:pointer;margin-top:3px}.loading,.empty{grid-column:1/-1;text-align:center;color:var(--muted);padding:20px;font-size:12px}
footer{display:flex;justify-content:space-between;color:#8a95a7;font-size:10px;border-top:1px solid var(--line);padding:9px 0 13px}.modal{position:fixed;inset:0;background:#17203366;display:grid;place-items:center;padding:16px;z-index:5}.modal-card{width:min(400px,100%);background:#fff;border-radius:16px;padding:22px;position:relative;box-shadow:0 20px 60px #17203333}.modal-close{position:absolute;right:10px;top:5px;border:0;background:none;font-size:24px}.auth-tabs{display:flex;gap:18px;border-bottom:1px solid var(--line);margin-bottom:15px}.auth-tabs button{border:0;background:none;padding:7px 0;color:var(--muted)}.auth-tabs .active{color:var(--blue);border-bottom:2px solid var(--blue)}.auth-form{display:grid;gap:11px}.auth-form label{display:grid;gap:5px;font-size:12px;color:var(--muted)}.auth-form input,.code-row input{border:1px solid var(--line);border-radius:7px;padding:8px}.code-row{display:grid;grid-template-columns:1fr auto;gap:6px}.wide{width:100%}.form-message{min-height:17px;font-size:12px;color:#b27a13}
@media(max-width:700px){.shell{padding:0 5px}.topbar{height:39px;grid-template-columns:1fr auto 1fr}.top-time{font-size:9px;padding:4px 6px;border-radius:8px;gap:3px}.top-time svg{width:13px;height:13px}.brand{font-size:20px}.top-actions{gap:2px}.market-status{display:none}.btn{padding:4px 6px;font-size:10px;border-radius:7px}.btn-icon{width:13px;height:13px}.content{padding-top:3px}.hero{padding:7px 7px 5px;border-radius:11px 11px 0 0}.hero h2{font-size:15px}.subtitle{font-size:8px}.section-icon{width:22px;height:22px;font-size:11px;margin-right:3px}.refresh-box{font-size:8px}.status-dot{width:6px;height:6px}.market-grid{gap:3px;padding:0 4px 4px}.index-card{height:54px;padding:7px 7px;border-radius:9px}.index-name{font-size:10px}.index-card .change{font-size:14px;margin-top:5px}.index-card:after{width:38px;height:17px;right:3px;bottom:4px}.metric-grid{grid-template-columns:repeat(6,1fr);gap:3px;padding:0 4px 5px}.metric-card{min-height:53px;padding:6px 25px 5px 6px;border-radius:8px}.metric-card:nth-child(1),.metric-card:nth-child(2){grid-column:span 3}.metric-card:nth-child(n+3){grid-column:span 2}.metric-label{font-size:8px}.metric-value{font-size:11px;margin-top:2px}.metric-sub{font-size:7px;margin-top:2px;white-space:nowrap}.metric-card:after{right:4px;width:18px;height:18px;background-size:14px;border-radius:5px}.section-heading{padding:6px 5px 4px}.section-heading h2{font-size:14px}.section-heading .section-icon{width:22px;height:22px}.small-title{font-size:10px}.pill{font-size:9px;padding:3px 5px;border-radius:7px}.sector-grid{grid-template-columns:repeat(5,1fr);gap:3px;padding:0 4px 5px}.sector-card{padding:5px 2px;min-height:52px;border-radius:8px}.sector-rank{font-size:7px}.sector-name{font-size:9px;margin:3px 0 1px}.sector-count{font-size:10px}.watch-actions{gap:3px}.watch-actions input{width:62px;padding:4px 5px;font-size:9px;border-radius:6px}.watch-grid{grid-template-columns:repeat(3,1fr);gap:3px;padding:0 4px 6px}.watch-card{padding:5px 6px;min-height:48px;border-radius:8px;align-items:center}.watch-name{font-size:9px}.watch-code,.watch-price{display:none}.watch-right .change{font-size:12px;margin:0}.delete-stock{font-size:7px;margin-top:2px}.empty{padding:10px}footer{display:none}}
.section-icon{background:linear-gradient(145deg,#3988f4,#1768df);box-shadow:0 3px 8px rgba(40,119,232,.24)}
.section-icon svg{width:18px;height:18px;fill:none;stroke:#fff;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.market-icon svg{stroke-width:2.1}.trophy-icon svg{width:17px;height:17px;stroke-width:1.8}
.watch-name{font-size:15px;line-height:1.2}.watch-code{font-size:11px;margin-top:5px}
@media(max-width:700px){.watch-card{min-height:52px}.watch-name{font-size:11px}.watch-code{display:block;font-size:8px;margin-top:3px}.watch-price{display:none}}
.index-card:has(.change.positive):after{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 40'%3E%3Cpath d='M0 35 C10 30 12 22 22 25 S32 18 40 20 S50 9 60 12 S72 2 80 9 S90 0 100 7' fill='none' stroke='%23f0444d' stroke-width='2.5'/%3E%3C/svg%3E")}
.index-card:has(.change.negative):after{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 40'%3E%3Cpath d='M0 5 C10 10 12 18 22 15 S32 22 40 20 S50 31 60 28 S72 38 80 31 S90 40 100 33' fill='none' stroke='%230ca579' stroke-width='2.5'/%3E%3C/svg%3E")}
.index-card:has(.change.flat):after{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 40'%3E%3Cpath d='M0 20H100' fill='none' stroke='%2393a0b4' stroke-width='2.5'/%3E%3C/svg%3E")}
