:root{
    --m-brand:#ff2342;
    --m-brand-ink:#c61a32;
    --m-text:#111;
    --m-muted:#777;
    --m-bg:#f7f7f9;
    --m-card:#fff;
    --m-line:#eee;
    --m-radius:12px;
    --m-shadow:0 4px 18px rgba(0,0,0,.06);
}

*{box-sizing:border-box;}
html,body{margin:0;padding:0;}
body.m-body{
    font:14px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"PingFang SC",
    "Hiragino Sans GB","Microsoft YaHei",sans-serif;
    color:var(--m-text);
    background:var(--m-bg);
}

/* 通用容器 */
.m-container{
    max-width:640px;
    margin:0 auto;
    padding:0 12px;
}

/* 头部 */
.m-site-header{
    background:#fff;
    border-bottom:1px solid var(--m-line);
    position:sticky;
    top:0;
    z-index:10;
}

.m-header-main{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:8px 12px;
}

.m-logo-wrap{
    display:flex;
    align-items:center;
    gap:8px;
    text-decoration:none;
    color:inherit;
}

.m-logo{
    height:28px;
    width:auto;
    border-radius:6px;
}

.m-logo-title{
    font-size:15px;
    font-weight:700;
}

.m-logo-sub{
    font-size:11px;
    color:var(--m-muted);
}

/* 顶部导航 Tab */
.m-nav-tabs{
    display:flex;
    border-top:1px solid var(--m-line);
    border-bottom:1px solid var(--m-line);
    background:#fff;
}

.m-nav-item{
    flex:1;
    text-align:center;
    padding:8px 0;
    font-size:13px;
    text-decoration:none;
    color:var(--m-muted);
}

.m-nav-item.active{
    color:var(--m-brand);
    font-weight:600;
    border-bottom:2px solid var(--m-brand);
}

/* 按钮 */
.m-btn{
    border-radius:999px;
    border:1px solid var(--m-brand);
    padding:5px 12px;
    font-size:12px;
    text-decoration:none;
    display:inline-flex;
    align-items:center;
    justify-content:center;
}

.m-btn-sm{
    padding:4px 10px;
    font-size:12px;
}

.m-btn-primary{
    background:var(--m-brand);
    color:#fff;
}

/* 页面主体 */
.m-page{
    padding-bottom:12px;
}

/* 卡片 */
.m-card{
    background:var(--m-card);
    border-radius:var(--m-radius);
    border:1px solid var(--m-line);
    box-shadow:var(--m-shadow);
    overflow:hidden;
}

/* 区块 */
.m-section{
    padding:12px 0;
}

.m-section-bg{
    background:#fff7f8;
}

.m-section-hd{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:10px;
}

.m-section-title{
    font-size:16px;
    margin:0;
}

.m-section-sub{
    font-size:12px;
    color:var(--m-muted);
}

.m-section-more{
    font-size:12px;
    color:var(--m-muted);
    text-decoration:none;
}

.m-section-subhd{
    margin:14px 0 8px;
}

.m-section-title-sm{
    font-size:15px;
    margin:0;
}

/* 轮播 */
.m-hero-section{
    padding-top:10px;
}

.m-hero-slider{
    position:relative;
    overflow:hidden;
}

.m-slides{
    display:flex;
    transition:transform .4s cubic-bezier(.22,.8,.25,1);
}

.m-slide{
    min-width:100%;
    position:relative;
    height:170px;
}

.m-slide img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.m-slide-mask{
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    background:linear-gradient(to top,rgba(0,0,0,.5),rgba(0,0,0,0));
    padding:10px;
    color:#fff;
}

.m-slide-title{
    font-size:14px;
    line-height:1.4;
}

.m-dots{
    position:absolute;
    left:0;
    right:0;
    bottom:6px;
    display:flex;
    justify-content:center;
    gap:4px;
}

.m-dot{
    width:6px;
    height:6px;
    border-radius:999px;
    background:rgba(255,255,255,.6);
}

.m-dot.active{
    width:20px;
    background:#fff;
}

/* 文章列表 */
.m-list-articles{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.m-article-item{
    display:flex;
    gap:10px;
    padding:8px;
    text-decoration:none;
    color:inherit;
}

.m-article-thumb{
    width:108px;
    height:74px;
    border-radius:10px;
    overflow:hidden;
    flex-shrink:0;
    background:#f3f3f3;
}

.m-article-thumb img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.m-article-body{
    flex:1;
    min-width:0;
}

.m-article-title{
    font-size:14px;
    font-weight:600;
    line-height:1.4;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
}

.m-article-meta{
    margin-top:4px;
    font-size:11px;
    color:var(--m-muted);
    display:flex;
    gap:6px;
    flex-wrap:wrap;
}

.m-article-desc{
    margin:4px 0 0;
    font-size:12px;
    color:var(--m-muted);
}

/* 品牌卡片栅格 */
.m-grid-brands{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:10px;
}

.m-grid-brands-small{
    grid-template-columns:repeat(2,1fr);
}

.m-brand-card{
    text-decoration:none;
    color:inherit;
}

.m-brand-thumb{
    position:relative;
    height:100px;
    overflow:hidden;
}

.m-brand-thumb img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.m-badge-hot{
    position:absolute;
    left:8px;
    top:8px;
    padding:2px 8px;
    border-radius:999px;
    background:rgba(0,0,0,.7);
    color:#fff;
    font-size:11px;
}

.m-brand-body{
    padding:8px;
}

.m-brand-title{
    font-size:14px;
    font-weight:600;
}

.m-brand-meta{
    margin-top:4px;
    font-size:11px;
    color:var(--m-muted);
    display:flex;
    justify-content:space-between;
}

/* 为你推荐 */
.m-grid-reco{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:10px;
}

.m-reco-card{
    text-decoration:none;
    color:inherit;
}

.m-reco-thumb{
    position:relative;
    height:90px;
    overflow:hidden;
}

.m-reco-thumb img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.m-reco-hits{
    position:absolute;
    right:4px;
    bottom:4px;
    font-size:11px;
    background:rgba(0,0,0,.55);
    color:#fff;
    padding:2px 6px;
    border-radius:8px;
}

.m-reco-title{
    padding:6px 8px 8px;
    font-size:13px;
    line-height:1.4;
}

/* 品牌列表（行样式） */
.m-list-brands{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.m-brand-row{
    display:flex;
    gap:10px;
    padding:8px;
    text-decoration:none;
    color:inherit;
}

.m-brand-row-thumb{
    width:110px;
    height:80px;
    border-radius:10px;
    overflow:hidden;
    flex-shrink:0;
    position:relative;
}

.m-brand-row-thumb img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.m-brand-row-body{
    flex:1;
    min-width:0;
}

.m-brand-row-title{
    font-size:14px;
    font-weight:600;
    line-height:1.4;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
}

.m-brand-row-meta{
    margin-top:4px;
    font-size:11px;
    color:var(--m-muted);
    display:flex;
    justify-content:space-between;
}

/* 品牌详情头部 */
.m-brand-hero{
    padding:10px;
}

.m-brand-hero-thumb{
    height:160px;
    border-radius:10px;
    overflow:hidden;
    margin-bottom:8px;
}

.m-brand-hero-thumb img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.m-brand-hero-title{
    font-size:18px;
    margin:0 0 4px 0;
}

.m-brand-hero-kpis{
    display:flex;
    flex-wrap:wrap;
    gap:6px;
    font-size:11px;
    color:var(--m-muted);
    margin-top:4px;
}

.m-tags{
    margin-top:6px;
    display:flex;
    flex-wrap:wrap;
    gap:6px;
}

.m-tag{
    font-size:11px;
    padding:3px 8px;
    border-radius:999px;
    border:1px solid #ffd6de;
    background:#fff2f4;
    color:var(--m-brand);
}

/* 文章详情 */
.m-article-detail{
    margin-top:12px;
    padding:12px;
}

.m-article-detail-title{
    font-size:18px;
    margin:0 0 6px;
}

.m-prose{
    font-size:14px;
    color:#222;
    line-height:1.8;
}

.m-prose img{
    max-width:100%;
    height:auto;
    display:block;
    margin:6px auto;
}

.m-prose table{
    width:100%;
    table-layout:fixed;
}

/* 面包屑 */
.m-breadcrumb{
    font-size:11px;
    color:var(--m-muted);
}

.m-breadcrumb a{
    color:var(--m-muted);
    text-decoration:none;
}

/* 底部 */
.m-site-footer{
    background:#101012;
    color:#cfcfcf;
    padding:14px 0 18px;
    margin-top:10px;
}

.m-foot-inner{
    max-width:640px;
    margin:0 auto;
    padding:0 14px;
}

.m-foot-block{
    margin-bottom:10px;
}

.m-foot-title{
    font-size:13px;
    font-weight:600;
    margin-bottom:4px;
}

.m-foot-text{
    font-size:12px;
    line-height:1.6;
    margin:0 0 4px;
}

.m-foot-links a{
    font-size:12px;
    color:#cfcfcf;
    text-decoration:none;
}

.m-foot-copy{
    border-top:1px solid rgba(255,255,255,.08);
    padding-top:8px;
    font-size:11px;
    color:#999;
}

.m-foot-copy a{
    color:#cfcfcf;
    text-decoration:none;
}

/* 弹窗 */
.m-modal-mask{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.5);
    display:none;
    align-items:center;
    justify-content:center;
    z-index:99;
}

.m-modal-mask.show{
    display:flex;
    animation:mFadeIn .18s ease-out;
}

.m-modal-dialog{
    background:#fff;
    border-radius:18px;
    padding:18px 16px 14px;
    width:88%;
    max-width:340px;
    text-align:center;
    box-shadow:0 14px 40px rgba(0,0,0,.2);
}

.m-modal-title{
    font-size:16px;
    font-weight:700;
    margin-bottom:6px;
}

.m-modal-text{
    font-size:13px;
    color:var(--m-muted);
    line-height:1.7;
    margin-bottom:12px;
}

.m-modal-actions{
    display:flex;
    gap:8px;
}

.m-modal-btn{
    flex:1;
    border-radius:999px;
    border:1px solid #e5e5e5;
    background:#f7f7f7;
    padding:7px 0;
    font-size:13px;
}

.m-modal-btn.m-primary{
    background:var(--m-brand);
    border-color:var(--m-brand);
    color:#fff;
}

@keyframes mFadeIn{
    from{opacity:0;transform:translateY(6px);}
    to{opacity:1;transform:translateY(0);}
}
/* 首页 · 开店小贴士模块 */
.m-section-tips{
    background:#fff;          /* 和整体风格统一，轻量不过分跳 */
}

.m-tips-list{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.m-tip-card{
    position:relative;
    padding:10px 10px 9px;
    font-size:13px;
    color:var(--m-muted);
}

.m-tip-title{
    font-size:14px;
    font-weight:600;
    color:var(--m-text);
    margin-bottom:4px;
    padding-right:70px;       /* 给右上角小标签留空间 */
}

.m-tip-text{
    font-size:12px;
    line-height:1.7;
}

/* 右上角小标签，呼应主色 */
.m-tip-tag{
    position:absolute;
    right:10px;
    top:8px;
    font-size:11px;
    padding:2px 8px;
    border-radius:999px;
    background:#fff2f4;
    border:1px solid #ffd6de;
    color:var(--m-brand);
}

/* ==========================
   手机端：上一篇 / 下一篇
   ========================== */

/* 容器本身（放在正文底部） */
.post-nav {
    margin-top: 24px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #ffffff;
}

/* 标题：继续阅读 */
.nav-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
}

/* 每一条 上一篇 / 下一篇 */
.post-nav-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 10px;
    border-radius: 8px;
    background: #f7f7f7;
    text-decoration: none;
    color: #333;
    margin-bottom: 10px;
}

/* 点击反馈 */
.post-nav-item:active {
    background: #ededed;
}

/* 左侧小标签：上一篇 / 下一篇 */
.post-nav-item .nav-label {
    flex: 0 0 auto;
    font-size: 12px;
    color: #999;
    white-space: nowrap;
}

/* 右侧标题文字：允许自动换行 */
.post-nav-item .nav-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.7;
    word-break: break-all;    /* 长标题自动换行 */
}

/* ==========================
   手机端：TAG 标签区域
   ========================== */

.tag-box {
    margin-top: 24px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #ffffff;
}

.tag-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
}

/* 标签列表：多行自动换行 */
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* 单个标签 */
.tag {
    display: inline-block;
    padding: 6px 10px;
    background: #f5f5f5;
    border-radius: 16px;
    font-size: 13px;
    color: #333;
    text-decoration: none;
}

/* 按下态（手机端常用） */
.tag:active {
    background: #e8e8e8;
}