* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[v-cloak] { display: none; }
html, body { min-height: 100%; overscroll-behavior: none; }
body { margin: 0; background: #0f1022; color: #fff; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
.app { max-width: 430px; min-height: 100vh; margin: 0 auto; background: #101123; padding: env(safe-area-inset-top) 0 calc(72px + env(safe-area-inset-bottom)); position: relative; }
.page { padding: 14px 15px 18px; min-height: calc(100vh - 72px); }
.top-error { position: fixed; z-index: 30; left: 50%; top: calc(12px + env(safe-area-inset-top)); transform: translateX(-50%); max-width: 390px; width: calc(100% - 30px); background: rgba(232, 57, 70, .95); color: #fff; border-radius: 8px; padding: 10px 12px; text-align: center; font-size: 14px; }
.page-loading { color: #8f93aa; text-align: center; padding: 18px 0; font-size: 14px; }
.banner { height: 190px; border-radius: 6px; overflow: hidden; background: linear-gradient(135deg, #ff6a1a, #008cff); position: relative; margin-bottom: 10px; transform: translateZ(0); }
.banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.banner-title { position: absolute; left: 18px; bottom: 18px; font-size: 28px; font-weight: 800; text-shadow: 0 2px 8px rgba(0,0,0,.45); }
.notice { display: flex; align-items: center; gap: 8px; color: #11d9ab; margin: 12px 0; font-size: 14px; height: 22px; overflow: hidden; }
.notice-icon { flex: 0 0 auto; }
.notice-track-wrap { flex: 1; overflow: hidden; white-space: nowrap; }
.notice-track { display: inline-flex; min-width: max-content; animation: notice-scroll 16s linear infinite; }
.notice-track span { display: inline-block; padding-right: 42px; }
.notice:hover .notice-track { animation-play-state: paused; }
@keyframes notice-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
.panel { background: #2b2b48; border-radius: 5px; padding: 16px 12px; margin-bottom: 14px; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 12px; text-align: center; }
.cat-icon { width: 48px; height: 48px; margin: 0 auto 7px; border-radius: 50%; background: #050507; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; }
.cat-icon img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.coupon { height: 66px; border-radius: 8px; background: linear-gradient(110deg, #1678ff, #fa04c7); margin: 14px 10px; padding: 8px 18px; display: flex; align-items: center; justify-content: space-between; }
.coupon strong { font-size: 42px; line-height: 1; }
.goods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 18px; padding: 0 10px; }
.goods-card { color: #fff; cursor: pointer; }
.thumb { aspect-ratio: 1 / 1; background: #050507; border-radius: 4px; overflow: hidden; display: flex; align-items: center; justify-content: center; text-align: center; font-weight: 800; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.goods-title { margin-top: 8px; font-size: 13px; line-height: 1.35; min-height: 36px; }
.price { color: #10d8aa; font-weight: 800; }
.search { display: flex; height: 48px; background: #2b2b48; margin: -14px -15px 14px; padding: 8px 15px; align-items: center; gap: 10px; }
.search input { flex: 1; height: 32px; border: 0; border-radius: 18px; padding: 0 14px; background: #f4f4f5; color: #333; outline: 0; }
.category-layout { display: grid; grid-template-columns: 78px 1fr; gap: 10px; }
.side-tab { padding: 11px 4px; color: #fff; font-weight: 700; }
.side-tab.active { color: #12ddb0; }
.pkg-row, .player-row { background: #30304e; border-radius: 8px; margin-bottom: 10px; padding: 10px; display: grid; grid-template-columns: 82px 1fr; gap: 10px; }
.pkg-row .thumb, .player-row .thumb { width: 82px; height: 82px; aspect-ratio: auto; }
.row-title { font-weight: 800; line-height: 1.4; }
.buy { border: 0; background: #12d9ab; color: #06251d; border-radius: 16px; padding: 7px 13px; font-weight: 800; float: right; }
.buy:active, .primary:active, .tabbar div:active, .goods-card:active, .pkg-row:active, .player-row:active { opacity: .76; }
.tabs { white-space: nowrap; overflow-x: auto; margin: -4px -15px 18px; padding: 0 15px; }
.tabs span { display: inline-block; padding: 12px 14px; color: #fff; }
.tabs span.active { color: #12d9ab; border-bottom: 3px solid #12d9ab; }
.empty { text-align: center; color: #b6b6c6; padding: 150px 0; }
.player-row small { color: #14e1b4; }
.player-row p { margin: 4px 0; color: #cfd0df; }
.player-tags span { display: inline-block; background: #eef2ff; color: #31507b; border-radius: 3px; padding: 2px 7px; margin: 6px 5px 4px 0; font-size: 12px; }
.profile { background: linear-gradient(180deg, #20213d, #1b1c36); border-radius: 6px; padding: 18px 16px; }
.user-line { display: flex; align-items: center; gap: 14px; font-size: 18px; font-weight: 800; }
.avatar { width: 66px; height: 66px; border-radius: 50%; background: #fff; color: #777; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; gap: 14px; margin-top: 22px; }
.vip { margin: 16px 0; background: linear-gradient(90deg, #6a4b2d, #c49a5d); border-radius: 8px; padding: 14px; display: flex; justify-content: space-between; align-items: center; }
.vip button, .primary { border: 0; border-radius: 22px; background: #13d9ad; color: #06251d; padding: 11px 24px; font-weight: 800; }
.primary.dark { background: #111; color: #fff; }
.primary.wide { width: 100%; }
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 12px; text-align: center; }
.detail-cover { height: 390px; background: #000; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.detail-body { background: #2d2d49; padding: 16px; }
.detail-content { margin-top: 12px; padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
.detail-content h3 { text-align: center; }
.detail-actions { position: fixed; left: 50%; bottom: 0; width: 100%; max-width: 430px; transform: translateX(-50%); background: #121326; padding: 12px 15px calc(12px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: 80px 1fr; gap: 10px; }
.sheet { position: fixed; inset: 0; background: rgba(0,0,0,.55); display: flex; align-items: flex-end; justify-content: center; z-index: 10; }
.sheet-inner { width: 100%; max-width: 430px; background: #30304e; border-radius: 10px 10px 0 0; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); }
.sheet-head { display: grid; grid-template-columns: 90px 1fr 24px; gap: 10px; align-items: start; }
.sheet-head button { border: 0; background: transparent; color: #fff; font-size: 24px; }
.qty { display: flex; justify-content: space-between; align-items: center; margin: 24px 0; }
.qty button { width: 28px; height: 28px; border-radius: 50%; border: 0; background: #12d9ab; font-weight: 800; }
.login { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px; text-align: center; }
.login p { color:#b8b8c9; line-height:1.8; }
.login .primary { width: 100%; margin-top: 28px; }
.login-logo { width: 156px; height: 156px; background: #fff; color: #111; display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 900; margin-bottom: 24px; }
.custom-module img { width: 100%; border-radius: 4px; display: block; }
.tabbar { position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); width: 100%; max-width: 430px; min-height: 62px; padding-bottom: env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(5, 1fr); background: #101123; border-top: 1px solid rgba(255,255,255,.04); z-index: 8; }
.tabbar div { text-align: center; color: #85889a; font-size: 12px; padding-top: 8px; }
.tabbar .active { color: #12d9ab; }
.tabbar b { display: block; font-size: 22px; margin-bottom: 2px; }
@media (max-width: 360px) {
    .goods { gap: 14px 14px; padding: 0 8px; }
    .banner { height: 178px; }
    .coupon { margin-left: 8px; margin-right: 8px; }
}
