/* Shared public-page controls. Kept separate from the gallery and Studio themes. */
.ps-share-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;flex-shrink:0;min-height:44px;padding:10px 17px;border:1px solid #d6def7;border-radius:999px;background:#f4f6ff;color:#4964df;font:650 14px/1.3 "Segoe UI","Microsoft YaHei",sans-serif;white-space:nowrap;cursor:pointer;transition:background .18s,box-shadow .18s,transform .18s}
.ps-share-button:hover{background:#e9eeff;box-shadow:0 6px 18px #4d67dc20;transform:translateY(-1px)}
.ps-share-button svg,.ps-share-native svg{display:block;flex-shrink:0;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ps-share-button:focus-visible,.ps-share-dialog :focus-visible{outline:3px solid #748afa;outline-offset:3px}
.ps-header-share{margin-left:auto}
.site-header:not(.detail-header) .header-inner>.ps-header-share+.menu-button{margin-left:0}
.detail-header .header-inner{gap:12px}
.detail-header .header-inner>.ps-header-share{margin-left:auto}
.detail-header .header-inner>.ps-header-share+.back-link{margin-left:0}
.ps-studio-actions{display:flex;align-items:center;gap:12px;flex-shrink:0}
.ps-case-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:stretch;gap:12px}
.ps-case-actions.ps-share-only{grid-template-columns:1fr}
.ps-case-actions .case-download-button{width:100%;min-width:0;padding-inline:14px;font-size:14px}
.ps-case-actions .ps-share-button{min-height:48px}
.ps-case-actions .case-download-tip{grid-column:1/-1;margin-top:0}
.ps-case-actions>.case-download-tip[hidden]{display:none}
.ps-legacy-actions{width:360px;flex-shrink:0;max-width:100%}
.ps-share-open{overflow:hidden}
.ps-share-dialog{box-sizing:border-box;width:min(440px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 32px);margin:auto;padding:28px;border:1px solid #dce3f6;border-radius:24px;background:#fff;color:#20263c;box-shadow:0 25px 90px #14255040;font-family:"Segoe UI","Microsoft YaHei",sans-serif;overflow:auto}
.ps-share-dialog::backdrop{background:#17213e80;backdrop-filter:blur(6px)}
.ps-share-dialog *{box-sizing:border-box}
.ps-share-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}
.ps-share-eyebrow{font-size:13px;line-height:1.5;color:#6d7da5}
.ps-share-head h2{margin:7px 0 0;font-size:26px;line-height:1.4;font-weight:750;letter-spacing:-.5px}
.ps-share-close{display:grid;place-items:center;flex-shrink:0;width:38px;height:38px;padding:0;border:1px solid #e1e6f3;border-radius:50%;background:#f5f7fc;color:#57647f;font:26px/1 sans-serif;cursor:pointer}
.ps-share-title{margin:12px 0 22px;font-size:15px;line-height:1.7;color:#6d758b;overflow-wrap:anywhere}
.ps-share-qr{display:flex;align-items:center;justify-content:center;width:240px;min-height:240px;max-width:100%;margin:0 auto;padding:7px;border:1px solid #e0e6f4;border-radius:16px;background:#fff;color:#67758f;text-align:center;font-size:14px}
.ps-share-qr img{display:block;width:224px;height:auto;max-width:100%;image-rendering:pixelated}
.ps-share-hint{margin:16px 0 24px;color:#67738d;font-size:14px;text-align:center;line-height:1.8}
.ps-share-url-label{display:block;font-size:13px;color:#69768f;margin-bottom:8px}
.ps-share-link-row{display:flex;gap:8px}
.ps-share-link-row input{min-width:0;flex:1;width:100%;height:44px;padding:0 11px;border:1px solid #dce3f2;border-radius:10px;background:#f6f8fd;color:#5e6a82;font:13px "Segoe UI",sans-serif;text-overflow:ellipsis}
.ps-share-copy{flex-shrink:0;padding:10px 16px;border:0;border-radius:10px;background:#4964e8;color:white;font:650 14px "Microsoft YaHei",sans-serif;cursor:pointer}
.ps-share-copy:hover{background:#3853d3}
.ps-share-native{display:flex;align-items:center;justify-content:center;gap:9px;width:100%;min-height:44px;margin-top:12px;border:1px solid #dce3f2;border-radius:10px;background:#fff;color:#4e608a;font:600 14px "Microsoft YaHei",sans-serif;cursor:pointer}
.ps-share-native[hidden]{display:none}
.ps-share-status{min-height:22px;margin:12px 0 0;font-size:13px;line-height:1.7;color:#4964d6}
@media(min-width:701px) and (max-width:1250px){body[data-gallery-type] .header-inner .desktop-nav{display:none}body[data-gallery-type] .header-inner .menu-button{display:inline-grid}body[data-gallery-type] .header-search-toolbar{min-width:220px}}
@media(max-width:1100px){.ps-studio-actions .ps-header-share{width:42px;min-height:42px;padding:10px}.ps-studio-actions .ps-share-label{display:none}.ppt-case-header{flex-wrap:wrap}.ps-legacy-actions{flex-shrink:1}}
@media(max-width:900px){.ps-header-share{width:42px;min-height:42px;padding:10px}.ps-header-share .ps-share-label{display:none}.ps-studio-actions{gap:8px}.ps-studio-actions .ps-share-button{margin-left:0}.detail-header .header-inner{gap:8px}}
@media(max-width:600px){.ps-share-dialog{padding:22px;border-radius:20px}.ps-share-head h2{font-size:24px}.ps-case-actions{gap:10px}.ps-case-actions .ps-share-button{padding-inline:14px}.ps-studio-actions .button.small{padding-inline:10px;gap:6px}.ps-studio-actions .button.small>span{display:none}}
@media(max-width:360px){.detail-header .back-link{font-size:12px;padding-inline:9px}.header .brand{font-size:14px;gap:6px}.ps-share-link-row{flex-wrap:wrap}.ps-share-link-row .ps-share-copy{width:100%}}
@media(prefers-reduced-motion:reduce){.ps-share-button{transition:none}.ps-share-button:hover{transform:none}}
