*{box-sizing:border-box}
html,body{margin:0;background:#f5f5f5;color:#111;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif}
a{text-decoration:none;color:inherit}
button,input{font:inherit}
.app{max-width:720px;min-height:100vh;margin:auto;background:#fff;padding-bottom:72px}
.top{background:#111;color:#fff;padding:16px}
.logo{font-size:22px;font-weight:900}.logo b{color:#ffd900}
.search{margin-top:14px;width:100%;height:42px;border:0;border-radius:12px;padding:0 14px}
.nav{display:flex;gap:10px;overflow:auto;padding:12px 14px;border-bottom:1px solid #eee}
.nav span{white-space:nowrap;font-size:13px}
.hero{margin:14px;border-radius:20px;background:#171717;color:#fff;padding:28px 20px;min-height:180px}
.hero small{color:#ffd900;font-weight:800}.hero h1{font-size:30px;margin:12px 0 8px}
.section{padding:12px 14px}.section h2{font-size:20px}
.brands{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.brand{border:1px solid #eee;border-radius:14px;padding:16px 10px;font-weight:800}
.products{display:grid;grid-template-columns:repeat(2,1fr);gap:14px 10px}
.product-img{aspect-ratio:3/4;background:#eee;border-radius:14px;display:grid;place-items:center;color:#aaa}
.product-brand{font-size:11px;font-weight:800;margin-top:8px}
.product-name{font-size:13px;margin-top:4px}
.price{font-weight:900;margin-top:5px}.discount{color:#e53935}
.bottom{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(720px,100%);height:64px;background:#fff;border-top:1px solid #eee;display:grid;grid-template-columns:repeat(4,1fr)}
.bottom a{display:grid;place-items:center;font-size:12px}
.login{padding:40px 22px}.login h1{font-size:30px}
.field{margin:16px 0}.field input{width:100%;height:50px;border:1px solid #ddd;border-radius:13px;padding:0 13px}
.main-btn{width:100%;height:52px;background:#111;color:#fff;border:0;border-radius:14px;font-weight:800}
.links{display:flex;justify-content:space-between;margin-top:18px;font-size:13px}


/* 一级类目 */
.main-category-nav{
    gap:4px;
    padding:10px 12px;
    scrollbar-width:none;
}
.main-category-nav::-webkit-scrollbar{
    display:none;
}
.main-category-nav a{
    flex:0 0 auto;
    padding:9px 12px;
    border-radius:18px;
    font-size:15px;
    font-weight:650;
    white-space:nowrap;
}
.main-category-nav a.active{
    background:#111;
    color:#fff;
}

/* 首页商品区去掉重复标题后稍微收紧 */
.product-section{
    padding-top:4px;
}

/* 分类页顶部 */
.category-header{
    display:flex;
    align-items:center;
    gap:10px;
    padding:18px 16px 14px;
    border-bottom:1px solid #eee;
}
.category-back{
    width:36px;
    height:36px;
    display:grid;
    place-items:center;
    font-size:30px;
    line-height:1;
}
.category-title{
    font-size:24px;
    font-weight:900;
}
.category-subtitle{
    margin-top:3px;
    font-size:12px;
    color:#999;
}

/* 二级类目 */
.sub-category-scroll{
    display:flex;
    gap:8px;
    overflow-x:auto;
    padding:12px 14px 14px;
    border-bottom:1px solid #eee;
    scrollbar-width:none;
}
.sub-category-scroll::-webkit-scrollbar{
    display:none;
}
.sub-category-chip{
    flex:0 0 auto;
    border:0;
    padding:9px 14px;
    border-radius:18px;
    background:#f2f2f2;
    color:#222;
    font-size:13px;
    white-space:nowrap;
}
.sub-category-chip.active{
    background:#111;
    color:#fff;
    font-weight:800;
}

.category-products{
    padding-top:18px;
}
.category-result-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:14px;
}
.category-result-head strong{
    font-size:19px;
}
.category-result-head span{
    color:#777;
    font-size:12px;
}
