:root{--blue:#10265f;--blue-2:#183b86;--purple:#7c3aed;--purple-2:#a855f7;--ink:#111b36;--muted:#667085;--line:#e7e9f2;--soft:#f7f7fc;--white:#fff;--shadow:0 18px 50px rgba(25,32,72,.08)}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;color:var(--ink);background:#fff;font-family:Inter,"PingFang SC","Microsoft YaHei",system-ui,-apple-system,sans-serif;line-height:1.6}
a{color:inherit;text-decoration:none}
button,input{font:inherit}
button{cursor:pointer}
.container{width:min(calc(100% - 40px),1180px);margin-inline:auto}
.site-header{position:sticky;top:0;z-index:30;background:rgba(255,255,255,.92);border-bottom:1px solid rgba(231,233,242,.85);backdrop-filter:blur(14px)}
.header-inner{display:flex;min-height:72px;align-items:center;justify-content:space-between;gap:28px}
.brand{display:inline-flex;align-items:center;gap:10px;color:var(--blue);font-size:20px;font-weight:900;letter-spacing:-.4px}
.brand-mark{display:grid;width:38px;height:38px;place-items:center;color:#fff;background:linear-gradient(145deg,var(--blue),var(--purple));border-radius:12px;box-shadow:0 8px 20px rgba(124,58,237,.22)}
.desktop-nav{display:flex;align-items:center;gap:32px}
.desktop-nav a{position:relative;display:inline-flex;min-height:40px;align-items:center;padding:0 4px;color:#4a536b;font-weight:700}
.desktop-nav a:hover,.desktop-nav .active{color:var(--purple)}
.desktop-nav .active:after{position:absolute;right:4px;bottom:-16px;left:4px;height:3px;background:var(--purple);border-radius:8px;content:""}
.desktop-nav a:focus-visible,.mobile-tabbar a:focus-visible,.mobile-tabbar button:focus-visible{outline:2px solid #8b5cf6;outline-offset:-2px;border-radius:9px}
.auth-actions{display:flex;align-items:center;gap:7px;color:#98a0b3}
.text-button{padding:7px 2px;color:var(--blue);background:none;border:0;font-weight:800}
.hero{padding:30px 0 0}
.hero-card{position:relative;min-height:220px;overflow:hidden;padding:48px 56px;background:linear-gradient(128deg,#f3f6ff 0%,#fff 52%,#f8f1ff 100%);border:1px solid #e8eafa;border-radius:32px;box-shadow:var(--shadow)}
.hero-card:before{position:absolute;top:-80px;right:20%;width:220px;height:220px;background:rgba(124,58,237,.08);border-radius:50%;filter:blur(15px);content:""}
.eyebrow{display:block;margin-bottom:8px;color:var(--purple);font-size:12px;font-weight:900;letter-spacing:1.6px;text-transform:uppercase}
.hero h1{position:relative;margin:0 0 14px;color:var(--blue);font-size:38px;line-height:1.25;letter-spacing:-1px}
.hero-copy p{position:relative;max-width:720px;margin:0;color:var(--muted);font-size:16px}
.button{display:inline-flex;min-height:46px;align-items:center;justify-content:center;padding:0 24px;border:1px solid transparent;border-radius:13px;font-weight:800}
.button.primary{color:#fff;background:linear-gradient(135deg,var(--blue-2),var(--purple));box-shadow:0 10px 24px rgba(90,55,190,.24)}
.button.secondary{color:var(--blue);background:#fff;border-color:#d8dcec}
.section{padding:62px 0}
.category-section{padding-top:32px}
.category-section+.products-section{padding-top:0}
.section-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:25px}
.section-heading h2,.faq-card h2{margin:0;font-size:32px;line-height:1.2}
.section-heading p{margin:7px 0 0;color:var(--muted)}
.more-link{color:var(--purple);font-size:14px;font-weight:800}
.category-grid{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:12px}
.category-item{display:flex;min-width:0;min-height:126px;align-items:center;justify-content:center;padding:15px 7px;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:0 9px 28px rgba(26,35,76,.05);text-align:center;transition:.2s ease}
.category-item:hover{border-color:#cfc2fb;box-shadow:0 14px 32px rgba(78,53,160,.11);transform:translateY(-3px)}
.category-icon{display:grid;width:42px;height:42px;margin-bottom:8px;place-items:center;color:var(--purple);background:#f2edff;border-radius:13px;font-weight:900}
.category-icon img{display:block;width:28px;height:28px;object-fit:contain}
.category-item strong{overflow-wrap:anywhere;font-size:12px;line-height:1.25}
.category-item small{margin-top:5px;color:#949bad;font-size:10px}
.category-item small{min-height:16px}
.product-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.product-card{display:flex;min-width:0;min-height:245px;padding:23px;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:24px;box-shadow:0 13px 36px rgba(25,32,70,.06)}
.product-top,.product-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px}
.product-icon{display:grid;width:46px;height:46px;place-items:center;color:#fff;background:linear-gradient(145deg,var(--blue),var(--purple));border-radius:14px;font-weight:900}
.stock-pill{padding:5px 10px;color:#16794c;background:#edfbf4;border-radius:999px;font-size:11px;font-weight:800}
.product-card h3{display:-webkit-box;overflow:hidden;margin:20px 0 12px;font-size:17px;line-height:1.45;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.product-meta{display:flex;flex-wrap:wrap;gap:7px}
.product-meta span{padding:4px 9px;color:#616b82;background:#f5f6fa;border-radius:8px;font-size:11px}
.product-bottom{margin-top:auto;padding-top:20px}
.product-bottom strong{color:var(--purple);font-size:21px}
.product-bottom a{color:var(--blue);font-size:13px;font-weight:800}
.status-card{padding:35px;color:var(--muted);background:var(--soft);border:1px dashed #cfd4e4;border-radius:22px;text-align:center}
.status-card.error{display:grid;gap:4px;color:#8b4962;background:#fff7fa;border-color:#f2cddd}
.status-card.error strong{color:#71233f}
.status-card h2{margin:0;color:var(--ink);font-size:21px}
.status-card p{margin:6px 0 0}
.category-state-actions{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:16px}
footer{padding:35px 0 100px;background:#f8f9fc;border-top:1px solid var(--line)}
body[data-page="home"] footer{padding:18px 0}
.home-footer-copy{margin:0;color:var(--muted);font-size:12px;text-align:center}
.footer-inner{display:flex;align-items:center;justify-content:space-between;gap:20px}
.footer-inner p{margin:0;color:var(--muted);font-size:13px}
.mobile-tabbar{display:none}
.modal[hidden]{display:none}
.modal{position:fixed;inset:0;z-index:100;display:grid;padding:20px;place-items:center}
.modal-backdrop{position:absolute;inset:0;background:rgba(10,16,42,.66);border:0;backdrop-filter:blur(6px)}
.modal-panel{position:relative;z-index:1;width:min(100%,440px);padding:34px;background:#fff;border-radius:25px;box-shadow:0 30px 80px rgba(0,0,0,.25)}
.modal-panel h2{margin:0 0 8px}
.modal-panel p{margin:0 0 24px;color:var(--muted)}
.modal-close{position:absolute;top:13px;right:13px;width:34px;height:34px;background:#f2f3f8;border:0;border-radius:50%;font-size:21px}
.modal-open{overflow:hidden}
.placeholder-page{display:grid;width:min(calc(100% - 40px),800px);min-height:100vh;margin:auto;padding:30px 0;grid-template-rows:auto 1fr;gap:40px}
.placeholder-page section{align-self:center;padding:50px;background:linear-gradient(135deg,#f4f6ff,#fbf5ff);border:1px solid var(--line);border-radius:30px;box-shadow:var(--shadow)}
.placeholder-page h1{margin:0;font-size:40px}
.placeholder-page p{margin:10px 0 25px;color:var(--muted)}

@media(max-width:1050px){.category-grid{grid-template-columns:repeat(5,1fr)}
.product-grid{grid-template-columns:repeat(2,1fr)}
.hero-card{padding:42px}
.hero h1{font-size:34px}
}

@media(max-width:760px){body{padding-bottom:calc(76px + env(safe-area-inset-bottom));overflow-x:hidden}
.container{width:min(calc(100% - 24px),1180px)}
.header-inner{min-height:62px}
.desktop-nav{display:none}
.auth-actions span,.auth-actions button:last-child{display:none}
.hero{padding:12px 0 0}
.hero-card{min-height:auto;padding:26px 22px;border-radius:24px}
.hero h1{margin-bottom:11px;font-size:28px;letter-spacing:-.6px}
.hero-copy p{font-size:14px}
.section{padding:43px 0}
.section-heading{align-items:start;margin-bottom:19px}
.section-heading h2,.faq-card h2{font-size:26px}
.category-grid{gap:7px}
.category-item{min-height:99px;padding:10px 2px;border-radius:15px}
.category-icon{width:35px;height:35px;margin-bottom:5px;border-radius:10px}
.category-item strong{font-size:10px}
.category-item small{font-size:8px}
.product-grid{grid-template-columns:1fr}
body[data-page="home"] footer{padding:16px 0 calc(16px + env(safe-area-inset-bottom))}
.footer-inner{align-items:start;flex-direction:column}
.mobile-tabbar{position:fixed;right:0;bottom:0;left:0;z-index:40;display:grid;height:calc(68px + env(safe-area-inset-bottom));padding:6px max(8px,env(safe-area-inset-right)) calc(5px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));grid-template-columns:repeat(5,1fr);background:rgba(255,255,255,.96);border-top:1px solid var(--line);box-shadow:0 -8px 25px rgba(24,31,67,.08);backdrop-filter:blur(14px)}
.mobile-tabbar a,.mobile-tabbar button{display:flex;min-width:0;min-height:44px;align-items:center;justify-content:center;gap:1px;flex-direction:column;color:#8a92a6;background:none;border:0;font-size:10px}
.mobile-tabbar b{font-size:18px;line-height:1.2}
.mobile-tabbar .active{color:var(--purple)}
.auth-actions .auth-loading{display:inline-flex;min-width:104px;min-height:40px;align-items:center;justify-content:flex-end;color:var(--muted);font-size:12px;font-weight:700;white-space:nowrap}
.placeholder-page section{padding:30px 24px}
.placeholder-page h1{font-size:31px}
}

@media(max-width:390px){.container{width:min(calc(100% - 20px),1180px)}
.hero-card{padding:24px 19px}
.hero h1{font-size:26px}
.button{padding-inline:17px}
.category-grid{gap:5px}
.category-item{min-height:94px}
.category-item strong{font-size:9px}
.category-item small{font-size:7px}
}

@media(max-width:760px){body[data-page="home"] .section{padding:34px 0}
body[data-page="home"] .category-section{padding-top:22px}
body[data-page="home"] .category-section+.products-section{padding-top:0}
body[data-page="home"] .category-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
body[data-page="home"] .category-item{min-height:104px;padding:11px 5px}
body[data-page="home"] .category-item strong{font-size:11px}
body[data-page="home"] .category-item small{font-size:9px}
}

@media(max-width:350px){body[data-page="home"] .category-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}

.orders-storefront-main{min-height:calc(100vh - 72px);padding:70px 0 110px;background:linear-gradient(145deg,#f7f9ff,#fff 52%,#fbf6ff)}

.orders-storefront-card{max-width:760px;margin:auto;padding:52px;background:#fff;border:1px solid var(--line);border-radius:30px;box-shadow:var(--shadow);text-align:center}

.orders-storefront-icon{display:grid;width:68px;height:68px;margin:0 auto 22px;place-items:center;color:#fff;background:linear-gradient(145deg,var(--blue),var(--purple));border-radius:21px;font-size:28px;font-weight:900}

.orders-storefront-card h1{margin:0;font-size:38px;line-height:1.25}
.orders-storefront-card p{max-width:560px;margin:14px auto 28px;color:var(--muted)}

@media(max-width:760px){.orders-storefront-main{min-height:calc(100vh - 62px);padding:42px 0 100px}
.orders-storefront-card{padding:38px 22px;border-radius:24px}
.orders-storefront-card h1{font-size:29px}
}

.category-main{min-height:70vh;overflow:hidden;background:#fafbff}
.category-content-section{padding:18px 0 64px}
.category-chips{display:flex;gap:9px;padding:4px 2px 12px;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:thin;white-space:nowrap}
.category-chips a{display:inline-flex;flex:0 0 auto;align-items:center;gap:7px;padding:8px 14px;color:#596278;background:#fff;border:1px solid var(--line);border-radius:999px;font-size:13px;font-weight:800}
.category-chip-icon{display:grid;width:20px;height:20px;flex:0 0 auto;place-items:center;color:var(--purple);background:#f2edff;border-radius:7px;font-size:10px;font-weight:900}
.category-chips a.active .category-chip-icon{color:#fff;background:rgba(255,255,255,.18)}
.category-chips a:hover,.category-chips a.active{color:#fff;background:linear-gradient(135deg,var(--blue-2),var(--purple));border-color:transparent}
.category-controls{display:grid;grid-template-columns:minmax(240px,1fr) auto auto;gap:12px;align-items:center;margin:10px 0 18px;padding:14px;background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:0 10px 28px rgba(25,32,72,.05)}
.category-search{display:flex;min-width:0;height:44px;align-items:center;gap:9px;padding:0 12px;background:#f8f9fc;border:1px solid #e4e6ef;border-radius:13px}
.category-search:focus-within{border-color:#a78bfa;box-shadow:0 0 0 3px rgba(124,58,237,.1)}
.search-icon{color:var(--purple);font-size:20px}
.category-search input{min-width:0;width:100%;height:100%;padding:0;background:transparent;border:0;outline:0}
.category-search button{padding:4px 6px;color:var(--purple);background:transparent;border:0;font-size:12px;font-weight:800}
.filter-toggle{display:none;min-height:44px;padding:0 15px;color:var(--blue);background:#fff;border:1px solid #d9ddea;border-radius:12px;font-weight:800}
.sort-control{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:12px;font-weight:800}
.sort-control select{min-height:44px;padding:0 34px 0 12px;color:var(--ink);background:#fff;border:1px solid #dfe2ec;border-radius:12px;outline:none;font:inherit}
.category-workspace{display:grid;grid-template-columns:250px minmax(0,1fr);gap:18px;align-items:start}
.category-workspace.no-filters{grid-template-columns:1fr}
.category-filter-panel{position:sticky;top:90px;padding:20px;background:#fff;border:1px solid var(--line);border-radius:22px;box-shadow:0 12px 34px rgba(25,32,72,.05)}
.filter-panel-head{display:flex;align-items:start;justify-content:space-between;gap:12px;margin-bottom:8px}
.filter-panel-head h2{margin:0;font-size:21px}
.category-filter-close{display:none;width:44px;height:44px;color:var(--muted);background:#f3f4f8;border:0;border-radius:50%;font-size:22px}
.filter-groups{display:grid;gap:0}
.filter-group{padding:16px 0;border-bottom:1px solid #eceef4}
.filter-group:last-child{border-bottom:0}
.filter-group h3{margin:0 0 10px;font-size:13px}
.filter-choices{display:flex;gap:7px;flex-wrap:wrap}
.filter-choices label{cursor:pointer}
.filter-choices input{position:absolute;opacity:0;pointer-events:none}
.filter-choices span{display:block;padding:6px 9px;color:#667085;background:#f6f7fa;border:1px solid transparent;border-radius:9px;font-size:11px;font-weight:700}
.filter-choices input:focus-visible+span{outline:2px solid #a78bfa;outline-offset:2px}
.filter-choices input:checked+span{color:#5b21b6;background:#f1eaff;border-color:#d8c6ff}
.filter-actions{display:grid;grid-template-columns:1fr;gap:8px;padding-top:16px}
.filter-actions .button{width:100%;min-height:42px;padding:0 12px}
.filter-apply{display:none}
.filter-drawer-backdrop{display:none}
.category-results{min-width:0}
.results-head{display:flex;min-height:30px;align-items:center;justify-content:space-between;margin-bottom:8px}
.results-head p{margin:0;color:var(--muted);font-size:13px;font-weight:700}
.category-product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.category-product-card{min-height:300px}
.category-card-platform{display:flex;align-items:center;gap:7px;margin-top:16px;color:var(--purple);font-size:11px;font-weight:900}
.category-card-region{color:#667085;padding-left:7px;border-left:1px solid #d9ddea;font-weight:700}
.category-product-card h3{margin-top:8px}
.category-card-summary{display:-webkit-box;overflow:hidden;margin:0 0 12px;color:var(--muted);font-size:12px;line-height:1.55;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.detail-link{white-space:nowrap}
.filter-drawer-open{overflow:hidden}

@media(max-width:1050px){.category-workspace{grid-template-columns:220px minmax(0,1fr)}
.category-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(max-width:760px){.category-content-section{padding:8px 0 30px}
.category-chips{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;padding:4px 0 12px;overflow:visible;white-space:normal}
.category-chips a{min-width:0;min-height:60px;justify-content:center;gap:4px;padding:7px 4px;flex-direction:column;border-radius:14px;text-align:center}
.category-chip-icon{width:25px;height:25px;border-radius:8px;font-size:11px}
.category-chip-label{display:-webkit-box;max-width:100%;overflow:hidden;overflow-wrap:anywhere;font-size:10px;line-height:1.2;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.category-controls{grid-template-columns:minmax(0,1fr) auto;padding:10px;gap:8px}
.category-search{grid-column:1/-1}
.filter-toggle{display:block}
.sort-control span{display:none}
.sort-control select{width:100%;max-width:180px}
.category-workspace{display:block}
.category-filter-panel{position:fixed;top:auto;right:auto;bottom:calc(68px + env(safe-area-inset-bottom));inset-inline-end:-100vw;z-index:95;width:min(88vw,360px);max-width:calc(100vw - 12px);max-height:min(calc(100vh - 150px),600px);max-height:min(calc(100dvh - 150px - env(safe-area-inset-bottom)),600px);padding:22px 22px max(22px,env(safe-area-inset-bottom));overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;border-radius:22px 0 0 0;visibility:hidden;transition:inset-inline-end .22s ease,visibility .22s ease;-webkit-overflow-scrolling:touch}
.category-filter-panel.is-open{inset-inline-end:0;visibility:visible}
.category-filter-close{display:grid;place-items:center}
.filter-apply{display:inline-flex}
.filter-drawer-backdrop{position:fixed;inset:0 0 calc(68px + env(safe-area-inset-bottom));z-index:90;display:block;background:rgba(15,23,42,.5);border:0;opacity:0;visibility:hidden;transition:opacity .2s ease,visibility .2s ease}
.filter-drawer-backdrop.is-open{opacity:1;visibility:visible}
.category-product-grid{grid-template-columns:1fr}
.category-product-card{min-height:270px}
}

@media(max-width:390px){.category-controls{margin-top:6px}
.sort-control select{max-width:158px;padding-left:9px;font-size:12px}
.category-state-actions{align-items:stretch;flex-direction:column}
.category-state-actions .button{width:100%}
}

.product-detail-main{min-height:70vh;padding:22px 0 68px;overflow:hidden;background:#fafbff}
.product-breadcrumb{display:flex;align-items:center;gap:8px;margin:0 0 10px;color:var(--muted);font-size:13px}
.product-breadcrumb a{color:var(--blue);font-weight:800}
.product-page-state{display:grid;min-height:360px;padding:52px 24px;place-items:center;align-content:center;background:#fff;border:1px solid var(--line);border-radius:28px;box-shadow:var(--shadow);text-align:center}
.product-page-state[hidden],.product-page-state [hidden],#productContent[hidden],.mobile-purchase-bar[hidden]{display:none!important}
.product-page-state.error{background:#fff8fa;border-color:#f3d1dc}
.product-page-state h1{margin:14px 0 4px;font-size:30px}
.product-page-state p{max-width:520px;margin:0 0 20px;color:var(--muted)}
.product-state-icon{display:grid;width:58px;height:58px;place-items:center;color:#fff;background:linear-gradient(145deg,var(--blue),var(--purple));border-radius:18px;font-size:24px}
.product-overview-card{overflow:hidden;background:#fff;border:1px solid var(--line);border-radius:28px;box-shadow:var(--shadow)}
.product-overview-info{padding:38px 42px}
.product-availability{display:inline-flex;padding:5px 10px;border-radius:999px;font-size:11px;font-weight:900}
.product-availability.available{color:#14764a;background:#eaf9f1}
.product-availability.unavailable{color:#9a4055;background:#fff0f3}
.product-overview-info h1{margin:15px 0 12px;color:var(--ink);font-size:29px;line-height:1.35}
.product-facts{display:grid;margin:0}
.product-facts div{display:grid;grid-template-columns:92px minmax(0,1fr);gap:15px;padding:11px 0;border-bottom:1px solid #eceef4}
.product-facts div:first-child{border-top:1px solid #eceef4}
.product-facts dt{color:var(--muted);font-size:12px;font-weight:800}
.product-facts dd{margin:0;color:var(--ink);font-size:13px;word-break:break-word}
.product-facts .fact-warning{color:#a13f54;font-weight:800}
.product-purchase-facts{display:grid}
.product-facts:empty+.product-purchase-facts{border-top:1px solid #eceef4}
.product-purchase-facts>div{display:grid;min-width:0;grid-template-columns:92px minmax(0,1fr);gap:15px;align-items:center;padding:11px 0;border-bottom:1px solid #eceef4}
.product-purchase-facts>div>span,.product-purchase-facts label{color:var(--muted);font-size:12px;font-weight:800}
.product-purchase-facts>div>strong{font-size:14px}
.product-quantity-row>div{min-width:0}
.product-quantity-control{display:grid;width:190px;height:46px;grid-template-columns:46px minmax(0,1fr) 46px;overflow:hidden;border:1px solid #dfe2ec;border-radius:12px}
.product-quantity-control:focus-within{border-color:#9d7af5;box-shadow:0 0 0 3px rgba(124,58,237,.1)}
.product-quantity-control button{padding:0;color:var(--blue);background:#f7f8fb;border:0;font-size:20px;font-weight:800}
.product-quantity-control button:disabled{cursor:not-allowed;color:#b2b7c4;background:#f3f4f7}
.product-quantity-control input{min-width:0;width:100%;padding:0 4px;color:var(--ink);background:#fff;border-width:0 1px;border-style:solid;border-color:#e2e4ec;outline:0;font-weight:900;text-align:center;-moz-appearance:textfield}
.product-quantity-control input::-webkit-inner-spin-button,.product-quantity-control input::-webkit-outer-spin-button{margin:0;-webkit-appearance:none}
.product-quantity-row small{display:block;margin-top:5px;color:var(--muted);font-size:10px}
.product-quantity-error{margin:5px 0 0;color:#a13f54;font-size:11px;font-weight:700}
.product-purchase-facts .product-payable-row{margin-top:8px;padding:15px 13px;background:#f7f3ff;border-bottom:0;border-radius:12px}
.product-payable-row strong{color:var(--purple);font-size:22px!important}
.desktop-buy-link{width:100%;margin-top:24px}
.button.is-disabled,.button:disabled{cursor:not-allowed;color:#8b93a6;background:#e6e8ee;box-shadow:none;opacity:.78;pointer-events:none}
.product-description-card{margin-top:20px;padding:34px 38px;background:#fff;border:1px solid var(--line);border-radius:26px;box-shadow:0 12px 36px rgba(25,32,72,.05)}
.product-section-heading{margin-bottom:20px}
.product-section-heading h2{margin:0;font-size:25px}
.product-description-content{display:grid;gap:11px;color:#424b61;font-size:14px;line-height:1.75}
.product-description-content p{margin:0;padding:0 0 11px;border-bottom:1px solid #f0f1f5;white-space:pre-wrap;word-break:break-word}
.product-description-content p:last-child{padding-bottom:0;border-bottom:0}
.description-list{display:grid;gap:8px;margin:0;padding:16px 18px 16px 38px;background:#f8f9fc;border-radius:15px}
.description-list li{padding-left:3px}
.product-description-content .description-warning{padding:12px 14px;color:#8d3449;background:#fff4f6;border:1px solid #f5d7df;border-radius:13px;font-weight:700}
.product-description-content .description-after-sales{padding:10px 12px;color:#17633f;background:#eefaf4;border-left:3px solid #35a66f;border-bottom:0;border-radius:8px;font-weight:700}
.product-description-content a{color:var(--purple);font-weight:800;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:2px;overflow-wrap:anywhere}
.description-empty{color:var(--muted)}
.mobile-purchase-bar{display:none}

@media(max-width:900px){.product-overview-info{padding:30px}
}

@media(max-width:760px){body[data-page="product"]{padding-bottom:calc(154px + env(safe-area-inset-bottom))}
.product-detail-main{padding:12px 0 96px}
.product-breadcrumb{margin-bottom:10px;font-size:11px}
.product-overview-card{border-radius:22px}
.product-overview-info{padding:23px 20px 26px}
.product-overview-info h1{font-size:21px}
.product-facts div{grid-template-columns:80px minmax(0,1fr);gap:9px}
.product-purchase-facts>div{grid-template-columns:80px minmax(0,1fr);gap:9px}
.product-quantity-control{width:100%;height:50px;grid-template-columns:52px minmax(0,1fr) 52px}
.desktop-buy-link{display:none}
.product-description-card{margin-top:12px;padding:24px 19px;border-radius:21px}
.product-section-heading h2{font-size:22px}
.product-description-content{font-size:13px;line-height:1.7}
.product-page-state{min-height:330px;padding:38px 20px;border-radius:22px}
.product-page-state h1{font-size:25px}
.mobile-purchase-bar{position:fixed;right:0;bottom:calc(68px + env(safe-area-inset-bottom));left:0;z-index:39;display:flex;max-width:100%;min-height:76px;align-items:center;justify-content:space-between;gap:14px;padding:10px max(14px,env(safe-area-inset-right)) 10px max(14px,env(safe-area-inset-left));overflow:hidden;background:rgba(255,255,255,.97);border-top:1px solid var(--line);box-shadow:0 -10px 28px rgba(25,32,72,.1);backdrop-filter:blur(14px)}
.mobile-purchase-bar[hidden]{display:none}
.mobile-purchase-bar>div{display:grid;min-width:0}
.mobile-purchase-bar span{color:var(--purple);font-size:20px;font-weight:900;line-height:1.2}
.mobile-purchase-bar small{color:var(--muted);font-size:11px}
.mobile-purchase-bar .button{min-width:128px;min-height:46px;padding:0 18px}
}

@media(max-width:390px){.product-overview-info{padding-inline:17px}
.product-description-card{padding-inline:17px}
.mobile-purchase-bar .button{min-width:116px}
}

@media(max-width:340px){.mobile-purchase-bar{gap:9px;padding-right:max(10px,env(safe-area-inset-right));padding-left:max(10px,env(safe-area-inset-left))}
.mobile-purchase-bar span{font-size:18px}
.mobile-purchase-bar .button{min-width:108px;padding-inline:14px}
}

.checkout-main{min-height:70vh;padding:22px 0 68px;background:#fafbff}
.checkout-page-state{min-height:310px}
.checkout-content{margin-top:0}
.checkout-content[hidden],.checkout-content [hidden]{display:none!important}
.checkout-unavailable{display:flex;align-items:center;gap:9px;margin-bottom:14px;padding:13px 16px;color:#934056;background:#fff2f5;border:1px solid #f2d3dc;border-radius:14px;font-size:13px}
.checkout-unavailable strong{white-space:nowrap}
.checkout-stock-notice{margin-bottom:14px;padding:11px 14px;color:#725119;background:#fff8e8;border:1px solid #f0dfb5;border-radius:12px;font-size:12px;font-weight:700}
.checkout-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:18px;align-items:start}
.checkout-card,.checkout-summary-card{background:#fff;border:1px solid var(--line);border-radius:24px;box-shadow:0 12px 34px rgba(25,32,72,.055)}
.checkout-card{padding:28px 30px}
.checkout-card-heading{margin-bottom:20px}
.checkout-card-heading h2{margin:2px 0 0;font-size:25px;line-height:1.25}
.checkout-inline-error{margin:8px 0 0;color:#a13f54;font-size:12px;font-weight:700}
.checkout-payment-actions{display:flex;justify-content:space-between;gap:12px;margin-top:22px}
.checkout-payment-actions .button{min-width:150px}
.checkout-summary-card{position:sticky;top:90px;padding:23px}
.checkout-summary-card h2{margin:0 0 17px;font-size:20px}
.summary-product{display:flex;min-width:0;align-items:center;gap:11px;padding-bottom:17px;border-bottom:1px solid #eceef4}
.summary-product span{display:grid;width:42px;height:42px;flex:0 0 auto;place-items:center;color:#fff;background:linear-gradient(145deg,var(--blue),var(--purple));border-radius:12px;font-size:12px;font-weight:900}
.summary-product strong{display:-webkit-box;overflow:hidden;font-size:13px;line-height:1.45;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.checkout-summary-card dl{margin:7px 0 0}
.checkout-summary-card dl div{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:9px 0;color:var(--muted);font-size:12px}
.checkout-summary-card dd{margin:0;color:var(--ink);font-weight:900}
.checkout-summary-card .summary-total{margin-top:6px;padding-top:15px;border-top:1px solid #e8eaf1;font-size:14px}
.checkout-summary-card .summary-total dd{color:var(--purple);font-size:23px}
.checkout-summary-card>p{margin:11px 0 0;color:var(--muted);font-size:10px;text-align:center}
.checkout-card-heading p{margin:6px 0 0;color:var(--muted);font-size:12px}
.payment-methods{margin:23px 0 0;padding:0;border:0}
.payment-methods>legend{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.payment-group+.payment-group{margin-top:20px}
.payment-group h3{margin:0 0 9px;font-size:13px}
.payment-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.payment-grid.single{grid-template-columns:1fr}
.payment-card{position:relative;display:flex;min-width:0;min-height:82px;align-items:center;gap:12px;padding:14px;cursor:pointer;background:#fff;border:1px solid #dfe2ec;border-radius:15px;transition:.18s ease}
.payment-card:hover{border-color:#bea9f5}
.payment-card input{position:absolute;opacity:0;pointer-events:none}
.payment-card:has(input:checked){background:#f8f5ff;border-color:#9871ee;box-shadow:0 0 0 2px rgba(124,58,237,.08)}
.payment-card:has(input:focus-visible){outline:2px solid #8b5cf6;outline-offset:2px}
.payment-symbol{display:grid;width:38px;height:38px;flex:0 0 auto;place-items:center;color:#fff;background:#1677ff;border-radius:11px;font-weight:900}
.payment-symbol.wechat{background:#1aad19}
.payment-symbol.usdt{background:#26a17b}
.payment-card .payment-copy{display:grid;min-width:0}
.payment-fee-badge{margin-left:auto;color:#ff4d4f;font-size:16px;font-weight:800;white-space:nowrap}
.payment-card strong{font-size:13px}
.payment-card small{color:var(--muted);font-size:10px;line-height:1.4}
.checkout-card button:focus-visible,.checkout-card a:focus-visible{outline:2px solid #8b5cf6;outline-offset:2px}
@media(max-width:900px){.checkout-layout{grid-template-columns:1fr}
.checkout-summary-card{position:static}
}

@media(max-width:760px){body[data-page="checkout"]{padding-bottom:calc(76px + env(safe-area-inset-bottom))}
.checkout-main{padding:12px 0 calc(96px + env(safe-area-inset-bottom))}
.checkout-card{padding:22px 18px;border-radius:20px}
.checkout-card-heading h2{font-size:21px}
.checkout-unavailable{align-items:flex-start;flex-direction:column;gap:2px}
.checkout-payment-actions{margin-top:18px}
.checkout-payment-actions .button{min-width:0;flex:1}
.checkout-summary-card{position:static;order:-1;padding:20px;border-radius:20px}
.payment-grid,.payment-grid.single{grid-template-columns:1fr}
.payment-card{min-height:76px}
}

@media(max-width:390px){.checkout-card{padding-inline:16px}
.checkout-payment-actions{flex-direction:column}
}

.auth-actions{min-width:0}
.auth-loading{min-width:104px}
.auth-account-button{max-width:210px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.auth-logout-button{color:var(--muted)}
.auth-modal [hidden]{display:none!important}
.auth-modal-panel{width:min(100%,470px)}
.auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:2px 0 20px;padding:5px;background:#f3f4f8;border-radius:13px}
.auth-tabs button{min-height:40px;color:var(--muted);background:transparent;border:0;border-radius:10px;font-weight:800}
.auth-tabs button.active{color:var(--blue);background:#fff;box-shadow:0 5px 15px rgba(25,32,72,.08)}
.auth-form{display:grid;gap:14px}
.auth-field{display:grid;gap:6px;color:var(--ink);font-size:12px;font-weight:800}
.auth-field input{width:100%;height:46px;padding:0 13px;color:var(--ink);background:#fff;border:1px solid #dfe2ec;border-radius:12px;outline:0}
.auth-field input:focus{border-color:#9871ee;box-shadow:0 0 0 3px rgba(124,58,237,.1)}
.auth-code-hint{color:var(--purple);font-size:11px;font-weight:800}
.auth-form-error{margin:0!important;padding:9px 11px;color:#9b3450!important;background:#fff2f5;border-radius:10px;font-size:12px;font-weight:700}
.auth-submit{width:100%;margin-top:3px}
.auth-account-panel{display:grid;gap:15px;padding:18px;background:#f8f9fc;border:1px solid var(--line);border-radius:16px}
.auth-account-panel[hidden]{display:none}
.auth-account-panel strong{overflow-wrap:anywhere;color:var(--blue);font-size:16px}
.auth-account-panel p{margin:0;color:var(--muted);font-size:12px}

.storefront-orders-main,.order-result-main{min-height:calc(100vh - 72px);padding:42px 0 76px;overflow-x:hidden;background:#fafbff}
body[data-page="order-result"] [hidden],body[data-page="orders"] [hidden]{display:none!important}
.storefront-page-heading{margin-bottom:22px;padding:30px 34px;background:linear-gradient(130deg,#eef3ff,#fff 58%,#f8efff);border:1px solid #e6e8f4;border-radius:25px;box-shadow:var(--shadow)}
.storefront-page-heading h1{margin:0;color:var(--blue);font-size:34px;line-height:1.2}
.storefront-page-heading p{margin:7px 0 0;color:var(--muted)}
.storefront-state-card{display:grid;min-height:250px;padding:35px;place-items:center;align-content:center;background:#fff;border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow);text-align:center}
.storefront-state-card.compact{min-height:160px}
.storefront-state-card h1,.storefront-state-card h2{margin:10px 0 2px}
.storefront-state-card p{margin:0 0 20px;color:var(--muted)}
.storefront-state-actions{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:16px}
.storefront-state-actions .button{min-height:44px}
.storefront-state-icon{display:grid;width:54px;height:54px;place-items:center;color:#fff;background:linear-gradient(145deg,var(--blue),var(--purple));border-radius:17px}
.order-status-tabs{display:flex;gap:8px;margin-bottom:16px}
.order-status-tabs button{min-height:40px;padding:0 18px;color:var(--muted);background:#fff;border:1px solid var(--line);border-radius:999px;font-weight:800}
.order-status-tabs button.active{color:#fff;background:linear-gradient(135deg,var(--blue-2),var(--purple));border-color:transparent}
.storefront-orders-list{display:grid;gap:14px}
.storefront-order-card{padding:24px;background:#fff;border:1px solid var(--line);border-radius:22px;box-shadow:0 11px 30px rgba(25,32,72,.05)}
.storefront-order-head{display:flex;align-items:start;justify-content:space-between;gap:15px}
.storefront-order-head>div{display:grid;min-width:0}
.storefront-order-head small{color:var(--muted);font-size:10px}
.storefront-order-head strong{overflow-wrap:anywhere;font-size:12px}
.storefront-order-status{display:inline-flex;flex:0 0 auto;padding:5px 10px;border-radius:999px;font-size:11px;font-weight:900}
.storefront-order-status.pending{color:#8b5b12;background:#fff6de}
.storefront-order-status.completed{color:#16724a;background:#eaf9f1}
.storefront-order-card h2{margin:17px 0 12px;font-size:17px;line-height:1.45}
.order-list-meta-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0}
.order-meta-item{display:grid;min-width:0;gap:2px;padding:10px;background:#f8f9fc;border-radius:11px}
.order-meta-item dt{min-width:0;color:var(--muted);font-size:11px;font-weight:700}
.order-meta-item dd{min-width:0;margin:0;font-size:13px;font-weight:900;line-height:1.45;overflow-wrap:anywhere;word-break:break-word}
.storefront-order-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:18px}
.storefront-order-actions .button{min-height:40px;padding-inline:16px;font-size:12px}

.order-result-container{max-width:920px}
.order-order-notice{margin-bottom:15px;padding:13px 16px;color:#775018;background:#fff8e8;border:1px solid #eddbad;border-radius:13px;font-size:13px;font-weight:800;text-align:center}
.order-result-card,.order-delivery-card{padding:30px;background:#fff;border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow)}
.order-result-heading{display:flex;align-items:start;justify-content:space-between;gap:20px;padding-bottom:20px;border-bottom:1px solid var(--line)}
.order-result-heading>div{min-width:0}
.order-result-heading h1{min-width:0;margin:0;font-size:25px;line-height:1.4;overflow-wrap:anywhere}
.order-result-heading p{margin:6px 0 0;color:var(--muted);font-size:12px}
.order-result-heading p strong{overflow-wrap:anywhere;color:var(--ink)}
.order-detail-meta-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0}
.order-detail-meta-grid .order-meta-item{gap:3px;padding:13px;border-radius:12px}
.order-detail-meta-grid dt{font-weight:800}
.order-pay-button{width:100%}
.order-delivery-card{margin-top:16px;border-color:#d7c8fb;background:linear-gradient(145deg,#fff,#faf7ff)}
.order-delivery-card h2{margin:0 0 15px}
.order-delivery-card dl{display:grid;margin:0 0 18px;background:#fff;border:1px solid var(--line);border-radius:14px}
.order-delivery-card dl div{display:grid;grid-template-columns:100px minmax(0,1fr);gap:12px;padding:11px 14px;border-bottom:1px solid var(--line)}
.order-delivery-card dl div:last-child{border-bottom:0}
.order-delivery-card dt{color:var(--muted);font-size:11px;font-weight:800}
.order-delivery-card dd{margin:0;overflow-wrap:anywhere;font-size:13px;font-weight:800}
.copy-status{margin:10px 0 0;color:#17633f;font-size:12px;font-weight:800}
.order-result-actions{display:flex;justify-content:center;gap:10px;margin-top:18px}

@media(max-width:760px){.auth-modal{padding:12px}
.auth-modal-panel{max-height:calc(100vh - 24px);padding:27px 20px;overflow-y:auto;border-radius:21px}
.auth-account-button{max-width:130px}
.storefront-orders-main,.order-result-main{min-height:calc(100vh - 62px);padding:20px 0 100px}
.storefront-page-heading{padding:23px 20px;border-radius:21px}
.storefront-page-heading h1{font-size:27px}
.storefront-page-heading p{font-size:12px}
.order-status-tabs{overflow-x:auto}
.order-status-tabs button{flex:0 0 auto}
.storefront-order-card{padding:20px 17px;border-radius:19px}
.storefront-order-card h2{margin:14px 0 10px}
.order-list-meta-grid,.order-detail-meta-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.order-meta-item,.order-detail-meta-grid .order-meta-item{min-width:0;padding:9px 10px}
.order-meta-item dt{font-size:11px}
.order-meta-item dd{font-size:13px;line-height:1.4}
.storefront-order-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:14px}
.storefront-order-actions .button{min-width:0;padding-inline:8px;white-space:normal;overflow-wrap:anywhere}
.order-result-card,.order-delivery-card{padding:22px 18px;border-radius:20px}
.order-result-heading{align-items:start;flex-direction:column}
.order-detail-meta-grid{margin:16px 0}
.order-pay-button,.order-delivery-card>.button{width:100%}
.order-delivery-card dl div{grid-template-columns:82px minmax(0,1fr);padding-inline:11px}
.order-result-actions{display:grid;grid-template-columns:1fr}
.storefront-state-actions{width:100%;flex-direction:column}
.storefront-state-actions .button{width:min(100%,280px)}
}

@media(max-width:340px){.storefront-order-actions{grid-template-columns:1fr}
}

@media(max-width:299px){.order-list-meta-grid,.order-detail-meta-grid{grid-template-columns:1fr}
.storefront-order-actions{grid-template-columns:1fr}
}

/* Round 4 storefront consistency */
body[data-page="home"] .category-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.product-icon img,.category-icon img,.category-chip-icon img{width:100%;height:100%;object-fit:contain;display:block}
.product-overview-card{grid-template-columns:minmax(240px,38%) minmax(0,1fr)}
.product-overview-media{display:grid;place-items:center;min-height:360px;padding:34px;background:linear-gradient(145deg,#f8f9ff,#eef2ff)}
.product-overview-media img{width:min(100%,320px);max-height:320px;object-fit:contain;border-radius:24px}
.category-results-simple{margin-top:24px}.category-load-more{display:block;margin:28px auto 0}
.storefront-order-status.cancelled{color:#626b7a;background:#edf0f5}
.order-countdown{margin-top:5px;color:#a56200;font-weight:800}
.order-delivery-inline{display:grid;gap:10px;margin-top:16px}.order-delivery-entry{min-width:0;padding:14px;border:1px solid var(--line);border-radius:14px;background:#f8faff}
.order-delivery-entry-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.order-delivery-entry-head .button{min-height:32px;padding:4px 12px;font-size:11px}
.order-delivery-entry pre{max-width:100%;max-height:120px;overflow:hidden;margin:10px 0 0;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;font:12px/1.7 ui-monospace,SFMono-Regular,Consolas,monospace}.order-delivery-entry.expanded pre{max-height:none}.order-delivery-entry-actions{display:flex;flex-wrap:wrap;gap:6px}.order-delivery-inline>.button{justify-self:end}
@media(max-width:1050px){body[data-page="home"] .category-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:760px){body[data-page="home"] .category-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.product-overview-card{grid-template-columns:1fr}.product-overview-media{min-height:230px;padding:24px}.product-overview-media img{max-height:210px}
 .category-product-grid .product-card{display:grid;grid-template-columns:72px minmax(0,1fr);grid-template-areas:"top title" "top meta" "top bottom";gap:5px 12px;align-items:center;padding:14px}.category-product-grid .product-top{grid-area:top;align-self:stretch;display:grid;place-items:center}.category-product-grid .product-top .stock-pill{display:none}.category-product-grid .product-icon{width:68px;height:68px}.category-product-grid .product-card h3{grid-area:title;margin:0}.category-product-grid .product-meta{grid-area:meta}.category-product-grid .product-bottom{grid-area:bottom;margin:0}
}
@media(max-width:480px){body[data-page="home"] .category-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}

body[data-page="tutorials"],body[data-page="tutorial"]{max-width:100%;overflow-x:hidden;background:#fafbff}
[data-page="tutorials"] .tutorial-states [hidden],[data-page="tutorial"] .tutorial-detail-shell>[hidden],[data-page="tutorial"] .tutorial-article [hidden]{display:none!important}
.tutorials-main{min-height:70vh}
.tutorials-hero{padding:30px 0 14px}
.tutorials-hero-card{padding:38px 42px;background:linear-gradient(130deg,#eef3ff,#fff 58%,#f8efff);border:1px solid #e6e8f4;border-radius:27px;box-shadow:var(--shadow)}
.tutorials-hero-card h1{margin:0;color:var(--blue);font-size:40px;line-height:1.2}
.tutorials-hero-card p{margin:8px 0 0;color:var(--muted)}
.tutorials-content{padding:14px 0 72px}
.tutorial-search{display:flex;width:min(100%,680px);height:50px;align-items:center;gap:10px;margin:0 auto 15px;padding:0 15px;background:#fff;border:1px solid #dfe2ec;border-radius:15px;box-shadow:0 9px 26px rgba(25,32,72,.05)}
.tutorial-search:focus-within{border-color:#a78bfa;box-shadow:0 0 0 3px rgba(124,58,237,.1)}
.tutorial-search>span{color:var(--purple);font-size:22px}
.tutorial-search input{min-width:0;width:100%;height:100%;padding:0;background:transparent;border:0;outline:0}
.tutorial-search button{padding:5px;color:var(--purple);background:transparent;border:0;font-size:12px;font-weight:800}
.tutorial-category-chips{display:flex;max-width:100%;gap:9px;padding:4px 2px 16px;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:thin;white-space:nowrap}
.tutorial-category-chips button{display:inline-flex;min-width:0;min-height:37px;flex:0 0 auto;align-items:center;gap:7px;padding:6px 13px;color:#596278;background:#fff;border:1px solid var(--line);border-radius:999px;font-size:12px;font-weight:800}
.tutorial-category-label{overflow-wrap:anywhere}
.tutorial-category-chips button small{display:grid;min-width:20px;height:20px;padding:0 5px;place-items:center;background:#f0f1f6;border-radius:999px;font-size:10px}
.tutorial-category-chips button.active{color:#fff;background:linear-gradient(135deg,var(--blue-2),var(--purple));border-color:transparent}
.tutorial-category-chips button.active small{background:rgba(255,255,255,.18)}
.tutorial-page-state,.tutorial-detail-state{display:grid;min-height:280px;place-items:center;align-content:center;gap:10px;padding:42px 24px;background:#fff;border:1px solid var(--line);border-radius:24px;box-shadow:0 12px 34px rgba(25,32,72,.05);text-align:center}
.tutorial-page-state h1,.tutorial-page-state h2,.tutorial-detail-state h1{margin:0}
.tutorial-page-state p,.tutorial-detail-state p{margin:0;color:var(--muted)}
.tutorial-page-state .button,.tutorial-detail-state .button{margin-top:8px}
.state-spinner{width:30px;height:30px;border:3px solid #e7e1fa;border-top-color:var(--purple);border-radius:50%;animation:tutorial-spin .8s linear infinite}
@keyframes tutorial-spin{to{transform:rotate(360deg)}}
.tutorial-result-count{margin:0 0 10px;color:var(--muted);font-size:13px;font-weight:700}
.tutorial-card-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.tutorial-card{display:flex;min-width:0;min-height:210px;padding:23px;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:21px;box-shadow:0 11px 30px rgba(25,32,72,.05);transition:.2s ease}
.tutorial-card:hover{border-color:#d5c7fb;box-shadow:0 15px 34px rgba(72,49,151,.1);transform:translateY(-2px)}
.tutorial-card-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}
.tutorial-card-category{display:inline-flex;max-width:100%;padding:4px 9px;color:#6132ba;background:#f2edff;border-radius:999px;font-size:11px;font-weight:900;overflow-wrap:anywhere}
.tutorial-card-meta{display:flex;flex:0 0 auto;align-items:center;gap:7px;color:var(--muted);font-size:10px}
.tutorial-video-badge{padding:3px 7px;color:#17633f;background:#eaf9f1;border-radius:999px;font-weight:900}
.tutorial-image-count{color:#7d8496}
.tutorial-card h2{display:-webkit-box;overflow:hidden;margin:16px 0 8px;font-size:18px;line-height:1.4;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.tutorial-card>p{display:-webkit-box;overflow:hidden;margin:0;color:var(--muted);font-size:13px;line-height:1.65;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.tutorial-card-action{margin-top:auto;padding-top:15px;color:var(--purple);font-size:12px;font-weight:900}

.tutorial-detail-main{min-height:70vh;padding:26px 0 88px}
.tutorial-detail-shell{max-width:920px}
.tutorial-back-link{display:inline-flex;margin-bottom:15px;color:var(--purple);font-size:13px;font-weight:900}
.tutorial-article{padding:44px 56px;background:#fff;border:1px solid var(--line);border-radius:28px;box-shadow:var(--shadow)}
.tutorial-article-header{max-width:800px;margin:0 auto 34px;padding-bottom:26px;border-bottom:1px solid var(--line)}
.tutorial-article-header h1{margin:14px 0 8px;color:var(--blue);font-size:36px;line-height:1.3;overflow-wrap:anywhere}
.tutorial-article-header time{color:var(--muted);font-size:12px}
.tutorial-article-summary{margin:18px 0 0;padding:15px 17px;color:#515a70;background:#f7f7fc;border-left:3px solid var(--purple);border-radius:10px;font-size:14px}
.tutorial-rich-content,.tutorial-supplemental-media,.tutorial-external-links{max-width:800px;margin-inline:auto;color:#30394e;font-size:15px;line-height:1.85;overflow-wrap:anywhere}
.tutorial-rich-content h1,.tutorial-rich-content h2,.tutorial-rich-content h3,.tutorial-rich-content h4,.tutorial-rich-content h5,.tutorial-rich-content h6{margin:1.5em 0 .65em;color:var(--blue);line-height:1.4}
.tutorial-rich-content h1{font-size:28px}.tutorial-rich-content h2{font-size:24px}.tutorial-rich-content h3{font-size:20px}.tutorial-rich-content h4,.tutorial-rich-content h5,.tutorial-rich-content h6{font-size:17px}
.tutorial-rich-content p{margin:.8em 0;white-space:pre-wrap}
.tutorial-rich-content img,.tutorial-rich-content video,.tutorial-supplemental-media img,.tutorial-supplemental-media video{display:block;max-width:100%;height:auto;margin:20px auto;border-radius:12px}
.tutorial-image-trigger{display:block;max-width:100%;margin:0 auto;text-align:center}
.tutorial-image-trigger img[data-image-viewer-ready]{cursor:zoom-in}
.tutorial-image-trigger img[data-image-viewer-ready]:focus-visible{outline:3px solid #8b5cf6;outline-offset:3px}
.tutorial-image-hint{display:block;margin:-12px auto 18px;color:var(--muted);font-size:11px;font-weight:800;line-height:1.5;overflow-wrap:anywhere}
.tutorial-image-viewer[hidden]{display:none}
.tutorial-image-viewer{position:fixed;inset:0;z-index:120;background:#10131d}
.tutorial-image-viewer-backdrop{position:absolute;inset:0;width:100%;height:100%;padding:0;background:rgba(8,10,18,.96);border:0}
.tutorial-image-viewer-viewport{position:absolute;inset:0;padding:72px 18px 28px;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.tutorial-image-viewer-image{display:block;max-width:min(100%,1400px);height:auto;margin:0 auto;background:#fff;border-radius:8px;box-shadow:0 20px 60px rgba(0,0,0,.4)}
.tutorial-image-viewer-close{position:fixed;top:max(14px,env(safe-area-inset-top));right:max(14px,env(safe-area-inset-right));z-index:2;display:grid;width:46px;height:46px;place-items:center;color:#fff;background:rgba(22,27,40,.88);border:1px solid rgba(255,255,255,.35);border-radius:50%;font-size:28px;line-height:1}
.tutorial-image-viewer-close:focus-visible{outline:3px solid #c4b5fd;outline-offset:3px}
.tutorial-image-viewer-open{overflow:hidden}
.tutorial-rich-content video,.tutorial-supplemental-media video{width:100%;background:#10131d}
.tutorial-media-fallback{display:block!important;min-height:0!important;margin:12px 0!important;padding:9px 12px;color:#7b5360!important;background:#fff4f6;border:1px solid #f0d9df;border-radius:9px;font-size:12px!important;line-height:1.5!important;text-align:center}
.tutorial-rich-content table{display:block;max-width:100%;margin:18px 0;overflow-x:auto;border-collapse:collapse;-webkit-overflow-scrolling:touch}
.tutorial-rich-content th,.tutorial-rich-content td{min-width:90px;padding:9px 11px;border:1px solid #dfe2ec;text-align:left}
.tutorial-rich-content blockquote{margin:18px 0;padding:12px 17px;color:#515a70;background:#f7f7fc;border-left:3px solid var(--purple)}
.tutorial-rich-content pre{max-width:100%;padding:16px;overflow-x:auto;color:#eef2ff;background:#17213b;border-radius:12px;font-size:13px;line-height:1.65}
.tutorial-rich-content :not(pre)>code{padding:2px 5px;background:#f0edfa;border-radius:5px}
.tutorial-rich-content a,.tutorial-external-links a{color:var(--purple);font-weight:800;text-decoration:underline;text-underline-offset:2px;overflow-wrap:anywhere}
.tutorial-supplemental-media,.tutorial-external-links{margin-top:32px;padding-top:24px;border-top:1px solid var(--line)}
.tutorial-supplemental-media h2,.tutorial-external-links h2{margin:0 0 10px;color:var(--blue);font-size:20px}
.tutorial-external-links p{margin:0 0 10px;color:var(--muted);font-size:13px}
.tutorial-external-links ul{margin:0;padding-left:20px}

@media(max-width:760px){.tutorials-hero{padding:14px 0 9px}
.tutorials-hero-card{padding:27px 21px;border-radius:22px}
.tutorials-hero-card h1{font-size:29px}
.tutorials-hero-card p{font-size:13px}
.tutorials-content{padding:8px 0 38px}
.tutorial-search{height:46px;margin-bottom:10px;border-radius:13px}
.tutorial-category-chips{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;margin:0;padding:3px 0 12px;overflow:visible;white-space:normal}
.tutorial-category-chips button{min-width:0;min-height:58px;width:100%;justify-content:center;gap:3px;padding:6px 3px;flex-direction:column;border-radius:14px;text-align:center}
.tutorial-category-label{display:-webkit-box;max-width:100%;overflow:hidden;overflow-wrap:anywhere;font-size:10px;line-height:1.2;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.tutorial-category-chips button small{min-width:16px;height:16px;padding:0 4px;font-size:8px}
.tutorial-card-list{grid-template-columns:1fr;gap:10px}
.tutorial-card{min-height:0;padding:17px;border-radius:17px}
.tutorial-card-heading{align-items:flex-start}
.tutorial-card-meta{flex-wrap:wrap;justify-content:flex-end}
.tutorial-card h2{margin:12px 0 6px;font-size:16px}
.tutorial-card>p{font-size:12px;line-height:1.55}
.tutorial-card-action{padding-top:11px}
.tutorial-page-state{min-height:230px;border-radius:20px}
.tutorial-detail-main{padding:16px 0 48px}
.tutorial-back-link{margin-bottom:11px}
.tutorial-article{padding:27px 18px 38px;border-radius:21px}
.tutorial-article-header{margin-bottom:25px;padding-bottom:21px}
.tutorial-article-header h1{margin-top:11px;font-size:26px}
.tutorial-article-summary{padding:12px 13px;font-size:13px}
.tutorial-rich-content,.tutorial-supplemental-media,.tutorial-external-links{width:100%;font-size:14px;line-height:1.8}
.tutorial-rich-content h1{font-size:24px}.tutorial-rich-content h2{font-size:21px}.tutorial-rich-content h3{font-size:18px}
.tutorial-rich-content pre{font-size:12px}
.tutorial-detail-state{min-height:300px;padding:35px 20px;border-radius:21px}
}

@media(max-width:389px){.category-chips,.tutorial-category-chips{grid-template-columns:repeat(4,minmax(0,1fr))}
}

/* Preview partial migration: home/category/product cards only */
body[data-page="home"] .category-grid,
body[data-page="category"] .category-chips{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;overflow:visible;white-space:normal}
body[data-page="home"] .category-item{min-height:112px;padding:13px 7px}
body[data-page="category"] .category-chips a{min-width:0;min-height:94px;justify-content:center;gap:7px;padding:11px 7px;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 9px 28px rgba(26,35,76,.05);text-align:center;white-space:normal}
body[data-page="category"] .category-chips a:hover,
body[data-page="category"] .category-chips a.active{color:var(--blue);background:#fff;border-color:#9d83ed;box-shadow:0 0 0 1px rgba(124,58,237,.18),0 10px 26px rgba(78,53,160,.08)}
body[data-page="category"] .category-chip-label{max-width:100%;overflow-wrap:anywhere;font-size:11px;line-height:1.25}
body[data-page="home"] .category-icon,
body[data-page="category"] .category-chip-icon,
body[data-page="home"] .product-icon,
body[data-page="category"] .product-icon{color:inherit;background:#fff;border:1px solid #eceef4;box-shadow:none}
body[data-page="home"] .category-icon{padding:5px}
body[data-page="category"] .category-chip-icon{width:38px;height:38px;padding:5px;border-radius:11px}
body[data-page="home"] .product-icon,
body[data-page="category"] .product-icon{padding:6px}
body[data-page="home"] .category-icon img,
body[data-page="category"] .category-chip-icon img,
body[data-page="home"] .product-icon img,
body[data-page="category"] .product-icon img{width:100%;height:100%;object-fit:contain;border-radius:8px}
body[data-page="home"] .product-card h3,
body[data-page="category"] .product-card h3{display:block;overflow:visible;overflow-wrap:anywhere;-webkit-line-clamp:unset}
.category-all-done{margin:18px 0 0;color:var(--muted);font-size:12px;text-align:center}
.category-load-more[disabled]{cursor:wait;opacity:.72}

@media(max-width:1050px){body[data-page="home"] .category-grid,body[data-page="category"] .category-chips{grid-template-columns:repeat(5,minmax(0,1fr))}}

@media(max-width:760px){body[data-page="home"] .category-grid,body[data-page="category"] .category-chips{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
body[data-page="category"] .category-chips a{min-height:84px;padding:8px 4px;border-radius:15px}
body[data-page="category"] .category-chip-icon{width:34px;height:34px}
body[data-page="home"] .products-section .product-grid,
body[data-page="category"] .category-product-grid{grid-template-columns:1fr}
body[data-page="home"] .products-section .product-card,
body[data-page="category"] .category-product-grid .product-card{display:grid;min-height:0;grid-template-columns:72px minmax(0,1fr);grid-template-areas:"top title" "top meta" "top bottom";gap:5px 12px;align-items:center;padding:14px}
body[data-page="home"] .products-section .product-top,
body[data-page="category"] .category-product-grid .product-top{grid-area:top;align-self:stretch;display:grid;place-items:center}
body[data-page="home"] .products-section .product-top .stock-pill,
body[data-page="category"] .category-product-grid .product-top .stock-pill{display:none}
body[data-page="home"] .products-section .product-icon,
body[data-page="category"] .category-product-grid .product-icon{width:68px;height:68px}
body[data-page="home"] .products-section .product-card h3,
body[data-page="category"] .category-product-grid .product-card h3{grid-area:title;margin:0;font-size:15px;line-height:1.4}
body[data-page="home"] .products-section .product-meta,
body[data-page="category"] .category-product-grid .product-meta{grid-area:meta}
body[data-page="home"] .products-section .product-bottom,
body[data-page="category"] .category-product-grid .product-bottom{grid-area:bottom;min-width:0;margin:0;padding-top:2px}
body[data-page="home"] .products-section .product-bottom strong,
body[data-page="category"] .category-product-grid .product-bottom strong{font-size:18px}
body[data-page="home"] .products-section .product-bottom a,
body[data-page="category"] .category-product-grid .product-bottom a{white-space:normal;text-align:right}
}

.category-load-more[hidden]{display:none!important}

/* MYTGGO_SHARED_PLATFORM_INFO_CSS_START */

/* 首页平台说明维持原位置 */
body[data-page="home"] .shared-platform-info{
  padding:58px 0 28px;
}

/* 分类、订单、教程页面的平台说明放入 footer 内部 */
.shared-platform-info-footer{
  padding:30px 0 0;
}

.shared-platform-info-card{
  min-width:0;
  padding:24px 27px;
  background:#f6f8ff;
  border:1px solid #e4e8f5;
  border-radius:20px;
}

.shared-platform-info-card h2{
  margin:0;
  color:var(--blue);
  font-size:20px;
  line-height:1.35;
}

.shared-platform-info-card p{
  max-width:1020px;
  margin:9px 0 0;
  color:var(--muted);
  font-size:14px;
  line-height:1.8;
}

.shared-platform-contact{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin-top:18px;
  padding-top:16px;
  border-top:1px solid #e1e5f2;
}

.shared-platform-contact span{
  color:var(--muted);
  font-size:13px;
}

.shared-platform-contact a{
  display:inline-flex;
  min-height:38px;
  align-items:center;
  justify-content:center;
  padding:0 16px;
  color:var(--purple);
  background:#fff;
  border:1px solid #d9d0fa;
  border-radius:12px;
  font-size:13px;
  font-weight:800;
  transition:.2s ease;
}

.shared-platform-contact a:hover{
  border-color:var(--purple);
  box-shadow:0 8px 20px rgba(90,55,190,.12);
  transform:translateY(-1px);
}

/* 非首页页尾缩短无意义的空白 */
body:not([data-page="home"]) footer{
  padding:34px 0 46px;
}

body:not([data-page="home"]) footer .footer-inner{
  padding-bottom:0;
}

@media(max-width:760px){
  body[data-page="home"] .shared-platform-info{
    padding:40px 0 18px;
  }

  .shared-platform-info-footer{
    padding:24px 0 0;
  }

  .shared-platform-info-card{
    padding:19px;
    border-radius:17px;
  }

  .shared-platform-info-card h2{
    font-size:18px;
  }

  .shared-platform-info-card p{
    font-size:13px;
    line-height:1.72;
  }

  .shared-platform-contact{
    align-items:stretch;
    flex-direction:column;
    gap:10px;
    margin-top:15px;
    padding-top:14px;
  }

  .shared-platform-contact a{
    width:100%;
  }

  body:not([data-page="home"]) footer{
    padding:28px 0 calc(92px + env(safe-area-inset-bottom));
  }
}
/* MYTGGO_SHARED_PLATFORM_INFO_CSS_END */
/* MYTGGO_MOBILE_AUTH_FIX_20260718 */
@media(max-width:760px){.auth-modal{width:100vw;max-width:100vw;padding:12px;overflow:hidden}.auth-modal-panel{width:100%;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow-x:hidden;overflow-y:auto}.auth-field input{font-size:16px!important;line-height:1.35!important;transform:none!important;zoom:1!important}button[data-send-register-code]{display:inline-flex;min-height:44px;align-items:center;justify-content:center;padding:8px 10px;touch-action:manipulation}.auth-form-error{font-size:13px}}
/* MYTGGO_REGISTER_CODE_BUTTON_20260718 */
.auth-code-hint{justify-self:stretch;width:100%;min-height:44px;display:inline-flex;align-items:center;justify-content:center;padding:9px 14px;color:#6d28d9!important;background:#f5f0ff!important;border:1px solid #c4b5fd!important;border-radius:12px!important;font-size:14px!important;font-weight:800;cursor:pointer;touch-action:manipulation}.auth-code-hint:disabled{opacity:.6;cursor:wait}

/* MYTGGO_AUTH_RECOVERY_20260718 */
.auth-forgot-button,.auth-reset-back{align-self:flex-end;margin:-4px 2px 2px;color:#6d28d9;font-weight:700}
.auth-form-error.is-success{color:#047857;background:#ecfdf5;border:1px solid #a7f3d0}
button[data-send-reset-code]{display:inline-flex;min-height:44px;align-items:center;justify-content:center;padding:8px 12px;touch-action:manipulation}
@media(max-width:760px){.auth-forgot-button,.auth-reset-back{font-size:14px}.auth-modal-panel{overscroll-behavior:contain}}

/* MYTGGO_AUTH_SCROLL_SMOOTH_20260718 */
/* Mobile auth scroll performance test */
@media (max-width: 760px) {
  .auth-modal {
    display: block;
    padding: max(12px, env(safe-area-inset-top)) 12px 12px;
    overflow: hidden;
  }

  .auth-modal .modal-backdrop {
    background: rgba(10, 16, 42, .7);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .auth-modal-panel {
    width: 100%;
    max-width: 470px;
    max-height: calc(100dvh - max(24px, env(safe-area-inset-top)));
    margin: 0 auto;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 12px 34px rgba(0, 0, 0, .17);
    transform: translateZ(0);
    will-change: scroll-position;
  }
}
