/* shop-extracted.css
 * 2026-10-05 从 custom-shop.hbs 抽取：12 个内联 <style> 块合并。
 * 抽取前：内联意味着每次请求随 HTML 下发、浏览器无法单独缓存、且整行是一个
 * 不可 diff 的 7000+ 字符长串（改一个字整行都变，版本历史失去意义）。
 */

/* The editorial category navigation belongs to the blog, not the store. */
.is-shop-page .gh-outer-tags {
    display: none;
}


/* ==== 分隔 ==== */

.shop-shell{max-width:1280px;margin:0 auto;padding:48px var(--gap) 90px}.shop-mini-banner{position:relative;display:flex;align-items:center;justify-content:space-between;min-height:176px;padding:32px 38px;overflow:hidden;border-radius:26px}.shop-mini-banner h1{margin:0;font-size:36.5px;line-height:1.1}.shop-mini-banner p{margin:8px 0 0}.shop-toolbar{display:flex;align-items:center;justify-content:space-between;min-height:118px;padding:39px 0 20px}.shop-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17.5px}.shop-skeleton{height:310px;border-radius:20px}@media(max-width:900px){.shop-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.shop-shell{padding:18px 12.5px 45px}.shop-mini-banner{min-height:144px;padding:23.5px 22px;border-radius:20px}.shop-mini-banner h1{font-size:27px}.shop-toolbar{display:block;min-height:126px;padding:14px 0 13px}.shop-grid{grid-template-columns:1fr;gap:11.5px}}


/* ==== 分隔 ==== */

.shop-shell{--shop-accent:var(--ghost-accent-color,#f5141a);max-width:1200px;margin:0 auto;padding:55px var(--gap) 90px}.shop-hero{position:relative;display:flex;align-items:center;justify-content:space-between;min-height:310px;padding:55px 60px;overflow:hidden;color:#fff;background:linear-gradient(125deg,#10162b 0%,#800a0e 58%,#f42027 100%);border-radius:28px;box-shadow:0 28px 65px rgba(92,7,10,.2)}.shop-hero:before,.shop-hero:after{position:absolute;content:"";border:1px solid rgba(255,255,255,.13);border-radius:50%}.shop-hero:before{width:390px;height:390px;right:-110px;top:-190px}.shop-hero:after{width:240px;height:240px;right:65px;bottom:-165px}.shop-hero-copy{position:relative;z-index:1;max-width:690px}.shop-eyebrow{display:inline-block;margin-bottom:14px;font-size:12px;font-weight:800;letter-spacing:.18em;color:#ff9fa2}.shop-hero h1{margin:0;color:#fff;font-size:clamp(35px,5vw,62px);line-height:1.05;letter-spacing:-.055em}.shop-hero p{max-width:630px;margin-top:21px;font-size:17.5px;color:rgba(255,255,255,.93)}.shop-hero-mark{position:relative;z-index:1;display:grid;place-items:center;flex:0 0 130px;width:130px;height:130px;margin-left:30px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.22);border-radius:32px;backdrop-filter:blur(12px);transform:rotate(4deg)}.shop-hero-mark span{font-size:42px;font-weight:800;line-height:1}.shop-hero-mark small{font-weight:700;color:#ffffff}.shop-toolbar{display:flex;align-items:end;justify-content:space-between;padding:52px 0 20px}.shop-toolbar strong{display:block;font-size:25px}.shop-toolbar span{display:block;margin-top:4px;font-size:13.5px;color:var(--color-secondary-text,#888)}.shop-link{padding:0;color:var(--shop-accent);font-weight:700;background:none;border:0;cursor:pointer}.shop-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.shop-card{position:relative;display:flex;flex-direction:column;min-height:310px;padding:27px;background:var(--color-white,#fff);border:1px solid var(--color-light-gray,#e7e7e7);border-radius:20px;transition:.22s ease}.shop-card:hover{border-color:color-mix(in srgb,var(--shop-accent) 35%,transparent);box-shadow:0 18px 45px rgba(30,40,75,.1);transform:translateY(-4px)}.shop-badge{align-self:flex-start;padding:5.5px 10px;font-size:11px;font-weight:800;color:var(--shop-accent);background:color-mix(in srgb,var(--shop-accent) 10%,transparent);border-radius:99px}.shop-card h2{margin:22px 0 10px;font-size:23px;line-height:1.25}.shop-card-desc{display:-webkit-box;overflow:hidden;color:var(--color-secondary-text,#777);-webkit-line-clamp:3;-webkit-box-orient:vertical}.shop-price-row{display:flex;align-items:end;justify-content:space-between;gap:10px;margin-top:auto;padding-top:24px}.shop-price strong{display:block;font-size:20px}.shop-price small{color:var(--color-secondary-text,#888)}.shop-buy{min-width:94px;height:42px;padding:0 16px;color:#fff;font-weight:800;background:var(--shop-accent);border:0;border-radius:10px;cursor:pointer}.shop-skeleton{height:310px;background:linear-gradient(100deg,var(--color-lighter-gray,#f5f5f5) 20%,var(--color-light-gray,#e7e7e7) 40%,var(--color-lighter-gray,#f5f5f5) 60%);background-size:200% 100%;border-radius:20px;animation:shop-loading 1.4s infinite}.shop-empty{grid-column:1/-1;padding:60px 20px;text-align:center;color:var(--color-secondary-text,#777);background:var(--color-lighter-gray,#f7f7f7);border-radius:20px}.shop-dialog{width:min(620px,calc(100% - 30px));max-height:calc(100vh - 30px);padding:0;overflow:hidden;color:var(--color-primary-text,#333);background:var(--color-white,#fff);border:0;border-radius:24px;box-shadow:0 30px 90px rgba(10,18,50,.28)}.shop-dialog::backdrop{background:rgba(8,14,32,.62);backdrop-filter:blur(5px)}#shop-detail{display:flex;flex-direction:column;max-height:calc(100vh - 30px);overflow:hidden}.shop-close{position:absolute;z-index:5;top:16px;right:16px;width:38px;height:38px;font-size:25px;line-height:1;color:inherit;background:var(--color-lighter-gray,#f4f4f4);border:0;border-radius:50%;cursor:pointer}.shop-detail-head{flex:0 0 auto;padding:30px 40px 20px;border-bottom:1px solid var(--color-light-gray,#e7e7e7)}.shop-detail-head h2{padding-right:40px;margin:10px 0 5px;font-size:27px}.shop-detail-head p{margin:0;color:var(--color-secondary-text,#777)}.shop-checkout{display:flex;flex-direction:column;min-height:0;margin:0;overflow:hidden}.shop-checkout-body{padding:24px 40px 10px;overflow:auto;overscroll-behavior:contain}.shop-checkout label{margin:0 0 15px}.shop-checkout input,.shop-checkout select,.shop-checkout textarea{width:100%;height:48px;margin-top:7px;padding:0 13px;color:inherit;background:var(--color-white,#fff);border:1px solid var(--color-light-gray,#ddd);border-radius:9px}.shop-checkout textarea{height:90px;padding-top:12px}.shop-methods{display:grid;gap:8px;margin:8px 0 12px}.shop-method{display:flex;align-items:center;justify-content:space-between;padding:12px 15px;border:1px solid var(--color-light-gray,#ddd);border-radius:10px;cursor:pointer}.shop-method:has(input:checked){border-color:var(--shop-accent);box-shadow:0 0 0 2px color-mix(in srgb,var(--shop-accent) 15%,transparent)}.shop-method input{width:auto;height:auto;margin:0 8px 0 0}.shop-method span{display:flex;align-items:center;font-weight:700}.shop-method strong{font-size:14px}.shop-checkout-footer{flex:0 0 auto;padding:15px 40px 18px;background:var(--color-white,#fff);border-top:1px solid var(--color-light-gray,#e7e7e7);box-shadow:0 -10px 30px rgba(20,30,60,.06)}.shop-submit{width:100%;height:52px;color:#fff;font-weight:800;background:linear-gradient(110deg,var(--shop-accent),#f41c22);border:0;border-radius:11px;box-shadow:0 10px 24px color-mix(in srgb,var(--shop-accent) 24%,transparent);cursor:pointer}.shop-submit:hover{filter:brightness(1.04);transform:translateY(-1px)}.shop-safe{margin:9px 0 0;font-size:12px;text-align:center;color:var(--color-secondary-text,#888)}.shop-order{max-width:720px;margin:50px auto 0;padding:40px;background:var(--color-white,#fff);border:1px solid var(--color-light-gray,#e7e7e7);border-radius:22px;box-shadow:0 18px 50px rgba(30,40,75,.08)}.shop-order h1{margin-bottom:10px;font-size:34px}.shop-order-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:25px 0}.shop-order-grid div{padding:14px;background:var(--color-lighter-gray,#f6f6f6);border-radius:10px}.shop-order-grid small{display:block;color:var(--color-secondary-text,#888)}.shop-delivery{padding:20px;white-space:pre-wrap;word-break:break-all;background:color-mix(in srgb,var(--shop-accent) 8%,transparent);border-left:4px solid var(--shop-accent);border-radius:8px}.shop-error{padding:20px;color:#b42335;background:#fff1f2;border-radius:12px}@keyframes shop-loading{to{background-position:-200% 0}}@media(max-width:900px){.shop-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.shop-hero{padding:40px}.shop-hero-mark{display:none}}@media(max-width:600px){.shop-shell{padding:20px 16px 60px}.shop-hero{min-height:auto;padding:38px 25px;border-radius:20px}.shop-hero h1{font-size:36px}.shop-hero p{font-size:15.5px}.shop-toolbar{padding-top:35px}.shop-grid{grid-template-columns:1fr}.shop-card{min-height:275px}.shop-dialog{width:100%;max-width:none;max-height:100dvh;margin:auto 0 0;border-radius:22px 22px 0 0}#shop-detail{max-height:100dvh}.shop-detail-head{padding:25px 20px 16px}.shop-detail-head h2{font-size:23px}.shop-checkout-body{padding:20px 20px 8px}.shop-checkout-footer{padding:12px 20px max(13px,env(safe-area-inset-bottom))}.shop-method{padding:10.5px 12px}.shop-order{padding:25px 20px}.shop-order-grid{grid-template-columns:1fr}}
.shop-dialog{--shop-accent:var(--ghost-accent-color,#f5141a);border:1px solid rgba(255,255,255,.72);background:linear-gradient(180deg,#fff 0%,#f8faff 100%);box-shadow:0 34px 100px rgba(7,16,42,.36)}.shop-detail-head{position:relative;padding:32px 40px 22px;background:linear-gradient(135deg,#f6f8ff,#fff);border-bottom:0}.shop-detail-head:after{position:absolute;right:40px;bottom:0;left:40px;height:1px;content:"";background:linear-gradient(90deg,transparent,#dce5f7,transparent)}.shop-detail-head h2{font-size:29px;letter-spacing:-.035em}.shop-detail-head .shop-badge{box-shadow:0 5px 14px color-mix(in srgb,var(--shop-accent) 15%,transparent)}.shop-close{top:20px;right:20px;width:42px;height:42px;font-size:27px;color:#52627b;background:#fff;border:1px solid #e5eaf3;box-shadow:0 5px 15px rgba(32,49,84,.08)}.shop-checkout-body{padding:24px 40px 16px}.shop-checkout label{font-weight:750;color:#2d3c56}.shop-checkout input,.shop-checkout select,.shop-checkout textarea{margin-top:6.5px;border-color:#dce4f0;background:#fff;box-shadow:0 2px 5px rgba(28,49,88,.025);transition:border-color .18s,box-shadow .18s}.shop-checkout input:focus,.shop-checkout textarea:focus{border-color:var(--shop-accent);box-shadow:0 0 0 4px color-mix(in srgb,var(--shop-accent) 13%,transparent);outline:0}.shop-methods{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:10px 0 16px}.shop-method{min-height:66px;padding:12.5px 13.5px;background:#fff;border-color:#e0e7f1;box-shadow:0 3px 10px rgba(35,55,93,.035);transition:.18s}.shop-method:hover{border-color:color-mix(in srgb,var(--shop-accent) 52%,#dce4f0);transform:translateY(-1px)}.shop-method:has(input:checked){color:#203960;background:color-mix(in srgb,var(--shop-accent) 6%,#fff);border-color:var(--shop-accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--shop-accent) 12%,transparent)}.shop-method strong{color:var(--shop-accent);font-size:15px}.shop-credentials{padding:15px;border-radius:14px;background:linear-gradient(135deg,#f5f8ff,#fbfcff);border-color:#dae5f7}.shop-checkout-footer{padding:16.5px 40px 20px;background:rgba(255,255,255,.94);border-top:1px solid #e5ebf4}.shop-submit{height:56px;font-size:15.5px;letter-spacing:.02em;border-radius:13px;box-shadow:0 13px 26px color-mix(in srgb,var(--shop-accent) 28%,transparent)}.shop-safe{display:flex;align-items:center;justify-content:center;gap:5px;margin-top:11px}.shop-safe:before{content:"✓";display:inline-grid;place-items:center;width:16px;height:16px;color:#0b9b60;font-size:10px;font-weight:900;background:#e8fff3;border-radius:50%}@media(max-width:600px){.shop-detail-head{padding:28px 20px 18px}.shop-detail-head:after{right:20px;left:20px}.shop-close{top:13.5px;right:13.5px}.shop-methods{grid-template-columns:1fr}.shop-checkout-body{padding:20px 20px 11px}.shop-checkout-footer{padding:13.5px 20px max(15px,env(safe-area-inset-bottom))}}
.shop-credentials{margin:0 0 16px;padding:14px;background:#f4f7fc;border:1px solid #dce5f2;border-radius:12px}.shop-credentials strong{display:block}.shop-credentials p{margin:3.5px 0 10px;color:var(--color-secondary-text,#778)}.shop-credentials label{display:block}
.shop-pay-view{display:flex;flex-direction:column;min-height:0;text-align:center}.shop-pay-head{flex:0 0 auto;padding:25px 30px 18px;background:linear-gradient(135deg,#10182f,#24499c 65%,#ef1d23);color:#fff}.shop-pay-head h2{margin:4px 0;color:#fff;font-size:25px}.shop-pay-head p{margin:0;color:#dce5ff}.shop-pay-body{padding:22px 30px;overflow:auto}.shop-pay-amount{font-size:30px;font-weight:900}.shop-pay-qr{display:block;width:220px;height:220px;margin:15px auto;padding:10px;background:#fff;border:1px solid #e1e7f0;border-radius:17px;box-shadow:0 12px 30px rgba(25,40,80,.12)}.shop-pay-address{padding:12px;text-align:left;background:#f4f7fc;border-radius:10px;word-break:break-all}.shop-copy{margin-top:8px;padding:7px 10px;color:#315789;background:#e8effb;border:0;border-radius:8px}.shop-wait{display:flex;align-items:center;justify-content:center;gap:9px;margin:17px 0 5px;color:#64738b}.shop-wait:before{width:9px;height:9px;content:"";background:#15a66a;border-radius:50%;box-shadow:0 0 0 6px rgba(21,166,106,.12);animation:shop-loading 1.4s infinite}.shop-result-icon{display:grid;place-items:center;width:68px;height:68px;margin:0 auto 15px;color:#0b9b60;font-size:34px;font-weight:900;background:#e7fff3;border-radius:50%}.shop-paypal-button{display:block;margin:20px 0;padding:13px;color:#fff;font-weight:800;text-decoration:none;background:#0879d1;border-radius:11px}.shop-pay-error{padding:12px;color:#b42335;background:#fff1f2;border-radius:10px}@media(max-width:600px){.shop-pay-head{padding:22px 20px 15px}.shop-pay-body{padding:18px 20px}.shop-pay-qr{width:205px;height:205px}}
/* 商品列表强化样式 */
.shop-grid{gap:25px}.shop-card{isolation:isolate;min-height:328px;padding:30px;overflow:hidden;border-color:#e5eaf4;border-radius:24px;background:linear-gradient(145deg,#fff 0%,#fbfcff 100%);box-shadow:0 8px 20px rgba(31,48,91,.035)}.shop-card:before{position:absolute;z-index:-1;top:0;right:0;left:0;height:5px;content:"";background:linear-gradient(90deg,var(--shop-accent),#ff3b41);opacity:.82}.shop-card-glow{position:absolute;z-index:-1;right:-72px;bottom:-78px;width:190px;height:190px;border-radius:50%;background:radial-gradient(circle, color-mix(in srgb,var(--shop-accent) 13%,transparent),transparent 68%);transition:transform .3s ease}.shop-card:hover{border-color:color-mix(in srgb,var(--shop-accent) 44%,#e5eaf4);box-shadow:0 23px 48px rgba(26,42,88,.13);transform:translateY(-7px)}.shop-card:hover .shop-card-glow{transform:scale(1.25)}.shop-card h2{margin:25px 0 11px;letter-spacing:-.025em}.shop-card-desc{font-size:14.3px;line-height:1.75}.shop-price-row{padding-top:27px;border-top:1px solid #edf0f6}.shop-price small{font-weight:650;color:#7b879c}.shop-price strong{margin-top:2.5px;color:#16234a;font-size:22.5px;letter-spacing:-.03em}.shop-buy{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:124px;height:46px;border-radius:12px;box-shadow:0 10px 20px color-mix(in srgb,var(--shop-accent) 24%,transparent);transition:transform .18s,box-shadow .18s}.shop-buy:hover{box-shadow:0 14px 26px color-mix(in srgb,var(--shop-accent) 34%,transparent);transform:translateY(-2px)}.shop-buy span{font-size:18px;line-height:1;transition:transform .18s}.shop-buy:hover span{transform:translateX(3px)}.shop-buy:disabled{opacity:.48;box-shadow:none;cursor:not-allowed}@media(max-width:600px){.shop-grid{gap:17px}.shop-card{min-height:296px;padding:25px;border-radius:20px}.shop-price-row{padding-top:22px}.shop-buy{min-width:118px}}.shop-node-chips{display:flex;flex-wrap:wrap;justify-content:center;gap:7px;margin-bottom:16px}.shop-node-chip{padding:5px 11px;color:#2a5b9e;font-size:12px;font-weight:750;background:#eef4ff;border:1px solid #dbe6fb;border-radius:99px}.shop-node-note{margin:9px 0 0 !important;font-size:12px;color:#8892a6 !important}


/* ==== 分隔 ==== */

.shop-categories{display:flex;flex-wrap:wrap;gap:7.5px;margin:-4.5px 0 23px}.shop-category{min-height:38px;padding:6.5px 11.5px;color:#5d6b84;font:700 12px/1 system-ui,-apple-system,"Microsoft YaHei",sans-serif;background:rgba(255,255,255,.8);border:1px solid #e0e6f1;border-radius:999px;box-shadow:0 4px 12px rgba(43,58,94,.045);cursor:pointer;transition:.18s}.shop-category:hover{color:#df181e;border-color:#fbb1b3;transform:translateY(-1px)}.shop-category.is-active{color:#fff;background:linear-gradient(112deg,#ed1c22,#e71219);border-color:transparent;box-shadow:0 9px 18px rgba(224,21,27,.25)}.shop-grid .shop-card[hidden]{display:none!important}@media(max-width:600px){.shop-categories{flex-wrap:nowrap;margin:-1px -12px 15px;padding:0 12px 4.5px;overflow-x:auto;scrollbar-width:none}.shop-categories::-webkit-scrollbar{display:none}.shop-category{flex:0 0 auto;min-height:36px;padding:6.2px 10px;font-size:10.8px}}


/* ==== 分隔 ==== */

body:has(#ghost-shop){background:radial-gradient(circle at 85% 0,rgba(255,38,44,.11),transparent 270px),linear-gradient(180deg,#fff 0,#f5f7fc 43%,#f0f3f9 100%)}.shop-shell{max-width:1240px!important;padding-top:48px!important}.shop-mini-banner{min-height:176px!important;padding:32px 38px!important;background:radial-gradient(circle at 82% 12%,rgba(255,119,123,.62),transparent 26%),radial-gradient(circle at 102% 90%,rgba(85,229,255,.18),transparent 30%),linear-gradient(117deg,#131d3b 0%,#2c479e 58%,#e9181e 100%)!important;border-radius:26px!important;box-shadow:0 22px 52px rgba(125,10,13,.2)!important}.shop-mini-banner:after{position:absolute;right:84px;bottom:19px;width:92px;height:1px;content:"";background:linear-gradient(90deg,transparent,rgba(255,255,255,.7),transparent);transform:rotate(-28deg)}.shop-mini-banner h1{font-size:36.5px!important;text-shadow:0 2px 16px rgba(5,12,45,.15)}.shop-mini-banner p{max-width:440px;color:#ffd3d5!important}.shop-mini-banner-mark{width:64px!important;height:64px!important;border-radius:21px!important;box-shadow:0 12px 30px rgba(7,14,60,.2)}.shop-toolbar{padding:39px 0 20px!important}.shop-toolbar strong{font-size:27px!important;color:#1d2b4d}.shop-toolbar span{color:#8a96aa!important}.shop-toolbar>div:last-child{display:flex;flex-wrap:wrap;gap:7px}.shop-link{padding:7.2px 11px!important;color:#526481!important;font-size:11.6px!important;background:rgba(255,255,255,.76)!important;border:1px solid #e1e8f4!important;border-radius:999px!important;box-shadow:0 4px 12px rgba(44,62,100,.04)!important}.shop-link:hover{color:#e41219!important;background:#fff!important;border-color:#fbb2b5!important;box-shadow:0 9px 19px rgba(187,15,20,.12)!important}.shop-grid{gap:17.5px!important}.shop-card{min-height:292px!important;padding:22.5px!important;border:1px solid rgba(220,228,242,.9)!important;border-radius:20px!important;background:linear-gradient(145deg,rgba(255,255,255,.98),rgba(249,251,255,.93))!important;box-shadow:0 10px 26px rgba(30,45,82,.055)!important}.shop-card:before{height:4px!important;background:linear-gradient(90deg,#eb1c22,#ec1319)!important}.shop-card:after{right:20px!important;top:18px!important;color:#ed2c32!important;background:#ffe8e8!important}.shop-card:hover{box-shadow:0 20px 38px rgba(32,46,91,.12)!important}.shop-card h2{margin:20.5px 0 7px!important;font-size:21.2px!important;color:#273552!important}.shop-card-desc{min-height:44px!important;color:#78869b!important;font-size:13px!important;line-height:1.68!important}.shop-price-row{padding-top:16.5px!important;border-top:1px solid #edf0f5!important}.shop-price strong{color:#df181e!important;font-size:20.5px!important}.shop-buy{height:44px!important;min-width:116px!important;border-radius:11px!important;background:linear-gradient(112deg,#ed1c22,#e71219)!important;box-shadow:0 10px 20px rgba(224,21,27,.25)!important}.shop-buy:hover{box-shadow:0 14px 25px rgba(224,21,27,.34)!important}.shop-dialog{border:1px solid rgba(255,255,255,.82)!important}.shop-detail-head{background:linear-gradient(135deg,#f7f8ff,#fff)!important}.shop-submit{background:linear-gradient(112deg,#ed1c22,#e71219)!important}@media(max-width:700px){.shop-shell{padding:22px 12px 50px!important}.shop-mini-banner{min-height:144px!important;padding:23.5px 22px!important;border-radius:20px!important}.shop-mini-banner h1{font-size:27px!important}.shop-mini-banner p{font-size:11.4px!important}.shop-toolbar{align-items:flex-start;padding:26px 0 14px!important}.shop-toolbar strong{font-size:22px!important}.shop-toolbar>div:last-child{width:100%;margin-top:10px}.shop-link{flex:1;padding:7px 5px!important;font-size:10.6px!important;white-space:nowrap}.shop-grid{gap:10px!important}.shop-card{min-height:267px!important;padding:17px!important;border-radius:16px!important}.shop-card:after{right:13.5px!important;top:12.5px!important}.shop-card h2{max-width:76%;margin-top:16.5px!important;font-size:17px!important}.shop-card-desc{min-height:40px!important;font-size:11.2px!important}.shop-price-row{padding-top:11.5px!important}.shop-price strong{font-size:17px!important}.shop-buy{min-width:92px!important;height:40px!important;padding:0 8px!important}}


/* ==== 分隔 ==== */

.shop-orders-list{display:grid;gap:10px}.shop-order-item{padding:13.5px;background:#f8faff;border:1px solid #e0e8f5;border-radius:13px}.shop-order-item-head{display:flex;justify-content:space-between;gap:10px;font-weight:800}.shop-order-item small{display:block;margin-top:3.5px;color:#72809a}.shop-order-item-actions{display:flex;gap:7px;margin-top:10px}.shop-order-item-actions button{padding:6.5px 9px;color:#fff;font:inherit;font-weight:750;background:var(--shop-accent);border:0;border-radius:8px;cursor:pointer}.shop-order-item-actions button.secondary{color:#405473;background:#e8effa}@media(max-width:600px){.shop-order-item{padding:11px}.shop-order-item-head{display:block}.shop-order-item-head strong{display:block;margin-top:3px}.shop-order-item-actions button{flex:1}}

/* ==== 分隔 ==== */



/* ==== 分隔 ==== */

.shop-shell{padding-top:38px}.shop-toolbar{padding-top:10px}
@media(max-width:600px){body:has(.shop-shell){background:#f5f7fb}.shop-shell{padding:18px 12.5px 45px}.shop-toolbar{position:sticky;z-index:3;top:0;display:block;padding:14px 0 13px;background:linear-gradient(180deg,#f5f7fb 78%,rgba(245,247,251,0));}.shop-toolbar strong{font-size:23.5px}.shop-toolbar span{font-size:12.5px}.shop-toolbar>div:last-child{display:flex;gap:7px;margin-top:11.5px}.shop-link{flex:1;min-height:42px;padding:7.5px 6.5px;font-size:12.2px;white-space:nowrap}.shop-grid{gap:11.5px}.shop-card{min-height:245px;padding:20px;border-radius:18px}.shop-card:before{height:4px}.shop-card:after{right:17px;top:15px;width:35px;height:35px;font-size:15px;border-radius:10px}.shop-badge{padding:4.2px 7.2px;font-size:10px}.shop-card h2{max-width:78%;margin:15.5px 0 6px;font-size:20px}.shop-card-desc{min-height:39px;font-size:12.5px;line-height:1.55;-webkit-line-clamp:2}.shop-price-row{gap:8px;padding-top:15.5px}.shop-price small{font-size:10.5px}.shop-price strong{font-size:21.5px}.shop-buy{min-width:108px;height:43px;padding:0 10px;font-size:12px}.shop-dialog{width:100%;max-height:92dvh;margin:auto 0 0;border-radius:22px 22px 0 0}.shop-detail-head{padding:22px 15px 13.5px}.shop-detail-head h2{padding-right:30px;font-size:23.5px}.shop-close{top:11.5px;right:11.5px;width:38px;height:38px}.shop-checkout-body{padding:15px 15px 7px}.shop-checkout-footer{padding:11px 15px max(13px,env(safe-area-inset-bottom))}.shop-method{min-height:58px;padding:10px}.shop-method strong{font-size:13px}.shop-submit{height:52px;font-size:14.5px}.shop-node-delivery{padding:13px}.shop-node-delivery img{width:185px;height:185px}.shop-member-balance{padding:14.5px}.shop-member-balance strong{font-size:26px}.shop-order{margin:15px auto 0;padding:20px 15px}.shop-order h1{font-size:24.5px}}


/* ==== 分隔 ==== */

body:has(.shop-shell){background:linear-gradient(180deg,#fff 0,#f5f7fc 36%,#eef2f8 100%)}.shop-shell{max-width:1280px;padding-top:68px}.shop-hero{min-height:342px;padding:57px 64px;background:radial-gradient(circle at 87% 18%,rgba(255,81,86,.64),transparent 27%),linear-gradient(125deg,#10172f 0%,#1a3476 57%,#d81117 100%);box-shadow:0 32px 75px rgba(23,40,95,.22)}.shop-hero:before{right:-70px;top:-120px;width:410px;height:410px;border-color:rgba(255,255,255,.16)}.shop-hero:after{right:40px;bottom:-130px;width:270px;height:270px}.shop-hero h1{max-width:740px;font-size:clamp(40px,5.2vw,66px)}.shop-hero p{max-width:670px;font-size:18px;line-height:1.75}.shop-trust{position:relative;z-index:1;display:flex;flex-wrap:wrap;gap:8.5px;margin-top:24px}.shop-trust span{padding:6.5px 10px;color:#eef3ff;font-size:12px;font-weight:700;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.15);border-radius:99px;backdrop-filter:blur(8px)}.shop-toolbar{align-items:center;padding:55px 0 25px}.shop-toolbar strong{font-size:28px;letter-spacing:-.04em}.shop-toolbar span{font-size:14px}.shop-link{padding:8px 12px;color:#e46417;background:#fff4eb;border:1px solid #ffe2cd;border-radius:99px;transition:.18s}.shop-link:hover{color:#c94c00;background:#ffead9;transform:translateY(-1px)}.shop-grid{gap:26px}.shop-card{min-height:340px;padding:30px;border:1px solid rgba(220,228,241,.94);background:linear-gradient(145deg,rgba(255,255,255,.98),rgba(249,251,255,.92));box-shadow:0 10px 28px rgba(25,43,87,.05)}.shop-card:after{position:absolute;right:27px;top:25.5px;display:grid;place-items:center;width:42px;height:42px;content:'✦';color:color-mix(in srgb,var(--shop-accent) 70%,#fff);font-size:18px;background:color-mix(in srgb,var(--shop-accent) 8%,#fff);border-radius:13px}.shop-card h2{max-width:80%;font-size:24.5px}.shop-card-desc{min-height:51px;color:#78869b;line-height:1.78}.shop-badge{padding:5.8px 10px;box-shadow:0 5px 13px color-mix(in srgb,var(--shop-accent) 10%,transparent)}.shop-price-row{gap:16px}.shop-price strong{font-size:24.5px}.shop-buy{height:48px;min-width:132px;background:linear-gradient(110deg,#ff8b24,#ff621d);box-shadow:0 12px 22px rgba(255,105,30,.25)}.shop-buy:hover{filter:brightness(1.04);box-shadow:0 17px 28px rgba(255,105,30,.32)}.shop-empty,.shop-error{border:1px dashed #d8e0ed;background:rgba(255,255,255,.72)}@media(max-width:600px){.shop-shell{padding-top:30px}.shop-hero{padding:41px 27px}.shop-hero h1{font-size:40px}.shop-toolbar{align-items:flex-start;gap:14px;padding:38px 0 20px}.shop-card{min-height:310px;padding:25px}.shop-card:after{right:22px;top:21px}.shop-card h2{font-size:22.5px}.shop-trust{margin-top:18px}}


/* ==== 分隔 ==== */

.shop-member-balance{padding:20px;margin:15px 0;text-align:center;background:linear-gradient(135deg,#eff5ff,#fbfcff);border:1px solid #dbe7fb;border-radius:16px}.shop-member-balance small{display:block;color:#71809a}.shop-member-balance strong{display:block;margin-top:4px;color:#1d4ed8;font-size:30px;letter-spacing:-.05em}.shop-member-actions{display:grid;gap:10px}.shop-member-actions button{width:100%;min-height:50px;font:inherit;font-weight:800;border-radius:11px;cursor:pointer}.shop-member-redeem{color:#fff;background:linear-gradient(110deg,var(--shop-accent),#f41c22);border:0}.shop-member-topup{color:#50627e;background:#fff;border:1px solid #dce5f2}.shop-member-success{text-align:center;padding:25px 15px}.shop-member-success b{display:grid;place-items:center;width:62px;height:62px;margin:0 auto 12px;color:#fff;font-size:28px;background:#10a568;border-radius:50%}.shop-member-success h3{margin:3px 0;font-size:22px}.shop-member-success p{color:#71809a}

/* ==== 分隔 ==== */

.shop-node-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:11px}.shop-node-actions button,.shop-node-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:7.5px 11px;color:#315789;font:inherit;font-weight:750;text-decoration:none;background:#fff;border:1px solid #d8e2f2;border-radius:9px;cursor:pointer}.shop-node-actions a{color:#fff;background:var(--shop-accent);border-color:var(--shop-accent)}.shop-node-actions button.is-copied{color:#087a4d;background:#e8fff3;border-color:#a9e8c9}.shop-copy-status{width:max-content;margin:12px auto 0;padding:6.5px 10px;color:#087a4d;font-size:12.5px;font-weight:800;background:#e8fff3;border:1px solid #b8edd2;border-radius:99px}.shop-copy-status[hidden]{display:none}

/* ==== 分隔 ==== */

.shop-node-delivery{text-align:center;padding:20px;background:#f5f8ff;border:1px solid #dce6fa;border-radius:16px}.shop-node-delivery img{display:block;width:210px;height:210px;margin:0 auto 14px;padding:10px;background:#fff;border:1px solid #dbe3ef;border-radius:14px}.shop-node-delivery p{margin:5px 0 10px;color:#61718c}.shop-node-delivery a{display:inline-block;padding:8.5px 12px;color:#fff;font-weight:750;text-decoration:none;background:var(--shop-accent);border-radius:9px}.shop-node-delivery code{display:block;margin-top:11px;padding:9px;text-align:left;word-break:break-all;color:#425572;background:#fff;border-radius:8px}

/* ============================================================
   Layout fix (2026-10-09): adaptive columns + full descriptions
   ------------------------------------------------------------
   Measured before: .shop-grid was repeat(3,1fr) with only 2 products, leaving
   838px dead space; .shop-card-desc clamped to 3 lines inside a 69px box while
   its content measured 208px, cutting off ~2/3 of the text.
   Descriptions are authored as "\n"-separated bullet lists, so pre-line keeps
   the structure that a plain <p> was collapsing.
   ============================================================ */

/* 1. Column count follows how many cards are ACTUALLY VISIBLE.
   The catalog holds 2 products, but they live in different categories and the
   filter sets [hidden] on the non-matching ones, so every filter state leaves
   exactly ONE card visible. Measured at 1600px: repeat(2,1fr) left 629px of dead
   space and repeat(3,1fr) left 838px. One full-width column is therefore the
   correct layout today, and :has() widens it automatically once two or more
   products share a category.
   NOTE: repeat(auto-fit,minmax(300px,1fr)) is NOT a workaround -- it folds empty
   tracks away and stretches the survivor to 1fr, collapsing to a single column
   regardless of the track count. auto-* keys off tracks, not on item count.
   NOTE: :nth-of-type() counts ALL siblings including the [hidden] ones, so it
   cannot be used to count visible cards; :has() + :not([hidden]) is required. */

/* 2. keep the authored line breaks instead of collapsing them into one blob */
body.is-shop-page .shop-card-desc{
  display:block!important;
  -webkit-line-clamp:none!important;
  -webkit-box-orient:initial!important;
  white-space:pre-line!important;
  overflow:visible!important;
  min-height:0!important;
  line-height:1.8!important;
}

/* 3. let the card grow with its content instead of clipping it */
body.is-shop-page .shop-card .shop-price-row{margin-top:auto!important;padding-top:18px!important}

/* 4. keep the description block breathing evenly under the title */
body.is-shop-page .shop-card h2{margin-bottom:10px!important}

/* ---- narrow screens: one column, unchanged reading size ---- */
@media (max-width:700px){
  body.is-shop-page .shop-grid{grid-template-columns:1fr!important}
}

/* ============================================================
   Description collapse (2026-10-09)
   ------------------------------------------------------------
   Long descriptions read as an 8-item bullet list, which made the card ~434px
   tall. Show the first 3 lines and fade the rest until the buyer expands it.
   Collapsing uses max-height + a mask (not display/line-clamp) so the full text
   stays in the DOM for find-in-page and copy/paste.
   3 lines at line-height 1.8 / font-size 14px == 75.6px.
   NOTE: block 2 above sets `overflow:visible!important`, so every declaration
   here that block 2 also touches (overflow, line-height, min-height) must carry
   !important too, otherwise the clamp silently loses the cascade.
   ============================================================ */
body.is-shop-page .shop-card-desc{
  position:relative;
  max-height:76px;
  overflow:hidden!important;
}
/* fade the cut edge so it reads as "more below" rather than "text stopped".
   The card paints linear-gradient(145deg,#fff,#fbfcff), so fading to pure white
   would leave a faint seam; use --fw-card and fall back to the lightest stop. */
body.is-shop-page .shop-card-desc:not(.is-expanded):after{
  position:absolute;
  right:0;bottom:0;left:0;height:30px;
  content:"";
  background:linear-gradient(180deg,rgba(255,255,255,0),var(--fw-card,#fbfcff) 82%);
  pointer-events:none;
}
body.is-shop-page .shop-card-desc.is-expanded{max-height:none!important}
body.is-shop-page .shop-card-desc.is-expanded:after{display:none!important}

/* only show the toggle when the text actually overflows */
body.is-shop-page .shop-desc-toggle{
  display:none;
  align-self:flex-start;
  margin:7px 0 0;
  padding:0;
  color:var(--shop-accent,#e41219);
  font:inherit;
  font-size:13px;
  font-weight:750;
  line-height:1.5;
  background:none;
  border:0;
  cursor:pointer;
}
body.is-shop-page .shop-desc-toggle:after{content:" ▾";font-size:11px}
body.is-shop-page .shop-desc-toggle.is-open:after{content:" ▴"}
body.is-shop-page .shop-desc-toggle.is-needed{display:inline-block}
body.is-shop-page .shop-desc-toggle:hover{text-decoration:underline}

/* dark theme fade */
html[data-fw-theme="dark"] body.is-shop-page .shop-card-desc:not(.is-expanded):after{
  background:linear-gradient(180deg,rgba(0,0,0,0),var(--fw-card,#1a2233) 82%);
}

/* ============================================================
   Card width fix (2026-10-09)
   ------------------------------------------------------------
   The user's annotation asked for a card roughly 334px wide. Measured: the card
   was stretching to the full 1240px container because the previous layout pass
   set `grid-template-columns: minmax(0,1fr)` to kill dead space when only one
   card is visible. That made the card absurdly wide with a large empty gap
   before 立即购买.

   Fixed-width tracks pack from the left and never stretch, so a lone card keeps
   a natural product-card size and the empty area to its right reads as an
   unfilled grid row rather than a broken layout.

   NOTE: `minmax(360px,1fr)` and `repeat(auto-fit,...)` are both WRONG here:
   minmax(...,1fr) stretches the surviving track back to full width, and auto-fit
   folds empty tracks away so the last card stretches. `auto-fill` + a bare fixed
   length is what actually holds the width.
   ============================================================ */
body.is-shop-page .shop-grid{
  grid-template-columns:repeat(auto-fill,360px)!important;
  justify-content:start!important;
}
/* the description block should not be squeezed by the narrower column */
body.is-shop-page .shop-card-desc{max-width:100%}

/* one column on phones, still full-bleed as before */
@media (max-width:700px){
  body.is-shop-page .shop-grid{
    grid-template-columns:minmax(0,1fr)!important;
    justify-content:stretch!important;
  }
}

/* 360px tracks + 17.5px gaps: 3 fit in the 1240px shell with room to spare */
@media (min-width:701px) and (max-width:1300px){
  body.is-shop-page .shop-grid{grid-template-columns:repeat(auto-fill,340px)!important}
}

/* ============================================================
   Shop shell gutter fix (2026-10-09)
   ------------------------------------------------------------
   `padding: 55px var(--gap) 90px` on .shop-shell references --gap, which is
   never defined in this stylesheet. An undefined var() invalidates the whole
   shorthand, so horizontal padding computed to 0px and the product card sat
   flush against the viewport edge at 768px (left=0) and 1280px (left=13px).
   Define the token and pin the gutter explicitly for desktop widths.
   ============================================================ */
body.is-shop-page{
  --gap:clamp(16px,4vw,40px);
}
body.is-shop-page .shop-shell{
  padding-left:var(--gap)!important;
  padding-right:var(--gap)!important;
}
@media (min-width:701px){
  body.is-shop-page .shop-shell{padding-left:32px!important;padding-right:32px!important}
}
@media (min-width:1240px){
  body.is-shop-page .shop-shell{padding-left:40px!important;padding-right:40px!important}
}

/* ============================================================
   Equal-height cards (2026-10-09)
   ------------------------------------------------------------
   Cards in the same grid row must match height and their price rows must line
   up. Two of my earlier rules broke this:
     - `align-items:start` on .shop-grid made every card content-sized, so a
       card with a short description ended up ~57px shorter than its neighbour.
     - `min-height:0!important` removed the theme's intended stretch.
   Restore the grid's default stretch, then pin the price row to the card's
   bottom so the leftover space lands in the description area, not under the
   button.
   ============================================================ */
body.is-shop-page .shop-grid{
  align-items:stretch!important;
}
/* the card keeps its flex column; allow it to fill the stretched grid row */
body.is-shop-page .shop-card{
  height:auto!important;
  min-height:292px!important;
}
/* the description absorbs the extra height so the price row stays at the
   bottom edge of every card, aligned across the row */
body.is-shop-page .shop-card .shop-card-desc{
  flex:1 1 auto;
}
/* keep the toggle directly under the description, not pushed down with it */
body.is-shop-page .shop-card .shop-desc-toggle{
  flex:0 0 auto;
}
body.is-shop-page .shop-card .shop-price-row{
  flex:0 0 auto;
  margin-top:auto!important;
}

/* ============================================================
   Legacy grid rules removed (2026-10-10)
   ------------------------------------------------------------
   早期「按可见卡片数自适应列数」的 :has() 规则与默认单列规则已删除。
   它们与新加的 repeat(auto-fill,360px) 都是同权重的 !important，
   同时存在会互相打架：商品从 2 个增加到 3 个后，:has() 的「两张卡相邻」
   条件被满足，于是命中 repeat(2,1fr)，把两列各拉到 571px。
   现在列宽只有一处定义：repeat(auto-fill,360px)。
   另外一并删掉了 min-height:0!important（会让卡片不等高），
   改由后面的 align-items:stretch + min-height:292px 统一负责。
   ============================================================ */

/* X 会员资格查询按钮（2026-10-13：下单前主动查询 X 账号能否接收赠送）*/
.shop-credentials .shop-xgift-check{display:inline-block;margin-top:9px;padding:6px 15px;border:1px solid #c9d9f5;border-radius:8px;background:#eef4ff;color:#2f5fd0;font-size:12.5px;font-weight:700;cursor:pointer;transition:background .15s,border-color .15s}
.shop-credentials .shop-xgift-check:hover:not(:disabled){background:#dfe9ff;border-color:#a9c4ef}
.shop-credentials .shop-xgift-check:disabled{opacity:.6;cursor:default}
.shop-credentials .shop-xgift-result{display:block;margin-top:7px;font-size:12.5px;line-height:1.55;font-weight:600}
.shop-credentials .shop-xgift-result.ok{color:#0f7b3d}
.shop-credentials .shop-xgift-result.err{color:#b42318}
.shop-credentials .shop-xgift-result.loading{color:#71809a}

/* ============================================================
   Mobile bottom-sheet checkout fix (2026-10-18)
   ------------------------------------------------------------
   The catalog sheet was sized by its content: <dialog> capped at 92dvh while
   #shop-detail kept max-height:100dvh and an auto height, so on phones the
   .shop-checkout flex column never actually shrank — its tall body stretched
   the sheet and the "确认订单" footer overflowed below the viewport, where the
   dialog's overflow:hidden clipped it (button bottom ~25px past the fold).
   Give the sheet a real, fixed height and pin the footer with a scrollable
   body (the canonical bottom-sheet pattern) instead of relying on the tangled
   max-height cascade above.
   ============================================================ */
@media (max-width:600px){
  body.is-shop-page .shop-dialog[open]{
    height:92dvh!important;
    max-height:92dvh!important;
    display:flex!important;
    flex-direction:column!important;
    overflow:hidden!important;
  }
  body.is-shop-page #shop-detail{
    height:100%!important;
    max-height:100%!important;
    min-height:0!important;
    display:flex!important;
    flex-direction:column!important;
    overflow:hidden!important;
  }
  body.is-shop-page #shop-detail .shop-detail-head{
    flex:0 0 auto!important;
  }
  /* checkout form: footer pinned, body scrolls */
  body.is-shop-page #shop-detail .shop-checkout{
    flex:1 1 auto!important;
    min-height:0!important;
    overflow:hidden!important;
  }
  body.is-shop-page #shop-detail .shop-checkout-body{
    flex:1 1 auto!important;
    min-height:0!important;
    overflow-y:auto!important;
  }
  body.is-shop-page #shop-detail .shop-checkout-footer{
    flex:0 0 auto!important;
  }
  /* payment / balance / orders screens scroll their middle too */
  body.is-shop-page #shop-detail .shop-pay-view{
    flex:1 1 auto!important;
    min-height:0!important;
    overflow:hidden!important;
  }
  body.is-shop-page #shop-detail .shop-pay-body{
    flex:1 1 auto!important;
    min-height:0!important;
    overflow-y:auto!important;
  }
}
