/* One token source and one material recipe. Inner controls reuse opaque glass,
   while a bounded set of non-nested surfaces owns the backdrop blur. */
:root{
 --ink:#213547;--muted:#626975;--blue:#007aff;--blue-text:#0a5fcc;--line:#e5e7eb;--section-line:#dce3ed;--surface:#fff;--edge:#e5e7eb;--shadow:0 3px 12px #0000000f;--pill:999px;
 --glass-blur:saturate(180%) blur(20px);--glass-overlay-blur:saturate(180%) blur(24px);--glass-backdrop-blur:blur(6px);--glass-bg:rgba(255,255,255,.58);--glass-bg-strong:rgba(255,255,255,.78);--glass-bg-weak:rgba(255,255,255,.42);--glass-border:rgba(255,255,255,.65);--glass-hi:inset 0 1px 0 rgba(255,255,255,.90),inset 0 -1px 0 rgba(255,255,255,.35);--glass-shadow:0 8px 32px rgba(31,41,55,.12),0 1px 2px rgba(31,41,55,.06);--glass-sheen:radial-gradient(120% 80% at 30% 0%,rgba(255,255,255,.50),rgba(255,255,255,0) 60%);
 --glass-radius-card:16px;--glass-radius-btn:12px;--glass-radius-dialog:20px;--glass-ring:0 0 0 3px rgba(0,122,255,.2);
 --btn-h-sm:32px;--btn-h-md:40px;--btn-h-lg:44px;--button-height:var(--btn-h-md);--button-pad:16px;--action-width:148px;--primary-fill:linear-gradient(120deg,rgba(0,86,190,.96),rgba(0,100,207,.96));
}
html{scroll-padding-top:20px;background:#f8f9fa;-webkit-text-size-adjust:100%;text-size-adjust:100%;touch-action:manipulation}
body.design-system{font-family:system-ui,-apple-system,"Segoe UI","Microsoft YaHei",sans-serif;font-size:15px;line-height:1.65;color:var(--ink);background:#f8f9fa;background-image:radial-gradient(1200px 640px at 10% -6%,rgba(0,122,255,.06),transparent 62%),radial-gradient(1000px 720px at 100% 8%,rgba(88,101,242,.05),transparent 58%),radial-gradient(920px 720px at 50% 112%,rgba(0,122,255,.05),transparent 62%);background-attachment:fixed}
a{color:var(--blue-text)}small,.muted,dt{color:var(--muted);font-size:13px}strong{font-weight:700}
.design-system h1{font-size:28px;line-height:1.3;font-weight:700;margin:0 0 12px}.design-system h2{font-size:20px;font-weight:700}.design-system h3{font-size:18px;font-weight:700;margin:0 0 16px}
/* Non-nested surfaces share one recipe. glass.js budgets visible blur layers. */
.design-system :where(.site-header,.admin-header,.admin-nav,dialog,#toast){background:var(--glass-sheen),var(--glass-bg-strong);border:1px solid var(--glass-border);box-shadow:var(--glass-hi),var(--glass-shadow);border-radius:var(--glass-radius-card)}
.design-system :is(article,.stat,.resource-card,.detail-head,.detail-intro,.detail-block:not(.screenshot-section),.editor section,.empty,.table-wrap,.media-item,.link-row,.overview-recent,.category-tree,.platform-resource-list,.settings-grid section,.platform-editor){background:var(--glass-sheen),var(--glass-bg-strong);border:1px solid var(--glass-border);border-radius:var(--glass-radius-card);box-shadow:var(--glass-hi),var(--glass-shadow);color:var(--ink)}
.design-system main#app{background:none;border:1px solid transparent;border-radius:var(--glass-radius-card);box-shadow:none}
.design-system [data-glass-layer]{-webkit-backdrop-filter:var(--glass-blur);backdrop-filter:var(--glass-blur)}
.design-system :is(dialog,#toast)[data-glass-layer]{-webkit-backdrop-filter:var(--glass-overlay-blur);backdrop-filter:var(--glass-overlay-blur);border-radius:var(--glass-radius-dialog)}
.design-system :where(button,.button,.link-button,#account-link,.subnav a,.platform-nav a,.actions>a,td>a,.detail-drive>a,.row-more>summary){box-sizing:border-box;height:var(--button-height);min-height:var(--button-height);padding:0 var(--button-pad);display:inline-flex;align-items:center;justify-content:center;gap:6px;line-height:1;font-size:14px;font-weight:600;white-space:nowrap;max-width:100%;border:1px solid var(--glass-border);border-radius:var(--glass-radius-btn);background:var(--glass-sheen),var(--glass-bg-strong);box-shadow:var(--glass-hi),0 3px 10px #1f29370a;color:var(--ink);transition:background-color .15s,box-shadow .15s,border-color .15s;flex-shrink:0}
.design-system :is(button,.button,.link-button,.actions>a):hover{border-color:#c9d5e5;box-shadow:var(--glass-hi),0 4px 12px #1f293719}.design-system :is(button,.button,.link-button):active{box-shadow:inset 0 2px 5px #1f29372a}.design-system :is(button,.button,.link-button):disabled{cursor:not-allowed;opacity:.65}
.design-system .primary{background:var(--primary-fill);border-color:transparent;color:#fff;box-shadow:var(--glass-hi),0 4px 10px #007aff38}
.design-system :is(button.active,.subnav a.active,.platform-nav a.active,.admin-nav a.active){background:#e7f0fd;border-color:#aacdf8;color:var(--blue-text)}
.design-system .danger{color:#b42318;border-color:#ff3b3066;background:#fff0ee}.design-system .quiet-action{color:var(--muted);background:var(--glass-bg-weak)}
.design-system :focus-visible{outline:3px solid var(--blue-text);outline-offset:3px;box-shadow:var(--glass-hi),var(--glass-ring)}
.design-system :is(input,select,textarea){font:inherit;color:var(--ink);border:1px solid #cdd5df;border-radius:10px;background-color:#ffffffd9;padding:10px 12px}.design-system :is(input:not([type=checkbox]):not([type=radio]),select){height:44px}.design-system input::placeholder,.design-system textarea::placeholder{color:var(--muted)}
.design-system select{appearance:none;padding-right:36px;background-image:none}.select-shell{display:block;position:relative;min-width:0}.select-shell>svg{position:absolute;right:12px;top:50%;width:16px;height:16px;margin-top:-8px;pointer-events:none;color:var(--muted)}.admin-toolbar .select-shell{min-width:160px}.admin-filters .select-shell{flex:1;min-width:140px}
.design-system .field{font-size:14px;color:var(--muted);font-weight:400}.design-system .form-error{color:#b42318;padding:8px 0;line-height:1.6}.design-system .form-error:empty{padding:0;margin:0}.design-system [aria-busy=true]{cursor:progress}
.design-system :is(.tag,.status-pill){display:inline-flex;align-items:center;gap:6px;padding:3px 10px;font-size:13px;line-height:1.6;border:1px solid var(--line);border-radius:var(--pill);background:#ffffffd9;color:var(--muted);cursor:default;font-weight:400}.status-pill:before{content:'•';font-size:16px}.status-pill:is([data-status=published],[data-status=active],[data-status=normal],[data-status=approved]){color:var(--blue-text);background:#edf4ff;border-color:#cfe2fb}.status-pill:is([data-status=archived],[data-status=disabled],[data-status=hidden]){color:#595f69;background:#f0f2f5}.status-pill:is([data-status=rejected],[data-status=deleted],[data-status=unavailable]){color:#b42318;background:#fff0ee}.status-pill:is([data-status=pending],[data-status=draft]){color:#7c4e14;background:#fff5e6}
.design-system .site-header{position:relative;max-width:1080px;margin:12px auto 0;padding:8px 16px}.header-row{padding:4px 0 10px}.brand{font-size:21px;font-weight:700;color:var(--ink)}#account-link{flex:none}.platform-nav{justify-content:flex-start}.platform-nav a{width:104px;min-width:0}.design-system main,.design-system footer{max-width:1080px;padding:24px;margin:20px auto}.design-system footer{font-size:13px;color:var(--muted);border-top:1px solid var(--line)}
.catalog-heading{margin-bottom:16px}.catalog-heading p{margin:0;color:var(--muted)}.search-row{margin-bottom:12px}.search-row button{width:96px}.subnav{margin-bottom:12px}.filter-row .field{max-width:240px}.results-heading{display:flex;justify-content:space-between;align-items:center;margin:20px 0 12px}.results-heading h2{margin:0}.results-heading span{font-size:13px;color:var(--muted)}
.resource-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:8px 0 16px}.design-system .resource-card{align-items:center;padding:18px;gap:14px;transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease}.resource-card strong{font-size:16px}.resource-card p{font-size:14px;color:var(--muted)}.resource-card small{font-size:13px}.get-pill{color:var(--blue-text);padding:5px 10px;font-size:13px;flex:none;border-radius:var(--pill);background:#edf4ff}.design-system .icon{width:64px;height:64px;aspect-ratio:1;border-radius:16px;object-fit:cover}.placeholder{background:#e8f1ff;color:var(--blue-text);font-size:24px;font-weight:700}.ipa-label,.store-label{margin-left:6px;vertical-align:middle;white-space:nowrap}
.resource-detail-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.resource-detail-label{font-size:14px;font-weight:400;color:var(--muted);margin:0}.resource-detail-header small{font-size:13px}.resource-detail-header>a{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:var(--glass-bg-strong);border:1px solid var(--glass-border);color:var(--ink);font-size:24px}
.detail-head{display:flex;align-items:center;gap:20px;margin:0 0 20px;padding:24px}.detail-head .icon{width:84px;height:84px;border-radius:20px}.detail-head-info{min-width:0}.detail-heading{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.design-system .detail-heading h1{margin:0;overflow-wrap:anywhere}.detail-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.design-system :is(.detail-intro,.detail-block:not(.screenshot-section),.resource-social article){padding:22px;margin:0 0 20px}.detail-summary{font-size:15px;line-height:1.9;margin:0}.detail-meta{display:flex;flex-wrap:wrap;gap:10px 24px;margin-top:20px;padding-top:16px;border-top:1px solid var(--line)}.detail-meta>div{display:flex;gap:8px;font-size:14px}.detail-meta span{color:var(--muted)}.detail-meta strong{font-weight:600;overflow-wrap:anywhere}
.screenshot-section{margin:24px 0}.screenshot-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.screenshot-heading h3{margin:0}.screenshot-heading h3 span{font-size:13px;font-weight:400;color:var(--muted);margin-left:10px}.shot-hint-wide{display:none}.shot-controls{display:flex;align-items:center;gap:10px;font-size:13px;color:var(--muted)}.design-system .shot-controls button{width:88px;padding:0 10px}.shot-carousel{display:flex;gap:18px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding-inline:10px;padding:20px 10px;position:relative;max-width:100%}
.design-system .shot-carousel .detail-thumb{position:relative;display:block;width:auto;max-width:none;height:320px;min-height:320px;flex:none;padding:0;border-radius:16px;border:0;background:transparent;overflow:hidden;box-shadow:0 5px 14px #1f29371a;scroll-snap-align:start;transition:transform .22s ease,box-shadow .22s ease}.shot-carousel .detail-thumb img{display:block;height:100%;width:auto;max-width:none;object-fit:contain;border-radius:inherit}.shot-carousel .detail-thumb::after{content:"";position:absolute;inset:0;border-radius:inherit;border:1px solid #ffffff70;background:linear-gradient(135deg,#ffffff14,transparent 40%);box-shadow:inset 0 1px 0 #ffffff80,inset 0 -1px 0 #ffffff30;pointer-events:none}
.member-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.member-heading h3{margin:0}.design-system #member-section:has(#member-content:empty){padding:14px 20px}.download-options{margin-top:24px}.design-system .download-options h3{font-size:14px;margin:0 0 12px}.detail-drives{display:grid;gap:10px}.detail-drive{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 16px;padding:14px;border:1px solid var(--section-line);border-radius:16px;background:var(--glass-bg-weak)}.drive-choice{display:flex;align-items:flex-start;flex-direction:column;gap:6px;min-width:0}.drive-logo,.drive-provider{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:104px;height:48px;flex:none;padding:8px 12px;border:1px solid var(--glass-border);border-radius:var(--pill);background:var(--glass-sheen),var(--glass-bg-strong);box-shadow:var(--glass-hi),0 2px 8px #1f29370a}.drive-logo img{display:block;width:78px;height:30px;max-width:100%;object-fit:contain}.drive-provider{font-size:13px}.drive-actions{display:flex;align-items:center;gap:8px}.design-system .drive-actions :is(a,button){width:72px;height:44px;padding:0 8px;border-radius:var(--pill)}.drive-address{grid-column:1/-1;font-size:13px;color:var(--muted)}.drive-address summary{width:fit-content;padding:4px 0;cursor:pointer}.drive-address p{margin:8px 0 0;padding-top:10px;border-top:1px solid var(--section-line);overflow-wrap:anywhere;user-select:text}
.design-system dialog.download-dialog{width:min(560px,calc(100vw - 24px));padding:24px}.download-dialog .dialog-head{padding-bottom:20px;margin-bottom:20px;border-bottom:1px solid var(--section-line)}.download-dialog .dialog-head h2{font-size:22px}.download-dialog .close{border-radius:50%}.download-app-summary{display:flex;align-items:center;gap:14px;padding:16px;border:1px solid #d6e5f8;border-radius:16px;background:#f3f8ffd9}.download-app-summary>div{min-width:0}.download-app-summary strong{font-size:17px;overflow-wrap:anywhere}.download-app-summary p{font-size:13px;color:var(--muted);margin:4px 0 0}.design-system .download-app-summary .icon{width:56px;height:56px;border-radius:14px}.download-dialog .download-note{padding-top:16px;margin-top:20px;border-top:1px solid var(--section-line)}
.ios-download{margin-top:16px}.ios-instructions{font-size:15px;line-height:1.8;margin:0 0 20px;white-space:pre-wrap;overflow-wrap:anywhere}.ios-instructions strong{font-weight:600}.ios-download-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.ios-download-actions>*{width:148px}
.design-system summary{list-style:none;cursor:pointer}.design-system summary::-webkit-details-marker{display:none}.design-system summary:after{content:' · 展开';font-size:13px;color:var(--muted)}.design-system details[open]>summary:after{content:' · 收起'}
.design-system dialog{--button-height:var(--btn-h-lg);position:fixed;width:min(720px,calc(100vw - 32px));max-height:90dvh;overflow:auto;padding:24px;border-radius:var(--glass-radius-dialog);color:var(--ink)}.design-system dialog::backdrop{background:rgba(15,23,42,.35);-webkit-backdrop-filter:var(--glass-backdrop-blur);backdrop-filter:var(--glass-backdrop-blur)}.design-system .close{width:var(--button-height);padding:0;font-size:24px}.image-preview{border-radius:16px}.resource-social{margin-top:20px}#toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);padding:12px 18px;max-width:90vw;z-index:100;text-align:center;color:var(--ink)}
.design-system .admin-header{max-width:1400px;margin:12px auto;padding:16px 24px}.admin-brand{font-size:21px;font-weight:700;line-height:1.3;margin:0}.design-system .admin-layout{align-items:start;max-width:1440px;padding:0 20px;gap:24px;grid-template-columns:180px minmax(0,1fr)}.design-system .admin-nav{padding:12px}.admin-nav a{display:flex;align-items:center;height:44px;padding:0 12px;border:1px solid transparent;border-radius:12px;color:var(--muted);font-size:14px;font-weight:600}.design-system main.admin-main{margin:0;max-width:none;padding:20px;min-height:0}.admin-main h1{font-size:24px;margin:0}.resource-status-tabs{padding:4px 0 16px;border-bottom:1px solid var(--line);margin-bottom:16px}.design-system .family-card{padding:18px;margin:0 0 14px}.family-heading{align-items:center;gap:16px;margin-bottom:10px}.family-heading h2{margin:0;font-size:18px;flex:1}.family-description{font-size:13px;color:var(--muted);margin-bottom:14px}.family-description summary{width:fit-content;padding:4px 0}.family-summary{white-space:pre-wrap;line-height:1.8;margin:10px 0}.family-variant{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:12px 0;border-top:1px solid var(--line)}.variant-label{font-size:14px;font-weight:600}.family-variant .status-pill{margin-right:auto}
.design-system .actions>:is(button,a),.design-system .family-tools>:is(button,a){width:var(--action-width)}.design-system .family-variant>:is(a,button),.design-system .row-more>summary{width:120px}.design-system .admin-header .actions>:is(a,button){width:112px}.account-nav{margin:0 0 24px}
.design-system .table-wrap{max-width:100%;overflow:auto}.design-system table{width:100%;min-width:640px;table-layout:auto;border-collapse:collapse;font-size:14px}.design-system th{background:#f1f5fa;text-align:left;padding:14px 16px;font-size:13px;font-weight:600;white-space:nowrap;color:var(--muted)}.design-system td{vertical-align:middle;font-variant-numeric:tabular-nums;padding:14px 16px;border-bottom:1px solid var(--line);max-width:340px;overflow-wrap:anywhere}.design-system td:last-child{min-width:150px}.design-system td button{margin:3px}.design-system tbody tr:nth-child(even){background:#ffffff80}.table-text summary{color:var(--blue-text);font-size:13px}.table-text .pre{margin-top:10px;font-size:14px}
.shared-shot{display:flex;align-items:center;gap:12px;padding:12px;border-bottom:1px solid var(--line)}.shared-shot img{width:64px;height:90px;object-fit:contain}.shared-shot>div{display:flex;flex-wrap:wrap;gap:8px;flex:1}.shared-shot label{display:flex;align-items:center;gap:4px}.shared-shot input{width:18px}
.design-system :is(article,.stat,.editor section,.empty){padding:22px}.editor{max-width:none}.editor section{margin-bottom:20px}.notice{background:#edf4ff;border-left:3px solid var(--blue);border-radius:10px;color:var(--ink);padding:12px;margin:14px 0;overflow-wrap:anywhere}.link-box{border:1px solid var(--line);padding:12px;margin:12px 0;overflow-wrap:anywhere}.comment{border-bottom:1px solid var(--line);padding:12px 0}.stat strong{font-weight:700;font-variant-numeric:tabular-nums}.stats{gap:16px}.media-grid{gap:16px}.media-grid article{margin:0}.media-grid p{font-size:13px;margin:14px 0}.loading{padding:40px}.auth-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.auth-actions button{width:100%}.auth-description{margin-bottom:20px}
.original-workbench-frame{display:block;width:100%;height:calc(100dvh - 155px);min-height:650px;border:1px solid var(--line);border-radius:16px;background:#ffffffc7}.platform-picker{margin:0}.platform-options{margin:20px 0}.platform-picker #ios-types{margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}
.design-system input::file-selector-button{font:inherit;color:var(--ink);background:var(--glass-bg-strong);border:1px solid var(--glass-border);border-radius:10px;height:32px;padding:0 12px;margin-right:10px;cursor:pointer}
/* Still referenced by the legacy editor adapters; styling moved out of reset. */
.wizard-steps{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:20px}.wizard-steps button span{display:grid;place-items:center;width:24px;height:24px;flex:none;border-radius:50%;background:#eaf1fb}.wizard-navigation{display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--glass-bg-strong);padding:14px;border:1px solid var(--line);border-radius:12px}.logo-reference{display:flex;gap:16px;align-items:center;padding:18px;background:var(--glass-bg-strong);border:1px solid var(--line);border-radius:12px;margin:12px 0 22px}.logo-reference p{margin:4px 0}.logo-reference a{margin-right:12px}.image-tools{border:1px solid var(--line);border-radius:12px;padding:18px;margin-top:20px;background:var(--glass-bg-strong)}.image-tools summary{font-weight:700;font-size:16px;margin-bottom:18px}.image-tools canvas{max-width:100%;height:auto;max-height:580px;object-fit:contain;display:block;margin:16px auto;border-radius:14px}.image-tools input[type=color]{height:44px;padding:4px}.cover-preview{max-width:380px;width:100%;border-radius:10px;margin-bottom:12px}.ios-editor section{border-left:3px solid #aacdf8}
.qr-figure{margin:16px 0;text-align:center;color:var(--muted);font-size:13px}.qr-placeholder{display:grid;place-items:center;width:180px;height:180px;max-width:100%;margin:14px auto;border:1px dashed #aab6c6;border-radius:var(--glass-radius-card);background:var(--glass-sheen),var(--glass-bg-strong);color:var(--muted)}#optional-qr{margin-top:20px}.catalog-upcoming{margin-top:16px}.catalog-upcoming .actions{justify-content:center}.catalog-upcoming h2{margin:0 0 10px}
.catalog-page :is(main#app,.site-header,footer){max-width:1280px}
@media(min-width:1200px){.catalog-page .resource-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.shot-hint-wide{display:inline}.shot-hint-narrow{display:none}.catalog-page .resource-card{padding:16px;gap:10px}.catalog-page .resource-card .icon{width:52px;height:52px}}
@media(min-width:1600px){.catalog-page :is(main#app,.site-header,footer){max-width:1480px}.catalog-page .resource-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1000px){.family-heading{align-items:start;flex-direction:column}.design-system .admin-layout{gap:16px;grid-template-columns:155px minmax(0,1fr)}}
@media(max-width:650px){:root{--button-height:var(--btn-h-lg);--button-pad:14px;--action-width:140px}.design-system .site-header{margin:8px 10px 0;padding:8px 10px}.brand{font-size:18px}.platform-nav a{flex:1 1 0;width:0;min-width:0}.design-system main{padding:16px;margin:12px 10px}.design-system h1{font-size:25px}.catalog-heading{margin-bottom:8px}.catalog-heading p{font-size:14px}
/* Compact the catalogue spacing, keeping every control and its 44px target. */
.catalog-page .site-header{padding:6px 10px}.catalog-page .header-row{padding:2px 0 6px}.catalog-page main#app{margin-top:8px;padding-top:8px}.catalog-page .catalog-heading h1{margin-bottom:4px}.catalog-page .search-row,.catalog-page .subnav{margin-bottom:8px}.catalog-page .filter-row .field{gap:4px}.catalog-page .results-heading{margin:10px 0 6px}.catalog-page .resource-grid{padding-top:4px}
.resource-grid{grid-template-columns:1fr;gap:12px}.design-system .resource-card{padding:14px;gap:10px}.design-system .icon{width:56px;height:56px}.filter-row .field{min-width:0}.results-heading{margin:16px 0 10px}.detail-head .icon{width:68px;height:68px}.detail-head{gap:14px;padding:16px}.design-system :is(article,.stat,.editor section,.empty,.detail-intro,.detail-block:not(.screenshot-section),.resource-social article){padding:16px}.screenshot-heading{flex-wrap:wrap}.screenshot-heading h3 span{display:block;margin:4px 0 0}.screenshot-heading h3 .shot-hint-wide{display:none}.shot-controls{gap:6px}.design-system .shot-carousel .detail-thumb{height:280px;min-height:280px}.design-system .admin-header{margin:8px;padding:14px;flex-wrap:wrap}.admin-brand{font-size:18px}.design-system .admin-layout{display:block;padding:0 10px}.design-system main.admin-main{padding:14px}.design-system .admin-nav{flex-direction:row;flex-wrap:wrap;gap:4px;padding:8px;margin-bottom:16px}.admin-nav a{font-size:13px;padding:0 10px}.family-tools{width:100%;flex-wrap:wrap}.family-variant{gap:8px}.family-variant .variant-label{flex-basis:50%}.family-variant .status-pill{margin:0}.family-description{margin-top:14px}.shared-shot{flex-wrap:wrap}.design-system dialog{padding:18px;width:calc(100vw - 20px)}.stats{gap:10px}.original-workbench-frame{height:78dvh;min-height:600px}.design-system .family-variant>:is(a,button),.design-system .row-more>summary{width:120px}.platform-options button{width:calc((100% - 20px)/3);padding:0 8px}.logo-reference{align-items:flex-start;padding:12px}.image-tools{padding:12px}.wizard-navigation{padding:10px}}
@keyframes card-lift{0%{transform:translateY(0)}55%{transform:translateY(-8px)}78%{transform:translateY(-4px)}100%{transform:translateY(-6px)}}
@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){.design-system .resource-card:hover,.design-system .shot-carousel .detail-thumb:hover{animation:card-lift .48s ease-out both;transform:translateY(-6px);border-color:#aacdf8;box-shadow:var(--glass-hi),0 10px 20px #1f293724}}
@media(prefers-reduced-motion:reduce){.design-system *{animation:none;transition:none;scroll-behavior:auto}}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){:root{--glass-bg:rgba(255,255,255,.92);--glass-bg-strong:rgba(255,255,255,.92);--glass-bg-weak:rgba(255,255,255,.92);--glass-blur:none;--glass-overlay-blur:none;--glass-backdrop-blur:none}.design-system :is(dialog,#toast){background:rgba(255,255,255,.92)}}
@media(prefers-reduced-transparency:reduce){:root{--glass-bg:rgba(255,255,255,.92);--glass-bg-strong:rgba(255,255,255,.92);--glass-bg-weak:rgba(255,255,255,.92);--glass-blur:none;--glass-overlay-blur:none;--glass-backdrop-blur:none}.design-system :is(dialog,#toast){background:rgba(255,255,255,.92);backdrop-filter:none;-webkit-backdrop-filter:none}.design-system dialog::backdrop{backdrop-filter:none;-webkit-backdrop-filter:none}}

/* Website-owned presentation adapter for the unmodified embedded workbench.
   Canvas, artwork presets and source editor behavior are not changed. */
:root:has(.workbench-skin){--bg:#f8f9fa;--green:var(--blue-text);--green-dark:#064caa;--green-soft:#e7f0fd;--wb-ink:var(--ink);--wb-muted:var(--muted);--wb-line:var(--line);--wb-green:var(--blue-text)}
.workbench-skin{font-family:system-ui,-apple-system,"Segoe UI","Microsoft YaHei",sans-serif;color:var(--ink);background:transparent;font-size:14px}
.workbench-skin .modal-layer>.modal{background:var(--glass-sheen),var(--glass-bg-strong);border:1px solid var(--glass-border);border-radius:20px;color:var(--ink);box-shadow:var(--glass-hi),var(--glass-shadow)!important;backdrop-filter:var(--glass-overlay-blur)}
.workbench-skin :is(.modal-header,.modal-footer){background:var(--glass-bg-strong);color:var(--ink);border-color:var(--line);backdrop-filter:none}
.workbench-skin :is(.button,button:not(.promo-shot):not(.promo-preset):not(.detail-thumb):not(.icon-btn)){height:44px;min-height:44px;padding:0 16px;display:inline-flex;align-items:center;justify-content:center;gap:6px;line-height:1;font-size:14px;font-weight:600;border:1px solid var(--glass-border);border-radius:12px;background:var(--glass-sheen),var(--glass-bg-strong);color:var(--ink);box-shadow:var(--glass-hi),var(--shadow);transform:none;transition:background-color .15s,box-shadow .15s}
.workbench-skin .modal-layer :is(.button.primary,button.primary){color:#fff;background:var(--primary-fill);border-color:transparent;box-shadow:var(--glass-hi),0 4px 10px #007aff38}
.workbench-skin .modal-footer .button{width:148px}.workbench-skin .wizard-nav{gap:8px;flex-wrap:wrap;padding:12px 16px}.workbench-skin .wizard-nav .spacer{display:none}.workbench-skin .wizard-nav .button{flex:1;min-width:0;width:80px;padding:0 6px;font-size:13px}.workbench-skin .icon{width:18px;height:18px;flex:none}.workbench-skin .modal-header :is(small,p),.workbench-skin .field>span,.workbench-skin .field label{color:var(--muted);font-size:13px;font-weight:600}
.workbench-skin :is(.field,.field-help,.datalist-hint,.promo-tip,.progress-text,.logo-help,.logo-help strong,#website-save-state,.wizard-step){font-size:13px;color:var(--muted);font-weight:400}
.workbench-skin :is(input,textarea,select){color:var(--ink);border-color:#cdd5df;background:#ffffffd9;border-radius:10px;font-size:14px}.workbench-skin :is(input,textarea)::placeholder{color:var(--muted)}
.workbench-skin :is(button,a,input,textarea,select):focus-visible{outline:3px solid var(--blue-text);outline-offset:2px;box-shadow:var(--glass-hi),var(--glass-ring)}
.workbench-skin select{appearance:auto;min-height:44px}.workbench-skin :is(.wizard-step.active,.wizard-step.done){color:var(--blue-text);font-weight:600}.workbench-skin .wizard-step .ws-dot{color:var(--blue-text);background:#e7f0fd;font-weight:600;box-shadow:none}.workbench-skin .wizard-step.done .ws-dot{background:var(--blue-text);color:#fff}
.workbench-skin :is(.promo-device.on,.promo-preset.on){border-color:var(--blue);color:var(--blue-text);background-color:#e7f0fd;box-shadow:var(--glass-hi),var(--glass-ring)}
.workbench-skin :is(.copy-ready,.source-block,.telegram-raw pre){background:#f1f5fa;color:var(--ink);border-color:var(--line)}
.workbench-skin .section-title .icon{color:var(--muted)}
.workbench-skin .toast{background:var(--ink);color:#fff;box-shadow:var(--shadow);font-size:13px}.workbench-skin .toast.error{background:#b42318}
.workbench-skin .icon-btn{width:44px;height:44px;min-height:44px;padding:0;border-radius:12px;color:var(--ink);background:var(--glass-bg-strong)}
@media(prefers-reduced-motion:reduce){.workbench-skin *{animation:none;transition:none}}
/* Membership identity: compact, fixed geometry; rank is supplied by the API. */
.account-identity{display:inline-flex;align-items:center;flex-wrap:wrap;gap:6px;max-width:100%;vertical-align:middle;line-height:1.4}.account-name{min-width:0;overflow-wrap:anywhere;font-weight:600}.account-heading-identity{margin:0 0 20px}
.account-email{font-size:13px;color:var(--muted);margin:4px 0 0;overflow-wrap:anywhere}
.membership-benefits{margin:0 0 14px;padding:0;list-style:none;display:grid;gap:8px}.membership-benefits li{position:relative;padding-left:22px;font-size:14px}.membership-benefits li:before{content:'';position:absolute;left:0;top:7px;width:13px;height:13px;border-radius:50%;background:#e7f0fd;border:3px solid var(--blue-text);box-sizing:border-box}
.membership-badge{display:inline-flex;align-items:center;justify-content:center;gap:4px;flex:none;white-space:nowrap;font-size:11px;font-weight:600;line-height:1;vertical-align:middle;height:20px;padding:0 9px;border:1px solid #d3d1c7;border-radius:4px;background:linear-gradient(180deg,#f7f6f1,#eae8e0);color:#5f5e5a;box-sizing:border-box}
.membership-badge svg{width:10px;height:10px;flex:none}.membership-badge:is([data-badge=trial],[data-badge=month]){height:21px;border-radius:6px;background:linear-gradient(180deg,#eff7fe,#b5d4f4);border-color:#85b7eb;color:#0c447c}
.membership-badge[data-badge=year]{height:22px;border-radius:9px;background:linear-gradient(180deg,#fff4da,#fac775,#e8961c);border-color:#ba7517;color:#5c3200;animation:badge-border 5.5s ease-in-out infinite}
.membership-badge[data-badge=lifetime]{position:relative;overflow:hidden;isolation:isolate;height:24px;border-radius:999px;color:#fdf3d8;font-weight:500;background-image:linear-gradient(110deg,#554bb4 0%,#3c3489 24%,#6e5fd0 42%,#282159 60%,#4a409e 80%,#554bb4 100%);background-size:220% 100%;border:1px solid rgba(239,159,39,.85);animation:badge-flow 6.4s linear infinite,badge-glow 3.6s ease-in-out infinite}
.membership-badge[data-badge=lifetime]::after{content:'';position:absolute;top:-60%;bottom:-60%;left:0;width:32%;background:linear-gradient(90deg,rgba(255,255,255,0),rgba(255,255,255,.85),rgba(255,255,255,0));filter:blur(3px);transform:translateX(-160%) rotate(16deg);animation:badge-sheen 3.2s cubic-bezier(.4,0,.2,1) infinite;pointer-events:none}
.membership-badge[data-badge=lifetime] svg{animation:badge-spark 3.2s ease-in-out infinite}
.role-badge{display:inline-flex;align-items:center;height:20px;padding:0 7px;border-radius:999px;background:#3a4250;color:white;flex:none;white-space:nowrap;font-size:11px;font-weight:600;line-height:1}
.design-system #account-link{display:inline-flex;flex:none;gap:6px;max-width:100%;padding:0 12px}.design-system #account-link .account-identity{flex-wrap:wrap;justify-content:flex-end}.design-system #account-link .account-name{max-width:100%;white-space:normal;overflow-wrap:anywhere}
.header-row .brand{flex:0 1 auto;overflow-wrap:anywhere;line-height:1.25}.admin-main .account-identity{row-gap:8px}
@keyframes badge-border{0%,100%{border-color:#ba7517}50%{border-color:#ffe3a2}}
@keyframes badge-flow{from{background-position:0% 50%}to{background-position:220% 50%}}
@keyframes badge-sheen{0%{transform:translateX(-160%) rotate(16deg)}62%,100%{transform:translateX(360%) rotate(16deg)}}
@keyframes badge-glow{0%,100%{box-shadow:inset 0 1px 0 rgba(255,255,255,.24),0 2px 8px rgba(85,75,180,.34),0 0 0 0 rgba(239,159,39,0)}50%{box-shadow:inset 0 1px 0 rgba(255,255,255,.34),0 2px 10px rgba(85,75,180,.46),0 0 14px 2px rgba(239,159,39,.42)}}
@keyframes badge-spark{0%,68%,100%{transform:scale(1);filter:none}76%{transform:scale(1.26);filter:drop-shadow(0 0 5px #FFD98A)}86%{transform:scale(1.04)}}
@media(max-width:600px){.design-system #account-link{padding:0 10px;font-size:13px}.header-row{gap:8px}}
@media(max-width:420px){.design-system #account-link .account-name{max-width:100%}.header-row:has(.role-badge) .brand{font-size:15px}}
@media(prefers-reduced-motion:reduce){.membership-badge[data-badge],.membership-badge[data-badge=lifetime]::after,.membership-badge[data-badge=lifetime] svg{animation:none}}

/* ===== 详情页重排 + 下载线路弹窗 + 收藏评分（本轮新增） ===== */
.detail-crumbs{display:flex;align-items:center;flex-wrap:wrap;gap:6px;font-size:13px;color:var(--muted)}.detail-crumbs a{color:var(--muted)}.detail-crumbs a:hover{color:var(--blue-text)}.crumb-current{color:var(--ink);font-weight:600;max-width:40ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ver-pill{background:#edf4ff;border-color:#cfe2fb;color:var(--blue-text)}
.detail-subtitle{font-size:14px;color:var(--muted);margin:8px 0 0}
.detail-hero-actions{display:flex;align-items:center;gap:10px;margin:0 0 20px}
.download-cta{min-width:168px;height:var(--btn-h-lg);font-size:15px}
.fav-btn.is-fav{background:#edf4ff;border-color:#aacdf8;color:var(--blue-text)}
.detail-specs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0}
.detail-specs>div{display:flex;flex-direction:column;gap:7px;min-width:0;padding:14px 16px;border:1px solid #e2e8f0;border-radius:12px;background:#f5f8fc99}
.detail-specs dt{font-size:13px;font-weight:500;color:#626d7c;line-height:1.4;margin:0}
.detail-specs dd{margin:0;text-align:left;font-size:15px;line-height:1.6;font-weight:650;color:#213547;overflow-wrap:anywhere}
.detail-specs .spec-features{grid-column:1/-1;background:transparent}.spec-features dd{display:flex;flex-wrap:wrap;gap:8px}.spec-feature{display:inline-block;padding:3px 10px;border:1px solid #d3e2f5;border-radius:999px;background:#edf4fc;color:#285c91;font-size:13px;font-weight:500;max-width:100%;overflow-wrap:anywhere}
.star-rating{display:flex;align-items:center;gap:2px;flex-wrap:wrap}
.star-rating .star{background:none;border:none;box-shadow:none;height:44px;min-height:44px;padding:0;width:44px;min-width:44px;font-size:28px;line-height:1;cursor:pointer;color:#d3d9e2}
.star-rating .star:hover,.star-rating .star:active{box-shadow:none;border:none;background:none}
.star-rating .star.on{color:#ffb400}
.star-hint{font-size:13px;color:var(--muted);margin-left:8px}
.m-download-bar{display:none}
.download-note{background:#fff8e6;border-left:3px solid #e8961c;border-radius:10px;padding:12px;margin:14px 0;overflow-wrap:anywhere}
@media(max-width:650px){
 .detail-specs{grid-template-columns:repeat(2,minmax(0,1fr))}
 .detail-hero-actions{display:none}
 .m-download-bar{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:50;gap:10px;padding:10px 12px calc(10px + env(safe-area-inset-bottom));background:var(--glass-sheen),var(--glass-bg-strong);border:1px solid var(--glass-border);box-shadow:var(--glass-hi),0 -8px 24px rgba(31,41,55,.12)}
 .m-download-bar button{height:44px}
 .m-download-bar .ghost{width:110px;flex:none}
 .m-download-bar .primary{flex:1}
 .workbench-detail{padding-bottom:76px}
}

.not-found{max-width:560px;margin:12vh auto;text-align:center}.not-found h1{margin-bottom:16px}
.design-system .promo-label{margin-left:6px;color:#237052;background:linear-gradient(135deg,#effcf3,#d7f2e4);border-color:#b8dfc8;vertical-align:middle;white-space:nowrap}
.promotion-control{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 12px;white-space:nowrap;border:1px solid var(--glass-border);border-radius:var(--pill);background:var(--glass-sheen),var(--glass-bg-strong);box-shadow:var(--glass-hi);cursor:pointer}
.promotion-control input{width:18px;height:18px;margin:0;accent-color:var(--blue-text)}

/* Information boundaries use one quiet blue-grey rule, not boxed subcards. */
.account-page .account-security-panel h2{margin:0 0 12px}.account-facts{display:block;margin:0 0 8px}.account-facts>div{display:grid;grid-template-columns:120px minmax(0,1fr);gap:16px;padding:12px 0;border-top:1px solid var(--section-line)}.account-facts dt{font-size:14px}.account-facts dd{margin:0;text-align:left;overflow-wrap:anywhere}
.account-action-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 0;border-top:1px solid var(--section-line)}.account-action-row>span{font-size:14px;color:var(--muted);flex:none}.account-action-row:last-child{padding-bottom:0}.account-page>h2{padding-top:20px;margin-top:24px;border-top:1px solid var(--section-line)}
.request-record header{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;padding-bottom:12px;border-bottom:1px solid var(--section-line)}.request-record time{font-size:13px;color:var(--muted)}.comment+.comment{padding-top:16px;border-top:1px solid var(--section-line)}
@media(max-width:650px){.account-facts>div{grid-template-columns:88px minmax(0,1fr);gap:10px}.account-action-row{align-items:flex-start;flex-direction:column;gap:10px}.account-action-row .actions{width:100%}.account-action-row .actions>:is(a,button){flex:1;min-width:0;width:auto}}

@media(max-width:650px){.design-system dialog.download-dialog{padding:18px}.download-dialog .dialog-head{padding-bottom:16px;margin-bottom:16px}.download-app-summary{padding:14px}.detail-drive{padding:12px;column-gap:10px}.drive-logo,.drive-provider{width:96px}.design-system .drive-actions :is(a,button){width:60px}}

/* Mobile identity, compact catalog statuses and touch-safe form controls. */
.storefront #account-link{height:auto;min-height:40px;white-space:normal;padding:8px 12px;flex:0 1 auto;min-width:0}
.storefront .header-row{flex-wrap:nowrap}.storefront .header-row .brand{flex-shrink:0}
.storefront .resource-card .status-pill{padding:1px 6px;font-size:11px;line-height:1.5;gap:3px;vertical-align:middle;margin-left:5px;white-space:nowrap}
.storefront .resource-card .status-pill:before{font-size:11px}
.community-qr{text-align:center}.community-qr figure{margin:0}.community-qr .qr{width:min(260px,100%);height:auto;max-height:55dvh;object-fit:contain}
@media(max-width:600px){.design-system :is(input:not([type=checkbox]):not([type=radio]),select,textarea){font-size:16px}.storefront #account-link{max-width:100%;margin-left:auto}.storefront .header-row{row-gap:8px}}

/* Compact account entry and a single adaptive footer action row. */
.storefront footer>.actions{display:flex;flex-wrap:nowrap;gap:8px;max-width:480px;margin:auto}
.storefront footer>.actions>:is(a,button){flex:1 1 0;width:auto;min-width:0;padding:0 6px;font-size:clamp(12px,3.4vw,14px)}
.storefront #account-link .account-identity{flex-wrap:nowrap;gap:5px}
.storefront #account-link .account-name{display:inline-block;width:20px;height:20px;flex:none;font-size:0;white-space:nowrap;position:relative}

.storefront #account-link .account-name:before{content:"";position:absolute;width:7px;height:7px;border:1.6px solid currentColor;border-radius:50%;left:5px;top:0}.storefront #account-link .account-name:after{content:"";position:absolute;width:15px;height:8px;border:1.6px solid currentColor;border-bottom:0;border-radius:10px 10px 0 0;left:1px;bottom:0}

/* Annual membership guide: reference artwork adapted to an accessible dialog. */
.design-system dialog.vip-dialog{padding:0;width:min(540px,calc(100vw - 24px));max-height:90dvh;overflow:auto;border-radius:24px}
.vip-dialog .dialog-head{position:sticky;top:0;z-index:2;margin:0;padding:12px 20px;background:#fffdf9}.vip-dialog .dialog-head h2{font-size:16px}.vip-dialog .close{width:36px;min-height:36px;height:36px}
.vip-hero{padding:26px;color:#fff;background:radial-gradient(100% 150% at 0 0,#704ada99,transparent 65%),radial-gradient(100% 100% at 100% 0,#38bdf877,transparent 65%),linear-gradient(140deg,#1e1b4b,#312e81 46%,#6827a4)}.vip-label{display:inline-block;border:1px solid #e4c77699;border-radius:999px;color:#ffe29a;padding:4px 14px;background:#ffffff14;font-weight:700}.vip-price{display:flex;align-items:baseline;gap:8px;margin-top:10px;color:#ffdf85}.vip-price strong{font-size:64px;line-height:1.15;font-weight:850;background:linear-gradient(#fff3bd,#ffbe21);background-clip:text;-webkit-background-clip:text;color:transparent}.vip-price>span{font-size:24px}.vip-price small{color:#e6e5ff;font-size:16px}.vip-hero p{margin:10px 0 0;color:#e7eaff;font-size:14px}
.vip-body{padding:24px;background:#fff}.vip-benefits{list-style:none;padding:0;margin:0 0 22px;display:grid;grid-template-columns:1fr;gap:14px}.vip-benefits li{font-size:15px;padding-left:32px;position:relative;line-height:1.6}.vip-benefits li:before{content:'✓';position:absolute;left:0;top:1px;color:white;font-weight:700;background:linear-gradient(135deg,#6497ff,#7945ec);border-radius:50%;width:22px;height:22px;text-align:center;line-height:22px}
.vip-steps{list-style:none;counter-reset:vip;padding:14px 16px;margin:0;background:#f0f4ff;border:1px solid #dce6fc;border-radius:16px}.vip-steps li{counter-increment:vip;position:relative;padding-left:34px;margin:10px 0}.vip-steps li:before{content:counter(vip);position:absolute;left:0;top:1px;width:24px;height:24px;border-radius:50%;background:#6458c9;color:white;text-align:center;line-height:24px;font-size:13px}.vip-steps strong,.vip-steps span{display:block}.vip-steps strong{font-size:14px}.vip-steps span{font-size:13px;color:#5c6980;overflow-wrap:anywhere}.vip-note{font-size:13px;color:#805418;background:#fff8e9;padding:12px;border:1px solid #f4dfb3;border-radius:12px}.vip-contact{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:13px;overflow-wrap:anywhere}.vip-contact b{color:#5142a4;user-select:text}#vip-request-state{font-size:13px;color:#385d89}#vip-request-state:empty{display:none}#vip-qr{text-align:center;margin-top:16px}#vip-qr img{max-width:220px;width:100%;height:auto;margin:auto}#vip-qr p{font-size:13px}
.vip-footer{position:sticky;bottom:0;display:flex;gap:10px;padding:14px 24px;background:#fcfdff;border-top:1px solid #e4e8f0}.vip-footer button{flex:1;min-width:0;padding:0 8px}.vip-footer .primary{background:linear-gradient(110deg,#347bea,#5545d8)}
@media(max-width:420px){.vip-body{padding:16px}.vip-hero{padding:18px}.vip-benefits{grid-template-columns:1fr;gap:8px}.vip-footer{padding:12px 16px}}

/* The application page and upgrade dialog share the reference membership card. */
.membership-page{max-width:520px;margin:auto}.membership-page-title{font-size:22px;margin-bottom:20px}.membership-card{border-radius:26px;overflow:hidden;background:white;box-shadow:0 24px 54px -25px #27376666;border:1px solid #ffffffb3}.vip-label{display:inline-flex;align-items:center;gap:8px;padding:7px 14px;font-size:16px;box-shadow:inset 0 1px 2px #ffffff55,0 4px 20px #e2bf4933}.vip-label svg{width:18px;height:18px}.vip-price{margin-top:22px}.membership-card .vip-footer{position:static;flex-direction:column-reverse;padding:0 24px 24px;border:0;background:white}.membership-card .vip-footer button{flex:auto;width:100%;min-height:48px;border-radius:15px}.membership-card #vip-apply{background:transparent;box-shadow:none;color:#52627c;border-color:#e0e6f0}.membership-history{margin-top:32px;padding-top:20px;border-top:1px solid var(--line)}.membership-history h2{font-size:18px}.vip-dialog .dialog-head{background:#302b78;color:white}.vip-dialog .dialog-head .close{background:#ffffff22;color:white;border-color:#ffffff55}
@media(max-width:420px){.membership-page .vip-body{padding:20px}.membership-page .vip-hero{padding:24px 20px}.membership-card .vip-footer{padding:0 20px 20px}.membership-page .vip-benefits{gap:13px}.membership-page .vip-steps{padding:12px}.membership-page .vip-contact{gap:10px}.membership-page .vip-price strong{font-size:58px}}

.vip-optional-note{font-size:13px;margin:12px 0;color:#5c6980}.vip-optional-note summary{cursor:pointer;padding:8px 0}.vip-optional-note .field{margin-top:10px}

/* Compact mobile presentation and download dialog revision.  Business data and actions stay unchanged. */
.design-system .site-header{position:sticky;top:8px;z-index:40}
.detail-title-row{display:flex;align-items:center;flex-wrap:wrap;gap:8px;min-width:0}.detail-title-row h1{min-width:0}
.detail-head-info{flex:1;min-width:0}.detail-heading{display:block}.detail-title-row .tag{flex:none}
.drive-brand{display:flex;align-items:center;gap:10px;min-width:0}.drive-brand strong{font-size:14px;color:var(--ink);white-space:nowrap}.drive-logo,.drive-provider{width:84px;height:42px;padding:6px 9px;border-radius:12px}.drive-logo img{width:66px;height:28px}.drive-provider{font-size:12px}
.design-system .drive-actions :is(a,button){border-radius:10px;width:66px;height:40px}
.download-dialog .close{border:0;background:transparent;box-shadow:none;width:40px;height:40px;font-size:24px;color:var(--ink)}
.download-dialog .close:hover,.download-dialog .close:active{border:0;background:transparent;box-shadow:none}
.ios-download-status{display:flex;align-items:center;gap:8px;margin:0 0 12px;font-size:13px;color:var(--muted)}
.ios-download-actions{display:flex;flex-wrap:nowrap;gap:8px}.ios-download-actions>*{width:auto;min-width:0;flex:1;padding:0 8px;font-size:13px}

@media(max-width:650px){
 body.storefront{font-size:14px}.design-system h1{font-size:22px}.design-system h2{font-size:18px}.design-system h3{font-size:16px}
 .design-system main{padding:12px;margin:10px 8px}.design-system .site-header{top:4px;margin:4px 8px 0;padding:6px 8px;border-radius:14px}.brand{font-size:16px}.platform-nav a{height:38px;min-height:38px}
 .catalog-heading h1{font-size:23px}.catalog-heading p{font-size:13px}.catalog-page .resource-grid{gap:9px}.design-system .resource-card{padding:11px;gap:8px}.design-system .icon{width:50px;height:50px;border-radius:13px}.resource-card strong{font-size:14px}.resource-card p{font-size:13px;line-height:1.45;margin:2px 0}.resource-card small{font-size:12px}.get-pill{font-size:12px;padding:4px 8px}
 .detail-head{gap:10px;padding:12px;margin-bottom:14px}.detail-head .icon{width:56px;height:56px;border-radius:15px}.detail-title-row{gap:5px}.design-system .detail-title-row h1{font-size:20px}.design-system .detail-title-row :is(.tag,.status-pill),.design-system .detail-tags .tag{font-size:11px;padding:2px 7px}.detail-tags{gap:4px;margin-top:5px}
 .design-system :is(.detail-intro,.detail-block:not(.screenshot-section),.resource-social article){padding:13px;margin-bottom:13px}.detail-summary{font-size:14px;line-height:1.7}.shot-carousel{gap:10px;padding:12px 4px}.design-system .shot-carousel .detail-thumb{height:230px;min-height:230px}
 .storefront:has(.m-download-bar){padding-bottom:calc(80px + env(safe-area-inset-bottom))}.workbench-detail{padding-bottom:0}.m-download-bar{padding:8px 10px calc(8px + env(safe-area-inset-bottom));gap:8px}.m-download-bar button{height:40px;min-height:40px}.m-download-bar .ghost{width:88px}
 .design-system dialog.download-dialog{width:calc(100vw - 28px);max-height:calc(100dvh - 28px);padding:14px}.download-dialog .dialog-head{padding-bottom:10px;margin-bottom:12px}.download-dialog .dialog-head h2{font-size:18px}.download-app-summary{padding:10px;gap:10px}.design-system .download-app-summary .icon{width:44px;height:44px;border-radius:12px}.download-app-summary strong{font-size:15px}.download-app-summary p{font-size:12px}.detail-drive{padding:9px;gap:7px 8px}.drive-brand{gap:7px}.drive-brand strong{font-size:12px}.drive-logo,.drive-provider{width:38px;height:36px;padding:4px 6px;border-radius:10px}.drive-logo img{width:28px;height:25px}.design-system .drive-actions{gap:5px}.design-system .drive-actions :is(a,button){width:52px;height:36px;font-size:12px;border-radius:9px;padding:0 4px}.drive-address{font-size:12px}.ios-instructions{font-size:14px;line-height:1.65;margin-bottom:12px}.ios-download-actions{gap:5px}.ios-download-actions>*{height:36px;min-height:36px;font-size:11px;padding:0 3px}.ios-download-status{margin-bottom:8px}
}

html:has(.storefront){scroll-padding-top:130px}
.download-dialog .close:focus:not(:focus-visible){outline:none;box-shadow:none}
.download-dialog .close:focus-visible{outline:2px solid var(--blue-text);outline-offset:1px}

.drive-logo[data-provider=xunlei] img{object-fit:contain;object-position:center;width:28px;height:28px}

/* Paid membership: isolated mobile-first surfaces; no dependency on preview tooling. */
.design-system .mc-page{max-width:460px;margin:24px auto;padding:0;border:0;background:none;box-shadow:none}
.design-system dialog.mc-dialog{max-width:470px;width:calc(100% - 24px);padding:12px;background:#edf2f8;max-height:94dvh}
.design-system .mc-dialog .dialog-head{padding:4px 10px 12px;margin:0}.mc-dialog .dialog-head h2{font-size:14px!important}
.mc-studio{--mc-ink:#18283f;--mc-muted:#62718a;--mc-line:#cdd9e8;color:var(--mc-ink);font-family:Inter,"PingFang SC","Microsoft YaHei",sans-serif;line-height:1.6;padding:0 24px 20px;border:1px solid #dfe8f4;border-radius:30px;background:radial-gradient(ellipse at 95% 20%,#bfd1f67a,transparent 65%),radial-gradient(ellipse at 0 70%,#e6d5af42,transparent 50%),#edf2f8;box-shadow:0 16px 50px #20365d14;overflow:hidden;isolation:isolate}
.mc-studio *{box-sizing:border-box}.mc-studio [hidden]{display:none!important}.mc-studio button,.mc-studio a{touch-action:manipulation}.mc-studio button:focus-visible,.mc-studio a:focus-visible{outline:3px solid #5487db;outline-offset:3px}
.mc-top{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:76px;border-bottom:1px solid #ffffffa8;font-size:14px;font-weight:600}.mc-brand{display:flex;align-items:center;gap:7px;font-size:11px;font-weight:400;color:var(--mc-muted)}.mc-brand b{display:grid;place-items:center;width:26px;height:26px;border-radius:9px;background:#1d304a;color:#fff;font-size:10px}
.mc-intro{padding:24px 0 18px}.design-system .mc-intro h2,.design-system .mc-redeem-panel h2{font-size:22px;line-height:1.45;margin:0;color:var(--mc-ink);border:0;padding:0}.mc-intro p{margin:5px 0 0;font-size:12px;color:var(--mc-muted)}
.mc-choices{display:grid;grid-template-columns:1fr 1fr;gap:11px;margin-bottom:19px}.design-system .mc-choice{position:relative;min-width:0;min-height:84px;padding:13px 12px;text-align:left;border:1px solid #d3ddeb;border-radius:17px;background:#ffffffb8;box-shadow:inset 0 1px #fff;color:var(--mc-ink);line-height:1.5}.mc-choice strong{display:block;font-size:14px;padding-right:13px}.mc-choice span{display:block;margin-top:5px;font-size:12px;color:var(--mc-muted)}.mc-choice b{color:#167c78}.mc-choice[data-plan=annual_365d] b{color:#a87118}.mc-choice i{position:absolute;right:10px;top:12px;color:#527dab;font-style:normal}.design-system .mc-choice[aria-pressed=true]{background:#e5effdcc;border-color:#7da1cf;box-shadow:inset 0 0 0 1px #9bb4d44a}.design-system .mc-choice[data-plan=annual_365d][aria-pressed=true]{background:#fff3dccc;border-color:#bd9656}
.design-system .mc-pass{position:relative;isolation:isolate;margin:0;padding:24px;border:1px solid #adcfee73;border-radius:28px;overflow:hidden;background:radial-gradient(ellipse at 100% 0%,#d4f4ff21,transparent 65%),linear-gradient(135deg,#365b80eb,#203c5bf5 62%,#385675e8);color:#f4f9ff;box-shadow:0 18px 35px #152a4b30,inset 0 1px #ffffff45,inset 0 -1px #ffffff10;backdrop-filter:blur(20px) saturate(120%)}
.mc-pass:before{content:"";position:absolute;z-index:-1;inset:0;pointer-events:none;background:linear-gradient(116deg,transparent 15%,#ffffff06 16%,#ffffff13 38%,transparent 39%)}.mc-pass:after{content:"";position:absolute;z-index:-1;pointer-events:none;width:240px;height:240px;border:1px solid #dff4ff14;border-radius:50%;right:-140px;top:70px;box-shadow:0 0 0 28px #ffffff03,0 0 0 57px #ffffff02}
.mc-studio[data-plan=annual_365d] .mc-pass{border-color:#eac88c70;background:radial-gradient(ellipse at 100% 0%,#e4bc7529,transparent 65%),linear-gradient(135deg,#384358f5,#172237fa 60%,#333d4cf5);box-shadow:0 18px 35px #152a4b32,inset 0 1px #f8e6c95e}
.mc-pass-top{display:flex;align-items:center;justify-content:space-between;font-size:10px;letter-spacing:.20em;color:#bad7ef}.mc-pass-top small{display:block;font-size:9px;letter-spacing:.30em;opacity:.7}.mc-pass-top b{display:grid;place-items:center;width:39px;height:39px;border:1px solid #d1eaff55;border-radius:50%;font-family:Georgia,serif;font-style:italic;font-size:17px;font-weight:400;letter-spacing:0;background:#e6f6ff0e}.mc-studio[data-plan=annual_365d] .mc-pass-top{color:#edce94}.mc-studio[data-plan=annual_365d] .mc-pass-top b{border-color:#edce945c}
.design-system .mc-pass h3{margin:21px 0 7px;font-size:28px;font-weight:600;line-height:1.4;letter-spacing:.04em;color:#f8f8f3}.mc-caption{font-size:12px;line-height:1.7;margin:7px 0;color:var(--mc-muted)}.mc-pass .mc-caption{color:#becddd}
.mc-price{display:flex;align-items:baseline;gap:3px;margin-top:21px;line-height:1.1;color:#a9f1e2}.mc-price>span{font-size:22px}.mc-price strong{font-family:Inter,"Segoe UI",sans-serif;font-size:72px;line-height:1;font-weight:600;letter-spacing:-.06em;color:#b3f5e9;background:linear-gradient(135deg,#e2fff5,#91dfd8);background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent}.mc-price small{margin-left:9px;font-size:13px;color:#b9c9db}.mc-studio[data-plan=annual_365d] .mc-price{color:#f1d49b}.mc-studio[data-plan=annual_365d] .mc-price strong{background-image:linear-gradient(115deg,#fff0bd,#e9bd68 58%,#fff1c5)}
.mc-benefit{margin-top:25px;padding-top:19px;border-top:1px solid #dcf5ff29;font-size:12px;color:#f2f6fc}.design-system .mc-buy{display:flex;align-items:center;justify-content:center;width:100%;min-height:51px;margin:22px 0 0;padding:12px 14px;border:1px solid #f1f8ff;border-radius:15px;background:linear-gradient(110deg,#c0dafa,#e1eeff 56%,#b5d2f3);color:#1c3557;font-size:15px;font-weight:600;letter-spacing:.06em;text-decoration:none;box-shadow:inset 0 1px #fff,0 5px 16px #050b1420}.mc-studio[data-plan=annual_365d] .mc-pass .mc-buy{border-color:#f9e4bc;background:linear-gradient(108deg,#f0d4a4,#fce9c8 54%,#e8c58b);color:#382d1d}.mc-buy:disabled{opacity:.55;cursor:not-allowed}
.mc-return-note{margin:17px 0 0;text-align:center;font-size:11px;color:var(--mc-muted)}.design-system .mc-redeem-entry{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;width:100%;min-height:78px;margin-top:20px;padding:15px;border:1px solid #92aac6;border-radius:18px;background:linear-gradient(113deg,#365779ed,#243c5bf5);box-shadow:inset 0 1px #ffffff40,0 7px 18px #263f6221;color:#fff8eb}.mc-redeem-entry strong{font-size:16px;letter-spacing:.06em}.mc-redeem-entry small{font-size:12px;color:#dce6f5}.design-system .mc-return{display:block;min-height:44px;margin:13px auto 0;padding:10px 20px;background:transparent;border:0;box-shadow:none;font-size:13px;color:#416187;text-align:center}.design-system .mc-back{min-height:44px;margin:8px 0;padding:8px 0;border:0;background:none;box-shadow:none;color:var(--mc-muted);font-size:13px}
.mc-redeem-panel{padding:24px 20px;border:1px solid #ffffffdc;border-radius:24px;background:#ffffffb8;box-shadow:0 12px 36px #314e7512;backdrop-filter:blur(18px)}.mc-bound{display:flex;flex-wrap:wrap;gap:6px;justify-content:space-between;padding:14px 0 18px;margin-bottom:20px;border-bottom:1px solid var(--mc-line);font-size:12px;color:var(--mc-muted)}.mc-bound strong{color:var(--mc-ink);overflow-wrap:anywhere}.mc-form label{display:block;font-size:12px;margin-bottom:8px}.design-system .mc-form input{width:100%;min-height:52px;padding:12px;border:1px solid #bacbdf;border-radius:13px;background:#ffffffb8;color:var(--mc-ink);font-size:16px}.mc-fine{font-size:11px;color:var(--mc-muted);margin:10px 0}.mc-error{font-size:12px;color:#a93637;min-height:19px;margin:12px 0;overflow-wrap:anywhere}.mc-validation{padding:14px;margin-top:17px;border:1px solid #b4d9d0;background:#eaf7f1;border-radius:14px;font-size:12px;display:grid;gap:7px;color:#21564e}.mc-validation small{font-size:11px;color:#48746d}
.mc-success,.mc-registration{text-align:center;padding:35px 6px 15px}.mc-check{width:66px;height:66px;display:grid;place-items:center;margin:0 auto 23px;border:1px solid #ace3d1;border-radius:22px;background:linear-gradient(145deg,#f3fff9,#ccefe3);color:#228164;box-shadow:0 8px 23px #21937415,inset 0 1px #fff;font-size:29px}.design-system .mc-success h2,.design-system .mc-registration h2{font-size:26px;margin:0;color:var(--mc-ink,#18283f);border:0;padding:0}.mc-success p,.mc-registration p{font-size:13px;color:var(--mc-muted,#62718a);margin-top:12px}.mc-expiry{margin-top:22px;padding:18px 4px;border-block:1px solid var(--mc-line);font-size:12px;color:var(--mc-muted)}.mc-expiry strong{display:block;margin-top:8px;font-size:18px;color:#86631e}.design-system dialog.mc-register-dialog{width:calc(100% - 28px);max-width:410px;padding:22px;border-radius:28px;background:radial-gradient(ellipse at 50% 25%,#e4faf1bb,transparent 70%),#f4f7fb}.mc-register-dialog .dialog-head h2{font-size:14px!important}.mc-registration-return{display:block;padding:14px 20px;margin:30px 0 5px;min-height:50px;border-radius:14px;color:white!important;background:linear-gradient(120deg,#325d80,#253c5b);font-size:15px;font-weight:600;text-decoration:none;box-shadow:0 6px 20px #29466120}
@media(prefers-color-scheme:dark){.mc-studio{--mc-ink:#edf3ff;--mc-muted:#a3b2cc;--mc-line:#3b4d65;background:radial-gradient(ellipse at 95% 20%,#40527666,transparent 65%),#18273a;border-color:#33445d}.design-system dialog.mc-dialog{background:#18273a}.mc-top{border-color:#ffffff17}.design-system .mc-choice,.mc-redeem-panel{background:#26374dbb;border-color:#4c617d}.design-system .mc-choice[aria-pressed=true]{background:#304967cc;border-color:#93b8ec}.design-system .mc-choice[data-plan=annual_365d][aria-pressed=true]{background:#51462f88;border-color:#e5c48c}.mc-choice b{color:#9ee4d8}.mc-choice[data-plan=annual_365d] b{color:#edc987}.design-system .mc-form input{background:#15263c;color:#edf3ff;border-color:#506880}.design-system .mc-return{color:#bed5f7}.mc-validation{background:#203f3b;color:#bcf2e3;border-color:#4b7a6f}.mc-validation small{color:#b7cfc7}.mc-error{color:#ffb7b8}.mc-expiry strong{color:#edc987}.design-system dialog.mc-register-dialog{background:#1e3042}.design-system .mc-registration h2{color:#edf3ff}.mc-registration p{color:#a3b2cc}}
@media(max-width:400px){.mc-studio{padding:0 17px 16px;border-radius:24px}.design-system .mc-pass{padding:21px 20px}.mc-price strong{font-size:66px}.design-system .mc-pass h3{font-size:25px}.mc-brand{font-size:10px}.mc-redeem-panel{padding:21px 16px}}
/* Fixed-size category choices: scroll the strip, never stretch or wrap controls. */
.catalog-category-strip{display:flex;flex-wrap:nowrap;gap:8px;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;padding:6px 2px 10px;margin:4px 0 12px;scrollbar-width:thin;align-items:center}
.design-system .catalog-category-strip button{flex:0 0 100px;width:100px;min-width:100px;height:38px;min-height:38px;padding:0 10px;font-size:13px;line-height:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border-radius:14px}
.design-system .catalog-category-strip button[aria-pressed=true]{color:var(--blue-text);background:linear-gradient(135deg,rgba(209,228,254,.88),rgba(237,245,255,.85));border-color:#a9cafa}
@media(max-width:600px){.design-system .catalog-category-strip button{flex-basis:88px;width:88px;min-width:88px;height:36px;min-height:36px}}
/* Compact membership checkout: two selectable product rows, one purchase action. */
.design-system .mc-page{max-width:480px;margin:16px auto}
.design-system dialog.mc-dialog{width:calc(100% - 24px);max-width:480px;padding:20px;border:1px solid #ffffffdc;border-radius:24px;background:linear-gradient(135deg,#f8fafbe8,#e5ebf3e8);box-shadow:0 24px 80px #14253e38,inset 0 1px #fff;backdrop-filter:blur(24px) saturate(115%);max-height:calc(100dvh - 24px);overflow-y:auto}
.design-system .mc-dialog .dialog-head{padding:0 0 14px;margin:0;border-bottom:1px solid #cbd5e377}.design-system .mc-dialog .dialog-head h2{font-size:18px!important;color:#263950}.design-system .mc-dialog .dialog-head .close{width:36px;min-width:36px;min-height:36px;height:36px;padding:0;border-radius:12px;font-size:23px}
.mc-studio.mc-compact{padding:0 22px 14px;border-radius:24px;background:linear-gradient(130deg,#f7fafceb,#e9f0f9e6);border:1px solid #e1e9f2;box-shadow:0 14px 40px #24364a12;overflow:visible}
.mc-dialog .mc-studio.mc-compact{padding:0;border:0;border-radius:0;background:none;box-shadow:none}
.mc-compact .mc-top{min-height:56px}.mc-dialog .mc-compact .mc-top{display:none}
.mc-compact .mc-intro{padding:16px 0 14px}.design-system .mc-compact .mc-intro h2{font-size:20px;line-height:1.35}.mc-compact .mc-intro p{font-size:12px;margin-top:5px}
.mc-compact .mc-choices{grid-template-columns:1fr;gap:10px;margin:0}
.design-system .mc-compact .mc-choice{display:flex;align-items:center;gap:12px;min-height:84px;padding:12px;min-width:0;width:100%;border-radius:17px;border:1px solid #ffffffed;background:#fafcffdb;box-shadow:0 4px 14px #38536e06,inset 0 1px #fff;text-align:left;transition:border-color .15s,background .15s}
.mc-compact .mc-choice .mc-logo-wrap{position:relative;display:block;flex:0 0 56px;width:56px;height:56px;margin:0}
.mc-compact .mc-plan-logo{width:56px;height:56px;border-radius:13px;object-fit:contain;display:block;box-shadow:0 5px 12px #263f6121}
.mc-compact .mc-choice .mc-selected-mark{top:auto;right:-4px;bottom:-3px;display:none;align-items:center;justify-content:center;width:18px;height:18px;font-size:11px;color:#fff;background:#2674d9;border:2px solid #f2f7ff;border-radius:50%;line-height:1;font-style:normal}
.mc-compact .mc-choice[aria-pressed=true] .mc-selected-mark{display:flex}.mc-compact .mc-choice[data-plan=annual_365d] .mc-selected-mark{background:#9e742b;border-color:#fff9ed}
.mc-compact .mc-choice .mc-plan-info{flex:1;min-width:0;margin:0;color:var(--mc-ink)}
.mc-compact .mc-plan-info strong{padding:0;font-size:15px;line-height:1.4;font-weight:650}.mc-compact .mc-plan-info small{display:block;margin-top:5px;font-size:11px;line-height:1.5;color:var(--mc-muted)}
.mc-compact .mc-choice .mc-plan-price{display:flex;flex-direction:column;align-items:flex-end;flex:none;margin:0;min-width:46px;white-space:nowrap}.mc-compact .mc-plan-price b{font-size:22px;line-height:1.2;color:#1370d4;font-variant-numeric:tabular-nums}.mc-compact .mc-plan-price small{font-size:11px;margin-top:4px;color:var(--mc-muted)}.mc-compact .mc-choice[data-plan=annual_365d] .mc-plan-price b{color:#9b6a17}
.design-system .mc-compact .mc-choice[aria-pressed=true]{background:linear-gradient(110deg,#eff6ff,#f8fbff);border-color:#4b91ed;box-shadow:0 0 0 1px #4b91ed20,inset 0 1px #fff}.design-system .mc-compact .mc-choice[data-plan=annual_365d][aria-pressed=true]{background:linear-gradient(110deg,#f7ecd8,#fffaf1);border-color:#b48a43;box-shadow:0 0 0 1px #b48a4320,inset 0 1px #fff9e9}
.mc-checkout{display:flex;justify-content:space-between;align-items:center;gap:16px;border-top:1px solid #ced8e5;margin-top:16px;padding-top:14px}.mc-pay-total{display:flex;align-items:baseline;gap:9px;flex:none}.mc-pay-total span{font-size:12px;color:var(--mc-muted)}.mc-pay-total strong{font-size:26px;line-height:1.2;color:#1370d4;font-variant-numeric:tabular-nums}.mc-compact[data-plan=annual_365d] .mc-pay-total strong{color:#9b6a17}
.design-system .mc-compact .mc-buy{margin:0;min-height:46px;border-radius:13px;font-size:14px;font-weight:650;letter-spacing:0;border:1px solid #4b95f4;background:linear-gradient(115deg,#2785fb,#1765de);color:#fff;box-shadow:0 5px 14px #1c71df24;line-height:1.5}
.design-system .mc-checkout .mc-buy{width:58%;max-width:220px;padding:12px 18px}.design-system .mc-compact[data-plan=annual_365d] .mc-checkout .mc-buy{border-color:#dec190;background:linear-gradient(110deg,#efd09a,#fae6c2);color:#533c19;box-shadow:0 5px 14px #8d6d2f1a}
.mc-compact .mc-return-note{font-size:11px;line-height:1.5;margin:9px 0 0;text-align:right}
.design-system .mc-compact .mc-redeem-entry{display:flex;flex-direction:row;width:100%;min-height:44px;margin-top:15px;padding:11px;border:1px solid #bbcce1;border-radius:13px;background:#ffffffa6;color:#2a527f;box-shadow:inset 0 1px #fff;font-size:14px}
.mc-compact .mc-redeem-entry strong{font-size:14px;letter-spacing:0}.design-system .mc-compact .mc-return{min-height:36px;margin:6px auto 0;padding:8px 15px;line-height:1.5;font-size:12px}
.design-system .mc-compact .mc-back{display:inline-flex;align-items:center;justify-content:center;min-height:38px;margin:14px 0 12px;padding:8px 13px;border:1px solid #c4d3e4;border-radius:11px;background:#ffffffa8;color:#315c8c;font-size:12px;font-weight:600;line-height:1.5}
.mc-compact .mc-redeem-panel{padding:18px 16px;border-radius:19px;box-shadow:none}.design-system .mc-compact .mc-redeem-panel h2{font-size:22px}.mc-compact .mc-bound{padding:10px 0 12px;margin-bottom:14px}.mc-compact .mc-caption{margin:6px 0;font-size:12px}.mc-compact .mc-form input{min-height:46px}.mc-compact .mc-fine{margin:8px 0;font-size:11px}.mc-compact .mc-error{margin:10px 0;min-height:0}.mc-compact .mc-error:empty{display:none}.design-system .mc-compact .mc-submit{margin-top:18px}.mc-compact .mc-validation{margin-top:12px;padding:12px}.mc-compact .mc-success{padding:25px 2px 6px}
@media(prefers-color-scheme:dark){.design-system dialog.mc-dialog{background:linear-gradient(130deg,#25354beF,#182638ee);border-color:#55637c88}.design-system .mc-dialog .dialog-head h2{color:#ecf3ff}.mc-studio.mc-compact{background:linear-gradient(130deg,#263850,#1c2c42);border-color:#405572}.mc-dialog .mc-studio.mc-compact{background:none;border:0}.design-system .mc-compact .mc-choice{background:#2a3c55;border-color:#4a5c77;box-shadow:inset 0 1px #ffffff0c}.design-system .mc-compact .mc-choice[aria-pressed=true]{background:linear-gradient(110deg,#26486b,#2d405c);border-color:#7eb7ff;box-shadow:none}.design-system .mc-compact .mc-choice[data-plan=annual_365d][aria-pressed=true]{background:linear-gradient(110deg,#4a4131,#34393f);border-color:#c4a268;box-shadow:none}.mc-compact .mc-plan-price b,.mc-pay-total strong{color:#94caff}.mc-compact .mc-choice[data-plan=annual_365d] .mc-plan-price b,.mc-compact[data-plan=annual_365d] .mc-pay-total strong{color:#efd39b}.mc-checkout{border-color:#52617b88}.design-system .mc-compact .mc-redeem-entry,.design-system .mc-compact .mc-back{background:#2b3c53;border-color:#586b85;color:#d0e5ff;box-shadow:none}}
@media(max-width:359px){.design-system dialog.mc-dialog{padding:15px;width:calc(100% - 20px)}.mc-studio.mc-compact{padding:0 14px 10px}.mc-dialog .mc-studio.mc-compact{padding:0}.design-system .mc-compact .mc-choice{gap:9px;padding:10px;min-height:76px}.mc-compact .mc-choice .mc-logo-wrap,.mc-compact .mc-plan-logo{width:48px;height:48px;flex-basis:48px;border-radius:11px}.mc-compact .mc-plan-info strong{font-size:14px}.mc-compact .mc-plan-info small{font-size:10px}.mc-compact .mc-plan-price b{font-size:21px}.mc-compact .mc-plan-price small{font-size:10px}.mc-compact .mc-redeem-panel{padding:16px 12px}}
@media(max-height:650px){.design-system .mc-dialog .dialog-head{padding-bottom:10px}.mc-dialog .mc-intro{padding:12px 0}.mc-dialog .mc-checkout{margin-top:12px;padding-top:12px}.design-system .mc-dialog .mc-redeem-entry{margin-top:10px}.mc-dialog .mc-return{margin-top:3px}.mc-dialog .mc-redeem-panel{padding-top:14px;padding-bottom:14px}}

/* 一人付结算区：沿用会员中心卡片，不引入新的配色令牌 */
.design-system .mc-onepay{margin-top:16px}
.design-system .mc-onepay h2{margin:0 0 6px;font-size:15px;font-weight:650;color:var(--mc-ink)}
.design-system .mc-onepay .mc-choices{margin-bottom:12px}
.mc-balance{margin:10px 0 12px;font-size:12px;line-height:1.6;color:var(--mc-muted)}
.mc-balance b{font-size:16px;color:var(--mc-ink)}
.design-system .mc-onepay-result{margin:12px 0 0;padding:12px;border:1px solid var(--mc-line);border-radius:16px;background:#fff}
.design-system .mc-onepay-result p{margin:0 0 8px;font-size:12px;line-height:1.7;color:var(--mc-ink)}
.mc-onepay-qr{margin:8px 0 0;text-align:center}
.mc-onepay-qr img{width:148px;height:148px;border-radius:12px;background:#fff}

.design-system .mc-onepay-block{padding:12px 0;border-top:1px solid var(--mc-line)}
.design-system .mc-onepay-block:first-of-type{border-top:0;padding-top:6px}
.design-system .mc-onepay-block h3{margin:0 0 4px;font-size:14px;font-weight:650;color:var(--mc-ink)}
.design-system .mc-onepay-block .mc-choices{margin:10px 0 0}
.design-system .mc-onepay-block .mc-buy{margin-top:10px}

/* 一人付结算弹窗：按 tfapps.store 确认购买弹窗的尺寸、渐变与描边复刻 */
dialog.pay-dialog,.pay-dialog *{box-sizing:border-box}
dialog.pay-dialog{position:fixed;top:0;bottom:0;left:10px;right:10px;margin:auto;padding:0;border:0;outline:none;background:transparent;max-width:500px;width:auto;height:fit-content;overflow:visible}
dialog.pay-dialog::backdrop{background:rgba(0,0,0,.5);backdrop-filter:blur(10px)}
.pay-modal{width:100%;background:rgba(255,255,255,.85);border-radius:20px;box-shadow:0 20px 40px rgba(0,0,0,.1),inset 0 0 0 .5px rgba(255,255,255,.5);backdrop-filter:blur(20px);border:1px solid rgba(255,255,255,.3);max-height:calc(90vh - 70px);display:flex;flex-direction:column;overflow:hidden;animation:modalAppear .4s cubic-bezier(.25,.1,.25,1)}
.pay-head{display:flex;justify-content:space-between;align-items:center;padding:20px 25px 15px;border-bottom:1px solid rgba(0,0,0,.05)}
.pay-head h2{margin:0;color:#000;font-weight:700;font-size:1.5rem;letter-spacing:-.02em}.pay-head h2:focus,.pay-head h2:focus-visible{outline:none}dialog.pay-dialog:focus,dialog.pay-dialog:focus-visible{outline:none}
.pay-close{background:rgba(100,100,100,.1);border:none;font-size:1.2rem;cursor:pointer;color:#000;width:32px;height:32px;min-height:0;padding:0;display:flex;align-items:center;justify-content:center;border-radius:50%;line-height:1;transition:background .2s}
.pay-close:hover{background:rgba(100,100,100,.2)}
.pay-body{padding:25px 30px 30px;overflow-y:auto}
.pay-brand{display:flex;align-items:center;gap:10px;margin:0 0 14px;font-size:.82rem;font-weight:600;color:#172033}
.pay-brand-logo{width:28px;height:28px;border-radius:8px}
.purchase-confirmation{display:flex;flex-direction:column;gap:14px}
.purchase-app-info{display:flex;align-items:center;gap:13px;padding:16px;border:1px solid #dbeafe;border-radius:16px;background:linear-gradient(135deg,#f8fbff,#f1f7ff)}
.purchase-app-icon{width:58px;height:58px;border-radius:14px;object-fit:cover;box-shadow:0 6px 14px rgba(30,99,177,.18);flex:none}
.purchase-app-icon-empty{display:flex;align-items:center;justify-content:center;background:#fff}
.purchase-app-icon-empty .pay-brand-logo{width:34px;height:34px}
.purchase-app-details{display:flex;flex-direction:column;gap:4px;flex:1;min-width:0}
.purchase-app-name{margin:0;font-weight:700;font-size:1rem;color:#172033;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.purchase-app-duration{color:#64748b;font-size:.78rem}
.purchase-price-summary{display:flex;flex-direction:column;align-items:flex-end;flex-shrink:0}
.purchase-price-label{color:#94a3b8;font-size:.72rem}
.purchase-price-summary strong{color:#1677ff;font-size:1.35rem;line-height:1.2}
.payment-methods{display:flex;flex-direction:column;gap:9px;padding-top:4px}
.payment-methods-heading{display:flex;align-items:center;justify-content:space-between}
.payment-methods h4{margin:0;color:#1e293b;font-size:.9rem}
.payment-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.payment-option{display:flex;align-items:center;gap:8px;min-height:48px;padding:10px 12px;border:1px solid #e2e8f0;border-radius:12px;background:#fff;cursor:pointer;transition:all .2s ease}
.payment-option:has(input:checked){border-color:#3b82f6;background:#eff6ff;box-shadow:0 3px 10px rgba(59,130,246,.12)}
.payment-option input{margin:0;appearance:none;width:16px;height:16px;border:2px solid #cbd5e1;border-radius:50%;background:#fff;box-shadow:inset 0 0 0 3px #fff;cursor:pointer;transition:all .2s ease}
.payment-option input:checked{border-color:#1677ff;background:#1677ff}
.payment-option-content{display:flex;align-items:center;gap:10px;font-size:.9rem;color:#1e293b}
.payment-icon{width:24px;height:24px}
.purchase-actions{display:flex;gap:12px;justify-content:flex-end;margin-top:8px;padding-top:16px;border-top:1px solid #eef2f7}
.pay-dialog :is(button,a){font-family:inherit;letter-spacing:0}
.confirm-button{width:100%;min-width:155px;margin:0;padding:11px 18px;border-radius:10px;border:none;cursor:pointer;font-size:.88rem;font-weight:700;background:linear-gradient(135deg,#1677ff,#3b9dff);color:#fff;box-shadow:0 6px 14px rgba(22,119,255,.24);text-align:center;text-decoration:none;display:flex;align-items:center;justify-content:center;transition:all .2s}
.confirm-button:hover:not(:disabled){background:linear-gradient(135deg,#0969da,#1677ff);transform:translateY(-1px);box-shadow:0 8px 18px rgba(22,119,255,.3)}
.confirm-button:disabled{opacity:.7;cursor:not-allowed}
.cancel-button{margin:0;padding:11px 18px;border-radius:10px;cursor:pointer;font-size:.88rem;font-weight:700;border:1px solid #dbe2ea;background:#fff;color:#64748b;transition:all .2s}
.cancel-button:hover{background:#f8fafc}
.cancel-button:disabled{opacity:.7;cursor:not-allowed}
.pay-qr{display:flex;justify-content:center;padding:6px 0}
.pay-qr img{width:172px;height:172px;border-radius:12px;background:#fff;box-shadow:0 6px 14px rgba(30,99,177,.12)}
.pay-error{margin:0;color:#d92d20;font-size:.8rem;line-height:1.5}
.pay-done{display:flex;flex-direction:column;align-items:center;gap:8px;padding:14px 0 4px;text-align:center}
.pay-done-mark{width:54px;height:54px;border-radius:50%;display:grid;place-items:center;background:#ecfdf3;color:#079455;font-size:1.6rem;border:1px solid #abefc6}
.pay-done h3{margin:0;font-size:1rem;color:#172033}
.pay-done p{margin:0;color:#64748b;font-size:.82rem}
@keyframes modalAppear{0%{opacity:0;transform:scale(.95) translateY(20px)}to{opacity:1;transform:scale(1) translateY(0)}}
@media(max-width:520px){dialog.pay-dialog{left:8px;right:8px}.pay-dialog :is(button,a):focus-visible{outline:2px solid #3b82f6;outline-offset:2px}.pay-head{padding:20px 25px 15px}.pay-head h2{font-size:1.3rem}.pay-body{padding:20px 25px 25px}.purchase-app-info{padding:14px}.payment-options{grid-template-columns:1fr}.purchase-actions{flex-direction:column-reverse}}

/* 一人付年费会员：套餐卡图标与单行价格 */
.mc-plan-logo.mc-plan-icon{display:grid;place-items:center;border-radius:16px;background:linear-gradient(135deg,#d8b46a,#f2dcaa);box-shadow:0 6px 14px rgba(190,150,80,.28)}
.mc-plan-logo.mc-plan-icon svg{width:30px;height:30px;fill:#fff}
.mc-compact .mc-choice .mc-plan-price.mc-plan-price-inline{flex-direction:row;align-items:baseline;gap:1px;white-space:nowrap}
.mc-compact .mc-plan-price.mc-plan-price-inline small{display:inline;margin:0}
/* 结算弹窗：商品图标、单选圆与卡片防溢出 */
.purchase-app-icon-crown{display:grid;place-items:center;background:linear-gradient(135deg,#d8b46a,#f2dcaa);box-shadow:0 6px 14px rgba(190,150,80,.28)}
.purchase-app-icon-crown svg{width:30px;height:30px;fill:#fff}
.purchase-app-info{overflow:hidden}
.purchase-price-summary{flex:0 0 auto}
.presentation-only{display:none}
.payment-option input{flex:0 0 auto;width:16px;height:16px;min-width:16px;min-height:16px;max-width:16px;max-height:16px;padding:0;aspect-ratio:1;border-radius:50%;box-sizing:border-box}

/* 结算弹窗：确认按钮右下角、自适应宽度 */
.purchase-actions{justify-content:flex-end}
.purchase-actions .confirm-button{width:auto;min-width:150px;padding:11px 22px}
.payment-methods-heading span{color:#94a3b8;font-size:.72rem}

/* 结算弹窗：确认按钮与支付方式同排、同尺寸 */
.payment-options{align-items:stretch}
.payment-option{min-height:48px}
.confirm-button.pay-submit{width:100%;min-width:0;height:48px;min-height:48px;padding:0 10px;border-radius:12px;font-size:.9rem;white-space:nowrap}
@media(max-width:520px){.confirm-button.pay-submit{min-height:50px;height:50px}}
