/* 样式复刻自 公众号文章系统 管理后台（src/styles.css），仅保留本项目用到的规则；末尾为本项目新增部分 */
:root{font-family:'Manrope','Noto Sans SC','PingFang SC','Microsoft YaHei',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:#1b2535;background:#f5f7fb;font-synthesis:none;text-rendering:optimizeLegibility;--ink:#1b2535;--muted:#7a8596;--line:#e7ebf2;--surface:#fff;--blue:#5667e8;--navy:#172037;--green:#26a269;--orange:#e68b4c;--shadow:0 5px 24px rgba(29,47,84,.05)}
*{box-sizing:border-box}
body{margin:0;min-width:320px;background:#f5f7fb}
.icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto}
.icon svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.button,.icon-button,.nav-item,.text-button,.tiny-button,.row-more,.page-number,.page-arrow,.quick-step,.new-category-card{border:0;background:transparent;font:inherit;cursor:pointer}
.button{display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 15px;border-radius:8px;font-size:13px;font-weight:700;white-space:nowrap;transition:.2s ease}
.button.primary{color:#fff;background:var(--blue);box-shadow:0 3px 8px rgba(86,103,232,.22)}
.button.primary:hover{background:#4758d5;transform:translateY(-1px)}
.button.secondary{color:#4758d5;background:#e9edff}
.button.ghost{color:#566276;background:#fff;border:1px solid #e1e6ef}
.button.ghost:hover{border-color:#bbc5de;color:#3f4fba;background:#f8f9fd}
.icon-button{width:34px;height:34px;border-radius:7px;display:inline-flex;align-items:center;justify-content:center;color:#7e8899;transition:.2s}
.icon-button:hover{color:#465266;background:#f0f3f8}
.sidebar{width:248px;position:fixed;inset:0 auto 0 0;z-index:20;display:flex;flex-direction:column;background:#172037;color:#aeb7ca;padding:25px 15px 18px}
.brand{height:42px;display:flex;align-items:center;gap:11px;padding:0 10px;margin-bottom:27px;color:#fff}
.brand strong{font-size:17px;display:block;line-height:1.2;letter-spacing:.02em}
.brand small{display:block;font-family:'DM Mono',monospace;font-size:7px;letter-spacing:.15em;color:#77829c;margin-top:4px}
.brand-mark{width:28px;height:28px;border-radius:8px;background:#6575ee;display:grid;grid-template-columns:repeat(3,4px);gap:3px;align-content:center;justify-content:center;transform:rotate(-3deg)}
.brand-mark span{display:block;width:4px;border-radius:3px;background:#fff}
.brand-mark span:nth-child(1){height:10px;opacity:.66}
.brand-mark span:nth-child(2){height:15px}
.brand-mark span:nth-child(3){height:8px;opacity:.8}
.sidebar-close{display:none;margin-left:auto;color:#aeb7ca}
.nav-label{font-family:'DM Mono',monospace;color:#687590;letter-spacing:.09em;font-size:10px;margin:0 10px 9px;text-transform:uppercase}
.main-nav{display:flex;flex-direction:column;gap:3px}
.nav-item{display:flex;align-items:center;gap:12px;color:#9ea9be;width:100%;height:43px;padding:0 12px;border-radius:8px;text-align:left;font-size:13px;transition:.2s}
.nav-item .icon{width:17px;height:17px}
.nav-item:hover{background:#222e49;color:#dce3f5}
.nav-item.active{background:#e4e8ff;color:#4e60da;font-weight:700}
.nav-item em{font-style:normal;font-family:'DM Mono',monospace;font-size:10px;color:#7884a0;margin-left:auto}
.main-shell{margin-left:248px;min-height:100vh}
.topbar{height:66px;border-bottom:1px solid #e7ebf2;background:rgba(255,255,255,.72);display:flex;align-items:center;padding:0 42px;justify-content:space-between}
.breadcrumbs{font-size:12px;color:#a0a7b5}
.breadcrumbs strong{color:#343f50;font-weight:700}
.crumb-separator{margin:0 10px;color:#c2c8d2}
.topbar-right{display:flex;align-items:center;gap:8px;color:#7b8697;font-size:11px}
.online-dot{width:6px;height:6px;border-radius:100%;background:#42c58a;box-shadow:0 0 0 3px #e4f6ed}
.topbar-status{margin-left:2px}
.topbar-divider{height:20px;width:1px;background:#e9edf3;margin:0 13px}
.user-avatar,.mini-avatar{width:29px;height:29px;border-radius:8px;display:grid;place-items:center;color:#fff;background:linear-gradient(145deg,#6675e9,#a0a9f5);font-size:12px;font-weight:700}
.user-name{font-size:12px;color:#4f5969;font-weight:600}
.mobile-menu{display:none}
.page-wrap{max-width:1390px;padding:36px 43px 68px;margin:0 auto}
.page-header{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:29px}
.eyebrow{font-family:'DM Mono',monospace;color:#8490a3;font-size:10px;letter-spacing:.12em;text-transform:uppercase;margin-bottom:10px}
.page-header h1{font-size:28px;letter-spacing:-.045em;line-height:1.2;margin:0;color:#202c3f}
.page-header p{color:#7c8798;font-size:12px;margin:8px 0 0}
.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:22px}
.stat-card{background:#fff;border:1px solid #e9edf4;border-radius:12px;padding:17px 18px 16px;position:relative;min-height:138px}
.stat-icon{width:33px;height:33px;border-radius:9px;display:grid;place-items:center;margin-bottom:13px}
.stat-icon.blue{color:#5365db;background:#e9ecff}
.stat-icon.orange{color:#dd833f;background:#fff0e5}
.stat-icon.purple{color:#8961d3;background:#f1eaff}
.stat-icon.green{color:#2b9f71;background:#e5f8ef}
.stat-label{font-size:11px;color:#8290a4;margin-bottom:4px}
.stat-card>strong{display:block;color:#263248;font-size:25px;letter-spacing:-.04em;line-height:1.1}
.stat-delta{display:block;color:#8b96a7;font-size:10px;margin-top:7px}
.stat-delta.positive{color:#33a675}
.panel{background:#fff;border:1px solid #e9edf4;border-radius:12px;box-shadow:var(--shadow)}
.panel-heading{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:17px}
.panel-heading h2{font-size:15px;color:#293448;margin:0}
.panel-heading p{font-size:11px;color:#929bab;margin:6px 0 0}
.text-button{display:inline-flex;align-items:center;gap:6px;color:#5969dc;font-size:11px;font-weight:700;white-space:nowrap}
.text-button:hover{color:#3448c3}
.status-dot{font-size:10px;color:#46a577;white-space:nowrap}
.status-dot:before{content:'';width:5px;height:5px;background:#4bc18a;border-radius:100%;display:inline-block;margin-right:5px;vertical-align:1px}
.status-dot.draft{color:#d99342}
.status-dot.draft:before{background:#e7a557}
.toolbar{display:flex;align-items:center;gap:10px;margin-bottom:17px}
.search-input{height:39px;width:280px;background:#fff;border:1px solid #e1e6ef;border-radius:8px;display:flex;align-items:center;gap:8px;padding:0 12px;color:#8a95a7}
.search-input input{border:0;outline:0;flex:1;color:#354155;font:inherit;font-size:12px;min-width:0;background:transparent}
.search-input input::placeholder{color:#a5adba}
.select-input{height:39px;border:1px solid #e1e6ef;border-radius:8px;background:#fff;color:#576375;padding:0 30px 0 12px;font:inherit;font-size:12px;outline:none}
.toolbar .select-input{min-width:140px}
.table-panel{overflow:hidden}
.table-wrap{overflow:auto}
.data-table{border-collapse:collapse;min-width:780px;width:100%}
.data-table th{height:46px;padding:0 18px;text-align:left;color:#8d98aa;font-size:10px;font-weight:600;border-bottom:1px solid #edf0f4;white-space:nowrap}
.data-table td{height:69px;padding:0 18px;border-bottom:1px solid #f0f2f6;color:#586476;font-size:11px;white-space:nowrap}
.data-table tbody tr{cursor:pointer;transition:.15s}
.data-table tbody tr:hover{background:#fbfcfe}
.data-table tbody tr:last-child td{border-bottom:0}
.status-tag{display:inline-flex;align-items:center;gap:5px;color:#3b9e71;font-size:10px}
.status-tag i{width:5px;height:5px;border-radius:50%;background:#47bd86}
.status-tag.draft{color:#d58c40}
.status-tag.draft i{background:#e5a35b}
.muted-text{color:#939eaf!important}
.table-footer{height:58px;border-top:1px solid #edf0f4;padding:0 18px;display:flex;align-items:center;justify-content:space-between;color:#9aa4b3;font-size:10px}
.pagination{display:flex;align-items:center;gap:5px;color:#a8b0bd}
.page-number,.page-arrow{width:26px;height:26px;border-radius:6px;color:#7f8a9c;font-size:10px}
.page-number:hover,.page-number.active{background:#ebeeff;color:#5364dd;font-weight:700}
.page-arrow{display:grid;place-items:center;border:1px solid #e5e9ef;transform:rotate(0deg)}
.page-arrow .icon{transform:rotate(180deg)}
.empty-state{height:280px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#8b95a5;gap:8px}
.empty-state strong{font-size:13px;color:#566276}
.empty-state span{font-size:11px}
.empty-icon{width:43px;height:43px;border-radius:11px;background:#f0f2ff;color:#6575de;display:grid;place-items:center;margin-bottom:2px}
.notice-strip{display:flex;align-items:center;gap:11px;background:#eef1ff;border:1px solid #e2e6ff;border-radius:10px;padding:13px 15px;margin-bottom:19px;color:#596578}
.notice-icon{width:29px;height:29px;border-radius:8px;display:grid;place-items:center;background:#dce2ff;color:#596ce1}
.notice-strip>div:nth-child(2){display:flex;flex-direction:column;flex:1;gap:4px}
.notice-strip strong{font-size:11px;color:#4453b2}
.notice-strip span{font-size:10px;color:#7d88a3}
.key-table{min-width:960px}
.key-name{display:flex;align-items:center;gap:10px}
.key-name>div{display:flex;flex-direction:column;gap:4px}
.key-name strong{font-size:11px;color:#3f4b60}
.key-name small{font-size:9px;color:#a1a9b6}
.key-badge{width:30px;height:30px;border-radius:8px;background:#f1f3ff;color:#6675dd;display:grid;place-items:center}
.key-value{display:flex;align-items:center;gap:3px}
.key-value code{font-family:'DM Mono',monospace;color:#5b6679;font-size:10px;max-width:225px;overflow:hidden;text-overflow:ellipsis}
.tiny-button{display:inline-flex;align-items:center;justify-content:center;width:27px;height:27px;border-radius:6px;color:#a0a9b7}
.tiny-button:hover{background:#f0f2ff;color:#5365dc}
.tiny-button.danger:hover{background:#fff0f0;color:#dc6d6d}
.row-actions{display:flex;gap:2px}
.modal-layer{position:fixed;z-index:100;inset:0;background:rgba(18,28,51,.5);display:grid;place-items:center;padding:20px;animation:fadeIn .2s ease}
.dialog{width:min(100%,470px);background:#fff;border-radius:14px;box-shadow:0 18px 70px rgba(15,28,58,.23);padding:25px}
.dialog-head{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;margin-bottom:24px}
.dialog-head h2{font-size:18px;color:#26334a;margin:0 0 8px;letter-spacing:-.03em}
.dialog-head p{font-size:11px;line-height:1.6;color:#8994a4;margin:0;max-width:365px}
.form-label{display:block;color:#5e6a7e;font-size:11px;font-weight:700;margin-bottom:15px}
.form-label>span,.form-label>small{float:right;font-size:9px;color:#bd8791;font-weight:400}
.form-label>small{color:#a0a8b5}
.form-label input,.form-label textarea,.form-label select{display:block;width:100%;margin-top:7px;border:1px solid #dfe5ee;border-radius:7px;background:#fbfcfe;padding:0 11px;height:40px;color:#435067;font:inherit;font-size:12px;outline:none;transition:.2s}
.form-label textarea{height:auto;padding:10px 11px;resize:vertical;line-height:1.5}
.form-label select{appearance:auto}
.form-label input:focus,.form-label textarea:focus,.form-label select:focus{border-color:#7d8aec;box-shadow:0 0 0 3px #edf0ff;background:#fff}
.form-error{background:#fff1f1;border-radius:7px;color:#cc6868;padding:9px 11px;font-size:10px;margin:0 0 14px}
.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:24px}
.dialog-actions .full{width:100%;justify-content:center}
.created-key-card{border:1px solid #e2e7f5;background:#f6f8ff;border-radius:10px;padding:15px}
.created-key-label{font-size:10px;color:#7783a6;margin-bottom:11px}
.created-key-card code{display:block;font-family:'DM Mono',monospace;color:#47567e;font-size:11px;line-height:1.6;word-break:break-all;margin-bottom:14px}
.created-key-card .button{height:34px;font-size:11px}
.created-key-note{display:flex;align-items:flex-start;gap:7px;color:#8d97a8;font-size:10px;line-height:1.5;margin-top:13px}
.created-key-note .icon{color:#48ad7c;margin-top:1px}
.toast{position:fixed;z-index:200;left:50%;bottom:28px;transform:translateX(-50%);display:flex;align-items:center;gap:7px;padding:11px 15px;background:#293550;color:#fff;border-radius:8px;font-size:11px;box-shadow:0 8px 25px rgba(24,37,67,.2);animation:toastIn .25s ease}
.toast .icon{color:#7be1ad}
.sidebar-backdrop{display:none}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
@keyframes slideIn{from{transform:translateX(20px);opacity:.5}to{transform:translateX(0);opacity:1}}
@keyframes toastIn{from{transform:translate(-50%,15px);opacity:0}to{transform:translate(-50%,0);opacity:1}}
@media(max-width:1000px){.page-wrap{padding:30px 25px 60px}.topbar{padding:0 25px}.hero-visual{right:20px;opacity:.85}.hero-copy{z-index:3}.category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.docs-layout{gap:25px}.stats-grid{gap:10px}.stat-card{padding-left:14px;padding-right:14px}}
@media(max-width:760px){.sidebar{transform:translateX(-100%);transition:transform .25s ease;box-shadow:12px 0 40px rgba(18,31,60,.2)}.sidebar.open{transform:translateX(0)}.sidebar-close{display:inline-flex}.sidebar-backdrop.show{display:block;position:fixed;inset:0;z-index:19;background:rgba(16,25,47,.38)}.main-shell{margin-left:0}.topbar{height:60px;padding:0 17px}.mobile-menu{display:inline-flex;margin-right:8px}.breadcrumbs{flex:1}.topbar-status,.topbar-divider,.user-name{display:none}.page-wrap{padding:25px 16px 50px}.page-header{align-items:flex-start;flex-direction:column;gap:17px;margin-bottom:23px}.page-header .button{align-self:flex-start}.page-header h1{font-size:25px}.hero-banner{height:auto;min-height:295px;padding:27px 24px;margin-bottom:17px}.hero-copy h2{font-size:23px}.hero-visual{right:-30px;top:103px;opacity:.5;transform:scale(.82);transform-origin:right bottom}.stats-grid{grid-template-columns:repeat(2,1fr);gap:9px}.stat-card{min-height:125px;padding:14px}.stat-icon{margin-bottom:10px}.stat-card>strong{font-size:22px}.overview-columns{grid-template-columns:1fr;gap:12px}.recent-panel,.quick-panel{padding:18px 16px}.recent-item{gap:8px}.recent-info strong{font-size:11px}.recent-info div{font-size:9px}.toolbar{flex-wrap:wrap}.search-input{width:100%}.toolbar .select-input{flex:1}.toolbar .button{height:39px}.data-table th,.data-table td{padding:0 12px}.table-footer{padding:0 12px}.pagination .page-number:nth-of-type(2),.pagination .page-number:nth-of-type(3){display:none}.notice-strip{align-items:flex-start}.notice-strip .text-button{display:none}.category-grid{grid-template-columns:1fr}.key-summary{align-items:flex-start;gap:13px;flex-direction:column}.docs-layout{display:block}.docs-nav{display:none}.docs-content{max-width:none}.doc-section{grid-template-columns:28px 1fr;gap:7px}.doc-select-wrap{align-items:flex-start;flex-direction:column;gap:7px}.doc-select-wrap .select-input{width:100%}.field-row{padding:9px 10px;flex-wrap:wrap;gap:6px}.field-row code{width:90px}.field-row>span:last-child{width:100%;padding-left:99px;margin-top:-3px}.dialog{padding:21px 18px}.article-drawer{width:100%}.drawer-cover{height:130px;margin:19px 16px 0}.drawer-body{padding:18px 16px 35px}.drawer-head{padding:0 16px}.drawer-body h2{font-size:21px}}
.toast.error{background:#9d3f52}
.toast.error .icon{color:#ffd2d9}
.loading-state{min-height:420px;display:flex;align-items:center;justify-content:center;gap:10px;color:#8b96a7;font-size:12px}
.loading-spinner{width:18px;height:18px;border:2px solid #dfe4f6;border-top-color:#6475df;border-radius:50%;animation:spin .75s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.tiny-button:disabled{opacity:.55;cursor:wait}
.data-table tbody tr:focus-visible{outline:2px solid #7382e8;outline-offset:-2px;background:#fbfcff}
.tiny-button:focus-visible,.row-more:focus-visible,.button:focus-visible,.text-button:focus-visible,.page-arrow:focus-visible,.nav-item:focus-visible,.quick-step:focus-visible,.new-category-card:focus-visible{outline:2px solid #7382e8;outline-offset:2px}
.login-page{min-height:100vh;display:grid;place-items:center;padding:24px;background:#f5f7fb}
.login-card{width:min(100%,380px);padding:32px;background:#fff;border:1px solid #e7ebf2;border-radius:14px;box-shadow:0 12px 40px rgba(29,47,84,.08)}
.login-brand{display:flex;align-items:center;gap:11px;margin-bottom:30px;color:#1b2535}
.login-brand strong{font-size:17px;display:block;line-height:1.2}
.login-brand small{display:block;font-family:'DM Mono',monospace;font-size:7px;letter-spacing:.15em;color:#77829c;margin-top:4px}
.login-card h1{margin:0;color:#202c3f;font-size:24px;letter-spacing:-.04em}
.login-card>p{margin:9px 0 24px;color:#8994a4;font-size:12px}
.login-field{display:block;margin-bottom:16px;color:#5e6a7e;font-size:11px;font-weight:700}
.login-field span{display:block;margin-bottom:7px}
.login-field input{width:100%;height:42px;border:1px solid #dfe5ee;border-radius:7px;background:#fbfcfe;padding:0 11px;color:#435067;font:inherit;font-size:12px;outline:0}
.login-field input:focus{border-color:#7d8aec;box-shadow:0 0 0 3px #edf0ff;background:#fff}
.login-error{padding:9px 11px;margin:0 0 14px;border-radius:7px;background:#fff1f1;color:#cc6868;font-size:10px}
.login-submit{width:100%;justify-content:center;margin-top:8px}
.logout-button{border:0;background:transparent;color:#7b8697;font:inherit;font-size:11px;cursor:pointer;padding:4px 0 4px 7px}
.logout-button:hover{color:#4f5fd4}
@media(max-width:760px){.login-card{padding:25px 20px}}
.button.compact{height:32px;padding:0 11px;font-size:11px}
.table-article{display:flex;align-items:center;gap:10px;min-width:300px}
.table-article>div:last-child{min-width:0}
.table-article strong{display:block;max-width:285px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#354054;font-size:12px}
.table-article small{display:block;max-width:285px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#9aa3b1;margin-top:4px;font-size:10px}
.category-pill{color:#5b68ae;background:#f0f2ff;border-radius:5px;padding:5px 8px;font-size:10px}
.drawer-layer{position:fixed;inset:0;z-index:90;background:rgba(18,28,51,.33);animation:fadeIn .2s ease}
.article-drawer{position:absolute;right:0;top:0;bottom:0;width:min(100%,520px);background:#fff;box-shadow:-15px 0 35px rgba(19,33,62,.13);overflow:auto;animation:slideIn .25s ease}
.drawer-head{height:66px;display:flex;align-items:center;justify-content:space-between;padding:0 25px;border-bottom:1px solid #edf0f4}
.drawer-head .button{font-size:11px;padding:0 11px}
.drawer-body{padding:22px 25px 40px}
.drawer-meta{display:flex;align-items:center;gap:9px}
.drawer-body h2{font-size:24px;line-height:1.4;letter-spacing:-.04em;color:#29364b;margin:15px 0 11px}
.drawer-summary{font-size:12px;color:#7d8999;line-height:1.7;margin:0}
.drawer-divider{height:1px;background:#edf0f4;margin:24px 0}
.drawer-body h3{font-size:13px;color:#445066;margin:0 0 15px}
.drawer-head-actions{display:flex;align-items:center;gap:6px}
.drawer-head-actions .button.compact{padding:0 8px;font-size:10px}
/* ===== 本项目新增 ===== */
[v-cloak]{display:none}
.page-arrow .icon{transform:none}
.auth-loading{min-height:100vh;display:flex;align-items:center;justify-content:center;gap:10px;color:#8b96a7;font-size:12px}
.brand-mark.craft{display:grid;place-items:center;grid-template-columns:none;transform:rotate(-3deg)}
.brand-mark.craft .icon{width:16px;height:16px;color:#fff}
.cover-thumb{width:96px;height:43px;border-radius:7px;object-fit:cover;background:#f1f3f7;display:block;flex:0 0 auto}
.data-table td .cell-actions{display:flex;gap:2px;justify-content:flex-end}
.status-tag.offline{color:#939eaf}.status-tag.offline i{background:#c4cad4}
.button.danger{color:#cc5f5f;background:#fff1f1}.button.danger:hover{background:#ffe4e4}
.button:disabled{opacity:.55;cursor:not-allowed;transform:none}
.page-arrow:disabled{opacity:.45;cursor:not-allowed}
.province-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:12px}
.province-card{background:#fff;border:1px solid #e9edf4;border-radius:12px;padding:15px 16px;display:flex;align-items:center;justify-content:space-between;gap:10px;transition:.2s}
.province-card:hover{border-color:#d5dbf5;box-shadow:var(--shadow)}
.province-card strong{display:block;font-size:14px;color:#263248}
.province-card small{display:block;font-size:10px;color:#939eaf;margin-top:4px;font-family:'DM Mono',monospace}
.province-card.off strong{color:#a0a9b7}
.switch{width:36px;height:20px;border-radius:99px;background:#d7dce5;position:relative;cursor:pointer;transition:.2s;flex:0 0 auto;border:0;padding:0}
.switch:after{content:'';position:absolute;width:16px;height:16px;border-radius:50%;background:#fff;top:2px;left:2px;transition:.2s;box-shadow:0 1px 3px rgba(0,0,0,.15)}
.switch.on{background:var(--blue)}.switch.on:after{left:18px}
.overview-panel{padding:20px 22px}
.link-list{display:flex;flex-direction:column}
.link-row{display:flex;align-items:center;gap:12px;padding:13px 0;border-top:1px solid #f0f2f6;font-size:12px;color:#586476}
.link-row:first-child{border-top:0}
.link-row>.key-badge{flex:0 0 auto}
.link-row>div{flex:1;min-width:0}
.link-row strong{display:block;color:#354054;font-size:12px}
.link-row code{display:block;font-family:'DM Mono',monospace;font-size:10px;color:#8a95a7;margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.drawer-cover-img{display:block;width:calc(100% - 50px);margin:22px 25px 0;border-radius:10px;aspect-ratio:20/9;object-fit:cover;background:#f1f3f7}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.step-list{display:flex;flex-direction:column;gap:18px}
.step-item{display:grid;grid-template-columns:26px 1fr;gap:11px}
.step-num{width:24px;height:24px;border-radius:50%;background:#e9ecff;color:#5365db;display:grid;place-items:center;font-size:11px;font-weight:800}
.step-item strong{display:block;color:#354054;font-size:13px;margin-top:2px}
.step-item p{margin:5px 0 0;font-size:12px;color:#6f7b8d;line-height:1.7;white-space:pre-wrap}
.step-item img{display:block;width:100%;max-width:300px;border-radius:9px;margin-top:10px;border:1px solid #edf0f4;background:#f6f8fb}
.step-type{display:inline-block;margin-top:8px;font-size:10px;color:#5b68ae;background:#f0f2ff;border-radius:5px;padding:3px 7px}
.step-ref{display:block;font-size:10px;color:#a0a8b5;margin-top:5px;line-height:1.5}
.key-plain{font-family:'DM Mono',monospace;font-size:10px;color:#5b6679}
@media(max-width:760px){.cover-thumb{width:72px;height:32px}.form-row{grid-template-columns:1fr}.drawer-cover-img{width:calc(100% - 32px);margin:18px 16px 0}.province-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* 写入规则 */
.segmented{display:inline-flex;gap:4px;padding:4px;border-radius:12px;background:#fff;border:1px solid var(--line, #e7eaf0);margin-bottom:16px}
.segmented button{border:0;background:transparent;padding:8px 18px;border-radius:9px;font:inherit;font-weight:600;color:#6b7280;cursor:pointer}
.segmented button.active{background:#111318;color:#fff}
.rule-links{margin-bottom:16px}
.rule-layout{display:grid;grid-template-columns:300px 1fr;gap:16px;align-items:start}
.rule-nav{padding:12px;max-height:calc(100vh - 220px);overflow:auto;position:sticky;top:16px}
.rule-group{margin-bottom:12px}
.rule-group-head{display:flex;align-items:center;justify-content:space-between;font-size:12px;font-weight:700;color:#8a8f98;padding:6px 8px}
.rule-item{display:flex;gap:8px;align-items:baseline;width:100%;text-align:left;border:0;background:transparent;padding:8px;border-radius:8px;font:inherit;font-size:13px;color:#1f2330;cursor:pointer}
.rule-item code{flex:none;font-size:11px;color:#8a8f98;min-width:34px}
.rule-item span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rule-item:hover{background:#f4f5f8}
.rule-item.active{background:#fff1eb;color:#d9480f;font-weight:600}
.rule-editor{padding:20px}
.rule-view-head{display:flex;gap:12px;align-items:flex-start;margin-bottom:14px}.rule-view-head>div{flex:1}.rule-view-head h2{margin:0;font-size:17px}.rule-view-head p{margin:4px 0 0;font-size:12px;color:#8a8f98}.rule-view-head code{font-size:12px;color:#8a8f98;padding-top:4px}
.rule-view{margin:0;white-space:pre-wrap;word-break:break-word;background:#fafbfc;color:#1f2330;min-height:200px;max-height:calc(100vh - 300px);overflow:auto}
.rule-text{width:100%;min-height:440px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:13px;line-height:1.65;padding:12px;border-radius:10px;border:1px solid #e3e6ec;resize:vertical;box-sizing:border-box}
.dialog.wide{width:min(880px,94vw)}
.danger-text{color:#dc2626}
.button.full{width:100%;justify-content:center}
@media (max-width:900px){.rule-layout{grid-template-columns:1fr}.rule-nav{position:static;max-height:none}}

/* 公众号文章 */
.wx-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:18px}
.wx-stat{text-align:left;background:#fff;border:1px solid #e9edf4;border-radius:12px;padding:15px 16px;font:inherit;cursor:pointer;transition:.2s}
.wx-stat:hover{border-color:#cfd6f3;box-shadow:var(--shadow)}
.wx-stat span{display:block;font-size:11px;color:#8290a4}
.wx-stat strong{display:block;font-size:24px;color:#263248;margin:6px 0 4px;letter-spacing:-.03em}
.wx-stat em{display:block;font-style:normal;font-size:10px;color:#9aa4b3}
.wx-stat em.warn{color:#d58c40}
.wx-stat.alert{border-color:#f3c7c7;background:#fffafa}
.wx-stat.alert strong{color:#cc5f5f}
.seg-badge{font-style:normal;margin-left:6px;background:#e5484d;color:#fff;border-radius:99px;padding:0 6px;font-size:10px}
.wx-guide{padding:26px 28px}
.wx-guide h2{margin:0 0 18px;font-size:16px;color:#293448}
.wx-guide ol{list-style:none;margin:0 0 22px;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.wx-guide li{display:flex;gap:11px;background:#f7f8fc;border-radius:10px;padding:14px}
.wx-guide li b{flex:0 0 24px;height:24px;border-radius:50%;background:#e9ecff;color:#5365db;display:grid;place-items:center;font-size:12px}
.wx-guide li strong{display:block;font-size:13px;color:#354054;margin-bottom:5px}
.wx-guide li span{font-size:11px;line-height:1.6;color:#7d8999}
.wx-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px;font-size:12px;color:#7c8798}
.admin-card{padding:18px 20px;margin-bottom:14px}
.admin-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.admin-title{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.admin-title strong{font-size:15px;color:#263248}
.admin-title small{font-size:10px;color:#a0a8b5}
.admin-actions{display:flex;align-items:center;gap:8px}
.admin-actions .button{height:34px;font-size:12px}
.admin-error{margin:12px 0 0;padding:9px 12px;border-radius:8px;background:#fff4ec;color:#b2602b;font-size:11px;line-height:1.6}
.acc-list{margin-top:14px;border-top:1px solid #f0f2f6}
.acc-row{display:flex;align-items:center;gap:16px;padding:12px 2px;border-bottom:1px solid #f0f2f6}
.acc-row:last-child{border-bottom:0}
.acc-name{flex:1;min-width:0}
.acc-name strong{display:block;font-size:13px;color:#354054}
.acc-name small{display:block;font-size:10px;color:#9aa4b3;margin-top:3px}
.acc-row.off .acc-name strong{color:#a0a9b7}
.quota{display:flex;align-items:center;gap:6px;font-size:11px;color:#7d8999}
.quota button{width:24px;height:24px;border:1px solid #e1e6ef;border-radius:6px;background:#fff;color:#566276;cursor:pointer;font:inherit}
.quota button:hover{border-color:#bbc5de}
.quota b{min-width:22px;text-align:center;color:#354054}
.quota em{font-style:normal;color:#a0a8b5;margin-left:4px}
.acc-empty{margin-top:14px;padding:16px;border-radius:9px;background:#f7f8fc;color:#8b95a5;font-size:12px;text-align:center}
.chips{display:flex;align-items:center;gap:8px;margin-bottom:14px;flex-wrap:wrap}
.chips button{border:1px solid #e1e6ef;background:#fff;border-radius:99px;padding:6px 14px;font:inherit;font-size:12px;color:#566276;cursor:pointer}
.chips button.active{background:#111318;border-color:#111318;color:#fff}
.pub-mode{margin:12px 0 10px}
.verify-note{font-size:12px;line-height:1.7;color:#6f7b8e;margin:14px 0 0}
.chips button i{font-style:normal;margin-left:5px;background:#e5484d;color:#fff;border-radius:99px;padding:0 6px;font-size:10px}
.auto-note{font-size:11px;margin-left:4px}
.cell-title{display:block;max-width:280px;overflow:hidden;text-overflow:ellipsis;color:#354054;font-size:12px}
.data-table td.cell-wrap{white-space:normal;line-height:1.6;min-width:220px;max-width:380px}
.link-btn{border:0;background:transparent;font:inherit;font-size:12px;font-weight:600;color:#5969dc;cursor:pointer;padding:4px 6px}
.link-btn:hover{color:#3448c3}
.link-btn.danger{color:#cc5f5f}
.status-tag.t-warn{color:#d58c40}.status-tag.t-warn i{background:#e5a35b}
.status-tag.t-off{color:#939eaf}.status-tag.t-off i{background:#c4cad4}
.status-tag.t-err{color:#cc5f5f}.status-tag.t-err i{background:#e07070}
.status-tag.t-run{color:#5365db}.status-tag.t-run i{background:#6f7fe6}
.wx-drawer{width:min(100%,560px)}
.wx-drawer .drawer-head-actions .select-input{height:32px}
.pub-box{border:1px solid #e2e7f5;background:#f7f8ff;border-radius:12px;padding:16px;margin-bottom:22px}
.pub-box h3{margin:0 0 12px}
.pub-opt{display:flex;align-items:flex-start;gap:10px;padding:10px 12px;background:#fff;border:1px solid #e7ebf2;border-radius:9px;margin-bottom:8px;cursor:pointer}
.pub-opt input{margin-top:3px}
.pub-opt strong{display:block;font-size:13px;color:#354054}
.pub-opt small{display:block;font-size:10px;color:#9aa4b3;margin-top:3px}
.pub-opt.dis{opacity:.6;cursor:not-allowed}
.pub-box .button.full{margin-top:6px}
.pub-hint{margin:10px 0 0;font-size:11px;line-height:1.6;color:#7d8999}
.pub-hint.warn{color:#b2602b}
.phone{max-width:400px;margin:0 auto;border:1px solid #e7ebf2;border-radius:16px;overflow:hidden;background:#fff}
.phone>img{display:block;width:100%;aspect-ratio:20/9;object-fit:cover}
.phone-body{padding:14px 0}
.phone-body img{max-width:100%}
@media(max-width:900px){.wx-stats{grid-template-columns:repeat(2,1fr)}.wx-guide ol{grid-template-columns:1fr}}
@media(max-width:760px){.acc-row{flex-wrap:wrap}.quota{order:3;width:100%}.wx-bar{flex-direction:column;align-items:flex-start}}
.cover-none{display:grid;place-items:center;font-size:10px;color:#a0a8b5}
.acc-sec-title{margin:16px 0 0;font-size:12px;font-weight:700;color:#445066}
.acc-sec-title span{margin-left:6px;font-weight:600;color:#5365db;background:#eef0ff;border-radius:99px;padding:1px 7px;font-size:10px}
.acc-list{margin-top:8px}
.acc-fold{margin-top:14px;border:1px solid #edf0f4;border-radius:10px;background:#fafbfd}
.acc-fold-head{display:flex;align-items:center;gap:8px;width:100%;border:0;background:transparent;font:inherit;font-size:12px;font-weight:600;color:#566276;padding:11px 14px;cursor:pointer;text-align:left}
.acc-fold-head .icon{transition:transform .2s;color:#9aa4b3}
.acc-fold.open .acc-fold-head .icon{transform:rotate(90deg)}
.acc-fold-head small{font-weight:400;color:#a0a8b5;font-size:10px}
.acc-fold-body{padding:0 14px 10px;max-height:360px;overflow:auto}
.acc-search{width:100%;height:34px;margin-bottom:6px}
.acc-idle{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 2px;border-top:1px solid #f0f2f6;font-size:12px;color:#6b7686}
.acc-idle:first-of-type{border-top:0}
.acc-none{padding:10px 2px;font-size:11px}
.add-acc{display:flex;align-items:center;gap:7px;width:100%;margin-top:12px;padding:11px 14px;border:1px dashed #cfd6ea;border-radius:10px;background:#fafbfd;color:#5365db;font:inherit;font-size:12px;font-weight:700;cursor:pointer}
.add-acc:hover{border-color:#9aa6e6;background:#f4f6ff}
.add-acc small{font-weight:400;color:#a0a8b5;font-size:10px;margin-left:4px}
.pick-search{width:100%;margin-bottom:10px}
.pick-list{max-height:340px;overflow:auto}
.dialog{max-height:calc(100vh - 40px);overflow:auto}
.pick-list{max-height:min(340px,calc(100vh - 330px));min-height:120px}
