/* ===== 转发网云托管 · 后台样式 ===== */
:root{
  --green:#10b981;--green-dark:#059669;--green-light:#d1fae5;
  --ink:#18231f;--muted:#7b8a85;--line:#e7ecea;--bg:#f4f7f6;--white:#fff;
  --red:#ef4444;--orange:#f59e0b;--blue:#3b82f6;--purple:#8b5cf6;--cyan:#06b6d4;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
html{-webkit-text-size-adjust:100%}
body{font-family:system-ui,-apple-system,"Segoe UI","Microsoft YaHei",sans-serif;color:var(--ink);background:var(--bg);font-size:14px;line-height:1.5;-webkit-font-smoothing:antialiased}
a{color:var(--green-dark);text-decoration:none}
a:hover{text-decoration:none;color:var(--green-dark)}
h1,h2,h3,h4{margin:0;line-height:1.3}
p{margin:0 0 12px}
code{font-family:Consolas,Monaco,monospace}
:focus-visible{outline:2px solid var(--green);outline-offset:2px}
::selection{background:#a7f3d0}

/* 布局 */
.app{display:flex;min-height:100vh}
.sidebar{width:180px;flex:none;background:linear-gradient(180deg,#0d1b15,#09130f);color:#d7e5df;display:flex;flex-direction:column;position:sticky;top:0;height:100vh;z-index:40;box-shadow:2px 0 14px rgba(0,0,0,.1)}
.brand{display:flex;align-items:center;justify-content:center;padding:20px 16px;border-bottom:1px solid rgba(255,255,255,.07)}
.brand>div{width:100%;text-align:center}
.brand-name{font-size:22px;font-weight:800;letter-spacing:2px;color:#fff;line-height:1.1;text-indent:2px}
.brand-sub{font-size:9px;letter-spacing:2px;color:#6ee7b7;margin-top:3px;white-space:nowrap;text-indent:2px}
.sidebar nav{display:flex;flex-direction:column;padding:10px 8px;flex:1;overflow-y:auto;gap:2px}
.sidebar nav a{display:flex;align-items:center;gap:11px;padding:11px 12px;border-radius:8px;color:#a8bbb3;font-weight:500;font-size:14px;border-left:3px solid transparent;transition:.15s}
.sidebar nav a>span{width:18px;text-align:center;font-size:16px;opacity:.9}
.sidebar nav a:hover{background:rgba(255,255,255,.06);color:#fff;text-decoration:none}
.sidebar nav a.on{background:linear-gradient(135deg,#34d399,#059669);color:#fff;border-left-color:#a7f3d0;box-shadow:0 4px 14px rgba(16,185,129,.3)}
.nav-sep{height:1px;background:rgba(255,255,255,.08);margin:8px 10px}
.sidebar-foot{padding:14px 16px;border-top:1px solid rgba(255,255,255,.07);text-align:center}
.sidebar-foot a{color:#8fa79d;font-size:13px}
.sidebar-foot a:hover{color:#fff}
.main{flex:1;min-width:0;display:flex;flex-direction:column}
.topbar{height:62px;flex:none;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:14px;padding:0 24px;position:sticky;top:0;z-index:20}
.crumb{font-weight:700;font-size:16px;display:flex;align-items:center;gap:8px;white-space:nowrap}
.crumb>span{color:var(--green);flex:none;width:18px;text-align:center}
.top-actions{display:flex;align-items:center;gap:12px}
.account-chip{display:flex;align-items:center;gap:7px;padding:4px 9px 4px 4px;border:1px solid var(--line);border-radius:999px;font-size:13px;max-width:190px;cursor:default}
.account-chip .avatar{width:28px;height:28px;border-radius:50%;background:linear-gradient(135deg,#34d399,#059669);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;flex:none}
.account-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.caret{color:#9ca3af;font-size:11px}
.content{padding:22px 24px 40px;max-width:1500px;width:100%;margin:0 auto}
.menu-btn{display:none;width:38px;height:38px;border:1px solid #d9e2de;background:#fff;border-radius:9px;cursor:pointer;flex:none;align-items:center;justify-content:center;padding:0}
.menu-bars{display:flex;flex-direction:column;justify-content:center;gap:4px;width:18px;height:18px}
.menu-bars i{display:block;width:18px;height:2px;background:#35423d;border-radius:2px;flex:none}
.sidebar-overlay{display:none;position:fixed;inset:0;background:rgba(5,20,14,.45);z-index:35;opacity:0;transition:opacity .2s}

/* 通用 */
.page-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:18px;flex-wrap:wrap}
.page-head h2{font-size:22px}
.page-head .muted{margin-top:3px}
.page-card-head{position:relative;display:flex;align-items:center;gap:10px;flex-wrap:wrap;background:#fff;border:1px solid var(--line);border-radius:12px;padding:16px 20px 16px 24px;margin-bottom:18px;box-shadow:inset 6px 0 0 var(--green),0 1px 3px rgba(15,23,42,.03);font-size:15px}
.page-card-head .back-link{color:var(--green-dark);font-weight:700}
.page-card-head .sep{color:#d6dedb}
.page-card-head .page-card-title{font-weight:700;font-size:17px}
.page-card-head .page-card-sub{color:var(--muted);font-size:13px}
.page-card-head .page-card-extra{margin-left:auto}
.page-card-head .page-card-hint{margin-left:auto;color:var(--red);font-size:13px;font-weight:600}
.muted{color:var(--muted);font-size:13px}
.section{background:#fff;border:1px solid var(--line);border-radius:12px;padding:20px;margin-bottom:18px;box-shadow:0 1px 3px rgba(15,23,42,.03)}
.section-title{display:flex;align-items:center;gap:9px;font-size:16px;font-weight:700;margin-bottom:16px}
.section-title::before{content:"";width:4px;height:17px;border-radius:3px;background:var(--green);flex:none}
.section-title .right{margin-left:auto;font-weight:400;font-size:13px}
.panel{background:#fff;border:1px solid var(--line);border-radius:12px;padding:20px;margin-bottom:18px;box-shadow:0 1px 3px rgba(15,23,42,.03)}
.panel.narrow{max-width:620px}
.panel h3{font-size:16px;margin-bottom:15px}
.row{display:flex;align-items:center;flex-wrap:wrap}
.gap{gap:9px}
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:14px;margin-bottom:18px}
.card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:18px;box-shadow:0 1px 3px rgba(15,23,42,.03)}
.card .label{color:var(--muted);font-size:13px}
.card .value{font-size:27px;font-weight:750;margin:6px 0 3px;font-variant-numeric:tabular-nums}
.card .value.small{font-size:17px}
.card .foot{font-size:12px;color:#9ca3af}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:8px 15px;min-height:36px;border:1px solid #d6dedb;border-radius:7px;background:#fff;color:#374151;cursor:pointer;font-size:13px;font-weight:500;text-decoration:none;white-space:nowrap;transition:.15s}
.btn:hover{background:#f7faf9;border-color:#a7b5b0;text-decoration:none}
.btn:disabled{opacity:.55;cursor:not-allowed}
.btn.primary{background:linear-gradient(135deg,#34d399,#059669);border-color:#059669;color:#fff;box-shadow:0 2px 8px rgba(16,185,129,.22)}
.btn.primary:hover{background:linear-gradient(135deg,#10b981,#047857)}
.btn.danger{background:#fff;border-color:#fca5a5;color:#dc2626}
.btn.danger:hover{background:#fef2f2}
.btn.ghost{background:transparent}
.btn.small{padding:5px 10px;min-height:30px;font-size:12px;border-radius:6px}
.btn.xs{padding:3px 8px;min-height:26px;font-size:12px}
.btn.block{width:100%}
.btn.orange{background:linear-gradient(135deg,#fbbf24,#f59e0b);border-color:#f59e0b;color:#fff}
.btn.gray{background:#9ca3af;border-color:#9ca3af;color:#fff}
.tag{display:inline-flex;align-items:center;padding:2px 9px;border-radius:999px;background:#f1f5f3;color:#4b5563;font-size:12px;font-weight:600;white-space:nowrap}
.tag.ok{background:var(--green-light);color:#065f46}
.tag.warn{background:#fef3c7;color:#92400e}
.tag.err{background:#fee2e2;color:#991b1b}
.tag.info{background:#dbeafe;color:#1e40af}
label{display:block;margin-bottom:13px;font-weight:600;font-size:13px;color:#374151}
label input,label select,label textarea,input.ipt,select.ipt{display:block;width:100%;margin-top:5px;padding:9px 11px;border:1px solid #dbe2df;border-radius:7px;font-size:14px;background:#fff;color:var(--ink);font-family:inherit;min-height:38px}
label input:focus,label select:focus,input.ipt:focus,select.ipt:focus{outline:none;border-color:#34d399;box-shadow:0 0 0 3px rgba(52,211,153,.14)}
.inline-form{display:flex;gap:9px;flex-wrap:wrap;align-items:center}
.inline-form input{flex:1;min-width:180px;margin:0}
.stack-form{max-width:520px}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px;max-width:none;margin-bottom:14px}
@media (max-width:640px){.form-grid{grid-template-columns:1fr}}
#planForm{max-width:none}
.table-wrap{width:100%;overflow-x:auto;border-radius:9px;border:1px solid var(--line)}
.table{width:100%;border-collapse:collapse;font-size:13px;min-width:560px;background:#fff}
.table th,.table td{padding:11px 12px;text-align:left;border-bottom:1px solid #eef2f0;vertical-align:middle}
.table th{background:#f8faf9;color:#6b7a74;font-weight:650;font-size:12px;white-space:nowrap}
.table tbody tr:hover{background:#fbfefc}
.table tr:last-child td{border-bottom:none}
.table code{background:#f1f5f3;padding:2px 6px;border-radius:4px;font-size:12px}
.result{margin-top:12px;font-size:13px}
.result:not(:empty){padding:10px 13px;border-radius:8px;background:#f1f5f3}
.alert{padding:12px 14px;border-radius:8px;margin-bottom:15px;font-size:13px}
.alert.error{background:#fee2e2;color:#991b1b}
.alert.info{background:#ecfdf5;color:#065f46}
.progress{height:9px;background:#e7ecea;border-radius:999px;overflow:hidden}
.progress .bar{height:100%;background:linear-gradient(90deg,#34d399,#059669);border-radius:999px;transition:width .3s}
.empty{padding:42px 14px;text-align:center;color:#9ca3af}
.empty .empty-icon{font-size:36px;opacity:.5;margin-bottom:8px}
.hidden{display:none!important}
.pagination{display:flex;align-items:center;justify-content:center;gap:6px;margin-top:14px;flex-wrap:wrap}
.pg-btn{display:inline-flex;align-items:center;justify-content:center;min-width:32px;height:32px;padding:0 8px;border:1px solid var(--line);border-radius:7px;background:#fff;color:#374151;font-size:13px;text-decoration:none;font-weight:500}
.pg-btn:hover{border-color:var(--green);color:var(--green-dark);background:#f0fdf6;text-decoration:none}
.pg-btn.on{background:var(--green);border-color:var(--green);color:#fff;font-weight:700}
.pg-btn.on:hover{background:var(--green);color:#fff}
.pg-btn.disabled{opacity:.45;cursor:not-allowed}
.pg-ellipsis{color:var(--muted);padding:0 2px}
.pg-goto{display:inline-flex;align-items:center;gap:6px;margin-left:8px}
.pg-goto input{width:58px;min-height:32px;margin:0;padding:4px 6px;text-align:center}
.batch-bar{margin-top:14px;padding-top:14px;border-top:1px solid var(--line)}
.checkbox{width:15px;height:15px;accent-color:var(--green);cursor:pointer}
.toggle{width:42px;height:22px;border:0;border-radius:999px;background:#cbd5e1;position:relative;cursor:pointer;transition:.2s;padding:0}
.toggle i{position:absolute;left:3px;top:3px;width:16px;height:16px;border-radius:50%;background:#fff;transition:.2s;box-shadow:0 1px 3px rgba(0,0,0,.2)}
.toggle.on{background:var(--green)}
.toggle.on i{left:23px}
.toggle.is-busy,.btn.is-busy{opacity:.6}
.link-btn{border:0;background:none;color:var(--green-dark);cursor:pointer;padding:2px 4px;font-size:13px}
.link-btn:hover{text-decoration:none;color:var(--green-dark)}
.link-btn.red{color:#dc2626}

/* 首页欢迎横幅 */
.welcome{background:linear-gradient(110deg,#ecfdf5,#f7fefb 70%);border:1px solid #d1fae5;border-radius:13px;padding:30px 32px;margin-bottom:18px;position:relative;overflow:hidden}
.welcome h2{font-size:26px;margin-bottom:7px}
.welcome p{color:#5b7c70;margin:0}

/* ===== 订购套餐卡片（转发网风格） ===== */
.plan-section{background:transparent;border:0;box-shadow:none;padding:0}
.plan-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(245px,1fr));gap:18px}
.plan-card{--pc:#10b981;--pc2:#059669;--pcl:#d1fae5;--pcd:#065f46;position:relative;background:#fff;border:1px solid var(--line);border-top:4px solid var(--pc);border-radius:14px;padding:22px 20px 20px;box-shadow:0 6px 20px rgba(15,23,42,.05);display:flex;flex-direction:column;transition:transform .18s,box-shadow .18s;overflow:hidden}
.plan-card:hover{transform:translateY(-4px);box-shadow:0 14px 32px rgba(15,23,42,.12)}
.plan-card.cyan{--pc:#06b6d4;--pc2:#0891b2;--pcl:#cffafe;--pcd:#0e7490}
.plan-card.blue{--pc:#3b82f6;--pc2:#2563eb;--pcl:#dbeafe;--pcd:#1e40af}
.plan-card.purple{--pc:#8b5cf6;--pc2:#7c3aed;--pcl:#ede9fe;--pcd:#5b21b6}
.plan-card.orange{--pc:#f59e0b;--pc2:#ea8c08;--pcl:#fef3c7;--pcd:#92400e}
.plan-badge{align-self:center;padding:4px 14px;border-radius:999px;background:var(--pcl);color:var(--pcd);font-size:12px;font-weight:700;margin-bottom:15px}
.plan-cap{text-align:center;font-size:30px;font-weight:800;color:#1f2d27;line-height:1.2}
.plan-price{text-align:center;color:var(--pc2);font-size:24px;font-weight:800;margin:10px 0 18px}
.plan-price small{font-size:13px;color:var(--muted);font-weight:500}
.plan-features{border-top:1px solid var(--line);padding:15px 0 8px;margin-bottom:18px;flex:1}
.plan-features div{display:flex;align-items:center;gap:9px;padding:5px 0;color:#4b5563;font-size:13px}
.plan-features .tick{display:inline-flex;align-items:center;justify-content:center;width:17px;height:17px;border:1.5px solid var(--pc);border-radius:50%;color:var(--pc2);font-size:11px;font-weight:800;flex:none}
.plan-btn{width:100%;padding:11px;border:0;border-radius:9px;background:linear-gradient(135deg,var(--pc),var(--pc2));color:#fff;font-size:14px;font-weight:700;cursor:pointer;box-shadow:0 4px 12px rgba(0,0,0,.1);transition:.15s;font-family:inherit}
.plan-btn:hover{filter:brightness(1.06);box-shadow:0 6px 16px rgba(0,0,0,.16)}
.plan-btn:active{transform:translateY(1px)}

/* 弹窗 */
.modal-mask{position:fixed;inset:0;background:rgba(10,25,18,.5);z-index:70;display:flex;align-items:center;justify-content:center;padding:18px;animation:fade .18s}
.modal{background:#fff;border-radius:14px;width:100%;max-width:680px;max-height:90vh;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 24px 70px rgba(0,0,0,.25);animation:pop .18s}
.modal.narrow{max-width:460px}
.modal.wide{max-width:740px}
.modal-head .title-group{display:flex;align-items:center;gap:10px;min-width:0}
.modal-head .title-group small{display:block;font-size:12px;font-weight:400;color:var(--muted);margin-top:2px}
.modal-title-icon{width:38px;height:38px;border-radius:10px;background:#ede9fe;color:var(--purple);display:flex;align-items:center;justify-content:center;font-size:19px;flex:none}
.char-count{display:block;text-align:right;font-size:12px;color:var(--muted);font-weight:400;margin-top:3px}
.attach-list{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.attach-item{display:inline-flex;align-items:center;gap:6px;padding:5px 9px;border:1px solid var(--line);border-radius:7px;background:#f8faf9;font-size:12px}
.attach-item button{border:0;background:none;color:var(--red);cursor:pointer;font-size:14px;line-height:1}
.attach-hint{font-size:12px;color:var(--muted);margin-top:8px}
.modal-head{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:17px 22px;border-bottom:1px solid var(--line);font-weight:700;font-size:16px;background:#fff;flex:none;box-shadow:0 2px 6px rgba(10,25,18,.03)}
.modal-head>span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.modal-close{border:0;background:#f3f5f4;width:30px;height:30px;border-radius:8px;font-size:20px;color:#6b7280;cursor:pointer;line-height:1;flex:none;display:flex;align-items:center;justify-content:center}
.modal-close:hover{background:#e8eeea;color:#111827}
.modal-body{padding:22px;overflow-y:auto;overscroll-behavior:contain;flex:1;min-height:0}
.modal-foot{display:flex;justify-content:flex-end;gap:10px;padding:14px 22px;border-top:1px solid var(--line);background:#fff;flex:none}
.modal p{color:#4b5563}
.modal .warn{color:var(--red);font-weight:700}
@keyframes fade{from{opacity:0}to{opacity:1}}
@keyframes pop{from{transform:translateY(12px);opacity:0}to{transform:none;opacity:1}}
.order-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.order-box{border:1px solid var(--line);border-radius:10px;padding:16px}
.order-box h4{font-size:14px;margin-bottom:12px;display:flex;align-items:center;gap:7px}
.order-line{display:flex;justify-content:space-between;padding:7px 0;font-size:13px;color:#4b5563}
.order-total{margin-top:12px;padding:12px;background:#ecfdf5;border-radius:8px;display:flex;justify-content:space-between;align-items:center;font-weight:700}
.order-total b{color:var(--red);font-size:22px}
.pay-methods{display:flex;flex-direction:column;gap:9px}
.pay-item{display:flex;align-items:center;gap:11px;padding:12px;border:1px solid var(--line);border-radius:9px;cursor:pointer;transition:.15s}
.pay-item:hover{border-color:#6ee7b7;background:#fbfffd}
.pay-item.on{border-color:var(--green);background:#f0fdf6;box-shadow:0 0 0 2px rgba(16,185,129,.12)}
.pay-icon{width:34px;height:34px;border-radius:8px;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:800;flex:none}
.pay-icon.alipay{background:#1677ff}.pay-icon.wechat{background:#22c55e}
.pay-qr-img{display:none;max-width:100%;max-height:240px;margin:0 auto;border-radius:8px}
.pay-qr-thumb{max-width:96px;max-height:96px;border:1px solid var(--line);border-radius:6px;display:inline-block;margin-bottom:6px}
.qr-box{margin-top:12px;border:1px dashed #cbd5e1;border-radius:9px;background:#f8faf9;padding:18px;text-align:center;color:#6b7280;font-size:12px}
.qr-box .qr-placeholder{width:128px;height:128px;margin:0 auto 10px;border:1px solid #dbe2df;background:repeating-linear-gradient(45deg,#f3f6f5,#f3f6f5 8px,#e8eeeb 8px,#e8eeeb 16px);border-radius:8px;display:flex;align-items:center;justify-content:center;color:#9ca3af;font-size:12px}
.qty{display:inline-flex;align-items:center;gap:8px}
.qty button{width:27px;height:27px;border:1px solid var(--line);background:#fff;border-radius:6px;cursor:pointer}

/* ===== 转发网彩色按钮组 ===== */
.btn-green{background:linear-gradient(135deg,#34d399,#059669);border-color:#059669;color:#fff}
.btn-green:hover{background:linear-gradient(135deg,#10b981,#047857);color:#fff}
.btn-red{background:linear-gradient(135deg,#fb7185,#ef4444);border-color:#ef4444;color:#fff}
.btn-red:hover{background:linear-gradient(135deg,#f43f5e,#dc2626);color:#fff}
.btn-orange{background:linear-gradient(135deg,#fbbf24,#f59e0b);border-color:#f59e0b;color:#fff}
.btn-orange:hover{background:linear-gradient(135deg,#f59e0b,#d97706);color:#fff}
.btn-gray{background:#9ca3af;border-color:#9ca3af;color:#fff}
.btn-gray:hover{background:#6b7280;border-color:#6b7280;color:#fff}
.btn-move{background:var(--blue);border-color:var(--blue);color:var(--white)}
.btn-move:hover{background:#1d4ed8;border-color:#1d4ed8;color:var(--white)}
.btn-move:active{filter:brightness(.92)}
.btn-outline-green{background:#ecfdf5;border-color:#a7f3d0;color:#047857}
.btn-outline-blue{background:#eff6ff;border-color:#bfdbfe;color:#1d4ed8}
.btn-outline-orange{background:#fff7ed;border-color:#fed7aa;color:#c2410c}
.btn-help{background:linear-gradient(135deg,#fbbf24,#f59e0b);color:#fff;padding:4px 12px;border-radius:5px;font-size:12px}
.btn-help:hover{color:#fff;filter:brightness(1.05);text-decoration:none}
.th-sub{display:block;color:#e08636;font-size:10px;font-weight:500;margin-top:2px}
.price-red{color:var(--red);font-weight:700}
.search-box{display:flex;align-items:center;gap:8px;margin-left:auto;flex-wrap:wrap}
.search-box .ipt{margin:0;width:auto;min-height:36px}

/* ===== 文件管理（转发网风格） ===== */
.file-bar{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-bottom:14px}
.file-actions{display:flex;align-items:center;gap:7px;flex-wrap:nowrap;min-width:0}
.file-actions>.btn,.file-actions>.new-wrap{flex:0 0 auto}
.file-actions>.btn,.file-actions>.new-wrap>.btn{padding:8px 12px;min-height:36px;font-size:13px}
.file-actions .lb-short{display:none}
.new-wrap{position:relative}
.new-wrap .caret{font-size:11px;margin-left:3px}
.new-menu{position:absolute;left:0;top:calc(100% + 6px);min-width:150px;background:#fff;border:1px solid var(--line);border-radius:8px;box-shadow:0 8px 24px rgba(15,23,42,.15);padding:5px;z-index:15;display:none}
.new-menu:before{content:"";position:absolute;left:0;right:0;top:-8px;height:8px}
.new-wrap:hover .new-menu,.new-wrap.open .new-menu,.new-menu:hover{display:block}
.new-menu button{display:block;width:100%;text-align:left;padding:9px 11px;border:0;background:transparent;border-radius:6px;cursor:pointer;font-size:13px;color:#374151;font-family:inherit}
.new-menu button:hover{background:#eef8f2;color:var(--green-dark)}
.subhead{display:flex;align-items:center;gap:10px;padding:2px 0 14px;color:#374151;font-size:14px}
.subhead a{color:var(--green-dark)}
.subhead .sep{color:#cbd5e1}
.tabbar{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);margin-bottom:16px}
.tabbar .tab{display:inline-block;padding:10px 18px;color:var(--muted);border-bottom:2px solid transparent;font-weight:600;text-decoration:none}
.tabbar .tab:hover{text-decoration:none;color:var(--green-dark)}
.tabbar .tab.on{color:var(--green-dark);border-bottom-color:var(--green)}
.tabbar .right{margin-left:auto;font-size:13px}
.space-meter{margin-left:auto;display:flex;flex-direction:column;gap:5px;min-width:230px;flex:1;max-width:340px}
.space-meter>span{font-size:12px;color:var(--muted);text-align:right}
.path-bar{display:flex;align-items:center;gap:12px;padding:11px 14px;background:#f8faf9;border:1px solid var(--line);border-radius:8px;margin-bottom:14px;flex-wrap:wrap;font-size:13px;color:#6b7280}
.path-bar .path{flex:1;min-width:120px;color:#374151;font-weight:600}
.path-bar select{margin:0;width:auto;min-height:32px;padding:5px 10px;font-size:13px}
.domain-select{display:inline-flex;align-items:center;gap:7px}
.checkAllFiles{accent-color:var(--green)}
.dropzone{border:2px dashed #cbd5e1;border-radius:10px;padding:34px 16px;text-align:center;background:#f8faf9;cursor:pointer;transition:.2s;color:#6b7280}
.dropzone:hover,.dropzone.over{border-color:var(--green);background:#f0fdf6}
.dropzone .dz-icon{font-size:34px;color:var(--green);margin-bottom:7px}
.file-name{display:flex;align-items:center;gap:7px;width:100%;min-width:150px}
.file-name b{font-weight:600;word-break:break-all}
.file-name.clickable{cursor:pointer}
.file-name.clickable:hover b,.file-name b.clickable:hover{color:var(--green-dark);text-decoration:underline}
.file-icon{display:inline-flex;align-items:center;flex:none;color:var(--green)}
.file-icon svg{width:17px;height:17px;display:block}
.file-icon.img{color:#0ea5e9}
.file-icon.doc{color:var(--blue)}
.rename-icon{margin-left:auto;flex:none;border:0;background:transparent;color:var(--green);cursor:pointer;font-size:16px;line-height:1;padding:3px 6px;border-radius:5px;opacity:.85}
.rename-icon:hover{opacity:1;background:#eef8f2}
/* 上传弹窗：已选文件列表（逐条相对路径 + 大小 + 移除） */
.up-list{margin-top:12px;max-height:210px;overflow-y:auto;border:1px solid var(--line);border-radius:8px;background:var(--white)}
.up-item{display:flex;align-items:flex-start;gap:9px;padding:9px 11px;border-bottom:1px solid var(--line);font-size:13px}
.up-item:last-child{border-bottom:0}
.up-item .file-icon{margin-top:2px}
.up-path{flex:1;min-width:0;word-break:break-all;overflow-wrap:anywhere;font-weight:600}
.up-size{flex:none;white-space:nowrap}
.up-del{flex:none;display:inline-flex;align-items:center;justify-content:center;min-width:32px;min-height:32px;border:0;border-radius:6px;background:transparent;color:var(--muted);font-size:18px;line-height:1;cursor:pointer}
.up-del:hover{background:var(--bg);color:var(--red)}
.up-summary{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:9px;min-height:32px;font-size:13px;color:var(--muted)}
.up-summary #stripPrefixBtn{min-height:32px;padding:4px 8px}
/* 上传弹窗：全局唯一进度条 */
.up-global{margin-top:12px}
.up-global .up-line{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:13px}
.up-global .up-line b{min-width:0;word-break:break-all;overflow-wrap:anywhere;font-weight:600}
.up-global .progress{margin:8px 0 5px}
.up-pct{flex:none;font-variant-numeric:tabular-nums;font-weight:700;color:var(--green-dark)}
.up-meta{font-size:12px;color:var(--muted)}
/* 窄屏：长路径换行、列表可滚动、按钮保持可点 */
@media (max-width:640px){
  .up-list{max-height:170px}
  .up-item{flex-wrap:wrap;gap:6px 8px}
  .up-size{order:3}
  .up-summary{flex-wrap:wrap}
}
/* 文件操作按钮之间留间距，避免挤在一起 */
.table td .btn,.table td .link-btn{margin-right:6px}
.table td .btn:last-child,.table td .link-btn:last-child{margin-right:0}
.table td:last-child{white-space:nowrap}

/* 编辑器（仿宝塔：语法高亮 / 自适应折行 / 编码切换） */
.editor-toolbar{display:flex;align-items:center;gap:9px;padding:13px 16px;border-bottom:1px solid var(--line);flex-wrap:wrap}
.editor-toolbar select{padding:7px 10px;border:1px solid var(--line);border-radius:7px;min-height:36px;min-width:180px;background:#fff;font-family:inherit;font-size:13px}
.editor-toolbar select#editorLang{min-width:104px;flex:0 0 auto}
.editor-toolbar #wrapToggle.on{background:var(--green);border-color:var(--green);color:#fff}
.editor-toolbar .spacer{flex:1}
.editor-wrap{background:#272822;height:calc(100vh - 252px);min-height:420px;overflow:hidden}
.editor-wrap .CodeMirror{height:100%;font-family:Consolas,Monaco,monospace;font-size:13px;line-height:1.6}
.editor-wrap .CodeMirror-gutters{background:#272822;border-right:1px solid #3b3b32}
#codeArea{display:none}
.editor-status{display:flex;justify-content:space-between;gap:10px;padding:9px 14px;background:#f8faf9;border-top:1px solid var(--line);font-size:12px;color:#6b7280;flex-wrap:wrap;align-items:center}
.editor-status select{padding:2px 6px;border:1px solid var(--line);border-radius:4px;background:#fff;font:inherit;font-size:12px}
.editor-status .dirty{color:#b45309;font-weight:700}
.kbd{display:inline-block;padding:1px 5px;border:1px solid #d6dedb;border-bottom-width:2px;border-radius:4px;background:#fff;font-size:11px}

/* 认证 / 门户 */
.auth-page,.portal{min-height:100vh;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#ecfdf5,#eef2ff);padding:22px}
.auth-card{width:100%;max-width:400px;background:#fff;border-radius:17px;padding:34px;box-shadow:0 20px 60px rgba(16,185,129,.15)}
.auth-card h1{margin:16px 0 6px;font-size:24px}
.auth-card .sub{margin:0 0 23px;color:var(--muted)}
.auth-links{margin-top:18px;text-align:center;font-size:13px;color:var(--muted)}
.captcha-row{display:flex;gap:9px;align-items:center}
.captcha-row input{flex:1;min-width:0;margin:0}
.captcha-img{width:104px;height:40px;border:1px solid var(--line);border-radius:7px;cursor:pointer;flex:none}
.portal-box{width:100%;max-width:720px;text-align:center;background:#fff;padding:52px 60px;border-radius:20px;box-shadow:0 20px 60px rgba(16,185,129,.12)}
.portal-logo{width:64px;height:64px;border-radius:16px;background:linear-gradient(135deg,#34d399,#059669);color:#fff;font-size:30px;font-weight:800;display:flex;align-items:center;justify-content:center;margin:0 auto 18px}
.portal-box h1{margin:0 0 10px}
.portal-box>p{color:var(--muted);margin:0 0 26px}
.portal-actions{display:flex;gap:12px;justify-content:center;margin-bottom:22px;flex-wrap:wrap}
.portal-actions .btn{padding:11px 24px}
.portal-box .tip{font-size:12px;color:#9ca3af}
.auth-logo{width:42px;height:42px;border-radius:11px;background:linear-gradient(135deg,#34d399,#059669);color:#fff;font-size:21px;font-weight:800;display:flex;align-items:center;justify-content:center}

.auth-logo-login { 
  display: flex; 
  align-items: center; 
  gap: 12px; 
  font-size: 22px; 
  font-weight: 800; 
  letter-spacing: -0.5px; 
  color: var(--text-main);
  padding-left: 10px; /* 单独增加左侧间隙 */
}
.auth-logo-login i { 
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 8px; /* 硬朗小圆角 */
  background: linear-gradient(135deg, #10b981, #3b82f6); 
  color: #fff; 
  font-family: "Arial Black", Impact, sans-serif; /* 最粗字体 */
  font-style: normal; 
  font-size: 28px; /* 字体放大 */
  font-weight: 900; 
  box-shadow: 0 4px 14px rgba(16,185,129,0.4);
  transform: skewX(-12deg); /* 倾斜，增加尖锐速度感 */
  padding-right: 2px; /* 视觉居中微调 */
  text-shadow: 2px 2px 0 rgba(0,0,0,0.1); /* 立体质感 */
  border: 2px solid rgba(255,255,255,0.2); /* 内边框 */
}

/* 轻提示 */
.toast-wrap{position:fixed;top:16px;right:16px;z-index:100;display:flex;flex-direction:column;gap:9px;max-width:min(360px,calc(100vw - 32px))}
.toast{padding:11px 15px;border-radius:9px;background:#fff;border:1px solid var(--line);border-left:4px solid var(--blue);box-shadow:0 8px 28px rgba(15,23,42,.15);font-size:13px;animation:toast-in .2s}
.toast.ok{border-left-color:var(--green)}.toast.err{border-left-color:var(--red)}
@keyframes toast-in{from{opacity:0;transform:translateX(18px)}to{opacity:1;transform:none}}

/* 移动端 */
@media(max-width:900px){
  .sidebar{position:fixed;left:0;top:0;bottom:0;width:230px;transform:translateX(-100%);transition:transform .22s;box-shadow:4px 0 24px rgba(0,0,0,.25)}
  body.nav-open .sidebar{transform:none}
  body.nav-open .sidebar-overlay{display:block;opacity:1}
  .menu-btn{display:inline-flex}
  .topbar{padding:0 13px;height:56px}
  .crumb{font-size:14px;overflow:hidden;text-overflow:ellipsis}
  .content{padding:16px 12px 32px}
  .back-home,.support{display:none}
  .account-name{max-width:76px}
  .cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .card{padding:14px}
  .card .value{font-size:23px}
  .section,.panel{padding:15px}
  .order-grid{grid-template-columns:1fr}
  .plan-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
  .plan-card{padding:15px}
  .editor-toolbar select{flex:1 1 100%;min-width:0}
  .editor-toolbar .spacer{display:none}
  .editor-toolbar .btn{flex:1}
  .editor-wrap{height:calc(100vh - 330px);min-height:320px}
}
@media(max-width:560px){
  .cards{grid-template-columns:1fr}
  .plan-grid{grid-template-columns:1fr}
  .table{font-size:12px;min-width:520px}
  .btn{min-height:36px}
  .btn.small,.btn.xs{min-height:32px}
  .inline-form input{flex:1 1 100%;min-width:0}
  .inline-form .btn{width:100%}
  .toast-wrap{top:auto;bottom:12px;left:12px;right:12px;max-width:none}
  .modal-mask{padding:8px}
  .modal-body{padding:15px}
  .page-head .btn{flex:1}
  .page-card-head{padding:13px 14px 13px 18px;font-size:14px;box-shadow:inset 5px 0 0 var(--green),0 1px 3px rgba(15,23,42,.03)}
  .page-card-head{flex-wrap:nowrap}
  .page-card-head .page-card-title,.page-card-head .page-card-sub{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .page-card-head .page-card-extra{margin-left:auto;flex:none;width:auto}
  .page-card-head .page-card-hint{margin-left:auto;flex:1 1 auto;width:auto;font-size:12px}
  /* 手机端分页：整体居中、优先单行，子项不被挤压；页码过多时自动换行且每行居中 */
  .pagination{justify-content:center;flex-wrap:wrap;gap:4px;padding:3px 0}
  .pagination>*{flex:none}
  .pagination .pg-total{font-size:12px}
  .pagination .pg-btn{min-width:28px;height:30px;padding:0 6px;font-size:12px}
  .pagination .pg-ellipsis{padding:0 1px}
  .pagination .pg-goto{margin-left:4px;width:auto;gap:4px}
  .pagination .pg-goto input{width:48px;min-height:30px}
  .modal-head .title-group small{white-space:normal}
}
@media(max-width:420px){
  .page-card-head{padding-left:17px}
}

/* 顶部账号下拉 */
.account-wrap{position:relative;display:flex;align-items:center}
.account-chip{font-family:inherit;font-size:13px;line-height:1;cursor:pointer;background:#fff}
.account-chip:hover{border-color:var(--green);box-shadow:0 0 0 2px rgba(16,185,129,.1)}
.account-menu{position:absolute;right:0;top:calc(100% + 8px);min-width:172px;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 14px 34px rgba(10,25,18,.16);padding:6px;display:none;z-index:60}
.account-wrap:hover .account-menu,.account-wrap:focus-within .account-menu,.account-menu.open{display:block;animation:pop .16s}
.account-menu::before{content:"";position:absolute;top:-11px;left:0;right:0;height:11px}
.account-menu a{display:flex;align-items:center;justify-content:space-between;padding:10px 12px;border-radius:7px;color:#374151;font-weight:500;text-decoration:none}
.account-menu a:hover{background:#f0fdf6;color:var(--green-dark);text-decoration:none}
.account-menu a+a{border-top:1px solid var(--line);border-radius:0 0 7px 7px}

/* 面包屑与快捷链接 */
.all-sites-link,.path-link{color:var(--green-dark);font-weight:700;text-decoration:none;background:none;border:0;padding:0;cursor:pointer;font-size:inherit}
.all-sites-link:hover,.path-link:hover{text-decoration:none;color:var(--green);filter:brightness(.94)}
.path-link.on{color:#111827;font-weight:700}
.path-crumb{display:flex;align-items:center;gap:2px;flex-wrap:wrap;flex:1;min-width:120px}

/* 系统消息 */
.sysmsg-item{display:flex;align-items:center;gap:10px;width:100%;text-align:left;background:#fff;border:1px solid var(--line);border-radius:8px;padding:12px 14px;margin-bottom:8px;cursor:pointer;font-family:inherit;font-size:14px;color:#374151}
.sysmsg-item:hover{border-color:var(--green);background:#f7fdfa}
.sysmsg-item b{color:#111827}
.sysmsg-item .muted{margin-left:auto;font-size:12px}
.sysmsg-more{color:var(--green-dark);font-size:12px;white-space:nowrap}
.sysmsg-content{white-space:pre-wrap;line-height:1.8;color:#374151}

/* 系统消息批量操作栏 */
.notif-bar{display:flex;align-items:center;gap:12px;margin-bottom:12px;padding:10px 13px;background:#f8faf9;border:1px solid var(--line);border-radius:9px}
.notif-bar .check-all{display:inline-flex;align-items:center;gap:7px;margin:0;font-size:13px;font-weight:600;color:#374151;cursor:pointer}
.notif-bar .muted{margin-right:auto}
.notif-bar .btn{margin-left:auto}

.review-bar{display:flex;align-items:center;gap:12px;margin-bottom:12px;flex-wrap:wrap}
.review-bar .muted{margin-right:auto}

/* 在线客服弹窗 */
.support-list{display:flex;flex-direction:column;gap:10px}
.support-item{display:flex;align-items:center;gap:12px;padding:14px 15px;background:#f8faf9;border:1px solid var(--line);border-radius:10px}
.support-item .support-icon{width:30px;height:30px;border-radius:50%;background:var(--green-light);color:var(--green-dark);display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:700;flex:none}
.support-item>div{display:flex;flex-direction:column;gap:2px}
.support-item .muted{font-size:12px}
.support-item b{font-size:15px;color:#111827;word-break:break-all}

/* 域名绑定输入框 */
.domain-bind-form{display:flex;align-items:center;gap:10px;margin-top:14px}
.domain-input-wrap{position:relative;flex:1;min-width:0}
.domain-input-icon{position:absolute;left:13px;top:50%;transform:translateY(-50%);font-size:15px;opacity:.7;pointer-events:none}
.domain-input{width:100%;min-height:44px;padding:10px 14px 10px 40px;border:1px solid #dbe2df;border-radius:9px;background:#fff;color:var(--ink);font-size:14px;font-family:inherit;box-shadow:0 1px 2px rgba(15,23,42,.03);transition:.15s}
.domain-input::placeholder{color:#a8b3ae}
.domain-input:focus{outline:none;border-color:#34d399;box-shadow:0 0 0 3px rgba(52,211,153,.16)}
.domain-bind-form .btn{min-height:44px;padding:0 20px}

@media(max-width:640px){
  .domain-bind-form{align-items:stretch}
  .domain-bind-form .btn{width:auto;flex:none}
}

/* 域名弹窗 */
.domain-info{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.domain-info>div{background:#f8faf9;border:1px solid var(--line);border-radius:8px;padding:10px 12px}
.domain-info span{display:block;font-size:12px;color:var(--muted);margin-bottom:5px}
.domain-info b{font-size:13px;color:#111827;word-break:break-all}
/* 临时域名 */
.temp-domain-box{margin-top:12px;padding:12px 14px;border:1px solid #d9ebe1;border-radius:10px;background:#fbfffd}
.temp-domain-title{display:flex;align-items:center;gap:7px;font-size:13px;font-weight:700;color:#26513d;margin-bottom:9px}
.temp-domain-off{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.temp-domain-off .muted{font-size:12px;line-height:1.6;flex:1;min-width:180px}
.temp-domain-link{display:inline-block;font-size:14px;font-weight:700;color:#0e8a58;word-break:break-all;text-decoration:none}
.temp-domain-link:hover{text-decoration:underline}
.help-tip{position:relative;display:inline-grid;place-items:center;width:17px;height:17px;border-radius:50%;border:1px solid #9bb7a9;color:#5d7b6d;font-size:11px;font-weight:800;cursor:help;background:#fff;outline:none}
.help-tip:hover,.help-tip:focus{border-color:var(--green);color:var(--green-dark)}
.help-tip:after{content:attr(data-tip);position:absolute;left:0;bottom:calc(100% + 9px);width:max-content;max-width:250px;white-space:pre-line;text-align:left;background:#1c2b24;color:#fff;font-size:12px;font-weight:400;line-height:1.7;padding:9px 12px;border-radius:8px;box-shadow:0 8px 22px rgba(0,0,0,.2);opacity:0;visibility:hidden;transition:.15s;z-index:20;pointer-events:none}
.help-tip.tip-down:after{top:calc(100% + 9px);bottom:auto}
.help-tip:hover:after,.help-tip:focus:after{opacity:1;visibility:visible}

@media(max-width:640px){
  .sysmsg-item .muted,.sysmsg-more{display:none}
}

/* ===== 工单与到期提醒 ===== */
.plan-btn.disabled,.plan-btn[aria-disabled="true"]{background:#b8c5be!important;color:#f4f7f5!important;cursor:not-allowed!important;box-shadow:none!important;transform:none!important}
.expire-list{margin:12px 0 0;padding:0;list-style:none;display:grid;gap:10px}
.expire-list li{background:#fff7ed;border:1px solid #fed7aa;border-radius:9px;padding:12px 14px;line-height:1.7;font-size:14px}
.ticket-thread{max-height:46vh;overflow:auto;display:grid;gap:12px;padding-right:4px}
.ticket-msg{border:1px solid var(--line);border-radius:11px;padding:12px 14px;background:#fff}
.ticket-msg.user{background:#f2fbf6;border-color:#cdeedb}
.ticket-who{font-size:12px;color:var(--muted);margin-bottom:7px}
.ticket-text{font-size:14px;line-height:1.75;color:#243a30;word-break:break-word}
.ticket-text img{max-width:100%;border-radius:8px;margin-top:8px}
.ticket-msg .btn{margin-top:8px}
/* 工单简易 Markdown 工具栏与预览 */
.md-toolbar{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 8px;padding:6px;background:#f5f8f6;border:1px solid var(--line);border-radius:9px}
.md-toolbar button{min-width:32px;height:29px;padding:0 9px;border:1px solid #d8e3dc;border-radius:6px;background:#fff;color:#374151;font-size:12px;font-weight:700;cursor:pointer;font-family:inherit}
.md-toolbar button:hover{border-color:var(--green);color:var(--green-dark);background:#f0fdf6}
.md-preview{margin:9px 0;padding:11px 13px;border:1px dashed #a7d8bd;border-radius:9px;background:#fbfffd;min-height:42px;font-size:14px;line-height:1.7;color:#243a30;word-break:break-word;max-height:260px;overflow:auto}
.md-preview img{max-width:100%;border-radius:8px;margin-top:7px}
/* 访问统计弹窗 */
.stat-table{min-width:0;width:100%;text-align:center;font-size:14px;border:1px solid #dbe5df;border-radius:10px;overflow:hidden}
.stat-table th,.stat-table td{padding:12px 10px;text-align:center;border-bottom:1px solid #e6ece9}
.stat-table th:first-child,.stat-table td:first-child{text-align:left;padding-left:16px;color:#4b5563;font-weight:600;background:#f8faf9}
.stat-table th{color:#6b7a74;font-size:13px}
.stat-table tbody tr:last-child td{border-bottom:0}
.stat-table .stat-num{color:#e11d48;font-size:17px;font-weight:700;font-variant-numeric:tabular-nums}
.stat-note{margin:12px 0 0;font-size:12px;line-height:1.7}
.stat-reset-wrap{display:flex;justify-content:center;margin-top:16px}
.stat-reset{border-radius:999px;padding:9px 30px;background:#fff;color:#374151;border:1px solid #9ca3af;font-weight:600}
.stat-reset:hover{border-color:var(--green);color:var(--green-dark);background:#f0fdf6}

/* 文件管理：手机端操作列固定最右侧 */
@media(max-width:900px){
  .file-table th:last-child,.file-table td:last-child{position:sticky;right:0;z-index:2;background:#fff;box-shadow:-5px 0 10px rgba(15,23,42,.06)}
  .file-table th:last-child{background:#f8faf9;z-index:3}
  .file-table tbody tr:hover td:last-child{background:#fbfefc}
  .file-table .file-ops{display:flex;gap:6px;justify-content:flex-end}
  .file-table .file-ops .btn{margin-right:0}
}
/* 图片查看弹窗：浅灰背景 + 原图预览信息条 */
.img-preview-modal .modal-body{background:#fafafa;padding:14px}
.img-preview-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#f1f3f6;border-radius:8px;padding:9px 13px;font-size:13px;color:#475569;word-break:break-all}
.img-preview-bar .badge{background:#dcfce7;color:#16a34a;font-size:12px;font-weight:600;padding:3px 9px;border-radius:5px;white-space:nowrap}
.img-preview-stage{margin-top:12px;background:#fafafa;border:1px solid #e5e7eb;border-radius:9px;min-height:45vh;display:flex;align-items:center;justify-content:center;padding:12px}
.img-preview-stage img{max-width:100%;max-height:62vh;object-fit:contain;border-radius:4px}

/* 文件管理：文件名/时间不换行，列宽固定，避免行高参差 */
.file-table .file-name{min-width:220px}
.file-table .file-name b{white-space:nowrap;word-break:normal}
.file-table .file-size,.file-table .file-mtime{white-space:nowrap}
.file-table .file-size{min-width:76px}
.file-table .file-mtime{min-width:158px}
/* 手机端操作列只保留文字，压缩列宽，给横向滚动留更多空间 */
@media(max-width:900px){
  .file-table th:last-child,.file-table td:last-child{padding-left:5px;padding-right:9px}
  .file-table .file-ops{gap:9px;justify-content:flex-end;align-items:center;min-height:24px}
  .file-table .file-ops .btn{min-width:0;min-height:0;height:24px;line-height:24px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;font-size:12px;font-weight:600;color:var(--green-dark)}
  .file-table .file-ops .btn.danger{color:var(--red)}
  .file-table .file-ops .btn:hover{background:transparent;text-decoration:underline}
}

/* 文件管理：五个按钮始终同一行，空间容量独占下一整行 */
@media(max-width:900px){
  .file-actions{flex:1 1 100%;gap:6px;min-width:0}
  .file-actions>.btn,.file-actions>.new-wrap{flex:1 1 0;min-width:0}
  .file-actions>.new-wrap>.btn{width:100%}
  .file-actions>.btn,.file-actions>.new-wrap>.btn{padding:8px 6px;min-height:36px;font-size:13px}
  .space-meter{flex:1 1 100%;min-width:0;max-width:none;margin-left:0}
  .space-meter>span{text-align:left}
}
@media(max-width:560px){
  .file-actions{gap:4px}
  .file-actions>.btn,.file-actions>.new-wrap>.btn{min-height:34px;padding:0 4px;font-size:12px;white-space:nowrap}
  .file-actions .lb-full{display:none}
  .file-actions .lb-short{display:inline}
  .file-actions .caret{margin-left:2px;font-size:10px}
  .file-actions>.new-wrap .new-menu{left:auto;right:0}
  .file-table .file-mtime{min-width:166px}
}
@media(max-width:400px){
  .file-actions{gap:3px}
  .file-actions>.btn,.file-actions>.new-wrap>.btn{padding:0 2px;font-size:11px}
}

/* 批量移动：目录选择器弹窗 */
#moveModal .modal-head{padding:15px 18px}
#moveModal .title-group{display:block;flex:1;min-width:0}
#moveModal .title-group>div{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#moveModal .title-group small{color:#4b5563}
#moveModal .modal-body{display:flex;flex-direction:column;gap:12px}
#moveModal .modal-foot{padding:13px 18px;gap:9px}
#moveModal .modal-close{width:32px;height:32px}
#moveBackBtn{align-self:flex-start;min-height:34px;padding:7px 13px;font-size:13px}
.move-exclude-tip{display:block;margin-top:2px;font-size:12px;color:#4b5563}
.move-exclude-tip[hidden]{display:none}
#moveCrumb .path-link{color:#1d4ed8}
#moveCrumb .path-link:hover{color:#1d4ed8}
.toast-detail{margin-top:5px;font-size:12px;color:#4b5563;word-break:break-all}
.move-crumb{display:flex;align-items:center;gap:6px;min-height:34px;padding:7px 11px;background:var(--bg);border:1px solid var(--line);border-radius:8px;font-size:13px;min-width:0}
.move-crumb .path-link{flex:0 0 auto}
.move-crumb .sep{flex:0 0 auto;color:var(--muted)}
.move-crumb .mid{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted)}
.move-crumb .cur{flex:0 1 auto;min-width:0;max-width:45%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted)}
.move-dir-list{border:1px solid var(--line);border-radius:9px;background:var(--white);max-height:320px;overflow-y:auto;overscroll-behavior:contain}
.move-dir-row{display:flex;align-items:center;gap:9px;width:100%;min-height:44px;padding:9px 12px;border:0;border-bottom:1px solid var(--line);background:var(--white);font:inherit;font-size:13px;color:var(--ink);text-align:left;cursor:pointer}
.move-dir-row:last-child{border-bottom:0}
.move-dir-row:hover{background:#f0fdf6}
.move-dir-row:focus-visible{outline:2px solid var(--green);outline-offset:-2px}
.move-dir-row .folder{flex:0 0 auto;color:var(--orange);font-size:16px}
.move-dir-row .name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}
.move-dir-row .arrow{flex:0 0 auto;color:var(--muted);font-size:16px}
#moveDirList .empty{padding:28px 14px}
@media(max-width:560px){
  #moveModal .modal-head{padding:13px 15px}
  #moveModal .modal-body{padding:15px;gap:10px}
  #moveModal .modal-foot{padding:11px 15px}
  #moveConfirm{flex:1}
}

/* 首页三个统计卡片：手机端保持同一行 */
@media(max-width:560px){
  .home-cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
  .home-cards .card{padding:11px 9px;min-width:0}
  .home-cards .card .label{font-size:12px}
  .home-cards .card .value,.home-cards .card .value.small{font-size:15px;line-height:1.35;word-break:break-all;margin:5px 0 3px}
  .home-cards .card .foot{font-size:10px;line-height:1.4;word-break:break-all}
}

/* 首页系统消息：紧凑三列列表，点击标题看全文 */
.notif-list{border:1px solid var(--line);border-radius:8px;overflow:hidden}
.notif-row{display:flex;align-items:center;gap:10px;padding:10px 13px;border-bottom:1px solid #eef2f0;font-size:13px}
.notif-row:last-child{border-bottom:0}
.notif-row:hover{background:#fbfefc}
.notif-row .notif-check{flex:none}
.notif-row .notif-tag{flex:none;max-width:70px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.notif-row .notif-title{flex:1;min-width:0;text-align:left;border:0;background:transparent;color:#374151;cursor:pointer;font-family:inherit;font-size:13px;padding:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.notif-row .notif-title:hover{color:var(--green-dark);text-decoration:underline}
.notif-row .notif-time{flex:none;font-size:12px}
.notif-view-time{margin-top:12px;font-size:12px}
@media(max-width:560px){
  .notif-row{gap:7px;padding:10px 9px;font-size:12px}
  .notif-row .notif-tag{max-width:52px;font-size:11px}
  .notif-row .notif-title{font-size:12px}
  .notif-row .notif-time{font-size:11px}
}

/* 平台通知/系统消息标签：浅绿底深绿字 */
.tag.notice{background:#ebf8f3;color:#12925f}

/* 统计报表：三列网格，手机端保持一致 */
.stats-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:18px}
.stats-grid .card{min-width:0}
.stats-grid .stat-disk{grid-column:span 2}
.stat-disk-title{display:flex;align-items:center;gap:8px;margin-bottom:12px;color:#374151;font-size:14px}
.stat-disk-title i{width:4px;height:16px;background:var(--green);border-radius:2px;flex:none}
.stat-disk .progress{margin:0}
.stat-disk p{margin:8px 0 0;font-size:12px}
@media(max-width:900px){
  .stats-grid{gap:10px}
  .stats-grid .card{padding:13px 12px}
  .stats-grid .card .value{font-size:22px}
  .stats-grid .card .value.small{font-size:15px}
}
@media(max-width:560px){
  .stats-grid{gap:7px}
  .stats-grid .card{padding:10px 9px}
  .stats-grid .card .label{font-size:11px}
  .stats-grid .card .value{font-size:20px}
  .stats-grid .card .foot{font-size:10px;line-height:1.4}
  .stat-disk-title{font-size:12px;margin-bottom:9px}
  .stat-disk p{font-size:10px;line-height:1.4}
}

/* 工单标题可直接点击打开详情（与“查看”按钮等效） */
.ticket-title-link{display:block;width:100%;padding:0;border:0;background:transparent;color:var(--green-dark);font:inherit;font-weight:600;text-align:left;cursor:pointer;line-height:inherit}
.ticket-title-link:hover{text-decoration:underline}

/* 网站详情卡片：手机端保持两列（状态/到期时间、套餐容量/已用空间） */
@media(max-width:560px){
  .site-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .site-cards .card{padding:12px 11px}
  .site-cards .card .label{font-size:12px}
  .site-cards .card .value.small{font-size:14px;line-height:1.4;word-break:break-all;margin:5px 0 3px}
  .site-cards .card .value.site-expire{font-size:13px;letter-spacing:-.2px;white-space:nowrap;word-break:normal}
  .site-cards .card .foot{font-size:10px;line-height:1.4;white-space:normal}
  .site-cards .card .foot .btn{margin-top:2px}
}

/* 网站管理列表：名称/套餐/到期时间加宽不换行 */
.site-table th:nth-child(3),.site-table td:nth-child(3){min-width:130px}
.site-table th:nth-child(4),.site-table td:nth-child(4){min-width:140px}
.site-table th:nth-child(5),.site-table td:nth-child(5){min-width:185px}
.site-table td:nth-child(3),.site-table td:nth-child(4),.site-table td:nth-child(5){white-space:nowrap}
/* 到期时间下方：剩余天数与续费按钮同一行，蓝色标签白字不加粗 */
.site-table .expire-foot{display:flex;align-items:center;gap:7px;margin-top:4px;white-space:nowrap}
.site-table .tag.days-left{background:#79bbff;color:#fff;font-weight:400;border-radius:5px;padding:2px 8px}
.site-table .expire-foot .btn{margin-right:0}

/* 网站管理搜索区：搜索类型/输入框/按钮强制同一行 */
.site-search{flex-wrap:nowrap;gap:6px;min-width:0}
.site-search select.ipt{flex:0 0 90px;width:90px;padding:0 6px;font-size:12px}
.site-search input.ipt{flex:1 1 0;width:auto;min-width:0}
.site-search #siteSearchBtn,
.site-search #siteResetBtn{flex:0 0 auto;width:52px;box-sizing:border-box;min-height:36px;padding:0 10px;white-space:nowrap}
@media(max-width:900px){
  .site-search{flex:1 1 100%;margin-left:0}
}
@media(max-width:560px){
  .site-search input.ipt{font-size:13px;padding:0 8px}
}
