2026-11-13 15:37:20 +08:00
|
|
|
<!doctype html>
|
|
|
|
|
<html lang="zh-CN">
|
|
|
|
|
<head>
|
|
|
|
|
<meta charset="utf-8">
|
|
|
|
|
<meta name="viewport" content="width=device-width,initial-scale=1,viewport-fit=cover">
|
|
|
|
|
<meta name="color-scheme" content="light">
|
|
|
|
|
<title>浩瑞 · 纯手机创作工作台 · UI 预览</title>
|
|
|
|
|
<style>
|
|
|
|
|
:root{--brand:#6e58dc;--brand-dark:#5944c2;--soft:#eeebfc;--ink:#242135;--muted:#817d94;--line:#eceaf2;--bg:#f7f6fb;--green:#278465;--green-soft:#edf7f2;--amber:#a3712d;--amber-soft:#fbf4e8;--radius:20px;font-family:Inter,"Segoe UI","Microsoft YaHei",sans-serif;color:var(--ink);background:#efedf5;font-synthesis:none}
|
|
|
|
|
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button{color:inherit}button:disabled{cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #aa9ae9;outline-offset:3px}button{border:0}button svg{pointer-events:none}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.icon-fill{fill:currentColor;stroke:none}h1,h2,h3,p{margin:0}a{color:inherit}button{background:transparent}input[type=number]{min-width:0}input[type=checkbox]{accent-color:var(--brand)}[hidden]{display:none!important}
|
|
|
|
|
.preview-bar{height:78px;border-bottom:1px solid #e0dcea;display:flex;align-items:center;justify-content:space-between;padding:0 42px;background:#f8f7fb;gap:20px}.preview-brand{display:flex;align-items:center;gap:12px}.logo{width:37px;height:37px;display:grid;place-items:center;border-radius:12px;background:var(--brand);color:white;font-size:20px;font-weight:700;letter-spacing:-1px}.preview-brand strong{font-size:15px;letter-spacing:.5px}.preview-brand span{font-size:12px;color:var(--muted);margin-left:10px}.preview-tag{display:flex;align-items:center;gap:7px;font-size:12px;color:#716b85;border:1px solid #dfdbe9;border-radius:20px;padding:7px 12px}.preview-tag i{width:6px;height:6px;background:var(--brand);border-radius:50%}
|
|
|
|
|
.studio{max-width:1310px;margin:0 auto;padding:32px 40px 40px;display:grid;grid-template-columns:216px 432px minmax(220px,1fr);gap:45px;align-items:start}.side{padding-top:22px}.eyebrow{font-size:10px;font-weight:700;letter-spacing:2px;color:#9993ab}.side h1{font-size:26px;font-weight:650;line-height:1.4;letter-spacing:-.8px;margin:12px 0 10px}.side>.desc{font-size:12px;line-height:1.9;color:var(--muted);max-width:190px}.route-list{display:grid;gap:5px;margin:30px 0}.route-button{padding:13px 14px;border-radius:12px;text-align:left;display:flex;align-items:center;gap:12px;font-size:13px;color:#817a92;transition:background .15s,color .15s}.route-button>span{font-family:Inter,"Segoe UI",sans-serif;font-size:10px;letter-spacing:1px;color:#aaa2bc}.route-button.active{background:#e6e0f7;color:var(--brand-dark);font-weight:600}.route-button.active>span{color:var(--brand)}.route-button:hover{background:#e8e4f1}.side-bottom{padding:20px 0;border-top:1px solid #ded9e8;font-size:11px;color:var(--muted);line-height:2}.side-bottom strong{display:block;color:#69627c;font-size:12px;font-weight:500}
|
|
|
|
|
.phone-wrap{width:432px}.phone{height:860px;width:432px;border:8px solid #302c3f;border-radius:47px;background:var(--bg);position:relative;overflow:hidden;box-shadow:0 28px 65px #28203520,0 5px 10px #28203513;display:flex;flex-direction:column}.status-bar{height:40px;min-height:40px;display:flex;align-items:center;justify-content:space-between;padding:0 26px;background:var(--bg);font-size:12px;font-weight:650}.status-icons{display:flex;align-items:center;gap:6px}.status-icons svg{width:15px;height:15px;stroke-width:2}.battery{width:20px;height:10px;border:1.5px solid currentColor;border-radius:2.5px;position:relative;padding:1px}.battery:before{content:"";display:block;background:currentColor;width:80%;height:100%;border-radius:1px}.battery:after{content:"";position:absolute;width:2px;height:4px;background:currentColor;right:-4px;top:1.5px}.app-header{display:flex;align-items:center;justify-content:space-between;padding:11px 22px 16px;min-height:68px;gap:8px}.app-header h2{font-size:23px;font-weight:700;letter-spacing:-.8px;line-height:1.3}.app-header small{font-size:10px;color:var(--muted);display:block;margin-top:5px;letter-spacing:.3px}.header-actions{display:flex;align-items:center;gap:9px}.icon-button{width:35px;height:35px;display:inline-flex;align-items:center;justify-content:center;background:white;border-radius:12px;color:#5e586e}.icon-button svg{width:18px;height:18px}.avatar{width:35px;height:35px;border-radius:12px;background:#e8e2fa;color:var(--brand);display:grid;place-items:center;font-weight:600;font-size:12px}.back{display:inline-flex;align-items:center;gap:7px;padding:0;font-size:18px;font-weight:650}.back svg{width:20px;height:20px}.phone-content{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;scrollbar-width:none;overscroll-behavior:contain}.phone-content::-webkit-scrollbar{display:none}.page{padding:0 20px 20px}.bottom-nav{background:#fff;border-top:1px solid var(--line);display:flex;min-height:76px;align-items:center;padding:7px 8px 10px;flex-shrink:0}.nav-item{flex:1;display:flex;flex-direction:column;align-items:center;gap:5px;font-size:10px;color:#9691a5;padding:5px 0}.nav-item svg{width:21px;height:21px}.nav-item.active{color:var(--brand);font-weight:600}.nav-symbol{width:43px;height:29px;display:grid;place-items:center;border-radius:11px}.nav-item.active .nav-symbol{background:var(--soft)}.home-indicator{height:4px;background:#302c3f;width:110px;border-radius:4px;position:absolute;bottom:4px;left:50%;transform:translateX(-50%);pointer-events:none}.phone-caption{text-align:center;margin-top:18px;color:#9b95ad;font-size:10px;letter-spacing:.7px}
|
|
|
|
|
.notes{padding-top:25px}.notes-top{font-size:10px;letter-spacing:1px;color:var(--muted);display:flex;align-items:center;gap:8px}.notes-top:before{content:"";height:1px;width:25px;background:#b7aec9}.notes h2{font-size:19px;letter-spacing:-.5px;margin:20px 0 12px;font-weight:600}.notes>p{font-size:12px;color:#8b829a;line-height:1.95;max-width:235px}.note-points{list-style:none;margin:25px 0 32px;padding:0;display:grid;gap:21px}.note-points li{display:flex;align-items:flex-start;gap:10px}.point-number{width:19px;height:19px;border-radius:50%;display:grid;place-items:center;background:#e4dfef;color:#8d80aa;font-size:9px;flex-shrink:0}.point-body strong{font-size:12px;font-weight:600;display:block;margin:1px 0 6px}.point-body p{font-size:11px;line-height:1.8;color:#92899f;max-width:200px}.note-action{display:flex;align-items:center;justify-content:space-between;padding:14px 0;border-top:1px solid #ded9e8;width:100%;font-size:12px;color:#756c89;text-align:left;gap:12px}.note-action svg{width:14px;height:14px}.color-strip{display:flex;gap:6px;margin-top:37px}.color-strip span{height:22px;width:22px;border-radius:50%}.style-caption{font-size:10px;color:#aaa0b7;margin-top:9px;letter-spacing:.5px}
|
|
|
|
|
.row{display:flex;align-items:center;gap:10px}.between{display:flex;justify-content:space-between;align-items:center;gap:10px}.stack{display:grid;gap:12px}.muted{color:var(--muted)}.small{font-size:11px;line-height:1.7}.tiny{font-size:10px;line-height:1.6}.section-title{font-size:14px;font-weight:650;letter-spacing:-.2px}.section-head{display:flex;align-items:center;justify-content:space-between;margin:24px 0 12px}.text-button{color:var(--brand);font-size:11px;display:flex;align-items:center;gap:2px;padding:4px 0}.text-button svg{width:12px;height:12px}.surface{background:#fff;border-radius:var(--radius)}.badge{display:inline-flex;align-items:center;gap:4px;font-size:9px;line-height:1.4;padding:4px 7px;border-radius:6px;white-space:nowrap;font-weight:500;background:var(--soft);color:var(--brand)}.badge.green{color:var(--green);background:var(--green-soft)}.badge.amber{color:var(--amber);background:var(--amber-soft)}.badge.gray{background:#f0eef5;color:#90889e}.status-dot{height:5px;width:5px;background:currentColor;border-radius:50%;display:inline-block}.primary{background:var(--brand);color:#fff;border-radius:12px;padding:13px 17px;font-size:12px;font-weight:600;display:flex;align-items:center;justify-content:center;gap:6px;min-height:42px}.primary svg{width:15px;height:15px}.secondary{border:1px solid #e4dff0;background:#fff;color:var(--brand);border-radius:11px;padding:10px 15px;font-size:11px;display:flex;justify-content:center;align-items:center;gap:6px;min-height:37px}.block{width:100%}.chip-row{display:flex;gap:7px;flex-wrap:wrap}.chip{padding:8px 12px;border-radius:9px;font-size:11px;background:#fff;color:#8f889e;white-space:nowrap;min-height:32px}.chip.active{background:var(--soft);color:var(--brand);font-weight:600}.chip:not(button){display:inline-flex;align-items:center}.tabs{display:flex;gap:22px;border-bottom:1px solid var(--line);margin-bottom:15px}.tab{padding:14px 0 12px;color:#928a9f;font-size:12px;position:relative}.tab.active{color:var(--ink);font-weight:650}.tab.active:after{content:"";position:absolute;bottom:-1px;left:30%;right:30%;height:3px;background:var(--brand);border-radius:3px}.tab small{font-size:9px;margin-left:3px;color:var(--muted)}
|
|
|
|
|
.welcome{display:flex;justify-content:space-between;align-items:center;margin:4px 0 17px}.welcome h3{font-size:17px;letter-spacing:-.5px}.welcome p{font-size:10px;color:var(--muted);margin-top:6px}.date-mark{font-size:10px;color:#a098b2;border:1px solid #e3deed;padding:7px 9px;border-radius:9px}.run-card{padding:21px;border-radius:23px;background:var(--brand);color:white;position:relative;overflow:hidden}.run-card:after{content:"";width:185px;height:185px;border:1px solid #ffffff13;position:absolute;right:-82px;top:-50px;border-radius:50%;box-shadow:0 0 0 27px #ffffff06,0 0 0 55px #ffffff04;pointer-events:none}.run-label{font-size:10px;color:#e0dafa;display:flex;align-items:center;gap:6px}.run-label .status-dot{background:#d7f0e1}.run-title{font-size:24px;font-weight:650;letter-spacing:-.8px;margin:12px 0 7px}.run-desc{font-size:10px;line-height:1.8;color:#dfd8fb}.run-bottom{display:flex;align-items:center;justify-content:space-between;margin-top:22px;gap:7px}.run-button{color:var(--brand-dark);background:#fff;padding:10px 14px;border-radius:10px;font-size:11px;font-weight:650;display:flex;align-items:center;gap:6px}.run-button svg{width:13px;height:13px}.run-mode{font-size:9px;display:flex;align-items:center;gap:5px;color:#e4ddff;border:1px solid #a28eef;padding:7px 8px;border-radius:8px}.run-mode svg{height:12px;width:12px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:0;margin:15px 0 0;padding:16px 0}.stat{text-align:center;border-right:1px solid var(--line)}.stat:last-child{border:0}.stat strong{font-size:24px;font-weight:650;letter-spacing:-1px;font-variant-numeric:tabular-nums}.stat strong small{font-size:10px;font-weight:400;margin-left:3px;color:#a49bad;letter-spacing:0}.stat>span{display:block;font-size:10px;color:#968da3;margin-top:5px}.current-task{padding:16px}.task-icon{width:37px;height:37px;border-radius:12px;background:var(--soft);color:var(--brand);display:grid;place-items:center}.task-icon svg{width:17px;height:17px}.current-task h3{font-size:12px;font-weight:600}.current-task .topic-line{font-size:11px;margin:15px 0 12px;line-height:1.7;color:#62596e}.progress{height:4px;border-radius:4px;background:#eeebf6;overflow:hidden}.progress>span{display:block;height:100%;background:var(--brand);border-radius:4px}.steps{display:flex;justify-content:space-between;font-size:9px;color:#b4aabc;margin-top:9px}.steps .done{color:var(--brand)}.platform-dot{width:27px;height:27px;display:inline-flex;align-items:center;justify-content:center;border-radius:9px;flex-shrink:0;font-size:12px;font-weight:700}.platform-dot.zhihu{background:#edf3fe;color:#2879e5}.platform-dot.xhs{background:#fff0f1;color:#ed4d64;font-size:9px}.platform-dot.weibo{background:#fff2e9;color:#e97d32}.platform-dot.douyin{background:#eeedf2;color:#373344}.source-inline{display:grid;grid-template-columns:repeat(4,1fr);padding:14px 4px}.source-mini{display:flex;flex-direction:column;align-items:center;gap:7px;font-size:10px}.source-mini small{font-size:9px;color:var(--muted)}.source-mini small.connected{color:var(--green)}.source-mini small.pending{color:#aaa1b5}.quick-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:12px}.quick-item{display:flex;align-items:center;gap:8px;text-align:left;font-size:11px;padding:13px;background:white;border-radius:13px;color:#70687e}.quick-item svg{width:15px;height:15px;color:var(--brand)}.attention-row{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;background:#f2eefb;border-radius:12px;margin-top:12px;font-size:10px;color:#8f7bb4}.attention-row svg{height:14px;width:14px}
|
|
|
|
|
.topic-tools{display:flex;align-items:center;justify-content:space-between;margin:15px 0 4px;font-size:10px;color:#a297b0}.topic-tools .sort{display:flex;align-items:center;gap:4px}.topic-tools svg{width:11px;height:11px}.topic-card{width:100%;text-align:left;background:#fff;border-radius:18px;padding:16px;margin-top:11px;display:block;transition:transform .15s}.topic-card:hover{transform:translateY(-2px)}.topic-top{display:flex;justify-content:space-between;align-items:center;gap:8px}.topic-source{display:flex;align-items:center;gap:7px;font-size:10px;color:#978ca6}.topic-source .platform-dot{height:21px;width:21px;border-radius:7px;font-size:10px}.topic-source .platform-dot.xhs{font-size:7px}.topic-score{font-size:10px;color:var(--brand);display:flex;gap:3px;align-items:baseline}.topic-score strong{font-size:16px;font-weight:650}.topic-card h3{font-size:14px;line-height:1.65;letter-spacing:-.2px;margin:10px 0;font-weight:650}.topic-meta{display:flex;align-items:center;gap:7px;font-size:9px;color:#a396af;flex-wrap:wrap}.topic-bottom{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #f2eff7;padding-top:11px;margin-top:12px;gap:8px}.topic-bottom>.row{gap:5px}.topic-heat{display:flex;align-items:center;gap:3px;font-size:10px;color:#a18ca9}.topic-heat svg{height:12px;width:12px;color:#c4886f}.empty-state{padding:40px 15px;text-align:center;font-size:12px;color:#a096b0;line-height:2}.empty-state svg{width:32px;height:32px;margin-bottom:12px}.info-strip{background:var(--soft);padding:11px 12px;border-radius:11px;font-size:10px;line-height:1.8;color:#9382b5;display:flex;align-items:flex-start;gap:7px;margin-bottom:13px}.info-strip svg{width:13px;height:13px;margin-top:2px}.queue-card{background:#fff;border-radius:18px;padding:15px;margin-bottom:12px}.queue-preview{display:flex;align-items:stretch;gap:12px;margin:13px 0}.mini-cover{width:80px;height:93px;border-radius:9px;flex-shrink:0;background:#e6e9dc;overflow:hidden;position:relative;display:flex;flex-direction:column;justify-content:space-between;padding:9px;color:#56664b}.mini-cover:after{content:"";width:74px;height:74px;border:10px solid #c7d0b9;border-radius:50%;position:absolute;right:-27px;bottom:-27px}.mini-cover b{font-size:13px;line-height:1.6;font-weight:650;position:relative;z-index:1}.mini-cover small{font-size:6px;letter-spacing:1px;position:relative;z-index:1}.mini-cover.video{background:#dfdfeb;color:#6c6182}.mini-cover.video:after{border-color:#c1b8d3}.mini-cover.blue{background:#e2e7f0;color:#5b6e8a}.mini-cover.blue:after{border-color:#becbdc}.mini-play{background:#ffffffab;border-radius:50%;width:27px;height:27px;position:absolute;left:27px;top:34px;z-index:2;display:grid;place-items:center}.mini-play svg{height:11px;width:11px;fill:currentColor;stroke:0}.video-time{font-size:7px!important;color:white;background:#605776ae;position:absolute;right:4px;bottom:4px;border-radius:3px;padding:1px 3px;z-index:2}.queue-copy{min-width:0;padding-top:2px}.queue-copy h3{font-size:13px;line-height:1.7;font-weight:600;margin:0 0 7px}.queue-copy p{font-size:9px;color:#a396ae;line-height:1.8}.queue-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid var(--line);padding-top:12px;font-size:9px;color:#aaa0b5}.queue-actions button{font-size:10px;color:var(--brand);padding:4px}.queue-actions .row{gap:9px}.queue-kind{font-size:10px;font-weight:600;display:flex;align-items:center;gap:6px}.queue-kind svg{height:14px;width:14px;color:#9b8ab4}.queue-notice{font-size:10px;line-height:1.8;color:var(--amber);background:var(--amber-soft);border-radius:10px;padding:10px 11px;margin-bottom:12px}
|
|
|
|
|
.settings-group{background:white;border-radius:18px;margin-bottom:14px;overflow:hidden}.settings-row{display:flex;align-items:center;justify-content:space-between;padding:16px;gap:10px;border-bottom:1px solid #f1eef6}.settings-row:last-child{border-bottom:0}.settings-row>label{flex:1}.settings-row h3{font-size:12px;font-weight:550;line-height:1.6}.settings-row p{font-size:10px;line-height:1.7;color:#a196ad;margin-top:4px}.settings-row .value{font-size:11px;color:#91829e;display:flex;align-items:center;gap:5px;white-space:nowrap}.settings-row .value svg{height:13px;width:13px}.settings-row.clickable{width:100%;text-align:left;cursor:pointer}.toggle{display:inline-flex;position:relative;flex-shrink:0;width:37px;height:22px;align-items:center}.toggle input{position:absolute;opacity:0;width:100%;height:100%;margin:0;cursor:pointer;z-index:1}.toggle span{width:37px;height:22px;border-radius:20px;background:#e5e0ec;transition:background .15s}.toggle span:after{content:"";position:absolute;height:16px;width:16px;left:3px;top:3px;background:white;border-radius:50%;box-shadow:0 1px 3px #37284d17;transition:transform .15s}.toggle input:checked+span{background:var(--brand)}.toggle input:checked+span:after{transform:translateX(15px)}.toggle input:focus-visible+span{outline:2px solid #af9cec;outline-offset:3px}.toggle input:disabled+span{opacity:.5}.toggle input:disabled{cursor:not-allowed}.group-label{font-size:10px;color:#a195af;margin:20px 3px 9px;letter-spacing:.5px}.form-foot{font-size:10px;color:#9f94ad;line-height:1.9;padding:0 5px;margin:9px 0 18px}.number-control{display:flex;align-items:center;gap:5px;flex-shrink:0;font-size:10px;color:#a193af}.number-control input{width:57px;background:#f7f5fb;border:1px solid #efebf7;border-radius:8px;padding:7px 6px;color:#6f5d8b;text-align:center;font-size:12px}.number-control input.wide{width:80px}.source-app-row{padding:17px 15px}.source-app-row .platform-dot{width:37px;height:37px;border-radius:12px;font-size:16px}.source-app-row .platform-dot.xhs{font-size:11px}.app-copy{flex:1}.app-copy h3{font-size:12px;font-weight:600}.app-copy p{font-size:9px}.app-copy .row{gap:7px}.pending-source{opacity:.65}.mode-segment{display:grid;grid-template-columns:1fr 1fr;gap:7px;padding:7px;background:white;border-radius:15px}.mode-option{padding:14px 8px;text-align:left;border-radius:10px;font-size:12px;color:#a599ae}.mode-option span{display:block;font-size:9px;line-height:1.7;margin-top:6px;font-weight:400}.mode-option.active{background:var(--soft);color:var(--brand);font-weight:650}.profile{display:flex;align-items:center;gap:13px;margin:2px 0 23px;padding:8px 3px}.profile .avatar{width:49px;height:49px;border-radius:17px;font-size:19px}.profile h3{font-size:17px;font-weight:650;margin-bottom:6px}.profile p{font-size:10px;color:#a094ad}.profile>svg{margin-left:auto;color:#b1a5bd;width:15px}.list-icon{width:30px;height:30px;border-radius:9px;background:#f4f1fb;display:grid;place-items:center;color:#9b89bd}.list-icon svg{width:15px;height:15px}.settings-row .row>span:not(.list-icon):not(.platform-dot){font-size:12px}.health-summary{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0 0 16px}.health-item{padding:15px;border-radius:16px;background:#fff}.health-item p{font-size:10px;color:#a194ad;margin-bottom:10px}.health-item strong{font-size:19px;font-weight:650}.health-item small{font-size:9px;color:var(--green);margin-left:5px}.automation-head{background:var(--soft);padding:17px;border-radius:17px;color:var(--brand);margin-bottom:15px;display:flex;gap:12px;align-items:center}.automation-head svg{width:27px;height:27px}.automation-head h3{font-size:13px;font-weight:600}.automation-head p{font-size:10px;margin-top:6px;color:#9a87bb}.filter-pills{padding:14px;display:flex;flex-wrap:wrap;gap:7px}.filter-pills .chip{background:#f8f6fc;border:1px solid #f1edf8}.filter-pills .chip.active{background:var(--soft);border-color:#e6defa}.log-line{display:flex;gap:10px;font-size:10px;padding:13px 0;border-bottom:1px solid var(--line);line-height:1.8}.log-line time{font-size:9px;color:#a99bb7;paddin
|
|
|
|
|
.sheet-layer{position:absolute;inset:40px 0 0;z-index:10;background:#2820354d;display:flex;align-items:flex-end;animation:overlay-in .15s ease}.sheet{background:var(--bg);border-radius:26px 26px 0 0;max-height:93%;width:100%;overflow:auto;scrollbar-width:none;padding:10px 22px 28px;animation:sheet-in .2s ease}.sheet-handle{width:32px;height:4px;background:#d9d1e6;margin:0 auto 15px;border-radius:4px}.sheet-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.sheet-header h3{font-size:16px;font-weight:650}.sheet-header .icon-button{height:28px;width:28px}.sheet h4{font-size:13px;line-height:1.8;margin:15px 0 10px}.sheet p{font-size:11px;color:#8b7c9c;line-height:2;margin:9px 0}.sheet .data-row{display:flex;justify-content:space-between;font-size:10px;color:#a391b3;padding:11px 0;border-bottom:1px solid #eae4f1;gap:12px}.sheet .data-row strong{font-weight:500;color:#776686;text-align:right;max-width:70%}.sheet .primary{margin-top:19px}.article-cover{background:#e5e9dd;border-radius:13px;padding:26px 22px;margin:17px 0;color:#5b6b4b;position:relative;overflow:hidden}.article-cover:after{content:"";width:180px;height:180px;border:25px solid #cbd5bd;position:absolute;right:-74px;bottom:-74px;border-radius:50%;opacity:.7}.article-cover span{font-size:8px;letter-spacing:3px}.article-cover h4{font-size:25px;letter-spacing:1px;position:relative;z-index:1;margin:14px 0 18px;line-height:1.5}.article-cover small{font-size:9px;letter-spacing:1px}.video-poster{background:#ded9eb;border-radius:14px;padding:24px 20px;min-height:175px;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden;color:#87739e}.video-poster>svg{width:40px;height:40px;padding:12px;border-radius:50%;background:#ffffffb3;z-index:1}.video-poster:before{content:"";position:absolute;width:200px;height:200px;border:35px solid #c8bcdc;left:-70px;top:0;border-radius:50%}.video-poster>span{position:absolute;bottom:10px;right:11px;font-size:10px;background:#7562809c;color:#fff;border-radius:5px;padding:4px 6px}.toast{position:absolute;left:22px;right:22px;bottom:94px;z-index:20;box-shadow:0 8px 20px #26203222;background:#30283eea;color:#fff;font-size:11px;line-height:1.8;padding:12px 15px;border-radius:13px;pointer-events:none;animation:overlay-in .15s ease}.saved-caption{font-size:10px;text-align:center;color:#a69bb2;padding-top:10px}.empty-settings{padding:22px;background:white;border-radius:16px}.empty-settings>svg{color:var(--brand);width:27px;height:27px;margin-bottom:12px}.empty-settings h3{font-size:14px}.empty-settings p{font-size:11px;line-height:1.9;color:#a092ad;margin:9px 0}.count-label{display:flex;gap:4px;align-items:center;color:#a094ab;font-size:10px}.footer-demo{font-size:9px;color:#b8abc3;text-align:center;margin-top:16px;letter-spacing:.5px}.help-tiles{display:grid;grid-template-columns:1fr 1fr;gap:9px}.help-tile{background:white;padding:15px;border-radius:14px;text-align:left;font-size:11px}.help-tile svg{width:20px;height:20px;color:var(--brand);margin-bottom:10px}.help-tile small{display:block;font-size:9px;line-height:1.7;color:#a093ae;margin-top:5px}.interval-row{padding:14px 16px;display:flex;align-items:center;gap:6px}.interval-row input{width:42%;background:#f7f5fb;border:1px solid var(--line);padding:8px 6px;border-radius:8px;font-size:11px;color:#8a759f;text-align:center}.interval-row span{font-size:10px;color:#aa99ba}.inline-label{font-size:10px;color:#a091ad;margin:13px 0 8px}.select-control{max-width:145px;padding:6px 7px;color:#8f7ca2;background:#f7f5fb;border:1px solid var(--line);border-radius:7px;font-size:10px}.api-key{width:115px;border:1px solid var(--line);padding:7px;border-radius:7px;font-size:10px;background:#f7f5fb;color:#9a86aa}.phone-content>.page:empty{min-height:100%}@keyframes sheet-in{from{transform:translateY(20px);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes overlay-in{from{opacity:0}to{opacity:1}}
|
|
|
|
|
@media(min-width:1500px){.studio{padding-top:45px;gap:65px;grid-template-columns:220px 432px 240px;justify-content:center}}@media(max-width:1130px){.studio{grid-template-columns:185px 432px;gap:35px;max-width:760px;padding:25px 20px}.notes{display:none}.preview-bar{padding:0 25px}.side h1{font-size:24px}}@media(max-width:720px){:root{background:var(--bg)}.preview-bar,.side,.notes,.phone-caption{display:none}.studio{display:block;margin:0;padding:0;max-width:none}.phone-wrap{width:100%;max-width:480px;margin:auto}.phone{border:0;border-radius:0;box-shadow:none;width:100%;height:100dvh;min-height:560px}.status-bar{padding-top:env(safe-area-inset-top);height:calc(34px + env(safe-area-inset-top));min-height:calc(34px + env(safe-area-inset-top))}.bottom-nav{padding-bottom:calc(12px + env(safe-area-inset-bottom));min-height:74px}.home-indicator{display:none}.sheet-layer{inset:34px 0 0}.app-header{padding-top:12px}.page{padding-bottom:22px}.preview-brand span{display:none}}@media(max-width:359px){.page{padding-left:14px;padding-right:14px}.app-header{padding-left:16px;padding-right:16px}.run-card{padding:17px}.run-title{font-size:22px}.run-desc{font-size:9px}.chip{padding-left:9px;padding-right:9px}.tab{font-size:11px}.tabs{gap:16px}.queue-copy h3{font-size:12px}.mini-cover{width:68px}.topic-card{padding:13px}.number-control input.wide{width:72px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
|
|
|
|
|
/* 业务信息使用可读字号,封面微缩装饰文字保持缩略效果。 */
|
|
|
|
|
.queue-copy p,.queue-actions,.topic-source,.topic-meta,.topic-heat,.topic-tools,.settings-row p,.settings-row .value,.app-copy p,.form-foot,.info-strip,.source-mini,.source-mini small,.welcome p,.run-desc,.run-label,.run-mode,.current-task .topic-line,.steps,.tiny,.stat>span,.saved-caption,.profile p,.health-item p,.mode-option span,.nav-item,.group-label,.count-label,.queue-notice,.sheet .data-row,.footer-demo{font-size:11px}
|
|
|
|
|
.text-button,.chip,.queue-actions button,.queue-kind,.run-button,.primary,.secondary,.settings-row h3,.mode-option,.sheet p,.help-tile,.quick-item,.attention-row,.number-control,.select-control{font-size:12px}
|
|
|
|
|
.badge{font-size:10px}.queue-copy h3{font-size:14px}.sheet .primary{font-size:12px}.help-tile small{font-size:11px}.topic-source .platform-dot.xhs{font-size:7px}.date-mark{font-size:10px}
|
|
|
|
|
</style>
|
|
|
|
|
</head>
|
|
|
|
|
<body>
|
|
|
|
|
<header class="preview-bar">
|
|
|
|
|
<div class="preview-brand"><div class="logo" aria-hidden="true">浩</div><div><strong>浩瑞 <span>HAORUI STUDIO</span></strong></div></div>
|
|
|
|
|
<div class="preview-tag"><i></i> 纯手机方案 · 交互原型 · 模拟数据</div>
|
2026-11-06 16:50:22 +08:00
|
|
|
</header>
|
2026-11-13 15:37:20 +08:00
|
|
|
<main class="studio">
|
|
|
|
|
<aside class="side" aria-label="预览页面导航">
|
|
|
|
|
<div class="eyebrow">MOBILE WORKSPACE / V2</div><h1>创作有方向<br>运行有条理。</h1>
|
|
|
|
|
<p class="desc">从发现社会热点,到图文与视频发布,日常操作都在这部手机里。</p>
|
|
|
|
|
<nav class="route-list" id="preview-nav"></nav>
|
|
|
|
|
<div class="side-bottom"><strong>ANDROID · 手机端预览</strong>点击底部导航或左侧目录切换<br>页面可滚动,设置可本地试用<br>本页不会连接或发布到任何平台</div>
|
|
|
|
|
</aside>
|
|
|
|
|
<div class="phone-wrap">
|
|
|
|
|
<div class="phone" id="phone">
|
|
|
|
|
<div class="status-bar"><span>09:41</span><div class="status-icons" aria-label="网络和电量"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M3 20v-4M8 20v-8M13 20V8M18 20V4" stroke-width="3"/></svg><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M3 9c5-5 13-5 18 0M6 12c4-3 8-3 12 0M9 15c2-1.5 4-1.5 6 0M12 19h.01"/></svg><span class="battery"></span></div></div>
|
|
|
|
|
<div class="app-header" id="app-header"></div>
|
|
|
|
|
<div class="phone-content" id="content"><div class="page" id="page"></div></div>
|
|
|
|
|
<nav class="bottom-nav" id="bottom-nav" aria-label="手机底部导航"></nav>
|
|
|
|
|
<div class="home-indicator" aria-hidden="true"></div>
|
|
|
|
|
<div id="overlay-root"></div>
|
|
|
|
|
<div class="toast" id="toast" role="status" hidden></div>
|
2026-11-06 16:50:22 +08:00
|
|
|
</div>
|
2026-11-13 15:37:20 +08:00
|
|
|
<div class="phone-caption">HAORUI · 纯手机创作工作台 · 2026.11</div>
|
|
|
|
|
</div>
|
|
|
|
|
<aside class="notes" id="notes" aria-label="当前页面说明"></aside>
|
2026-11-06 16:50:22 +08:00
|
|
|
</main>
|
2026-11-13 15:37:20 +08:00
|
|
|
<script>
|
|
|
|
|
'use strict';
|
|
|
|
|
// 单文件离线原型:所有交互仅修改内存中的演示状态,不调用接口或设备能力。
|
|
|
|
|
const paths={
|
|
|
|
|
home:'<path d="m3 10 9-7 9 7v10a1 1 0 0 1-1 1h-5v-7H9v7H4a1 1 0 0 1-1-1z"/>',
|
|
|
|
|
spark:'<path d="m12 3 2.7 6.3L21 12l-6.3 2.7L12 21l-2.7-6.3L3 12l6.3-2.7zM20 2v4M18 4h4"/>',
|
|
|
|
|
list:'<rect x="5" y="4" width="15" height="17" rx="3"/><path d="M9 3v3M15 3v3M9 11h7M9 15h5"/>',
|
|
|
|
|
heart:'<path d="M20.8 4.6a5.5 5.5 0 0 0-7.8 0L12 5.7l-1.1-1.1a5.5 5.5 0 0 0-7.8 7.8L12 21l8.8-8.6a5.5 5.5 0 0 0 0-7.8z"/>',
|
|
|
|
|
user:'<circle cx="12" cy="8" r="4"/><path d="M4 21v-2a8 8 0 0 1 16 0v2"/>',
|
|
|
|
|
settings:'<path d="m9 3-.8 2.8-2.8.7-2 3.5 2 2-1 2.8 2 3.4 2.8-.7L12 20l2.8-2.5 2.8.7 2-3.4-1-2.8 2-2-2-3.5-2.8-.7L15 3z"/><circle cx="12" cy="11.5" r="3"/>',
|
|
|
|
|
play:'<path d="m9 5 10 7-10 7z"/>',pause:'<path d="M8 5v14M16 5v14" stroke-width="3"/>',
|
|
|
|
|
chevron:'<path d="m9 5 7 7-7 7"/>',back:'<path d="m15 5-7 7 7 7"/>',
|
|
|
|
|
arrow:'<path d="M4 12h16M14 6l6 6-6 6"/>',
|
|
|
|
|
filter:'<path d="M4 7h16M4 17h16"/><circle cx="9" cy="7" r="2" fill="currentColor" stroke="none"/><circle cx="15" cy="17" r="2" fill="currentColor" stroke="none"/>',
|
|
|
|
|
refresh:'<path d="M20 10a8 8 0 1 0 .1 5M20 4v6h-6"/>',
|
|
|
|
|
clock:'<circle cx="12" cy="12" r="9"/><path d="M12 7v5l3 2"/>',
|
|
|
|
|
check:'<path d="m5 12 4 4L19 6"/>',close:'<path d="m6 6 12 12M18 6 6 18"/>',
|
|
|
|
|
file:'<path d="M14 3H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9zM14 3v6h6M8 13h8M8 17h5"/>',
|
|
|
|
|
video:'<rect x="3" y="5" width="14" height="14" rx="3"/><path d="m17 10 4-3v10l-4-3"/>',
|
|
|
|
|
shield:'<path d="m12 3 8 3v6c0 5-8 9-8 9s-8-4-8-9V6zM8 12l3 3 5-6"/>',
|
|
|
|
|
layers:'<path d="m12 3 10 5-10 5L2 8zM2 12l10 5 10-5M2 16l10 5 10-5"/>',
|
|
|
|
|
phone:'<rect x="6" y="2" width="12" height="20" rx="3"/><path d="M10 18h4M10 5h4"/>',
|
|
|
|
|
flame:'<path d="M14 3c2 5-3 6-1 10 2-1 3-3 3-5 8 8 3 14-4 14-6 0-10-5-6-11 0 3 1 4 3 5C6 10 11 8 14 3z"/>',
|
|
|
|
|
bell:'<path d="M5 16V9a7 7 0 0 1 14 0v7l2 2H3zM9 21h6"/>',
|
|
|
|
|
link:'<path d="m10 14 4-4M8 16l-2 2a4 4 0 0 1-6-6l5-5a4 4 0 0 1 6 0M16 8l2-2a4 4 0 0 1 6 6l-5 5a4 4 0 0 1-6 0" transform="translate(2 0) scale(.84 1)"/>',
|
|
|
|
|
globe:'<circle cx="12" cy="12" r="9"/><path d="M3 12h18M12 3a19 19 0 0 1 0 18 19 19 0 0 1 0-18"/>',
|
|
|
|
|
box:'<path d="m12 3 9 5v10l-9 4-9-4V8zM3 8l9 5 9-5M12 13v9M8 5l9 5"/>',
|
|
|
|
|
sort:'<path d="M5 4v16m-3-3 3 3 3-3M12 5h9M12 10h7M12 15h5M12 20h3"/>',
|
|
|
|
|
power:'<path d="M12 2v10M6.2 5a9 9 0 1 0 11.6 0"/>',
|
|
|
|
|
eye:'<path d="M2 12s4-7 10-7 10 7 10 7-4 7-10 7S2 12 2 12z"/><circle cx="12" cy="12" r="3"/>',
|
|
|
|
|
message:'<path d="M21 11a8 8 0 0 1-8 8H8l-5 3V11a9 9 0 0 1 18 0zM7 10h10M7 14h6"/>',
|
|
|
|
|
info:'<circle cx="12" cy="12" r="9"/><path d="M12 11v5M12 7h.01"/>'
|
|
|
|
|
};
|
|
|
|
|
const icon=(name,cls='')=>`<svg viewBox="0 0 24 24" aria-hidden="true" class="${cls}">${paths[name]||paths.spark}</svg>`;
|
|
|
|
|
const esc=v=>String(v).replace(/[&<>"']/g,c=>({'&':'&','<':'<','>':'>','"':'"',"'":'''}[c]));
|
|
|
|
|
const platforms={zhihu:{name:'知乎',mark:'知'},xhs:{name:'小红书',mark:'小红书'},weibo:{name:'微博',mark:'微'},douyin:{name:'抖音',mark:'抖'}};
|
|
|
|
|
const platformMark=id=>`<span class="platform-dot ${id}" aria-hidden="true">${platforms[id].mark}</span>`;
|
|
|
|
|
const state={page:'home',running:false,source:'all',kind:'all',queue:'ready',mode:'draft',sourceEnabled:{zhihu:true,xhs:true},article:true,video:true,sourceScan:10,maxAge:24,articleCap:2,videoCap:2,gap:60,likes:1000,fans:500000,likesGate:false,fansGate:false,thanks:true,follow:false,followCap:20,totalCap:28,publishStart:'08:00',publishEnd:'22:00',legacyEnabled:true,topicAdded:new Set(),selectedCategories:new Set(['民生生活','社会现象','职场','教育']),drafted:new Set()};
|
|
|
|
|
const topics=[
|
|
|
|
|
{id:1,platform:'zhihu',kind:'article',title:'老旧小区加装电梯,费用到底应该怎么分?',category:'民生生活',age:'2 小时前',heat:'热榜 328 万',score:92,rank:'热榜第 6',fact:'3 项依据可回溯',summary:'围绕楼层、使用频率和公共空间展开分析,区分个人观点与实际规则。'},
|
|
|
|
|
{id:2,platform:'xhs',kind:'article',title:'社区食堂越来越多,怎样才能把饭吃得实惠又安心?',category:'民生生活',age:'3 小时前',heat:'1.2 万赞',score:88,rank:'高互动笔记',fact:'2 项依据可回溯',summary:'从价格、服务范围与日常体验切入,讨论社区助餐的使用场景。'},
|
|
|
|
|
{id:3,platform:'xhs',kind:'video',title:'下班后的一小时,社区夜校为什么吸引年轻人?',category:'教育',age:'5 小时前',heat:'8,600 赞',score:85,rank:'高互动视频',fact:'本人授权素材',summary:'通过已授权的夜校体验视频,分享普通人的学习和生活选择。'},
|
|
|
|
|
{id:4,platform:'zhihu',kind:'article',title:'招聘信息里的「弹性工作」,求职前该问清哪些事?',category:'职场',age:'6 小时前',heat:'热榜 186 万',score:82,rank:'热榜第 18',fact:'2 项依据可回溯',summary:'整理岗位沟通中需要明确的工作安排,避免把单个案例扩大成普遍现象。'}
|
|
|
|
|
];
|
|
|
|
|
const jobs=[
|
|
|
|
|
{id:101,kind:'article',title:'社区食堂怎么选?吃得实惠之前,先看这三个细节',cover:'日常一餐\n安心一点',theme:'',source:'知乎 · 小红书',size:'1,120 字 · 3 张信息卡',status:'ready',note:'核验通过 · 等待下一个发布窗口',time:'预计 11:30',rights:'配图为本地信息卡,事实依据已留存。'},
|
|
|
|
|
{id:102,kind:'video',title:'下班后的一小时,我在社区夜校找到了新的节奏',cover:'下班之后\n也有热爱',theme:'video',source:'小红书 · 授权素材',size:'02:36 · 1080p · 86 MB',status:'ready',note:'许可已核对 · 视频检查通过',time:'预计 12:30',rights:'演示授权记录:作者许可跨平台发布,保留署名。'},
|
|
|
|
|
{id:103,kind:'article',title:'加装电梯费用怎么分?先把这几件事聊明白',cover:'邻里之间\n多点共识',theme:'blue',source:'知乎',size:'980 字 · 2 张信息卡',status:'ready',note:'核验通过 · 已完成同事件去重',time:'预计 14:00',rights:'配图为本地信息卡,未使用来源图片。'},
|
|
|
|
|
{id:104,kind:'article',title:'社区里的一张长椅,为什么能让生活更方便?',cover:'一张长椅\n一份便利',theme:'blue',source:'知乎',size:'1,060 字 · 2 张信息卡',status:'published',note:'今日头条 · 审核中',time:'今天 09:08',rights:'信息卡由本机生成。'},
|
|
|
|
|
{id:105,kind:'video',title:'城市步道的清晨,普通人的运动日常',cover:'走进清晨\n走进日常',theme:'video',source:'本人作品',size:'01:42 · 1080p · 52 MB',status:'published',note:'今日头条 · 已公开',time:'今天 08:02',rights:'本人拍摄。'},
|
|
|
|
|
{id:106,kind:'video',title:'周末的社区集市,藏着哪些生活小确幸?',cover:'周末集市\n烟火日常',theme:'video',source:'本人作品',size:'02:10 · 1080p · 68 MB',status:'unknown',note:'提交后未获得明确回执,等待作品管理核对',time:'今天 09:26',rights:'本人拍摄。'}
|
|
|
|
|
];
|
|
|
|
|
const topicMetrics={1:{hours:2,likes:12400,fans:68000},2:{hours:3,likes:12000,fans:46000},3:{hours:5,likes:8600,fans:7800},4:{hours:6,likes:780,fans:null}};
|
|
|
|
|
const navItems=[['home','首页','home'],['topics','热点','spark'],['tasks','任务','list'],['interact','互动','heart'],['mine','我的','user']];
|
|
|
|
|
const previewItems=[['home','工作台总览'],['topics','热点与筛选'],['tasks','图文 / 视频任务'],['automation','自动化设置'],['sources','来源 App 管理'],['mine','原有功能与设置']];
|
|
|
|
|
const pageInfo={
|
|
|
|
|
home:{title:'浩瑞',subtitle:'手机里的创作工作台',note:'一眼掌握今天的工作',desc:'保留唯一启动入口,把运行状态、今日进度和手机来源放到同一页。',points:[['运行与停止','启动、暂停和草稿模式清晰可见。'],['图文和视频共用调度','同一时刻只有一个任务操作手机。'],['原有功能仍可进入','头条视频采集、粉丝互动与日志继续保留。']]},
|
|
|
|
|
topics:{title:'发现热点',subtitle:'筛选社会话题,把热度变成选题',note:'先选对题,再做内容',desc:'来源、时效、内容类型和评分同时可见;不会只按播放量或单一热度决定选题。',points:[['跨来源看候选','知乎、小红书先接入,其余来源按适配状态开放。'],['筛选条件可以检查','发布时间、点赞和粉丝门槛提供独立开关。'],['先检查再加入任务','点击候选可查看选题说明和依据状态。']]},
|
|
|
|
|
tasks:{title:'创作任务',subtitle:'从成品准备到发布回执',note:'图文视频,各有进度',desc:'每项任务都能看到内容预览、素材说明与发布状态,结果不明时先核对。',points:[['两种内容,一套队列','图文和视频明确标记,按同一节奏排队。'],['成品预览','点击作品可看文章排版或视频信息。'],['结果不明单独处理','待核对任务保留素材,不提供盲目重发。']]},
|
|
|
|
|
automation:{title:'自动化设置',subtitle:'',note:'把运行方式设置明白',desc:'配置一次后按选定方式执行,草稿与正式发布使用同一套筛选和检查。',points:[['模式明确','初次默认草稿模式,正式模式需主动选择。'],['账户总额度共享','原视频与新图文、新视频共用账户总量。'],['分开设置内容上限','图文、视频各自限额,避免新增来源扩大总量。']]},
|
|
|
|
|
sources:{title:'来源 App',subtitle:'',note:'手机安装,按能力启用',desc:'展示 App 登录、适配与可用能力;首批连接知乎和小红书。',points:[['来源独立开关','不需要安装或启用本期不用的平台。'],['后续来源明确标记','微博、抖音待适配时不能启用。'],['手机统一切换','不依赖电脑后台,不并发抢占手机屏幕。']]},
|
|
|
|
|
filters:{title:'选题筛选',subtitle:'',note:'条件有明确的边界',desc:'先满足类别和时效等硬条件,再按热度、增长、证据与账号方向排序。',points:[['时间限制优先','来源时间不明时跳过,不用发现时间替代。'],['指标门槛独立生效','启用门槛后,该指标不可读的候选不会放行。'],['同事件去重','跨平台和跨体裁共享事件去重。']]},
|
|
|
|
|
interact:{title:'粉丝互动',subtitle:'原有互动功能',note:'已有能力,继续使用',desc:'新创作流程与原有互动共用手机前台,避免不同任务同时点击。',points:[['互动开关独立','感谢新粉、随机回关各自配置。'],['保留原有每日额度','互动额度与内容发布额度分开记录。'],['统一安排时机','编辑、提交与来源采集中不会插入互动。']]},
|
|
|
|
|
mine:{title:'我的',subtitle:'设置与本机管理',note:'常用设置,集中管理',desc:'新功能和原有能力都可从这里找到,首页只保留常用状态和操作。',points:[['保留原有入口','头条视频采集、解析、互动与定时浏览不丢失。'],['新能力清楚可达','来源、筛选和自动发布设置各有入口。'],['运行记录可追溯','暂停原因、跳过原因和待核对任务集中查看。']]}
|
|
|
|
|
};
|
|
|
|
|
const parentOf={sources:'topics',filters:'topics',automation:'mine',legacy:'mine',api:'mine',logs:'mine',a11y:'mine',browse:'mine'};
|
|
|
|
|
const titles={legacy:'原头条视频采集',api:'解析 / 大模型',logs:'运行记录',a11y:'无障碍连接',browse:'定时浏览'};
|
|
|
|
|
const badge=(text,type='')=>`<span class="badge ${type}">${text}</span>`;
|
|
|
|
|
const rowLink=(label,route,ico,value='')=>`<button class="settings-row clickable" data-page="${route}"><span class="row"><span class="list-icon">${icon(ico)}</span><span>${label}</span></span><span class="value">${value}${icon('chevron')}</span></button>`;
|
|
|
|
|
const toggle=(key,label,disabled=false)=>`<label class="toggle"><input type="checkbox" data-toggle="${key}" aria-label="${label}" ${getSetting(key)?'checked':''} ${disabled?'disabled':''}><span></span></label>`;
|
|
|
|
|
function getSetting(key){return key.startsWith('source:')?state.sourceEnabled[key.slice(7)]:state[key]}
|
|
|
|
|
const setting=(title,desc,key)=>`<div class="settings-row"><div><h3>${title}</h3><p>${desc}</p></div>${toggle(key,title)}</div>`;
|
|
|
|
|
const numberRow=(title,desc,key,unit,min,max,wide=false)=>`<div class="settings-row"><label for="field-${key}"><h3>${title}</h3><p>${desc}</p></label><div class="number-control"><input id="field-${key}" type="number" min="${min}" max="${max}" step="1" data-number="${key}" value="${state[key]}" class="${wide?'wide':''}" aria-label="${title}"><span>${unit}</span></div></div>`;
|
|
|
|
|
function renderHeader(){
|
|
|
|
|
const info=pageInfo[state.page]||{title:titles[state.page],subtitle:''};
|
|
|
|
|
const isChild=!!parentOf[state.page];
|
|
|
|
|
const title=isChild?`<button class="back" data-page="${parentOf[state.page]}">${icon('back')}${info.title}</button>`:`<h2>${info.title}</h2>${info.subtitle?`<small>${info.subtitle}</small>`:''}`;
|
|
|
|
|
let actions='';
|
|
|
|
|
if(state.page==='home')actions=`<button class="icon-button" data-page="logs" aria-label="查看运行记录">${icon('bell')}</button><button class="avatar" data-page="mine" aria-label="我的">浩</button>`;
|
|
|
|
|
else if(state.page==='topics')actions=`<button class="icon-button" data-action="refresh" aria-label="刷新示例选题">${icon('refresh')}</button><button class="icon-button" data-page="filters" aria-label="选题筛选">${icon('filter')}</button>`;
|
|
|
|
|
else if(state.page==='tasks')actions=`<button class="icon-button" data-page="automation" aria-label="发布设置">${icon('settings')}</button>`;
|
|
|
|
|
else if(!isChild)actions=`<button class="icon-button" data-page="logs" aria-label="运行记录">${icon('list')}</button>`;
|
|
|
|
|
else if(['filters','automation','legacy','api','interact','browse'].includes(state.page))actions='<button class="text-button" data-action="save">完成</button>';
|
|
|
|
|
document.getElementById('app-header').innerHTML=`<div>${title}</div><div class="header-actions">${actions}</div>`;
|
2026-11-06 16:50:22 +08:00
|
|
|
}
|
2026-11-13 15:37:20 +08:00
|
|
|
function renderNav(){
|
|
|
|
|
const active=state.page==='automation'||['api','legacy','logs','browse','a11y'].includes(state.page)?'mine':['sources','filters'].includes(state.page)?'topics':state.page;
|
|
|
|
|
document.getElementById('bottom-nav').innerHTML=navItems.map(([page,label,ico])=>`<button class="nav-item ${active===page?'active':''}" data-page="${page}" ${active===page?'aria-current="page"':''}><span class="nav-symbol">${icon(ico)}</span>${label}</button>`).join('');
|
|
|
|
|
document.getElementById('preview-nav').innerHTML=previewItems.map(([page,label],i)=>`<button class="route-button ${state.page===page?'active':''}" data-page="${page}"><span>0${i+1}</span>${label}</button>`).join('');
|
|
|
|
|
}
|
|
|
|
|
function renderNotes(){
|
|
|
|
|
const info=pageInfo[state.page]||pageInfo.mine;
|
|
|
|
|
document.getElementById('notes').innerHTML=`<div class="notes-top">${esc(info.title)} / SCREEN NOTES</div><h2>${info.note}</h2><p>${info.desc}</p><ol class="note-points">${info.points.map(([title,desc],i)=>`<li><span class="point-number">${i+1}</span><div class="point-body"><strong>${title}</strong><p>${desc}</p></div></li>`).join('')}</ol><button class="note-action" data-page="sources">查看来源 App 设置${icon('arrow')}</button><button class="note-action" data-page="filters">查看点赞 / 粉丝 / 时间筛选${icon('arrow')}</button><button class="note-action" data-job="101">预览一篇图文${icon('arrow')}</button><button class="note-action" data-job="102">预览一个视频任务${icon('arrow')}</button><div class="color-strip"><span style="background:#6e58dc"></span><span style="background:#c5b8ed"></span><span style="background:#fff"></span><span style="background:#e4dfed"></span><span style="background:#302c3f"></span></div><div class="style-caption">沿用浩瑞紫 · 轻量卡片 · 手机优先</div>`;
|
|
|
|
|
}
|
|
|
|
|
function homePage(){
|
|
|
|
|
return `<div class="welcome"><div><h3>把今天的好选题,安排好。</h3><p>社会 · 民生 · 职场 · 教育</p></div><span class="date-mark">11 月 13 日</span></div>
|
|
|
|
|
<section class="run-card" aria-label="自动化运行状态"><div class="run-label"><i class="status-dot"></i> ${state.running?'演示运行中 · 来源轮询':'准备就绪 · 等待启动'}</div><div class="run-title">${state.running?'正在发现下一个好选题':'你的创作,从这里开始'}</div><p class="run-desc">热点发现 → 事实核验 → 图文 / 视频 → 今日头条<br>全程由手机调度,按设定节奏执行</p><div class="run-bottom"><button class="run-button" data-action="run">${icon(state.running?'pause':'play')}${state.running?'暂停自动化':'启动自动化'}</button><button class="run-mode" data-page="automation">${icon(state.mode==='draft'?'file':'power')}${state.mode==='draft'?'草稿模式':'自动发布模式'}${icon('chevron')}</button></div></section>
|
|
|
|
|
<div class="surface stats"><div class="stat"><strong>02<small>/ ${state.totalCap}</small></strong><span>今日已提交</span></div><div class="stat"><strong>${String(jobs.filter(j=>j.status==='ready').length).padStart(2,'0')}</strong><span>等待发布</span></div><div class="stat"><strong>18</strong><span>有效候选</span></div></div>
|
|
|
|
|
<div class="section-head"><h3 class="section-title">当前进度</h3><button class="text-button" data-page="tasks">全部任务${icon('chevron')}</button></div>
|
|
|
|
|
<section class="surface current-task"><div class="between"><div class="row"><span class="task-icon">${icon('file')}</span><div><h3>正在准备图文</h3><span class="tiny muted">知乎 · 民生生活</span></div></div>${badge('示例进度')}</div><p class="topic-line">加装电梯费用怎么分?先把这几件事聊明白</p><div class="progress" role="progressbar" aria-label="任务进度" aria-valuenow="65" aria-valuemin="0" aria-valuemax="100"><span style="width:65%"></span></div><div class="steps"><span class="done">选题筛选</span><span class="done">事实核验</span><span class="done">内容生成</span><span>排队发布</span></div></section>
|
|
|
|
|
<div class="section-head"><h3 class="section-title">手机来源</h3><button class="text-button" data-page="sources">管理${icon('chevron')}</button></div><div class="surface source-inline">${Object.entries(platforms).map(([id,p])=>`<button class="source-mini" data-page="sources">${platformMark(id)}<span>${p.name}</span><small class="${['zhihu','xhs'].includes(id)?'connected':'pending'}">${['zhihu','xhs'].includes(id)?(state.sourceEnabled[id]?'已启用':'已关闭'):'待适配'}</small></button>`).join('')}</div>
|
|
|
|
|
<div class="quick-grid"><button class="quick-item" data-page="legacy">${icon('video')}原头条视频采集</button><button class="quick-item" data-page="automation">${icon('settings')}自动化设置</button></div><button class="attention-row block" data-page="tasks" data-queue="unknown"><span class="row">${icon('clock')}1 项发布结果待核对</span>${icon('chevron')}</button><div class="footer-demo">原型演示 · 非真实账号和运行数据</div>`;
|
|
|
|
|
}
|
|
|
|
|
function topicsPage(){
|
|
|
|
|
const filtered=topics.filter(t=>{const m=topicMetrics[t.id];return state.sourceEnabled[t.platform]&&(state.source==='all'||t.platform===state.source)&&(state.kind==='all'||t.kind===state.kind)&&state.selectedCategories.has(t.category)&&m.hours<=state.maxAge&&(!state.likesGate||(m.likes!==null&&m.likes>=state.likes))&&(!state.fansGate||(m.fans!==null&&m.fans<=state.fans))});
|
|
|
|
|
return `<div class="chip-row">${[['all','全部来源'],['zhihu','知乎'],['xhs','小红书']].map(([id,name])=>`<button class="chip ${state.source===id?'active':''}" data-source="${id}" aria-pressed="${state.source===id}">${name}</button>`).join('')}<button class="chip" data-page="sources">更多 +</button></div><div class="tabs" role="group" aria-label="内容类型">${[['all','全部选题'],['article','图文'],['video','视频']].map(([id,name])=>`<button class="tab ${state.kind===id?'active':''}" data-kind="${id}" aria-pressed="${state.kind===id}">${name}</button>`).join('')}</div><div class="topic-tools"><span>示例选题 · ${state.maxAge} 小时内 · 社会方向</span><span class="sort">${icon('sort')}综合优选</span></div>${filtered.length?filtered.map(t=>`<button class="topic-card" data-topic="${t.id}"><div class="topic-top"><span class="topic-source">${platformMark(t.platform)}${platforms[t.platform].name}<span>· ${t.rank}</span></span><span class="topic-score"><strong>${t.score}</strong> 分</span></div><h3>${t.title}</h3><div class="topic-meta"><span>${t.age}</span><span>·</span><span>${t.category}</span><span>·</span><span>${t.fact}</span></div><div class="topic-bottom"><div class="row">${badge(t.kind==='video'?'视频选题':'图文选题')}${badge(state.topicAdded.has(t.id)?'已加入任务':t.kind==='video'?'许可已核对':'可生成',state.topicAdded.has(t.id)?'gray':'green')}</div><span class="topic-heat">${icon('flame')}${t.heat}</span></div></button>`).join(''):`<div class="empty-state">${icon('spark')}<p>这个条件下暂无示例选题<br>试试切换来源或内容类型</p></div>`}<div class="footer-demo">热度仅作界面示例,不代表平台实时热榜</div>`;
|
|
|
|
|
}
|
|
|
|
|
function jobCard(j){
|
|
|
|
|
const pending=state.drafted.has(j.id);
|
|
|
|
|
const status=j.status==='published'?badge(j.id===104?'审核中':'已公开','green'):j.status==='unknown'?badge('待核对','amber'):pending?badge('已存草稿','green'):badge('待发布');
|
|
|
|
|
return `<section class="queue-card"><div class="between"><span class="queue-kind">${icon(j.kind==='video'?'video':'file')}${j.kind==='video'?'视频':'图文'}任务</span>${status}</div><div class="queue-preview"><div class="mini-cover ${j.theme}" aria-hidden="true"><small>HAORUI / DAILY</small><b>${j.cover.split('\n').join('<br>')}</b>${j.kind==='video'?`<span class="mini-play">${icon('play')}</span><span class="video-time">${j.size.split(' · ')[0]}</span>`:''}<small>生活观察 · 信息示例</small></div><div class="queue-copy"><h3>${j.title}</h3><p>${j.size}</p><p>${j.source}</p></div></div>${j.status==='unknown'?`<p class="queue-notice">${j.note},核对完成前不再次提交。</p>`:''}<div class="queue-actions"><span>${pending?'草稿已准备':j.time}</span><div class="row"><button data-job="${j.id}">内容预览</button>${j.status==='unknown'?`<button data-reconcile="${j.id}">核对回执</button>`:j.status==='ready'?`<button data-draft="${j.id}">${pending?'查看草稿':'模拟存草稿'}</button>`:''}</div></div></section>`;
|
|
|
|
|
}
|
|
|
|
|
function tasksPage(){
|
|
|
|
|
const filtered=jobs.filter(j=>j.status===state.queue);
|
|
|
|
|
return `<div class="tabs" role="group" aria-label="任务状态">${[['ready','待发布'],['published','已提交'],['unknown','待核对']].map(([id,name])=>`<button class="tab ${state.queue===id?'active':''}" data-queue="${id}" aria-pressed="${state.queue===id}">${name}<small>${jobs.filter(j=>j.status===id).length}</small></button>`).join('')}</div><div class="info-strip">${icon(state.queue==='unknown'?'clock':'clock')}<span>${state.queue==='ready'?`当前${state.mode==='draft'?'草稿模式 · 只演示保存草稿':'自动发布模式'},新链路发布间隔至少 ${state.gap} 分钟。`:state.queue==='published'?'提交成功与审核公开分开显示,平台审核状态单独跟踪。':'先从作品管理核对提交结果,结果不明时保留任务和素材。'}</span></div>${filtered.map(jobCard).join('')}<div class="footer-demo">任务与回执均为演示数据</div>`;
|
|
|
|
|
}
|
|
|
|
|
function sourcesPage(){
|
|
|
|
|
return `<div class="automation-head">${icon('phone')}<div><h3>在手机里连接内容来源</h3><p>仅需安装实际启用的 App,完成登录与授权</p></div></div><div class="group-label">首批来源 · 状态为界面示例</div><div class="settings-group">${['zhihu','xhs'].map(id=>`<div class="settings-row source-app-row">${platformMark(id)}<div class="app-copy"><div class="row"><h3>${platforms[id].name}</h3>${badge('已适配','green')}</div><p>${id==='zhihu'?'热榜 · 问题详情 · 分享链接':'高互动笔记 · 图文 / 视频详情'}</p></div>${toggle('source:'+id,'启用'+platforms[id].name)}</div>`).join('')}</div><div class="group-label">后续接入</div><div class="settings-group">${['weibo','douyin'].map(id=>`<div class="settings-row source-app-row pending-source">${platformMark(id)}<div class="app-copy"><div class="row"><h3>${platforms[id].name}</h3>${badge('待适配','gray')}</div><p>${id==='weibo'?'实时热搜与社会热点':'热点榜与有许可的视频素材'}</p></div>${toggle('source:'+id,'启用'+platforms[id].name,true)}</div>`).join('')}</div><div class="group-label">采集节奏</div><div class="settings-group">${numberRow('每来源采集间隔','按顺序切换 App,不同时操作屏幕','sourceScan','分钟',5,120)}</div><p class="form-foot">来源登录失效或需要验证时暂停该来源。版本和能力以真机验收结果为准,本原型中的连接状态仅供预览。</p><button class="primary block" data-action="save">保存来源设置${icon('check')}</button>`;
|
|
|
|
|
}
|
|
|
|
|
function filtersPage(){
|
|
|
|
|
return `<div class="group-label" style="margin-top:4px">保留的话题方向</div><div class="settings-group"><div class="filter-pills">${['民生生活','社会现象','职场','教育'].map(x=>`<button class="chip ${state.selectedCategories.has(x)?'active':''}" data-category="${x}" aria-pressed="${state.selectedCategories.has(x)}">${x}${state.selectedCategories.has(x)?' ✓':''}</button>`).join('')}</div><div class="settings-row"><div><h3>基础排除</h3><p>娱乐八卦、广告软文及本期不采集的话题</p></div>${badge('始终开启','gray')}</div></div><div class="group-label">时效 · 硬条件</div><div class="settings-group">${numberRow('距离发布时间不超过','发布时间不明的内容直接跳过','maxAge','小时',1,72)}</div><div class="group-label">可选指标门槛</div><div class="settings-group">${setting('点赞数限制','启用后,点赞数未知的候选不放行','likesGate')}${numberRow('作品点赞至少','仅使用当前作品的实际点赞','likes','赞',0,10000000,true)}${setting('作者粉丝数限制','启用后,粉丝数未知的候选不放行','fansGate')}${numberRow('作者粉丝不超过','不把作者累计获赞当作粉丝数','fans','人',0,100000000,true)}</div><div class="group-label">优选与去重</div><div class="settings-group"><div class="settings-row"><div><h3>综合评分</h3><p>热度 · 增长 · 新鲜度 · 方向 · 证据</p></div>${badge('按来源归一')}</div><div class="settings-row"><div><h3>同事件去重</h3><p>跨平台、图文和视频共用事件记录</p></div><span class="value">72 小时</span></div></div><button class="primary block" data-action="save">保存筛选条件${icon('check')}</button><p class="saved-caption">此处仅修改当前页面的演示设置</p>`;
|
|
|
|
|
}
|
|
|
|
|
function automationPage(){
|
|
|
|
|
return `<div class="group-label" style="margin-top:4px">运行模式</div><div class="mode-segment">${[['draft','草稿模式','完成全流程检查,只保存草稿'],['auto','自动发布','合格任务按节奏自动提交']].map(([id,title,desc])=>`<button class="mode-option ${state.mode===id?'active':''}" data-mode="${id}" aria-pressed="${state.mode===id}">${id===state.mode?'✓ ':''}${title}<span>${desc}</span></button>`).join('')}</div><p class="form-foot">${state.mode==='draft'?'初次使用默认草稿模式。':'已选择自动发布模式。'} 当前是静态原型,切换不会触发真实发布。</p><div class="group-label">跨平台内容类型</div><div class="settings-group">${setting('图文文章','事实整理 · 原创分析 · 本地信息卡','article')}${setting('跨平台视频','本人或已获许可的视频素材','video')}</div><div class="group-label">每日额度 · 与原有视频共用账户总量</div><div class="settings-group">${numberRow('账户每日提交总上限','原视频 + 新图文 + 新视频','totalCap','篇/条',1,28)}${numberRow('新图文每天最多','受账户总额度和发布时段共同限制','articleCap','篇',0,10)}${numberRow('新视频每天最多','受账户总额度和发布时段共同限制','videoCap','条',0,10)}${numberRow('新链路发布间隔','原头条视频参数保持独立','gap','分钟',60,720)}</div><div class="group-label">发布时段</div><div class="settings-group"><div class="interval-row"><input type="time" value="08:00" aria-label="开始发布时间"><span>至</span><input type="time" value="22:00" aria-label="结束发布时间"></div></div><div class="settings-group" style="margin-top:15px">${rowLink('内容来源与适配','sources','layers')}${rowLink('社会选题与指标筛选','filters','filter')}${rowLink('原头条视频采集设置','legacy','video')}</div><button class="primary block" data-action="save">保存自动化设置${icon('check')}</button><p class="saved-caption">账号、许可与内容校验通过后才进入发布</p>`;
|
|
|
|
|
}
|
|
|
|
|
function interactPage(){
|
|
|
|
|
return `<section class="interact-card"><div><p>今日互动进度</p><strong>06 <small>/ ${state.followCap} 次</small></strong><p style="margin-top:9px">与创作任务共享手机操作时机</p></div>${icon('heart')}</section><div class="section-head"><h3 class="section-title">互动方式</h3>${badge('原有功能','gray')}</div><div class="settings-group">${setting('感谢新粉关注','收到新关注后,按设置发送感谢','thanks')}${setting('随机回关','按原有逻辑执行,受每日额度限制','follow')}${numberRow('每日互动上限','原互动额度单独管理','followCap','次',1,200)}</div><div class="group-label">互动节奏</div><div class="settings-group"><div class="settings-row"><div><h3>避开编辑与提交</h3><p>内容编辑、来源采集中不会插入互动</p></div>${badge('统一调度','green')}</div><div class="settings-row"><div><h3>任务记录</h3><p>每次互动记录执行结果和暂停原因</p></div><button class="text-button" data-page="logs">查看${icon('chevron')}</button></div></div><button class="primary block" data-action="save">保存互动设置${icon('check')}</button><div class="footer-demo">原型不会向真实用户发送消息或执行回关</div>`;
|
|
|
|
|
}
|
|
|
|
|
function minePage(){
|
|
|
|
|
return `<div class="profile"><span class="avatar">浩</span><div><h3>本机创作工作台</h3><p>纯手机运行 · 今日头条 18.3.0</p></div>${icon('chevron')}</div><div class="health-summary"><div class="health-item"><p>账号健康</p><strong>100</strong><small>示例信用分</small></div><div class="health-item"><p>手机服务</p><strong style="font-size:15px">已就绪</strong><small>示例状态</small></div></div><div class="group-label">跨平台创作</div><div class="settings-group">${rowLink('来源 App 管理','sources','layers','2 个启用')}${rowLink('选题筛选','filters','filter','社会方向')}${rowLink('自动化与发布额度','automation','settings',state.mode==='draft'?'草稿模式':'自动发布')}</div><div class="group-label">原有功能</div><div class="settings-group">${rowLink('头条视频采集设置','legacy','video')}${rowLink('粉丝互动','interact','heart')}${rowLink('定时浏览','browse','eye')}</div><div class="group-label">服务与记录</div><div class="settings-group">${rowLink('解析 / 大模型','api','spark')}${rowLink('无障碍连接','a11y','phone')}${rowLink('运行记录','logs','list','1 项待核对')}</div><div class="footer-demo">浩瑞 · UI 原型 V2 · 新增能力待实现</div>`;
|
|
|
|
|
}
|
|
|
|
|
function legacyPage(){
|
|
|
|
|
return `<div class="old-banner">保留原头条视频采集流程。该设置与跨平台来源分开保存,共用账户发布总额度。</div><div class="settings-group">${setting('启用原视频采集','头条推荐视频 → 筛选 → 下载 → 发布','legacyEnabled')}<div class="settings-row"><div><h3>点赞 / 粉丝 / 时间限制</h3><p>沿用已修复的三阶段采集校验</p></div>${badge('原有参数','gray')}</div><div class="settings-row"><div><h3>候选优选</h3><p>先收集合格候选,再选择较优视频</p></div><span class="value">5 选 1</span></div></div><div class="group-label">后续开发保持的入口</div><div class="help-tiles"><button class="help-tile" data-action="legacy-detail">${icon('filter')}视频筛选参数<small>时长、大小、作品数与分类</small></button><button class="help-tile" data-action="legacy-detail">${icon('clock')}时段与休息<small>原有额度、时段和暂停设置</small></button><button class="help-tile" data-action="legacy-detail">${icon('shield')}作品声明<small>按素材实际来源设置</small></button><button class="help-tile" data-page="api">${icon('link')}解析与标题改写<small>保留现有服务配置</small></button></div><p class="form-foot">原型只预览入口与信息层级,已有详细采集参数在 Android 开发时继续保留。</p><button class="primary block" data-action="save">保存原流程设置${icon('check')}</button>`;
|
|
|
|
|
}
|
|
|
|
|
function logsPage(){return `<div class="chip-row">${badge('本次运行','gray')}${badge('界面示例')}</div><div class="section-head"><h3 class="section-title">今天 · 11 月 13 日</h3><span class="tiny muted">最近记录</span></div>${[['09:41','内容生成','图文已完成事实核验,正在准备本地配图'],['09:38','选题筛选','跳过 2 项:发布时间不明、同事件重复'],['09:35','来源采集','知乎采集结束,按顺序切换小红书'],['09:26','结果待核对','提交后回执不明,任务已保留且不重复发布'],['09:08','发布提交','图文提交成功,平台审核中'],['09:00','运行启动','已加载草稿模式和账户共享额度']].map(([time,title,desc])=>`<div class="log-line"><time>${time}</time><i class="status-dot" style="color:${title==='结果待核对'?'var(--amber)':'var(--green)'}"></i><div><p>${title}</p><small>${desc}</small></div></div>`).join('')}<div class="footer-demo">演示日志 · 不读取真实手机记录</div>`}
|
|
|
|
|
function apiPage(){return `<div class="info-strip">${icon('spark')}<span>手机联网调用模型,日常运行不需要电脑后台。</span></div><div class="settings-group"><div class="settings-row"><div><h3>改写模型</h3><p>保留现有供应商选择</p></div><select class="select-control" aria-label="模型供应商"><option>DeepSeek</option><option>通义千问</option></select></div><div class="settings-row"><div><h3>API 密钥</h3><p>原型不接收或保存真实密钥</p></div><input class="api-key" value="演示配置" aria-label="演示密钥" readonly></div><div class="settings-row"><div><h3>模型预算</h3><p>耗尽后暂停内容生成</p></div><span class="value">按月设置</span></div></div><div class="settings-group"><div class="settings-row"><div><h3>视频解析</h3><p>保留原有解析线路配置</p></div>${badge('原功能','gray')}</div></div><button class="primary block" data-action="save">保存接口设置${icon('check')}</button>`}
|
|
|
|
|
function a11yPage(){return `<div class="empty-settings">${icon('phone')}<h3>手机服务已就绪</h3><p>此处为状态示例。真机中显示无障碍连接、目标 App 版本和来源适配情况。</p>${badge('模拟状态','green')}</div><div class="group-label">运行前检查</div><div class="settings-group">${[['无障碍服务','已连接'],['今日头条版本','18.3.0'],['知乎 / 小红书','首批适配'],['微博 / 抖音','待适配']].map(([label,value])=>`<div class="settings-row"><h3>${label}</h3><span class="value">${value}</span></div>`).join('')}</div><p class="form-foot">本页面不申请权限、不读取屏幕,也不会跳转系统设置。</p>`}
|
|
|
|
|
function browsePage(){return `<div class="old-banner">原定时浏览功能保留,按发布休息期安排。正在编辑或提交作品时,不插入浏览任务。</div><div class="settings-group"><div class="settings-row"><div><h3>休息期浏览</h3><p>保持原有停留与随机间隔设置</p></div>${badge('原有功能','gray')}</div><div class="settings-row"><div><h3>停留时间</h3><p>真机实现沿用现有参数</p></div><span class="value">随机区间</span></div></div><button class="primary block" data-action="save">保存浏览设置${icon('check')}</button>`}
|
|
|
|
|
const renderers={home:homePage,topics:topicsPage,tasks:tasksPage,sources:sourcesPage,filters:filtersPage,automation:automationPage,interact:interactPage,mine:minePage,legacy:legacyPage,logs:logsPage,api:apiPage,a11y:a11yPage,browse:browsePage};
|
|
|
|
|
function render(reset=true){renderHeader();renderNav();renderNotes();document.getElementById('page').innerHTML=renderers[state.page]();const start=document.querySelector('input[aria-label="开始发布时间"]'),end=document.querySelector('input[aria-label="结束发布时间"]');if(start)start.value=state.publishStart;if(end)end.value=state.publishEnd;if(reset)document.getElementById('content').scrollTop=0;}
|
|
|
|
|
function navigate(page){if(!renderers[page])return;closeSheet();state.page=page;history.replaceState(null,'','#'+page);render();}
|
|
|
|
|
let toastTimer;
|
|
|
|
|
function toast(message){const el=document.getElementById('toast');clearTimeout(toastTimer);el.textContent=message;el.hidden=false;toastTimer=setTimeout(()=>{el.hidden=true},3200)}
|
|
|
|
|
let restoreFocus=null;
|
|
|
|
|
function sheet(title,html){restoreFocus=document.activeElement;document.getElementById('overlay-root').innerHTML=`<div class="sheet-layer"><section class="sheet" role="dialog" aria-modal="true" aria-labelledby="sheet-title" tabindex="-1"><div class="sheet-handle"></div><div class="sheet-header"><h3 id="sheet-title">${title}</h3><button class="icon-button" data-action="close-sheet" aria-label="关闭预览">${icon('close')}</button></div>${html}</section></div>`;document.querySelector('.sheet [data-action="close-sheet"]').focus();}
|
|
|
|
|
function closeSheet(){const open=!!document.querySelector('.sheet');document.getElementById('overlay-root').innerHTML='';if(open&&restoreFocus&&restoreFocus.isConnected)restoreFocus.focus();restoreFocus=null;}
|
|
|
|
|
function topicSheet(id){const t=topics.find(x=>x.id===id);if(!t)return;sheet('选题详情',`<div class="row">${platformMark(t.platform)}<span class="small">${platforms[t.platform].name}</span>${badge(t.category)}${badge('示例')}</div><h4>${t.title}</h4><p>${t.summary}</p><div class="data-row"><span>发布时间</span><strong>${t.age} · 模拟时间</strong></div><div class="data-row"><span>综合评分</span><strong>${t.score} / 100 · 示例</strong></div><div class="data-row"><span>来源热度</span><strong>${t.heat} · 示例</strong></div><div class="data-row"><span>事实 / 素材</span><strong>${t.fact}</strong></div><div class="data-row"><span>生成类型</span><strong>${t.kind==='video'?'已授权视频 + 标题简介':'图文文章 + 本地信息卡'}</strong></div><p>本原型不提供虚构的原文链接。真机任务将保存实际来源链接、事实依据和素材许可记录。</p><button class="primary block" data-add-topic="${t.id}">${state.topicAdded.has(t.id)?'查看已生成任务':'模拟加入创作任务'}${icon('arrow')}</button>`)}
|
|
|
|
|
function jobSheet(id){const j=jobs.find(x=>x.id===id);if(!j)return;const article=`<div class="article-cover"><span>HAORUI / DAILY OBSERVATION</span><h4>${j.cover.split('\n').join('<br>')}</h4><small>生活观察 · 本地信息卡示例</small></div><p>一项生活服务好不好用,不能只看它是否热门。对于身边的新变化,先弄清适用人群、服务内容和具体条件,往往比急着下结论更有帮助。</p><h4>先看实际需要,再谈使用体验</h4><p>把可核实的事实与个人分析分开,才容易讲清楚问题。这是用于预览正文间距、标题和信息卡的示例段落,不代表真实事件报道。</p><p>如果是你,会最先关注哪一个细节?</p>`;const video=`<div class="video-poster">${icon('play')}<span>${j.size.split(' · ')[0]} · 静态封面示例</span></div><div class="data-row"><span>视频文件</span><strong>${j.size}</strong></div><div class="data-row"><span>作品说明</span><strong>保留素材实际来源与署名</strong></div><p>此原型仅预览视频任务信息,未加载真实视频文件。</p>`;sheet(j.kind==='video'?'视频任务预览':'图文内容预览',`<div class="between">${badge(j.kind==='video'?'视频':'图文')}${badge(j.status==='unknown'?'结果待核对':j.status==='published'?'已提交':'成品已准备',j.status==='unknown'?'amber':'green')}</div><h4 style="font-size:16px">${j.title}</h4><div class="tiny muted">${j.source} · ${j.size}</div>${j.kind==='article'?article:video}<div class="data-row"><span>素材说明</span><strong>${j.rights}</strong></div><div class="data-row"><span>当前状态</span><strong>${j.note}</strong></div>${j.status==='ready'?`<button class="primary block" data-draft="${j.id}">${state.drafted.has(j.id)?'草稿已保存(模拟)':'模拟保存草稿'}${icon('file')}</button>`:j.status==='unknown'?`<button class="primary block" data-reconcile="${j.id}">查看核对说明${icon('clock')}</button>`:''}`)}
|
|
|
|
|
function addTopic(id){if(state.topicAdded.has(id)){closeSheet();state.queue='ready';navigate('tasks');return}const t=topics.find(x=>x.id===id);if(!t)return;state.topicAdded.add(id);jobs.push({id:200+id,kind:t.kind,title:t.title,cover:t.kind==='video'?'生活现场\n日常观察':'社会观察\n多看一步',theme:t.kind==='video'?'video':'blue',source:platforms[t.platform].name+(t.kind==='video'?' · 授权素材':''),size:t.kind==='video'?'02:36 · 1080p · 86 MB':'1,080 字 · 2 张信息卡',status:'ready',note:'模拟生成完成 · 等待安排',time:'自动排队',rights:'本地演示任务,不含实际外部素材。'});closeSheet();render(false);toast('已模拟生成 1 项任务,可在「任务」页查看');}
|
|
|
|
|
function saveSettings(){const firstInvalid=[...document.querySelectorAll('#page input[type="number"]')].find(el=>!el.checkValidity());if(firstInvalid){firstInvalid.reportValidity();return}if(state.articleCap+state.videoCap>state.totalCap&&state.page==='automation'){toast('图文与视频仍受账户总上限限制,按实际可用额度安排');return}toast('演示设置已保存,仅在当前页面会话中生效');}
|
|
|
|
|
document.addEventListener('click',e=>{
|
|
|
|
|
const b=e.target.closest('button');
|
|
|
|
|
if(!b){if(e.target.classList.contains('sheet-layer'))closeSheet();return}
|
|
|
|
|
if(b.dataset.queue){state.queue=b.dataset.queue;if(b.dataset.page)navigate(b.dataset.page);else render();return}
|
|
|
|
|
if(b.dataset.page){navigate(b.dataset.page);return}
|
|
|
|
|
if(b.dataset.source){state.source=b.dataset.source;render();return}
|
|
|
|
|
if(b.dataset.kind){state.kind=b.dataset.kind;render();return}
|
|
|
|
|
if(b.dataset.mode){state.mode=b.dataset.mode;render(false);toast(state.mode==='auto'?'已切换为自动发布演示,不会触发真实发布':'已切换为草稿模式');return}
|
|
|
|
|
if(b.dataset.category){const c=b.dataset.category;if(state.selectedCategories.has(c)){if(state.selectedCategories.size===1){toast('至少保留一个社会话题方向');return}state.selectedCategories.delete(c)}else state.selectedCategories.add(c);render(false);return}
|
|
|
|
|
if(b.dataset.topic){topicSheet(Number(b.dataset.topic));return}
|
|
|
|
|
if(b.dataset.job){jobSheet(Number(b.dataset.job));return}
|
|
|
|
|
if(b.dataset.addTopic){addTopic(Number(b.dataset.addTopic));return}
|
|
|
|
|
if(b.dataset.draft){state.drafted.add(Number(b.dataset.draft));closeSheet();render(false);toast('已模拟保存草稿;未连接今日头条');return}
|
|
|
|
|
if(b.dataset.reconcile){sheet('发布结果核对',`<div class="info-strip">${icon('clock')}<span>本原型不会访问账号或作品管理。</span></div><p>真机中会核对当前账号作品的标题、时间与内容信息。能够确认提交成功才补记回执;无法确认时继续保留素材和额度占位,不再次点击发布。</p><button class="primary block" data-action="close-sheet">知道了</button>`);return}
|
|
|
|
|
if(b.dataset.action==='run'){if(!Object.values(state.sourceEnabled).some(Boolean)&&!state.legacyEnabled){toast('请至少启用一个来源或原视频采集');return}state.running=!state.running;render(false);toast(state.running?'自动化演示已启动,不会操作真实手机':'自动化演示已暂停');return}
|
|
|
|
|
if(b.dataset.action==='close-sheet'){closeSheet();return}
|
|
|
|
|
if(b.dataset.action==='refresh'){toast('示例选题已刷新,未联网抓取平台内容');return}
|
|
|
|
|
if(b.dataset.action==='save'){saveSettings();return}
|
|
|
|
|
if(b.dataset.action==='legacy-detail'){sheet('原有参数继续保留','<p>本次原型聚焦跨平台新增界面。原视频采集的详细参数、时段、休息和作品声明会在 Android 实现中保留,入口与现有配置保持对应。</p><button class="primary block" data-action="close-sheet">返回预览</button>');}
|
|
|
|
|
});
|
|
|
|
|
function updateField(e){const el=e.target;if(el.dataset.toggle&&e.type==='change'){const k=el.dataset.toggle;if(k.startsWith('source:'))state.sourceEnabled[k.slice(7)]=el.checked;else state[k]=el.checked;toast('已更新演示设置')}if(el.dataset.number){if(!el.checkValidity()){if(e.type==='change')el.reportValidity();return}state[el.dataset.number]=Number(el.value)}if(el.type==='time'&&el.checkValidity()){state[el.getAttribute('aria-label')==='开始发布时间'?'publishStart':'publishEnd']=el.value}}
|
|
|
|
|
document.addEventListener('input',updateField);
|
|
|
|
|
document.addEventListener('change',updateField);
|
|
|
|
|
document.addEventListener('keydown',e=>{const dialog=document.querySelector('.sheet');if(!dialog)return;if(e.key==='Escape'){e.preventDefault();closeSheet();return}if(e.key==='Tab'){const focusable=[...dialog.querySelectorAll('button:not([disabled]),a[href],input:not([disabled]),select:not([disabled]),[tabindex="0"]')];if(!focusable.length)return;const first=focusable[0],last=focusable.at(-1);if(e.shiftKey&&document.activeElement===first){e.preventDefault();last.focus()}else if(!e.shiftKey&&document.activeElement===last){e.preventDefault();first.focus()}}});
|
|
|
|
|
window.addEventListener('hashchange',()=>{const p=location.hash.slice(1);if(renderers[p]){closeSheet();state.page=p;render()}});
|
|
|
|
|
const initial=location.hash.slice(1);if(renderers[initial])state.page=initial;render();
|
|
|
|
|
</script>
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|