:root{
  --pri:#B4561F;--pri-d:#8B3F15;--soft:#FBEFE6;--bg:#F7F4EF;--text:#1C1C1E;--text2:#636366;--hint:#8E8E93;--line:#EEE7DE;
  --stage:#ECE6DE;--card:#fff;--r:22px;--ok:#2E7D32;
  --shadow:0 4px 18px rgba(80,50,20,.06);
  --font:-apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans CJK SC","Noto Sans SC",sans-serif;
}
*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%}
body{background:var(--bg);color:var(--text);font-family:var(--font);font-size:15px;line-height:1.5;min-height:100vh;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
button:disabled{cursor:not-allowed}
img{display:block}
[hidden]{display:none!important}
:focus-visible{outline:2px solid var(--pri);outline-offset:2px}

/* 按钮 */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;border-radius:999px;font-weight:700;height:48px;padding:0 22px;font-size:15px;white-space:nowrap;transition:transform .1s,opacity .15s,background .15s}
.btn:active{transform:scale(.98)}
.pri{background:var(--pri);color:#fff}.pri:hover{background:#A34C1A}
.pri:disabled{background:#D9B39C;transform:none}
.soft{background:var(--soft);color:var(--pri)}
.ghost{background:#fff;border:1.5px solid #E5DED4;color:var(--text)}.ghost:hover{border-color:#D6CBBE}
.pill{height:36px;padding:0 16px;font-size:13px}
.link-btn{color:var(--pri);font-size:13px;padding:6px 0}
.link-btn:hover{text-decoration:underline}

/* 顶部导航（电脑） */
.nav{position:sticky;top:0;z-index:20;height:64px;display:flex;align-items:center;padding:0 40px;gap:28px;background:#fff;border-bottom:1px solid var(--line)}
.logo{display:flex;align-items:center;gap:10px;font-weight:800;font-size:19px;letter-spacing:-.2px}
.logo i{width:30px;height:30px;border-radius:9px;background:var(--pri);display:inline-block}
.nav-links{display:flex;gap:28px}
.nav-links a{font-size:15px;color:var(--text2);padding:20px 0}
.nav-links a:hover{color:var(--text)}
.nav-links a.on{color:var(--pri);font-weight:700}
.nav .sp{flex:1}
.nav-user{display:flex;align-items:center;gap:14px}
.avatar{width:34px;height:34px;border-radius:50%;background:#E6B79A;display:inline-block;overflow:hidden;flex:none}
.avatar img{width:100%;height:100%;object-fit:cover}
.avatar.big{width:56px;height:56px}

/* 手机底部导航 */
.tabbar{display:none}

/* 页面 */
.page{max-width:1280px;margin:0 auto;padding:0 40px 56px}
.hero{padding:44px 0 26px}
.h1{font-size:40px;font-weight:850;letter-spacing:-1px;line-height:1.2}
.sub{font-size:16px;color:var(--hint);margin-top:10px}
.sec{font-size:14px;color:var(--hint);margin:28px 0 12px}
.home-mobile{display:none}

.drop{height:120px;border:2px dashed #E2CDB8;border-radius:var(--r);background:#FFFBF6;display:flex;align-items:center;justify-content:center;gap:16px;color:#8B6B52;font-size:16px;cursor:pointer;transition:background .15s,border-color .15s;padding:0 20px}
.drop:hover,.drop.over{background:#FFF4E8;border-color:var(--pri)}
.drop.has{border-style:solid;border-color:#E9C9AF;background:#FFF8F1}
.drop b{color:var(--pri)}
.drop-text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.drop-hint{color:#A1A1A6;font-size:13px;padding:6px 10px;border-radius:999px}
.drop-hint:hover{background:#fff;color:var(--pri)}

.big{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.bc{background:#fff;border-radius:var(--r);padding:24px;display:flex;gap:18px;align-items:center;box-shadow:var(--shadow);transition:transform .15s,box-shadow .15s}
.bc:hover,.tc:hover{transform:translateY(-2px);box-shadow:0 10px 26px rgba(80,50,20,.1)}
.bc .ic{width:64px;height:64px;border-radius:18px;background:var(--soft);display:flex;align-items:center;justify-content:center;flex:none}
.bc .ic img{width:38px;height:38px}
.bc h3{font-size:20px;display:flex;align-items:center}
.bc p{font-size:13.5px;color:var(--hint);margin-top:6px}
.tag{font-size:11px;padding:2px 8px;border-radius:10px;background:var(--soft);color:var(--pri);margin-left:8px;font-weight:600}
.grid4{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.tc{background:#fff;border-radius:20px;padding:18px;display:flex;align-items:center;gap:14px;transition:transform .15s,box-shadow .15s}
.tc .ic{width:46px;height:46px;border-radius:14px;background:var(--soft);display:flex;align-items:center;justify-content:center;flex:none}
.tc .ic img{width:28px;height:28px}
.tc b{font-size:16px}
.foot{font-size:13px;color:#A1A1A6;margin-top:48px}

/* 工具页（电脑：左预览，右设置） */
.view-tool{height:calc(100vh - 64px);min-height:560px}
.tool{display:flex;height:100%}
.tool-main{flex:1;min-width:0;padding:22px 28px;display:flex;flex-direction:column;gap:14px}
.tool-bar{display:flex;align-items:center;gap:10px;min-height:38px}
.tool-bar h1{font-weight:800;font-size:22px;white-space:nowrap}
.tool-bar .back{display:none}
.tool-bar .sp{flex:1}
.chip{display:inline-flex;align-items:center;gap:4px;padding:7px 14px;border-radius:999px;background:#fff;font-size:13px;color:var(--text2);white-space:nowrap}
.chip.on{background:var(--soft);color:var(--pri);font-weight:700}
.file-chip{max-width:420px;overflow:hidden;text-overflow:ellipsis;display:block}
.pager{display:flex;gap:6px;align-items:center}
.pager button.chip{width:34px;height:34px;justify-content:center;padding:0;font-size:18px}
.pager button.chip:disabled{opacity:.4}
.pg-label{position:relative;cursor:pointer}
.pg-select{position:absolute;inset:0;opacity:0;cursor:pointer;font-size:16px}
.stage{flex:1;min-height:0;background:var(--stage);border-radius:20px;position:relative;display:flex;flex-direction:column;overflow:hidden}
.stage.over{outline:3px dashed var(--pri);outline-offset:-10px}
.stage-empty{flex:1;display:flex;align-items:center;justify-content:center;gap:14px;color:#8B6B52;font-size:16px;cursor:pointer}
.stage-empty b{color:var(--pri)}
.stage-empty:hover{background:rgba(255,255,255,.25)}
.stage-wait{flex:1;display:flex;align-items:center;justify-content:center;color:var(--hint);font-size:14px}
.stage-body{flex:1;min-height:0;display:flex;flex-direction:column}
.compare,.single{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;gap:24px;padding:24px 24px 0}
.sheet{flex:1;min-width:0;height:100%;display:flex;align-items:center;justify-content:center;position:relative;cursor:zoom-in}
.single .sheet{cursor:default}
.sheet canvas{max-width:100%;max-height:100%;background:#fff;box-shadow:0 6px 24px rgba(0,0,0,.12);border-radius:3px}
.cap{flex:none;text-align:center;font-size:12px;color:var(--hint);padding:12px 0 14px;min-height:46px;display:flex;align-items:center;justify-content:center}
.pv-tag{position:absolute;top:8px;right:8px;z-index:1;background:rgba(28,28,30,.72);color:#fff;font-size:12px;padding:3px 10px;border-radius:999px}
.hold-btn{background:#fff;color:var(--pri);font-weight:700;border-radius:999px;padding:8px 18px;font-size:13px;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;touch-action:none}
.skip-page.on{background:var(--soft);color:var(--pri);font-weight:700}

.panel{width:380px;flex:none;background:#fff;border-left:1px solid var(--line);display:flex;flex-direction:column;min-height:0}
.panel-settings{padding:22px 24px 8px;display:flex;flex-direction:column;gap:16px;overflow:auto;min-height:0;flex:0 1 auto}
.panel-fill{flex:1}
.panel .trial,.panel .result,.panel>.panel-btns{margin:0 24px}
.panel>.panel-btns{margin-bottom:22px}
.pt{font-size:15px;font-weight:800}
.sub2{font-size:13px;color:var(--text2);margin:2px 0 -6px}
.group{display:flex;flex-direction:column;gap:12px}
.group+.group{padding-top:16px;border-top:1px solid #F2EDE6}
.field-head{display:flex;align-items:baseline;gap:10px}
.val{color:var(--pri);font-weight:800}
.range{-webkit-appearance:none;appearance:none;width:100%;height:24px;background:transparent;margin:6px 0 2px;cursor:pointer;--p:50%}
.range::-webkit-slider-runnable-track{height:6px;border-radius:3px;background:linear-gradient(to right,var(--pri) var(--p),#E8DCCB var(--p))}
.range::-moz-range-track{height:6px;border-radius:3px;background:#E8DCCB}
.range::-moz-range-progress{height:6px;border-radius:3px;background:var(--pri)}
.range::-webkit-slider-thumb{-webkit-appearance:none;width:24px;height:24px;border-radius:50%;background:#fff;box-shadow:0 1px 5px rgba(0,0,0,.3);margin-top:-9px}
.range::-moz-range-thumb{width:24px;height:24px;border:0;border-radius:50%;background:#fff;box-shadow:0 1px 5px rgba(0,0,0,.3)}
.range:disabled{opacity:.5}
.seg{display:flex;gap:8px;margin-top:8px}
.seg button{flex:1;text-align:center;padding:8px 0;border-radius:999px;background:#F2F2F7;font-size:13px;color:var(--text2)}
.seg button.on{background:var(--soft);color:var(--pri);font-weight:700}
.sw{display:flex;justify-content:space-between;align-items:center;background:var(--bg);border-radius:14px;padding:12px 14px;font-size:14px;cursor:pointer;position:relative}
.sw input{position:absolute;opacity:0;pointer-events:none}
.sw i{width:42px;height:24px;border-radius:12px;background:#D1D1D6;position:relative;transition:background .15s;flex:none}
.sw i:after{content:'';position:absolute;top:2px;left:2px;width:20px;height:20px;border-radius:10px;background:#fff;transition:left .15s;box-shadow:0 1px 2px rgba(0,0,0,.15)}
.sw input:checked+i{background:var(--pri)}
.sw input:checked+i:after{left:20px}
.sw input:focus-visible+i{outline:2px solid var(--pri);outline-offset:2px}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chips button{padding:7px 14px;border-radius:999px;background:#F2F2F7;font-size:13px;color:var(--text2)}
.chips button.on{background:var(--soft);color:var(--pri);font-weight:700}
.colors{display:flex;gap:10px;flex-wrap:wrap}
.colors button{width:28px;height:28px;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.08)}
.colors button.on{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--pri)}
.num-row{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:14px}
.stepper{display:flex;align-items:center;background:var(--bg);border-radius:999px;overflow:hidden}
.stepper button{width:34px;height:34px;font-size:18px;color:var(--pri)}
.stepper input{width:54px;height:34px;border:0;background:transparent;text-align:center;font:inherit;font-weight:700;-moz-appearance:textfield}
.stepper input::-webkit-outer-spin-button,.stepper input::-webkit-inner-spin-button{-webkit-appearance:none}
.skip-input{width:150px;height:34px;border:1.5px solid #E5DED4;border-radius:10px;padding:0 10px;font:inherit;font-size:14px}
.skip-input:focus{border-color:var(--pri);outline:0}
.summary{font-size:12.5px;color:var(--pri);background:var(--soft);border-radius:10px;padding:8px 12px}
.summary:empty{display:none}
.font-note{font-style:normal;color:var(--hint);margin-left:8px}
.help{font-size:12.5px;color:var(--hint);margin-top:-6px}
.impose-field{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:14px}
.impose-field>span{color:var(--text2)}
.impose-field select,.impose-field input{min-width:150px;max-width:190px;height:38px;border:1.5px solid #E5DED4;border-radius:10px;background:#fff;padding:0 10px;font:inherit;color:var(--text)}
.impose-field input[type=number]{width:112px;min-width:112px}
.impose-field input[type=text]{width:190px}
.impose-field select:focus,.impose-field input:focus{border-color:var(--pri);outline:0}
.impose-summary{font-size:13px;color:var(--text2);background:var(--soft);border-radius:14px;padding:12px 14px;line-height:1.6}
.impose-summary small{display:block;color:var(--pri);margin-top:3px}
.detect{background:var(--bg);border-radius:14px;padding:12px 14px;font-size:13px;display:flex;flex-direction:column;gap:2px;color:var(--text2)}
.detect b{font-size:14px;color:var(--text)}
.detect.ok b{color:var(--ok)}
.trial{font-size:12.5px;color:#8B6B52;background:#FFF6EC;padding:10px 12px;border-radius:12px;margin-bottom:12px!important}
.trial.used{color:#A33A1A}
.trial a{color:var(--pri);font-weight:700;text-decoration:underline}
.panel-btns{display:flex;gap:10px}
.panel-btns .ghost{flex:1}.panel-btns .pri{flex:2;font-size:16px}
.result{background:#FBF8F4;border-radius:18px;padding:16px;margin-bottom:22px!important;display:flex;flex-direction:column;gap:8px}
.result-head{display:flex;align-items:center;justify-content:space-between;font-size:16px}
.ok-badge{font-size:12px;color:var(--ok);background:#E8F3E9;border-radius:999px;padding:2px 10px;font-weight:700}
.metric{display:flex;justify-content:space-between;font-size:13.5px;color:var(--text2)}
.metric span:last-child{color:var(--text);font-weight:600}
.result-name{font-size:12px;color:var(--hint);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.result-btns{margin-top:6px}
.tool.done .trial{display:none}

/* 会员 */
.member .plans{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:10px}
.plan{text-align:left;background:#fff;border-radius:var(--r);padding:26px;border:2px solid transparent;position:relative;transition:border-color .15s,box-shadow .15s}
.plan:hover{border-color:#EBD3C2}
.plan.on{border-color:var(--pri);box-shadow:0 8px 26px rgba(180,86,31,.15)}
.plan h4{font-size:18px}
.price{font-size:40px;font-weight:850;margin:12px 0 4px;letter-spacing:-.5px}
.price small{font-size:16px;font-weight:600;color:var(--hint);letter-spacing:0}
.plan p{font-size:13px;color:var(--hint)}
.badge{position:absolute;top:-12px;right:18px;background:var(--pri);color:#fff;font-size:12px;padding:4px 10px;border-radius:999px;font-weight:700}
.pay-row{margin:22px 0;display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.pay-btn{height:54px;padding:0 46px;font-size:17px}
.pay-note{font-size:13px;color:var(--hint)}
.status-line{background:#E8F3E9;color:#245F27;border-radius:14px;padding:12px 16px;font-size:14px;margin-bottom:18px}
.status-line b{margin:0 2px}
.feat{background:#fff;border-radius:var(--r);padding:22px 26px;display:grid;grid-template-columns:repeat(4,1fr);gap:12px 20px;font-size:14px}
.feat-title{grid-column:1/-1;font-size:15px}
.feat span{color:var(--text2)}
.feat em{font-style:normal;font-size:12px;margin-left:6px;color:#A1A1A6}
.feat em.ok{color:var(--ok)}

/* 我的 */
.me{padding-top:32px;max-width:720px}
.me-card{background:#fff;border-radius:var(--r);padding:22px;display:flex;align-items:center;gap:16px}
.me-card>div:nth-child(2){flex:1;min-width:0}
.me-card b{font-size:18px}
.me-card p{font-size:13px;color:var(--hint)}
.list{background:#fff;border-radius:var(--r);margin-top:16px;overflow:hidden}
.list>*{display:flex;width:100%;justify-content:space-between;align-items:center;padding:16px 20px;font-size:15px;text-align:left}
.list>*+*{border-top:1px solid #F2EDE6}
.list i{font-style:normal;color:#C7C7CC;font-size:18px}
.list>*:hover{background:#FCFAF7}

.soon{display:flex;justify-content:center;padding-top:80px}
.soon-card{background:#fff;border-radius:var(--r);padding:36px;text-align:center;max-width:420px;display:flex;flex-direction:column;align-items:center;gap:12px}
.soon-card .ic{width:72px;height:72px;border-radius:20px;background:var(--soft);display:flex;align-items:center;justify-content:center}
.soon-card .ic img{width:42px;height:42px}
.soon-card p{color:var(--hint);font-size:14px;margin-bottom:8px}

/* 拆分合并 */
.merge-workspace{flex:1;min-height:0;display:grid;grid-template-columns:280px minmax(290px,380px) minmax(300px,1fr);gap:14px}
.merge-sources,.merge-pages,.merge-preview{min-height:0;background:#fff;border-radius:18px;overflow:hidden}
.merge-sources,.merge-pages{display:flex;flex-direction:column}
.merge-source-head,.merge-page-head{padding:16px 16px 12px;border-bottom:1px solid var(--line)}
.merge-source-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.merge-source-head span,.merge-page-head small{font-size:12px;color:var(--hint)}
.merge-source-list,.merge-page-list{overflow:auto;min-height:0}
.merge-source-list{padding:10px 10px 0}
.merge-source{padding:12px;border:1px solid var(--line);border-radius:14px;margin-bottom:10px}
.merge-source-title{display:flex;align-items:center;gap:9px;min-width:0}
.merge-source-title>img{width:25px;height:25px;flex:none}
.merge-source-title>div{flex:1;min-width:0}
.merge-source-title b,.merge-source-title small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.merge-source-title b{font-size:13px}.merge-source-title small{font-size:11px;color:var(--hint);margin-top:2px}
.merge-source-title>button{font-size:21px;color:#A1A1A6;width:28px;height:28px;border-radius:50%}
.merge-source-title>button:hover{background:#F2F2F7}
.merge-source label{display:flex;align-items:center;gap:8px;margin-top:10px;font-size:12px;color:var(--text2)}
.merge-source label input{min-width:0;flex:1;height:32px;border:1px solid #E5DED4;border-radius:9px;padding:0 9px;font:inherit;color:var(--text)}
.merge-source label input:focus{outline:0;border-color:var(--pri)}
.merge-drop{margin:10px;border:1.5px dashed #DDBFA9;border-radius:14px;min-height:64px;display:flex;align-items:center;justify-content:center;gap:8px;color:var(--pri);font-size:13px;font-weight:700;flex:none}
.merge-drop img{width:24px;height:24px}.merge-drop:hover,.merge-drop.over{background:var(--soft);border-color:var(--pri)}
.merge-page-head>div{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:2px}
.merge-count{font-size:12px;color:var(--pri);background:var(--soft);padding:3px 9px;border-radius:999px}
.merge-page-list{padding:8px}
.merge-page{width:100%;display:flex;align-items:center;gap:9px;text-align:left;padding:9px;border:1px solid transparent;border-radius:12px}
.merge-page:hover{background:#FBF8F4}.merge-page.on{background:var(--soft);border-color:#EDCDB7}
.merge-page-no{width:24px;height:24px;border-radius:7px;background:#F2F2F7;display:flex;align-items:center;justify-content:center;font-size:11px;color:var(--text2);flex:none}
.merge-page.on .merge-page-no{background:var(--pri);color:#fff}
.merge-page-text{flex:1;min-width:0}.merge-page-text b,.merge-page-text small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.merge-page-text b{font-size:12px}.merge-page-text small{font-size:11px;color:var(--hint);margin-top:2px}
.merge-page-actions{display:flex;align-items:center;flex:none}.merge-page-actions i{font-style:normal;width:25px;height:25px;display:flex;align-items:center;justify-content:center;border-radius:7px;color:var(--text2);font-size:14px}.merge-page-actions i:hover{background:#fff;color:var(--pri)}
.merge-pages-empty{padding:32px 16px;text-align:center;font-size:12px;color:var(--hint)}
.merge-preview{position:relative;display:flex;align-items:center;justify-content:center;background:var(--stage);padding:24px}
.merge-preview-empty{font-size:13px;color:var(--hint);text-align:center}
.merge-preview-canvas{width:100%;height:100%;display:flex;align-items:center;justify-content:center;overflow:hidden}
.merge-preview-canvas canvas{max-width:82%;max-height:82%;background:#fff;box-shadow:0 6px 24px rgba(0,0,0,.14);transition:transform .15s}
.merge-preview-name{position:absolute;left:16px;right:16px;bottom:12px;text-align:center;color:var(--hint);font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.merge-summary{display:grid;grid-template-columns:1fr 1fr;gap:10px;font-size:13px;background:var(--bg);border-radius:14px;padding:12px}.merge-summary span:last-child{grid-column:1/-1}.merge-summary b{color:var(--pri)}
.merge-name{display:flex;flex-direction:column;gap:7px;font-size:13px;color:var(--text2)}
.merge-name input{height:40px;border:1.5px solid #E5DED4;border-radius:10px;padding:0 11px;font:inherit;color:var(--text)}.merge-name input:focus{outline:0;border-color:var(--pri)}

/* 弹窗 */
.mask{position:fixed;inset:0;z-index:70;background:rgba(30,20,10,.45);display:flex;align-items:center;justify-content:center;padding:20px;opacity:0;transition:opacity .18s}
.mask.show{opacity:1}
.dialog{width:340px;max-width:100%;max-height:calc(100vh - 40px);overflow:auto;background:#fff;border-radius:26px;padding:26px;text-align:center;position:relative;transform:translateY(8px);transition:transform .18s}
.mask.show .dialog{transform:none}
.dlg-title{font-size:20px}
.dlg-text{font-size:13.5px;color:var(--hint);line-height:1.7;margin-top:8px}
.dlg-btns{display:flex;gap:10px;margin-top:20px}
.dlg-btns .btn{flex:1;height:44px}
.dlg-x{position:absolute;top:10px;right:12px;width:36px;height:36px;font-size:24px;color:#AEAEB2;border-radius:50%}
.dlg-x:hover{background:#F2F2F7}
.qr-box{width:200px;height:200px;margin:18px auto;display:flex;align-items:center;justify-content:center}
.qr-img{width:200px;height:200px;-webkit-touch-callout:default;user-select:auto}
.qr-fake{width:180px;height:180px;border-radius:50%;background:radial-gradient(circle,#fff 28%,transparent 29%),repeating-conic-gradient(#1C1C1E 0 7deg,#fff 7deg 14deg);border:10px solid #fff;box-shadow:0 0 0 1px #EEE}
.qr-wait{font-size:13px;color:var(--hint)}
.qr-wait.retry{color:var(--pri);padding:20px}
.qr-box[data-state=scanned]{position:relative}
.qr-box[data-state=scanned]:after{content:'已扫码，请在手机上确认';position:absolute;inset:0;background:rgba(255,255,255,.92);display:flex;align-items:center;justify-content:center;font-weight:700;color:var(--pri);border-radius:12px}
.soft-tip{margin-top:16px;background:var(--soft);color:var(--pri);border-radius:999px;padding:11px 16px;font-size:13px;font-weight:700}
.dialog.zoom{width:min(1100px,96vw);height:min(92vh,1200px);padding:0;display:flex;flex-direction:column;background:#2B2622}
.dialog.zoom .dlg-x{color:#fff;z-index:2;background:rgba(0,0,0,.3)}
.zoom-wrap{flex:1;min-height:0;overflow:auto;display:flex;align-items:center;justify-content:center;padding:16px}
.zoom-wrap canvas{max-width:100%;max-height:100%;cursor:zoom-in;background:#fff}
.zoom-wrap.full{display:block}
.zoom-wrap.full canvas{max-width:none;max-height:none;cursor:zoom-out}
.zoom-wrap .qr-wait{color:#ccc}
.zoom-bar{padding:12px;display:flex;justify-content:center}

#toast{position:fixed;left:50%;bottom:90px;z-index:80;transform:translate(-50%,10px);background:rgba(28,28,30,.88);color:#fff;font-size:14px;padding:10px 18px;border-radius:12px;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;max-width:80vw;text-align:center}
#toast.show{opacity:1;transform:translate(-50%,0)}
.busy{position:fixed;inset:0;z-index:60;background:rgba(247,244,239,.6);display:flex;align-items:center;justify-content:center}
.busy-card{background:#fff;border-radius:18px;padding:18px 24px;display:flex;align-items:center;gap:12px;box-shadow:0 10px 30px rgba(0,0,0,.12);font-size:14px;min-width:220px}
.busy-card span{flex:1}
.busy-card .btn{height:34px;padding:0 14px;font-size:13px}
.spin{width:20px;height:20px;border-radius:50%;border:3px solid #F0DCCD;border-top-color:var(--pri);animation:spin .8s linear infinite;flex:none}
@keyframes spin{to{transform:rotate(360deg)}}

.wx-guide{position:fixed;inset:0;z-index:90;background:rgba(0,0,0,.6);color:#fff}
.wx-arrow{position:absolute;top:8px;right:22px;font-size:46px;line-height:1}
.wx-card{position:absolute;top:72px;right:16px;left:16px;background:#fff;color:var(--text);border-radius:20px;padding:20px;text-align:center}
.wx-card p{color:var(--text2);font-size:14px;margin:8px 0 14px}
.wx-card .btn{height:40px}

/* 中等宽度 */
@media (max-width:1180px){
  .grid4{grid-template-columns:repeat(2,1fr)}
  .big{grid-template-columns:1fr}
  .feat{grid-template-columns:repeat(3,1fr)}
  .panel{width:340px}
  .compare{gap:12px;padding:16px 16px 0}
  .merge-workspace{grid-template-columns:250px 1fr}.merge-preview{display:none}
}

/* 手机 */
@media (max-width:899px){
  body{background:#F2F2F7;padding-bottom:calc(64px + env(safe-area-inset-bottom))}
  .nav{display:none}
  .tabbar{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:20;height:calc(64px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);background:#fff;border-top:1px solid var(--line);justify-content:space-around;align-items:center}
  .tabbar a{flex:1;text-align:center;font-size:12px;color:var(--hint);padding:20px 0}
  .tabbar a.on{color:var(--pri);font-weight:700}
  .page{padding:0 20px 32px}
  .home-desk{display:none}
  .home-mobile{display:block}
  .m-top{padding:44px 0 0}
  .m-h{font-size:28px;font-weight:850}
  .m-s{font-size:13px;color:var(--hint);margin-top:6px}
  .m-file{display:flex;align-items:center;gap:10px;background:#fff;border-radius:16px;padding:10px 14px;margin-top:16px;font-size:13px}
  .m-file img{width:22px;height:22px}
  .m-file span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .m-tiles{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding-top:18px}
  .mt{background:#fff;border-radius:20px;padding:16px}
  .mt.wide{grid-column:1/-1;display:flex;align-items:center;gap:14px;background:var(--pri);color:#fff}
  .mt .ic{width:44px;height:44px;border-radius:13px;background:var(--soft);display:flex;align-items:center;justify-content:center}
  .mt .ic img{width:26px;height:26px}
  .mt.wide .ic{background:rgba(255,255,255,.18)}
  .mt b{display:block;font-size:16px;margin-top:10px}
  .mt.wide b{margin:0;font-size:19px}
  .mt p{font-size:12px;color:var(--hint);margin-top:3px}
  .mt.wide p{color:rgba(255,255,255,.82)}
  .sec{margin:22px 0 10px}
  .m-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
  .m-grid a{background:#fff;border-radius:16px;padding:12px 4px;text-align:center;font-size:12px;font-weight:600}
  .m-grid img{width:26px;height:26px;margin:0 auto 6px}
  .hero{padding:36px 0 18px}
  .h1{font-size:28px}
  .sub{font-size:13px;margin-top:6px}
  .grid4{grid-template-columns:1fr 1fr;gap:12px}
  .big{gap:12px}
  .bc{padding:18px}
  .bc .ic{width:52px;height:52px}
  .bc .ic img{width:30px;height:30px}
  .bc h3{font-size:17px}

  /* 工具页：上预览，下设置，底部按钮固定 */
  body[data-page=tool]{padding-bottom:0}
  body[data-page=tool] .tabbar{display:none}
  .view-tool{height:auto;min-height:0}
  .tool{flex-direction:column;height:auto}
  .tool-main{padding:14px 14px 0;gap:10px}
  .tool-bar{flex-wrap:wrap;gap:8px}
  .tool-bar .back{display:flex;width:34px;height:34px;align-items:center;justify-content:center;font-size:26px;color:var(--text2);margin-left:-6px}
  .tool-bar h1{font-size:20px}
  .file-chip{order:5;flex-basis:100%;max-width:100%;background:transparent;padding:0 2px;color:var(--hint)}
  .stage{height:62vh;min-height:360px;flex:none;border-radius:18px}
  .compare{gap:8px;padding:12px 10px 0}
  .compare .sheet-a{display:none}
  .single{padding:12px 10px 0}
  .panel{width:auto;border-left:0;background:transparent}
  .panel-settings{padding:14px;overflow:visible}
  .panel .trial,.panel .result{margin:0 14px}
  .panel>.panel-btns,.result-btns{position:sticky;bottom:0;margin:0!important;padding:12px 14px calc(12px + env(safe-area-inset-bottom));background:#F2F2F7;z-index:5}
  .result{margin-bottom:14px!important;background:#fff}
  .result-btns{position:static;padding:0;background:transparent}
  .sw{background:#fff}
  .impose-field select,.impose-field input{min-width:140px;max-width:180px}
  .seg button,.chips button{background:#fff}
  .stepper{background:#fff}
  .detect{background:#fff}
  .merge-tool .tool-main{padding-bottom:14px}
  .merge-tool .tool-bar .merge-add{margin-left:auto}
  .merge-workspace{display:flex;flex-direction:column;gap:12px}
  .merge-sources,.merge-pages{min-height:auto;overflow:visible}
  .merge-source-list,.merge-page-list{overflow:visible;max-height:none}
  .merge-pages{max-height:56vh;overflow:auto}
  .merge-preview{display:none}
  .merge-panel{background:#F2F2F7}
  .merge-page-actions i{width:29px;height:29px}
  .member .plans{grid-template-columns:1fr;gap:12px}
  .plan{padding:18px 20px;display:grid;grid-template-columns:1fr auto;align-items:center;column-gap:12px}
  .plan h4{grid-column:1}
  .plan .price{grid-column:2;grid-row:1/3;font-size:30px;margin:0}
  .plan p{grid-column:1}
  .pay-row{position:sticky;bottom:calc(64px + env(safe-area-inset-bottom));background:#F2F2F7;margin:0;padding:14px 0;flex-direction:column;align-items:stretch;gap:8px;text-align:center;z-index:4}
  .pay-btn{width:100%}
  .feat{grid-template-columns:1fr 1fr;padding:18px 20px;margin-top:8px}
  .me{padding-top:44px}
  #toast{bottom:110px}
}
@media (max-width:420px){
  .m-grid a{font-size:11.5px}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation-duration:.01ms!important}}
