/* Shared H5 presentation. Keep page roots untransformed so fixed controls stay
   attached to the viewport, including while another route is mounting. */
:root{--ui-ink:#243b4c;--ui-muted:#6d8294;--ui-accent:#1686a6;--ui-line:#e6edf5;--ui-surface:#fff;--ui-shadow:0 6px 24px rgba(49,79,111,.055);--ui-ease:cubic-bezier(.2,.75,.25,1)}
html,body{background:#edf2f8;color:var(--ui-ink);-webkit-font-smoothing:antialiased}
.h5-root{background:#f5f8fc}
.h5-header{padding-right:16px;padding-left:16px;background:#f8fbff;border-bottom-color:#e6eef5;gap:9px}
.h5-header .h5-back{width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:11px;background:#eaf1f7;color:#526e80;font-size:28px!important}
.h5-header-title{font-weight:650;letter-spacing:.4px;color:var(--ui-ink)}
.h5-header .h5-header-action{width:32px;height:32px;padding:0;border-radius:11px;font-size:22px!important;color:#678495}
.h5-header-action span{display:inline-block;line-height:1}
.h5-header-action.is-loading span{animation:ui-spin .8s linear infinite}
.h5-page button[aria-busy=true]::before{content:'';display:inline-block;width:12px;height:12px;margin-right:7px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;vertical-align:-2px;animation:ui-spin .75s linear infinite}
.h5-header .h5-account{background:#e7f2f7;color:#36758c;border-radius:10px;padding:7px 11px;font-weight:600}
.h5-root button,.h5-root [data-h5-tap],.h5-root a[href]{-webkit-tap-highlight-color:transparent;transition:scale 120ms var(--ui-ease),opacity 120ms ease,background-color 160ms ease,color 160ms ease}
.h5-root [data-h5-tap]{cursor:pointer}
.h5-root .h5-pressed{scale:.98;opacity:.84}
.h5-root button:disabled,.h5-root [aria-disabled=true]{cursor:default}
.h5-root button:focus-visible,.h5-root [data-h5-tap]:focus-visible{outline:2px solid #298eab;outline-offset:3px}
.h5-page{animation:ui-page-in 180ms ease-out}
.h5-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:15px;min-height:45vh;font-size:13px;color:var(--ui-muted)}
.h5-spinner{width:26px;height:26px;border:2px solid #dcebf2;border-top-color:#2c95b0;border-radius:50%;animation:ui-spin .75s linear infinite}
.h5-root .tabbar{border:1px solid #e6edf4;box-shadow:0 8px 28px #2c4a6912;background:#fffffffa;border-radius:24px;padding:5px 7px}
.h5-root .tab-icon-wrap{transition:background-color 180ms ease,scale 180ms var(--ui-ease)}
.h5-root .tab-item.selected .tab-icon-wrap{background:#e0f3f7}
.h5-root .tab-item.selected .tab-icon{animation:ui-tab-in 210ms var(--ui-ease)}
.h5-root .tab-item.selected .tab-label{color:#1686a6}
.h5-root .card{border:1px solid var(--ui-line);box-shadow:var(--ui-shadow)}
.h5-root .primary-btn,.h5-root .service-state-button{background:linear-gradient(105deg,#def2f6,#e9eafa);color:#315a71;box-shadow:0 4px 12px #557c9510;font-weight:650}
.h5-root .bottom-action .primary-btn,.h5-root .checkout-footer .primary-btn{background:linear-gradient(110deg,#348aa6,#718fbe);color:#fff;box-shadow:0 5px 15px #3c86a52b}
.h5-root .service-state{border-color:var(--ui-line);box-shadow:var(--ui-shadow)}
.h5-root .service-state-detail{color:#7e909f;word-break:normal;overflow-wrap:anywhere}
.h5-root .skeleton-block{background:linear-gradient(100deg,#eaf0f6 15%,#f6f9fc 45%,#eaf0f6 75%);background-size:220% 100%;animation:ui-shimmer 1.6s ease-in-out infinite}
.h5-root .game-picker-mask,.h5-login-mask,.h5-preview{animation:ui-overlay-in 150ms ease-out}
.h5-root .game-picker-panel{border-radius:24px 24px 0 0;box-shadow:0 -12px 48px #213d5d1a;animation:ui-sheet-in 220ms var(--ui-ease)}
.h5-root .game-picker-item.selected .game-picker-icon{border-color:#65bbcf;box-shadow:0 0 0 2px #e2f3f7}
.h5-login-card{padding-top:34px;border:1px solid #edf2f6;animation:ui-dialog-in 200ms var(--ui-ease)}
.h5-login-card h1{font-size:22px;letter-spacing:.2px;color:var(--ui-ink)}
.h5-login-card p{color:#6c8192}
.h5-wechat-button{box-shadow:0 6px 18px #079c5620}
.h5-toast{font-size:13px;border:1px solid #ffffff12;background:#284251f2;animation:ui-toast-in 160ms ease-out;pointer-events:none}
.h5-preview img{border-radius:10px;animation:ui-dialog-in 180ms ease-out}
/* Discover: quieter surfaces and more legible service information. */
.h5-root .page.home{background:linear-gradient(180deg,#edf7fc 0,#f5f8fc 480px);padding-left:16px;padding-right:16px}
.h5-root .home .top-tabs{padding-top:12px;padding-bottom:18px;gap:2px}
.h5-root .home .top-tab{font-size:14px;border-bottom-width:3px;color:#718697;min-height:36px}
.h5-root .home .top-tab.active{font-size:18px;color:#243e50;border-color:#55acc5}
.h5-root .home .search{width:30px;height:30px;font-size:23px;border:1px solid #e7eef4;box-shadow:none}
.h5-root .discover-head{margin-top:2px;margin-bottom:17px}
.h5-root .discover-title{font-size:25px;line-height:1.45;letter-spacing:.2px;margin-top:5px}
.h5-root .discover-kicker{font-size:11px;color:#6f899b}
.h5-root .orders-entry{width:59px;min-height:53px;border-radius:15px;border:1px solid #e0eaf2;background:#ffffffbf;color:#58758a}
.h5-root .discover-search{height:48px;padding-left:17px;border:1px solid #dfebf3;border-radius:17px;box-shadow:0 3px 14px #567f9610;margin-bottom:16px}
.h5-root .search-hint{font-size:12px;color:#8495a3}
.h5-root .search-action{padding:9px 17px;border-radius:12px;background:#def0f5;color:#3d6f86;font-size:12px}
.h5-root .home .banner,.h5-root .hero-banner{border-radius:18px}
.h5-root .home .notice{border:1px solid #e0edf4;background:#edf7fc;border-radius:12px;min-height:35px;padding:7px 10px}
.h5-root .home .notice-text{font-size:11px;line-height:1.6;color:#58758a}
.h5-root .shortcut-row{gap:10px;margin-top:14px;margin-bottom:18px}
.h5-root .shortcut{border-radius:17px;box-shadow:0 3px 14px #58748b08;border-color:#ebf0f6}
.h5-root .game-panel{background:#fff;border:1px solid var(--ui-line);border-radius:20px;box-shadow:var(--ui-shadow)}
.h5-root .game-choice.on .game-icon{box-shadow:0 0 0 2px #d6edf4;border-color:#6ab8cb}
.h5-root .filter.on{background:#dff1f5;color:#2e738b}
.h5-root .services-heading{margin-top:24px;margin-bottom:15px}
.h5-root .services-title{font-size:19px;color:#29475a}
.h5-root .services-subtitle{color:#7c90a1}
.h5-root .product-grid{gap:12px}
.h5-root .product-card{border-radius:18px;overflow:hidden}
.h5-root .product-grid>.product-card:not(.service-skeleton){animation:ui-card-in 180ms ease-out}
.h5-root .product-info{padding:12px}
.h5-root .product-title{font-size:14px;line-height:1.55;font-weight:650;color:#2e4658}
.h5-root .product-info .desc{font-size:11px;line-height:1.65;color:#7d8e9d}
.h5-root .product-price{color:#d76585;font-variant-numeric:tabular-nums}
.h5-root .sold-count{color:#8395a4}
/* Category, inbox and account retain their existing navigation and data. */
.h5-root .category-title{color:#29475a}
.h5-root .catalog{border-radius:20px;overflow:hidden;border-color:var(--ui-line)}
.h5-root .side-item.active{background:#e7f4f8;color:#2e7891}
.h5-root .horizontal-product{border-radius:15px;border:1px solid #edf2f6;background:#fff;margin-bottom:10px;padding:10px;gap:10px}
.h5-root .horizontal-product .h-title{color:#2e4658;line-height:1.55}
.h5-root .message-tabs{background:#eaf0f6;padding:4px;border-radius:15px;gap:3px;margin:0 14px;border-bottom:0}
.h5-root .message-tab{border-radius:11px;color:#738598}
.h5-root .message-tab.active{background:#fff;box-shadow:0 2px 8px #45647f0c;color:#337e97}
.h5-root .message-card,.h5-root .support-thread,.h5-root .online-staff-card{border:1px solid var(--ui-line);box-shadow:var(--ui-shadow);border-radius:18px}
.h5-root .mine-page{background:linear-gradient(155deg,#e8f5fb 0,#f5f8fc 38%,#f7f5fc 100%)}
.h5-root .mine-page .profile{padding:22px 16px 16px}
.h5-root .mine-page .user-row{padding:5px 2px 24px}
.h5-root .mine-page .avatar{width:62px;height:62px;background:#fff3cf;border:4px solid #fff;box-shadow:0 4px 15px #4d728e10;font-size:34px}
.h5-root .mine-page .nickname{color:#29475a;font-size:21px}
.h5-root .mine-page .uid{background:#dceef5;color:#618495;border-radius:8px;font-size:11px;width:fit-content}
.h5-root .mine-page .vip-banner{border:1px solid #dedff3;background:linear-gradient(115deg,#e4e6fa,#f6e7ed);border-radius:19px;min-height:92px}
.h5-root .mine-page .vip-button{padding:10px 13px;color:#986e9f;font-size:12px}
.h5-root .mine-page .balance-box{border:1px solid #ddebf2;background:#e6f2f8;border-radius:18px}
.h5-root .mine-page .balance-box.pink-bg{background:#f7eaf0;border-color:#f0e3eb}
.h5-root .mine-page .content-card{margin:0 16px 16px;padding:20px 16px;border-radius:21px;border:1px solid var(--ui-line);box-shadow:var(--ui-shadow)}
.h5-root .mine-page .section-head{font-size:18px;color:#2e495d}
.h5-root .mine-page .section-head .muted{font-size:12px;color:#7b8fa0}
.h5-root .mine-page .section-head:first-child span:first-child{border-left-width:3px;border-color:#70b6ca}
.h5-root .mine-page .mine-realname{margin:0 16px 12px;border:1px solid var(--ui-line);border-radius:16px;background:#fff;box-shadow:0 3px 12px #49647d06;min-height:50px}
.h5-root .mine-page .role-banner{margin:0 16px 16px;padding:17px 15px;border:1px solid #cce2ef;background:linear-gradient(110deg,#dceff8,#eae8fa);border-radius:19px}
.h5-root .mine-page .rb-title{font-size:15px;color:#345169}
.h5-root .mine-page .rb-sub{color:#6c8396;font-size:11px;line-height:1.7}
.h5-root .mine-page .build-banner{margin:16px 16px 10px;border-radius:20px;background:linear-gradient(110deg,#89bad6,#9ba5d8);box-shadow:0 5px 16px #738dc51a}
@media(max-width:350px){.h5-root .home .top-tab{font-size:12px;padding-left:3px;padding-right:3px}.h5-root .home .top-tab.active{font-size:16px}.h5-root .discover-title{font-size:22px}.h5-root .product-info{padding:10px}.h5-root .product-title{font-size:13px}.h5-root .mine-page .content-card{margin-left:12px;margin-right:12px}}
@media(hover:hover) and (pointer:fine){.h5-root button:not(:disabled):hover,.h5-root [data-h5-tap]:not([aria-disabled=true]):hover{opacity:.88}}
@media(prefers-reduced-motion:reduce){.h5-root *,.h5-root *::before,.h5-root *::after{animation:none!important;transition:none!important}.h5-root .h5-pressed{scale:1;opacity:.84}}
@keyframes ui-page-in{from{opacity:.9}to{opacity:1}}
@keyframes ui-card-in{from{opacity:.65;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
@keyframes ui-spin{to{transform:rotate(360deg)}}
@keyframes ui-shimmer{from{background-position:180% 0}to{background-position:-40% 0}}
@keyframes ui-tab-in{from{scale:.84}to{scale:1}}
@keyframes ui-overlay-in{from{opacity:0}to{opacity:1}}
@keyframes ui-sheet-in{from{transform:translateY(24px);opacity:.6}to{transform:translateY(0);opacity:1}}
@keyframes ui-dialog-in{from{scale:.97;opacity:.5}to{scale:1;opacity:1}}
@keyframes ui-toast-in{from{opacity:0;margin-bottom:-5px}to{opacity:1;margin-bottom:0}}
