*{
    box-sizing:border-box;
}

body{
    margin:0;
    background:#f5f7fb;
    color:#1f2937;
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",Arial,sans-serif;
}

a{
    text-decoration:none;
}

.site-header{
    background:linear-gradient(135deg,#16a34a,#22c55e);
    color:white;
    padding:22px 18px 26px;
    border-radius:0 0 26px 26px;
    box-shadow:0 8px 24px rgba(22,163,74,.25);
}

.logo{
    display:block;
    text-align:center;
    font-size:24px;
    font-weight:800;
    color:white;
    text-decoration:none;
    margin:0;
}

.logo:hover{
    opacity:.85;
}

.search{
    display:flex;
    gap:10px;
}

.search input{
    flex:1;
    border:0;
    border-radius:14px;
    padding:13px 14px;
    font-size:15px;
    outline:none;
}

.search button{
    border:0;
    border-radius:14px;
    padding:0 18px;
    background:#111827;
    color:white;
    font-weight:700;
}

.container{
    width:100%;
    max-width:920px;
    margin:0 auto;
    padding:18px;
}

.hero{
    background:white;
    padding:22px;
    border-radius:20px;
    box-shadow:0 8px 24px rgba(0,0,0,.06);
    margin-bottom:20px;
}

.hero h1{
    margin:0 0 8px;
    font-size:24px;
}

.hero p{
    margin:0;
    color:#6b7280;
    line-height:1.6;
}

.section-title{
    margin:22px 0 12px;
    font-size:20px;
}

.grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:10px;
}

.chip{
    background:white;
    color:#111827;
    padding:13px 8px;
    border-radius:15px;
    text-align:center;
    font-weight:600;
    box-shadow:0 6px 18px rgba(0,0,0,.06);
}

.page-title{
    margin-bottom:16px;
}

.page-title h1{
    margin:0 0 6px;
}

.page-title p{
    margin:0;
    color:#6b7280;
}

.merchant-list{
    column-count:4;
    column-gap:16px;
}

.merchant-card{
    display:inline-block;
    width:100%;
    margin:0 0 16px;
    background:white;
    border-radius:20px;
    overflow:hidden;
    box-shadow:0 8px 24px rgba(0,0,0,.08);
    break-inside:avoid;
}

.merchant-img{
    width:100%;
    height:auto;
    display:block;
}

.merchant-body{
    padding:15px;
}

.merchant-body h2{
    margin:0 0 8px;
    font-size:20px;
}

.meta{
    color:#6b7280;
    font-size:14px;
    margin-bottom:10px;
}

.desc{
    color:#374151;
    line-height:1.7;
    font-size:15px;
    white-space:pre-line;
}

.btns{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    margin-top:14px;
}

.btn{
    flex:1;
    min-width:96px;
    text-align:center;
    padding:11px 12px;
    border-radius:13px;
    color:white;
    font-weight:800;
}

.btn.detail{
    background:#111827;
}

.btn.wa{
    background:#22c55e;
}

.btn.tg{
    background:#229ed9;
}

.btn.map{
    background:#f59e0b;
}

.detail-card{
    background:white;
    border-radius:22px;
    overflow:hidden;
    box-shadow:0 8px 28px rgba(0,0,0,.08);
}

.detail-cover{
    width:100%;
    max-height:360px;
    object-fit:cover;
    display:block;
}

.detail-body{
    padding:18px;
}

.detail-body h1{
    margin:0 0 10px;
    font-size:26px;
}

.detail-desc{
    margin:16px 0;
}

.info-box{
    background:#f9fafb;
    border-radius:16px;
    padding:14px;
    margin:16px 0;
}

.info-box p{
    margin:8px 0;
    line-height:1.6;
}

.detail-btns .btn{
    flex:1 1 30%;
}

.menu-images{
    display:grid;
    gap:14px;
}

.menu-images img{
    width:100%;
    border-radius:16px;
    box-shadow:0 6px 18px rgba(0,0,0,.08);
}

.back-link{
    display:block;
    margin-top:22px;
    color:#16a34a;
    font-weight:800;
}

.empty{
    background:white;
    text-align:center;
    padding:36px 20px;
    border-radius:20px;
    box-shadow:0 8px 24px rgba(0,0,0,.06);
}

.footer{
    text-align:center;
    color:#9ca3af;
    font-size:13px;
    padding:24px 12px 36px;
}

@media(min-width:768px){
    .grid{
        grid-template-columns:repeat(6,1fr);
    }
}

.chip.active{
    background:#16a34a;
    color:white;
}

.featured-list{
    margin-bottom:22px;
}

@media(max-width:767px){
    .container{
        padding:14px;
    }

    .grid{
        grid-template-columns:repeat(3,1fr);
    }

    .merchant-img{
        height:170px;
    }

    .site-header{
        border-radius:0 0 22px 22px;
    }
}

@media(min-width:768px){
    .container{
        max-width:1100px;
    }

    .featured-list .merchant-img{
        height:150px;
    }

    .merchant-body h2{
        font-size:17px;
    }

    .desc{
        font-size:14px;
    }
}

.chip.active{
    background:#16a34a;
    color:white;
}

.featured-list{
    margin-bottom:22px;
}

.app-detail{
    position:relative;
    overflow:hidden;
}

.fixed-style{
    position:absolute;
    top:12px;
    left:12px;
    right:12px;
    z-index:10;
    display:flex;
    justify-content:space-between;
}

.back-btn,
.home-btn{
    padding:9px 15px;
    border-radius:999px;
    font-weight:800;
    text-decoration:none;
    backdrop-filter:blur(8px);
}

.back-btn{
    background:rgba(255,255,255,.9);
    color:#111827;
}

.home-btn{
    background:rgba(22,163,74,.95);
    color:white;
}

.views{
    display:inline-block;
    margin:8px 0 12px;
    padding:6px 12px;
    background:#f3f4f6;
    border-radius:999px;
    color:#4b5563;
    font-size:14px;
    font-weight:700;
}

.detail-cover{
    width:100%;
    max-height:420px;
    object-fit:cover;
    display:block;
}

.detail-body{
    padding:18px;
}

.detail-body h1{
    font-size:28px;
    margin:0 0 10px;
}

.detail-btns{
    margin:18px 0;
}

.info-box{
    background:#f9fafb;
    border-radius:18px;
    padding:15px;
    margin-top:18px;
}

.info-box p{
    margin:9px 0;
    line-height:1.7;
}

.menu-images img{
    width:100%;
    border-radius:16px;
    margin-bottom:14px;
    box-shadow:0 6px 18px rgba(0,0,0,.08);
}

@media(max-width:767px){
    .detail-body h1{
        font-size:24px;
    }

    .detail-cover{
        max-height:300px;
    }

    .back-btn,
    .home-btn{
        padding:8px 13px;
        font-size:14px;
    }
}

.topbar{
    position:relative;
    display:flex;
    align-items:center;
    justify-content:center;
    margin-bottom:15px;
}

.menu-btn{
    position:absolute;
    right:0;
    top:50%;
    transform:translateY(-50%);

    width:42px;
    height:42px;
    border:none;
    border-radius:12px;

    background:rgba(255,255,255,.18);
    color:#fff;

    font-size:24px;
    font-weight:800;
    cursor:pointer;

    display:flex;
    align-items:center;
    justify-content:center;
}

.drawer-mask{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.45);

    opacity:0;
    visibility:hidden;

    pointer-events:none; 

    transition:.2s;
    z-index:1000;
}

.drawer-mask.show{
    opacity:1;
    visibility:visible;

    pointer-events:auto; 
}

.drawer-menu{
    position:fixed;
    top:0;
    right:-85vw;
    width:300px;
    max-width:85vw;
    height:100vh;

    background:white;

    z-index:1002; /* ⭐必须高于mask */

    transition:.25s ease;

    padding:18px;
    overflow-y:auto;

    transform:translateZ(0);
}

.drawer-menu.show{
    right:0;
}

.drawer-menu a{
    display:block;
    padding:14px;
    font-weight:700;
    color:#111;

    position:relative;
    z-index:1003;

    pointer-events:auto;
}

@media(max-width:767px){
    .merchant-list{
        column-count:1;
    }
}

@media(min-width:768px) and (max-width:1024px){
    .merchant-list{
        column-count:2;
    }
}

@media(min-width:1025px){
    .merchant-list{
        column-count:4;
    }
}