/* Reset */
*{margin:0;padding:0;box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{width:100%;min-height:100vh;background:#F5F5F5;font-family:-apple-system,BlinkMacSystemFont,'Helvetica Neue','PingFang SC','Microsoft YaHei',sans-serif;font-size:14px;color:#333;overflow-x:hidden;-webkit-font-smoothing:antialiased}
img{display:block;max-width:100%}
a{text-decoration:none;color:inherit}
button{border:none;outline:none;background:none;cursor:pointer;font-family:inherit}
#app{width:100%;max-width:750px;margin:0 auto;position:relative;min-height:100vh;background:#F5F5F5}
.page-wrapper{width:100%;position:relative}
.status_bar{width:100%;height:0;background:#FF5E00}

/* Header */
.header{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;background:linear-gradient(135deg,#FF5E00,#FF8C00)}
.header .user{display:flex;align-items:center;gap:10px}
.header .avatar{width:40px;height:40px;border-radius:50%;overflow:hidden;border:2px solid rgba(255,255,255,0.5)}
.header .avatar img{width:100%;height:100%;object-fit:cover}
.header .welcome{display:flex;flex-direction:column}
.header .tip{color:#fff;font-size:13px;line-height:1.4}
.header .tip:last-child{font-size:16px;font-weight:600}
.header .icons{display:flex;gap:20px}
.header .item{display:flex;flex-direction:column;align-items:center;gap:2px;cursor:pointer}
.header .item .i{width:22px;height:22px}
.header .item .i-search{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 109.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E") no-repeat center/contain}
.header .item .i-customerservice{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-2 12H6v-2h12v2zm0-3H6V9h12v2zm0-3H6V6h12v2z'/%3E%3C/svg%3E") no-repeat center/contain}
.header .item .text{color:#fff;font-size:11px}

/* Download Banner */
.download-banner{background:#FFF8F0;padding:10px 16px;position:relative;border-bottom:1px solid #FFE8D0}
.download-banner .banner-content{display:flex;align-items:center;gap:10px}
.download-banner .banner-logo{width:40px;height:40px;border-radius:8px}
.download-banner .banner-text{flex:1}
.download-banner .banner-title{font-size:14px;font-weight:600;color:#333}
.download-banner .banner-desc{font-size:12px;color:#999;margin-top:2px}
.download-banner .banner-btn{background:linear-gradient(135deg,#FF5E00,#FF8C00);color:#fff;padding:6px 16px;border-radius:20px;font-size:13px;white-space:nowrap;cursor:pointer}
.download-banner .banner-close{position:absolute;right:16px;top:50%;transform:translateY(-50%);width:20px;height:20px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23999'%3E%3Cpath d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/%3E%3C/svg%3E") no-repeat center/contain;cursor:pointer}

/* Function Icons */
.function-icons{display:flex;justify-content:space-around;padding:20px 10px;background:#fff;margin:10px 0}
.func-item{display:flex;flex-direction:column;align-items:center;gap:6px;cursor:pointer}
.func-item img{width:44px;height:44px}
.func-item span{font-size:12px;color:#333}

/* Category */
.category{background:#fff;padding:12px 16px;margin-bottom:10px}
.category-tabs{display:flex;margin-bottom:12px;border-bottom:1px solid #f0f0f0}
.category-tabs .tab{flex:1;text-align:center;padding:8px 0;font-size:14px;color:#666;cursor:pointer;position:relative;transition:all .3s}
.category-tabs .tab.active{color:#FF5E00;font-weight:600}
.category-tabs .tab.active::after{content:'';position:absolute;bottom:0;left:50%;transform:translateX(-50%);width:24px;height:3px;background:#FF5E00;border-radius:2px}
.category-tabs .tab.more{display:flex;align-items:center;justify-content:center;gap:2px;font-size:13px;color:#999}
.category-tabs .tab.more .arrow{display:inline-block;width:0;height:0;border-left:4px solid transparent;border-right:4px solid transparent;border-top:5px solid #999}
.category-list{display:flex;flex-wrap:wrap;gap:12px}
.category-list .game-item{display:flex;flex-direction:column;align-items:center;gap:6px;cursor:pointer;width:calc(20% - 10px)}
.category-list .game-item img{width:48px;height:48px;border-radius:50%;object-fit:cover}
.category-list .game-item span{font-size:12px;color:#333;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:70px}

/* Swiper */
.swiper-container{position:relative;width:100%;overflow:hidden;margin-bottom:10px;background:#fff}
.swiper-wrapper{display:flex;transition:transform .5s ease;will-change:transform}
.swiper-wrapper .swiper-slide{min-width:100%;height:150px}
.swiper-wrapper .swiper-slide img{width:100%;height:100%;object-fit:cover}
.swiper-dots{position:absolute;bottom:8px;left:50%;transform:translateX(-50%);display:flex;gap:6px}
.swiper-dots .dot{width:6px;height:6px;border-radius:3px;background:rgba(255,255,255,0.5);transition:all .3s}
.swiper-dots .dot.active{width:18px;background:#fff}

/* Announcement */
.announcement{display:flex;align-items:center;background:#fff;padding:10px 16px;margin-bottom:10px;gap:8px}
.announcement-icon{width:20px;height:20px;min-width:20px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23FF5E00'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z'/%3E%3C/svg%3E") no-repeat center/contain}
.announcement-content{flex:1;overflow:hidden;height:20px;position:relative}
.announcement-scroll{position:absolute;width:100%;transition:transform .5s ease}
.announcement-scroll .item{height:20px;line-height:20px;font-size:13px;color:#666;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* Demo Notice */
.demo-notice{display:flex;align-items:center;justify-content:space-between;background:#FFF3E0;padding:8px 16px;margin-bottom:10px;font-size:12px;color:#FF8C00}
.demo-notice .notice-close{width:16px;height:16px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23FF8C00'%3E%3Cpath d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/%3E%3C/svg%3E") no-repeat center/contain;cursor:pointer}

/* Service Section */
.service-section{display:flex;gap:8px;padding:0 12px;margin-bottom:10px}
.service-card{flex:1;background:#fff;border-radius:8px;padding:12px;text-align:center;box-shadow:0 1px 4px rgba(0,0,0,0.05)}
.service-card img{width:36px;height:36px;margin:0 auto 6px}
.service-card .service-title{font-size:13px;font-weight:600;color:#333;margin-bottom:4px}
.service-card .service-desc{font-size:11px;color:#999;line-height:1.4}

/* Compensation Section */
.compensation-section{background:#fff;padding:12px 16px;margin-bottom:10px}
.section-title{display:flex;align-items:center;gap:6px;margin-bottom:10px;font-size:15px;font-weight:600;color:#333}
.section-title .title-icon{width:4px;height:16px;background:#FF5E00;border-radius:2px}
.compensation-scroll{overflow:hidden;height:120px;position:relative}
.compensation-scroll .scroll-inner{transition:transform .5s ease}
.compensation-scroll .case-item{padding:8px 0;border-bottom:1px solid #f5f5f5;display:flex;justify-content:space-between;align-items:center}
.compensation-scroll .case-item:last-child{border-bottom:none}
.compensation-scroll .case-left{display:flex;flex-direction:column;gap:2px}
.compensation-scroll .case-game{font-size:13px;color:#333;font-weight:500}
.compensation-scroll .case-date{font-size:11px;color:#999}
.compensation-scroll .case-amount{font-size:15px;color:#FF5E00;font-weight:600}

/* Recommend Section */
.recommend-section{padding:0 12px;margin-bottom:10px}
.recommend-list{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;-ms-overflow-style:none;padding-bottom:4px}
.recommend-list::-webkit-scrollbar{display:none}
.recommend-list .recommend-item{min-width:calc(50% - 4px);border-radius:8px;overflow:hidden;cursor:pointer}
.recommend-list .recommend-item:first-child{min-width:100%}
.recommend-list .recommend-item img{width:100%;height:80px;object-fit:cover;display:block}
.recommend-list .recommend-item:first-child img{height:120px}

/* Goods Section */
.goods-section{background:#fff;padding:12px 0;margin-bottom:10px}
.goods-header{display:flex;align-items:center;justify-content:space-between;padding:0 12px;margin-bottom:10px}
.goods-category-scroll{display:flex;gap:0;overflow-x:auto;scrollbar-width:none;-ms-overflow-style:none;flex:1}
.goods-category-scroll::-webkit-scrollbar{display:none}
.goods-category-scroll .cat-item{padding:4px 12px;font-size:13px;color:#666;white-space:nowrap;cursor:pointer;border-radius:14px;background:#f5f5f5;margin-right:6px;transition:all .3s}
.goods-category-scroll .cat-item.active{background:#FF5E00;color:#fff}
.goods-view-toggle{display:flex;align-items:center;gap:4px;font-size:12px;color:#999;cursor:pointer;white-space:nowrap;margin-left:8px}
.toggle-icon{display:inline-block;width:16px;height:16px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23999'%3E%3Cpath d='M3 3h8v8H3V3zm0 10h8v8H3v-8zm10-10h8v8h-8V3zm0 10h8v8h-8v-8z'/%3E%3C/svg%3E") no-repeat center/contain;transition:all .3s}
.toggle-icon.small{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23999'%3E%3Cpath d='M3 3h18v2H3V3zm0 4h18v2H3V7zm0 4h18v2H3v-2zm0 4h18v2H3v-2zm0 4h18v2H3v-2z'/%3E%3C/svg%3E") no-repeat center/contain}

/* Goods List */
.goods-list{padding:0 12px}
.goods-card{display:flex;gap:10px;padding:10px 0;border-bottom:1px solid #f5f5f5;animation:fadeIn .3s ease forwards}
.goods-card .thumb{width:120px;height:90px;border-radius:6px;overflow:hidden;position:relative;flex-shrink:0}
.goods-card .thumb img{width:100%;height:100%;object-fit:cover}
.goods-card .thumb .img-count{position:absolute;bottom:4px;right:4px;background:rgba(0,0,0,0.6);color:#fff;font-size:10px;padding:1px 6px;border-radius:10px}
.goods-card .info{flex:1;display:flex;flex-direction:column;justify-content:space-between;min-width:0}
.goods-card .title{font-size:14px;color:#333;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.goods-card .highlight{font-size:12px;color:#FF5E00;margin-top:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.goods-card .meta{display:flex;align-items:center;gap:6px;margin-top:4px}
.goods-card .meta .date{font-size:11px;color:#999}
.goods-card .tags{display:flex;gap:4px;margin-top:4px;flex-wrap:wrap}
.goods-card .tags img{height:16px}
.goods-card .bottom{display:flex;align-items:center;justify-content:space-between;margin-top:4px}
.goods-card .category-path{font-size:11px;color:#999;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.goods-card .price{font-size:18px;color:#FF5E00;font-weight:700;white-space:nowrap}
.goods-card .price .yen{font-size:12px}
.goods-card .custom-fields{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}
.goods-card .custom-fields span{font-size:10px;color:#999;background:#f5f5f5;padding:2px 6px;border-radius:3px}
.goods-list.small-view .goods-card{flex-direction:column}
.goods-list.small-view .goods-card .thumb{width:100%;height:160px}
.goods-list.small-view .goods-card .info{width:100%}
.goods-more{padding:16px 0;text-align:center}
.goods-more button{background:#fff;border:1px solid #ddd;color:#666;padding:8px 40px;border-radius:20px;font-size:13px}
.goods-more button:active{background:#f5f5f5}

/* TabBar */
.tabbar{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:750px;background:#fff;display:flex;align-items:flex-end;justify-content:space-around;padding:4px 0;padding-bottom:calc(4px + env(safe-area-inset-bottom,0px));border-top:1px solid #eee;z-index:100}
.tabbar-item{display:flex;flex-direction:column;align-items:center;gap:2px;cursor:pointer;padding:4px 0;min-width:50px}
.tabbar-icon{width:24px;height:24px}
.tabbar-icon img{width:100%;height:100%}
.tabbar-label{font-size:10px;color:#888A99}
.tabbar-mid-item{position:relative;top:-20px}
.tabbar-mid{width:48px;height:48px;border-radius:50%;overflow:hidden;box-shadow:0 2px 10px rgba(255,94,0,0.4)}
.tabbar-mid img{width:100%;height:100%}
.tabbar-placeholder{height:calc(60px + env(safe-area-inset-bottom,0px))}

/* Toast */
.toast{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%) scale(0.8);padding:10px 20px;background:rgba(0,0,0,0.75);color:#fff;border-radius:8px;font-size:14px;z-index:9999;opacity:0;pointer-events:none;transition:all .3s;text-align:center;max-width:200px}
.toast.show{opacity:1;transform:translate(-50%,-50%) scale(1)}

/* Loading */
.loading{text-align:center;padding:20px;color:#999;font-size:13px}

/* Empty */
.empty{text-align:center;padding:40px 20px;color:#999;font-size:14px}

@keyframes fadeIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
.goods-card{animation:fadeIn .3s ease forwards}
@media(min-width:500px){.category-list .game-item{width:calc(20% - 10px)}}
@media(max-width:350px){.goods-card .thumb{width:100px;height:75px}.goods-card .title{font-size:13px}.goods-card .price{font-size:16px}}
