/* 模板分享：所有者设置弹窗 + 公开访问页 */
.ts-wrap{display:flex;flex-direction:column;gap:14px}
.ts-loading{display:flex;align-items:center;justify-content:center;gap:10px;padding:30px 0;color:#667085;font-size:13px}
.ts-spinner{width:16px;height:16px;border:2px solid #dbe7ff;border-top-color:#2563eb;border-radius:50%;animation:ts-spin .7s linear infinite}
@keyframes ts-spin{to{transform:rotate(360deg)}}
.ts-link-row{display:flex;gap:8px;align-items:center}
.ts-link-row input{flex:1;min-width:0;height:40px;padding:0 12px;border:1px solid #e7e9ee;border-radius:8px;background:#f8fafc;color:#667085;font-size:13px;text-overflow:ellipsis}
.ts-link-row .ts-copy-btn{flex:0 0 auto;height:40px;padding:0 15px}
.ts-qr-wrap{position:relative;flex:0 0 auto}
.ts-qr-btn{width:40px;height:40px;display:flex;align-items:center;justify-content:center;border:1px solid #d0d5dd;border-radius:8px;background:#fff;color:#475467;cursor:pointer;transition:all .15s}
.ts-qr-btn:hover{border-color:#84adff;color:#2563eb;background:#f8faff}
.ts-qr-btn.is-disabled{opacity:.4;cursor:not-allowed}
.ts-qr-pop{display:none;position:absolute;z-index:20;right:0;top:calc(100% + 8px);width:184px;padding:11px;background:#fff;border:1px solid #e7e9ee;border-radius:12px;box-shadow:0 12px 30px rgba(16,24,40,.14);text-align:center}
.ts-qr-wrap:hover .ts-qr-pop,.ts-qr-pop.show{display:block}
.ts-qr-pop-img{width:160px;height:160px;display:flex;align-items:center;justify-content:center;background:#fff;border-radius:8px;overflow:hidden;margin:0 auto}
.ts-qr-pop-img img{width:160px;height:160px;display:block}
.ts-qr-pop-img .ts-qr-empty{font-size:11.5px;color:#98a2b3;line-height:1.7;padding:12px}
.ts-qr-pop-tip{font-size:11.5px;color:#98a2b3;margin-top:7px}
.ts-qr-download{width:100%;margin-top:9px;height:32px;border:1px solid #d0d5dd;background:#fff;color:#344054;border-radius:7px;font-size:12.5px;cursor:pointer;transition:all .15s}
.ts-qr-download:hover{background:#f8faff;border-color:#84adff;color:#2563eb}
.ts-meta{font-size:12px;color:#98a2b3;margin-top:-2px}
.ts-form{border-top:1px solid #eef0f3;padding-top:2px}
.ts-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid #f1f2f4;font-size:13.5px;color:#344054}
.ts-row:last-child{border-bottom:0}
.ts-row-label{font-weight:500;color:#344054}
.ts-row-desc{font-size:11.5px;color:#98a2b3;margin-top:3px;line-height:1.6}
.ts-select{height:36px;min-width:130px;padding:0 30px 0 11px;border:1px solid #d0d5dd;border-radius:8px;background:#fff;color:#344054;font-size:13px;outline:none}
.ts-static{font-size:13px;color:#667085}
.ts-switch{appearance:none;-webkit-appearance:none;width:42px;height:23px;border-radius:999px;background:#d0d5dd;position:relative;cursor:pointer;transition:background .2s;flex:0 0 auto}
.ts-switch::after{content:'';position:absolute;top:3px;left:3px;width:17px;height:17px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(16,24,40,.2);transition:left .2s}
.ts-switch:checked{background:#2563eb}
.ts-switch:checked::after{left:22px}
.ts-pass-wrap{display:flex;align-items:center;gap:8px}
.ts-pass-wrap input[type=text]{width:132px;height:36px;padding:0 10px;border:1px solid #d0d5dd;border-radius:8px;font-size:13px;color:#111827;outline:none;letter-spacing:.5px}
.ts-pass-wrap .ts-regen{width:32px;height:32px;border:1px solid #e7e9ee;background:#fff;border-radius:8px;cursor:pointer;color:#667085;font-size:15px;line-height:1}
.ts-pass-wrap .ts-regen:hover{background:#f8fafc;color:#111827}
.ts-result{display:none;padding:11px 13px;border:1px solid #d1e9ff;background:#f5faff;border-radius:9px;color:#175cd3;font-size:12.5px;line-height:1.8;word-break:break-all}
.ts-result.show{display:block}
.ts-result b{color:#111827}
.ts-status{font-size:12.5px;color:#98a2b3;line-height:1.7}
.ts-status.error{color:#b42318}

/* 公开访问页 */
.share-page{max-width:760px;margin:0 auto;padding:48px 20px 72px}
.share-view-card,.share-password-card,.share-empty-card{background:#fff;border:1px solid #e7e9ee;border-radius:16px;box-shadow:0 1px 2px rgba(16,24,40,.03);padding:28px}
.share-view-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:20px}
.share-eyebrow{font-size:11px;letter-spacing:1.4px;color:#98a2b3;font-weight:600;margin-bottom:7px}
.share-view-head h1,.share-password-card h1,.share-empty-card h1{font-size:24px;line-height:1.3;letter-spacing:-.3px;margin:0 0 8px;color:#111827}
.share-view-head p,.share-password-card p,.share-empty-card p{font-size:13.5px;color:#667085;line-height:1.8;margin:0}
.share-view-meta{flex:0 0 auto;padding:6px 10px;border:1px solid #eef0f3;border-radius:999px;background:#fafbfc;font-size:12px;color:#667085;white-space:nowrap}
.share-preview{border:1px solid #eef0f3;border-radius:12px;background:#f8fafc;min-height:280px;display:flex;align-items:center;justify-content:center;padding:20px;overflow:hidden}
.share-preview img{max-width:100%;max-height:420px;object-fit:contain;display:block}
.share-preview-placeholder{color:#98a2b3;font-size:13px}
.share-view-actions{margin-top:22px;text-align:center}
.share-action-tip{font-size:12px;color:#98a2b3;line-height:1.7;margin-top:10px}
.share-inline-link{color:#2563eb;text-decoration:none}
.share-inline-link:hover{text-decoration:underline}
.share-password-card,.share-empty-card{text-align:center;max-width:480px;margin:0 auto;padding:36px 30px}
.share-lock{width:48px;height:48px;border-radius:14px;background:#eef4ff;color:#2563eb;font-size:21px;display:flex;align-items:center;justify-content:center;margin:0 auto 16px}
.share-empty-icon{width:48px;height:48px;border-radius:50%;background:#fef3f2;color:#b42318;font-size:22px;font-weight:700;display:flex;align-items:center;justify-content:center;margin:0 auto 16px}
.share-password-form{display:flex;gap:8px;margin:22px 0 12px}
.share-password-form .form-input{flex:1;height:42px}
.share-password-form .btn{height:42px;flex:0 0 auto}
.share-error{padding:9px 12px;background:#fef3f2;border:1px solid #fecdca;color:#b42318;border-radius:8px;font-size:12.5px;margin-top:16px}
.share-foot-tip{font-size:12px;color:#98a2b3;margin-top:8px}
@media(max-width:620px){
  .share-page{padding:24px 12px 48px}
  .share-view-card,.share-password-card,.share-empty-card{padding:20px}
  .share-view-head{flex-direction:column;gap:10px}
  .ts-row{align-items:flex-start;flex-direction:column;gap:8px}
  .ts-pass-wrap{width:100%}
  .ts-link-row{gap:6px}
  .ts-link-row .ts-copy-btn{padding:0 11px}
  .ts-qr-pop{width:176px}
  .ts-qr-pop-img,.ts-qr-pop-img img{width:152px;height:152px}
  .share-password-form{flex-direction:column}
}
