/* MY雪茄网 前台样式 - 简洁明了，手机/电脑自适应 */
* { margin:0; padding:0; box-sizing:border-box; }
html { overflow-x:hidden; }
body { font:16px/1.75 -apple-system,"PingFang SC","Microsoft YaHei",sans-serif; color:#2b2b2b; background:#f6f4f0; overflow-x:hidden; max-width:100vw; word-break:break-word; }
a { color:#8a5a2b; text-decoration:none; }
a:hover { color:#b4772f; }
img { max-width:100%; height:auto; }
.wrap { max-width:1080px; margin:0 auto; padding:0 16px; }

/* 头部 */
.site-header { background:#2d1f14; color:#fff; }
.site-header .wrap { display:flex; flex-wrap:wrap; align-items:center; gap:8px 24px; padding:14px 16px; }
.brand a { font-size:24px; font-weight:700; color:#e9c98a; letter-spacing:1px; }
.brand .sub { margin-left:10px; font-size:13px; color:#bfa27a; }
.brand-logo { display:none; }   /* PC端隐藏，手机端由媒体查询显示 */
.nav { display:flex; flex-wrap:wrap; gap:2px; }
.nav a { color:#e8ddcd; padding:6px 12px; border-radius:6px; font-size:15px; }
.nav a:hover, .nav a.on { background:#8a5a2b; color:#fff; }
.notice { background:#efe6d6; border-bottom:1px solid #e0d2b8; color:#6b4f2a; font-size:14px; }
.notice .wrap { padding:8px 16px; }

/* 布局：左内容右侧栏 */
.main-layout { display:flex; gap:24px; padding:24px 16px 40px; align-items:flex-start; }
.content { flex:1; min-width:0; }
.sidebar { width:300px; flex-shrink:0; }
.page-title { font-size:22px; margin-bottom:14px; padding-left:10px; border-left:4px solid #8a5a2b; }
.page-title .en { font-size:14px; color:#999; margin-left:8px; font-weight:400; }
.cat-desc { font-size:14px; color:#777; margin-bottom:16px; }
.home-intro { background:#fff; border-radius:10px; padding:14px 18px; margin-bottom:16px; font-size:14px; color:#555; }
.empty { color:#999; padding:30px 0; }

/* 列表项 */
.item { display:flex; gap:16px; background:#fff; border-radius:10px; padding:16px; margin-bottom:14px; box-shadow:0 1px 3px rgba(0,0,0,.05); overflow:hidden; max-width:100%; }
.item .thumb { flex-shrink:0; width:176px; }
.item .thumb img { width:176px; height:100px; object-fit:cover; border-radius:8px; display:block; }
.item-body { flex:1; min-width:0; overflow:hidden; }
.item h2 { font-size:18px; line-height:1.45; margin-bottom:6px; word-break:break-word; overflow-wrap:break-word; }
.item h2 a { color:#2b2b2b; }
.item h2 a:hover { color:#8a5a2b; }
/* 分类名统一由 .cat-badge 在卡片/元信息行展示（已取消手机端上移到标题上方） */
.top-badge { display:inline-block; background:#c0392b; color:#fff; font-size:12px; font-style:normal; padding:1px 7px; border-radius:4px; margin-right:6px; vertical-align:2px; }
.excerpt { font-size:14px; color:#666; margin-bottom:8px; word-break:break-word; overflow-wrap:break-word; }
.meta { font-size:13px; color:#999; }
a.cat-badge { background:#f0e6d2; color:#8a5a2b; padding:1px 8px; border-radius:4px; font-size:12px; margin-right:4px; text-decoration:none; }
a.cat-badge:hover { background:#8a5a2b; color:#fff; }
.meta .tag-link { display:inline-block; margin:0 2px; padding:0 4px; background:#f6f0e4; color:#8a5a2b; border-radius:3px; font-size:12px; text-decoration:none; }
.meta .tag-link:hover { background:#8a5a2b; color:#fff; }
/* 手机端元信息行（PC端隐藏，移动端横排一行：栏目分类名称 + 最多2个Tag） */
.meta-mobile { display:none; }
.meta-mobile .m-tags { display:inline-flex; gap:3px; flex-wrap:nowrap; }

/* 侧边栏 */
.side-box { background:#fff; border-radius:10px; padding:16px 18px; margin-bottom:16px; box-shadow:0 1px 3px rgba(0,0,0,.05); }
.side-box h3 { font-size:16px; margin-bottom:12px; padding-bottom:8px; border-bottom:2px solid #f0e6d2; color:#5a3d1e; }
.tag-cloud { display:flex; flex-wrap:wrap; gap:8px; }
.tag-cloud a { background:#f6f0e4; padding:3px 11px; border-radius:20px; font-size:13px; color:#7a5427; }
.tag-cloud a:hover { background:#8a5a2b; color:#fff; }
.side-list { list-style:none; }
.side-list li { padding:7px 0; border-bottom:1px dashed #eee; font-size:14px; }
.side-list li:last-child { border-bottom:none; }
.side-list a { color:#444; display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.side-list a:hover { color:#8a5a2b; }
.author-box { font-size:14px; color:#666; }
.author-name { font-weight:700; color:#5a3d1e; margin-bottom:4px; }

/* 文章页 */
.article-page { background:#fff; border-radius:10px; padding:26px 30px; box-shadow:0 1px 3px rgba(0,0,0,.05); }
.crumb { font-size:13px; color:#999; margin-bottom:14px; }
.art-title { font-size:26px; line-height:1.4; margin-bottom:10px; }
.art-meta { font-size:13px; color:#999; padding-bottom:14px; border-bottom:1px solid #f0ece2; margin-bottom:18px; }
.art-cover { text-align:center; margin-bottom:18px; }
.art-cover img { border-radius:8px; }
.art-summary { background:#faf6ec; border-left:4px solid #d8b877; padding:12px 16px; font-size:14px; color:#6b5a3a; border-radius:0 8px 8px 0; margin-bottom:20px; }
.art-content { font-size:16px; }
.art-content p { margin-bottom:16px; }
.art-content h2 { font-size:20px; margin:26px 0 12px; padding-left:10px; border-left:4px solid #8a5a2b; }
.art-content img { display:block; margin:14px auto; border-radius:8px; }
.art-content .tag-link { border-bottom:1px dashed #b4772f; font-weight:600; }
/* SEO内链：蓝色标注，可跳转 */
.art-content .seo-link { color:#2563eb; text-decoration:underline; font-weight:600; border-bottom:none; }
.art-content .seo-link:hover { color:#1d4ed8; text-decoration:none; background:#eff6ff; }
.art-tags { margin-top:26px; padding-top:16px; border-top:1px solid #f0ece2; font-size:14px; color:#888; }
.art-tags a { display:inline-block; background:#f6f0e4; padding:2px 12px; border-radius:20px; margin:0 6px 6px 0; font-size:13px; }
.art-contact { margin-top:22px; background:#2d1f14; color:#e9c98a; padding:14px 18px; border-radius:8px; font-size:14px; text-align:center; }
.art-source { margin-top:14px; padding:13px 18px; background:#faf6ec; border:1px dashed #d8b877; border-radius:8px; font-size:14px; color:#6b5a3a; word-break:break-all; }
.art-source a { color:#8a5a2b; text-decoration:underline; }

/* 底部 */
.site-footer { background:#2d1f14; color:#a08a6a; text-align:center; font-size:13px; margin-top:20px; }
.site-footer .wrap { padding:22px 16px; }
.site-footer .contact { color:#e9c98a; font-size:14px; margin-bottom:6px; }

/* 手机端 */
@media (max-width: 860px) {
  .main-layout { flex-direction:column; padding:16px 12px 30px; }
  .sidebar { width:100%; }
  /* 手机端文章列表：左图右文 */
  .item { flex-direction:row; gap:12px; padding:12px; }
  .item .thumb { flex-shrink:0; width:120px; }
  .item .thumb img { width:120px; height:80px; object-fit:cover; border-radius:6px; }
  .item-body { flex:1; min-width:0; }
  /* 已取消手机端分类名上移到标题上方：分类名现在在 .meta-mobile 行展示 */
  .item h2 { font-size:15px; line-height:1.35; }
  .excerpt { font-size:12px; line-height:1.5; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
  .meta { display:none; }            /* 手机端隐藏PC样式元信息 */
  .meta-mobile { display:flex; flex-wrap:nowrap; align-items:center; gap:6px; margin-top:6px; font-size:11px; overflow:hidden; }
  .meta-mobile .m-tags { max-width:55%; overflow:hidden; }
  .meta-mobile .tag-link { display:inline-block; padding:0 4px; background:#f6f0e4; color:#8a5a2b; border-radius:3px; font-size:11px; text-decoration:none; white-space:nowrap; }
  .article-page { padding:18px 16px; }
  .art-title { font-size:21px; }
  .brand a { font-size:20px; }
  /* 手机端：用LOGO图片替代网站名称，图片宽度约为手机宽度的90% */
  .brand { width:90%; }
  .brand-text { display:none; }
  .brand-logo { display:block; width:100%; height:auto; }
  .nav a { padding:5px 9px; font-size:14px; }
}

/* ===== 友情链接 ===== */
.friend-links { padding:10px 0 4px; border-bottom:1px solid rgba(255,255,255,.12); margin-bottom:10px; }
.friend-links .fl-label { color:#c9b8a4; font-size:13px; margin-right:6px; }
.friend-links a { color:#d8c7b0; font-size:13px; margin-right:14px; text-decoration:none; }
.friend-links a:hover { color:#fff; text-decoration:underline; }

/* ===== TAG 标签总页面 ===== */
.tag-index { display:grid; grid-template-columns:repeat(auto-fill, minmax(200px, 1fr)); gap:12px; margin-top:14px; }
.tag-index-item { display:block; background:#fff; border:1px solid #eee2d3; border-radius:10px; padding:12px 14px; text-decoration:none; transition:.15s; }
.tag-index-item:hover { border-color:#8a5a2b; box-shadow:0 3px 12px rgba(138,90,43,.12); }
.tag-index-item b { color:#5a3b1c; font-size:15px; }
.tag-index-item i { float:right; font-style:normal; font-size:12px; color:#999; }
.tag-index-item em { display:block; font-style:normal; font-size:11px; color:#b5a794; margin-top:4px; word-break:break-all; }
.tag-cloud .tag-all { background:#8a5a2b; color:#fff !important; }

/* ===== 分页导航 ===== */
.pagination { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:6px; margin:28px 0 8px; padding:16px 0; max-width:100%; overflow:hidden; }
.pagination .page-nav,
.pagination .page-num {
  display:inline-block; padding:7px 14px; border-radius:6px; font-size:14px;
  background:#fff; border:1px solid #e0d2b8; color:#5a3d1e; text-decoration:none;
  transition:all .15s; box-shadow:0 1px 2px rgba(0,0,0,.04);
  white-space:nowrap;
}
.pagination .page-nav { font-weight:600; }
.pagination .page-num:hover,
.pagination .page-nav:hover { background:#8a5a2b; color:#fff; border-color:#8a5a2b; }
.pagination .page-num.on { background:#8a5a2b; color:#fff; border-color:#8a5a2b; font-weight:700; cursor:default; }
.pagination .page-nav.disabled { color:#c5b8a0; background:#f6f0e4; border-color:#eee2d3; cursor:not-allowed; }
.pagination .page-nav.disabled:hover { background:#f6f0e4; color:#c5b8a0; border-color:#eee2d3; }
.pagination .page-ellipsis { padding:7px 4px; color:#b5a794; font-size:14px; }

/* ===== PC端隐藏（手机端由 mobile-hidden 控制） ===== */
.pc-hidden { display:none !important; }

/* 手机端分页 */
@media (max-width: 860px) {
  .pagination { gap:4px; padding:12px 0; }
  .pagination .page-nav,
  .pagination .page-num { padding:6px 10px; font-size:13px; }
  /* 手机端：pc-hidden 默认显示，交由 mobile-hidden 决定是否隐藏 */
  .pc-hidden { display:block !important; }
  /* 手机端隐藏 */
  .mobile-hidden { display:none !important; }
}

/* ===== 手机端隐藏（PC端始终显示） ===== */
@media (min-width: 861px) {
  .mobile-hidden { display:inherit; }
  /* 关键修复：列表项(.item)是 flex 容器，不能被 .mobile-hidden 的 display:inherit 覆盖成 block，
     否则第 (mobilePerPage+1) 条起在 PC 端缩略图与正文错位、卡片样式错乱 */
  .item.mobile-hidden { display:flex; }
  .daohang-card.mobile-hidden { display:flex; }
  .pagination .mobile-hidden { display:inline-block; }
  .fenlei-grid .mobile-hidden { display:block; }
  .fenlei-side-grid .mobile-hidden { display:block; }
  .tag-cloud .mobile-hidden { display:inline-block; }
  .side-list .mobile-hidden { display:list-item; }
  ul.mobile-hidden { display:block; }
  section.mobile-hidden { display:block; }
}

/* ===== 手机端底部漂浮导航 ===== */
.mnav, .mnav-panel, .mnav-pop, .mnav-mask { display:none; }
@media (max-width: 860px) {
  .mnav {
    display:flex; position:fixed; left:0; right:0; bottom:0; z-index:999;
    background:#fff; border-top:1px solid #e7dcc8; box-shadow:0 -2px 10px rgba(0,0,0,.08);
  }
  .mnav-item {
    flex:1 1 25%; max-width:25%; min-width:0; border:0; background:none; padding:7px 0 8px; margin:0;
    display:flex; flex-direction:column; align-items:center; gap:2px;
    font-size:12px; color:#5a3d1e; cursor:pointer; text-decoration:none; -webkit-tap-highlight-color:transparent;
    overflow:hidden;
  }
  .mnav-item:active { background:#f6f0e4; }
  .mnav-ico { font-size:20px; line-height:1; }
  .mnav-tx { font-size:11px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:100%; }
  body { padding-bottom:56px; }   /* 避免页面内容被底部导航遮挡 */

  /* 看雪茄：下拉选择栏目（仅在未隐藏时显示） */
  /* 关键：面板 z-index 必须高于遮罩(1000)，否则遮罩会盖住下拉并拦截点击，导致“弹出无法选择” */
  .mnav-panel:not([hidden]) {
    display:block; position:fixed; left:0; right:0; bottom:54px; z-index:1001;
    background:#fff; border-top:1px solid #e7dcc8; box-shadow:0 -2px 10px rgba(0,0,0,.1);
    max-height:50vh; overflow:auto;
  }
  .mnav-panel-hd { display:flex; justify-content:space-between; align-items:center; padding:10px 14px; font-weight:600; color:#5a3d1e; border-bottom:1px solid #f0e8d8; }
  .mnav-x { border:0; background:none; font-size:16px; color:#999; cursor:pointer; }
  .mnav-cats { display:flex; flex-wrap:wrap; gap:8px; padding:12px 14px; }
  .mnav-cat { display:inline-block; padding:6px 12px; background:#f6f0e4; color:#5a3d1e; border-radius:16px; text-decoration:none; font-size:13px; }

  /* 联系我：弹出 QQ / 微信 / 邮箱 */
  .mnav-mask:not([hidden]) { display:block; position:fixed; inset:0; background:rgba(0,0,0,.45); z-index:1000; }
  .mnav-pop:not([hidden]) { display:flex; position:fixed; inset:0; z-index:1002; align-items:center; justify-content:center; padding:20px; }
  .mnav-pop-box { width:100%; max-width:320px; background:#fff; border-radius:12px; overflow:hidden; }
  .mnav-pop-hd { display:flex; justify-content:space-between; align-items:center; padding:12px 16px; font-weight:600; color:#5a3d1e; border-bottom:1px solid #f0e8d8; }
  .mnav-contact { padding:16px; }
  .mnav-row { display:flex; align-items:center; gap:10px; padding:8px 0; border-bottom:1px dashed #f0e8d8; }
  .mnav-row:last-child { border-bottom:0; }
  .mnav-k { flex:0 0 44px; color:#999; font-size:13px; }
  .mnav-v { color:#2b2b2b; font-size:14px; word-break:break-all; }
  .mnav-v a { color:#8a5a2b; }
  .mnav-empty { color:#999; font-size:13px; }
  /* 微信按钮和复制功能 */
  .mnav-wx-ico { display:flex; align-items:center; justify-content:center; }
  .mnav-wx-row { flex-wrap:wrap; }
  .mnav-wx-row .mnav-v { flex:1; min-width:0; }
  .mnav-copy-btn { flex-shrink:0; border:1px solid #07c160; background:#07c160; color:#fff; font-size:12px; padding:3px 12px; border-radius:16px; cursor:pointer; white-space:nowrap; }
  .mnav-copy-btn:active { opacity:.8; }
  .mnav-wx-tip { font-size:12px; margin:6px 0 0; padding:0; text-align:center; }
}

/* ===== 侧边栏问答 ===== */
.wenda-list { list-style:none; }
.wenda-list li { padding:7px 0; border-bottom:1px dashed #eee; font-size:14px; }
.wenda-list li:last-child { border-bottom:none; }
.wenda-list a { color:#444; display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.wenda-list a:hover { color:#8a5a2b; }
.wenda-meta { font-size:12px; color:#aaa; margin-top:2px; }
.side-more { display:block; text-align:right; font-size:13px; margin-top:8px; color:#8a5a2b; }
.side-more:hover { color:#b4772f; }

/* ===== 侧边栏雪茄分类 ===== */
.fenlei-side-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:10px; max-width:100%; overflow:hidden; }
.fenlei-side-item { text-align:center; text-decoration:none; display:block; min-width:0; overflow:hidden; }
.fenlei-side-item img { width:100%; height:62px; object-fit:cover; border-radius:6px; display:block; }
.fenlei-side-name { font-size:12px; color:#444; margin-top:4px; display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100%; }
.fenlei-side-type { font-size:11px; color:#aaa; display:block; }

/* ===== 文章底部问答入口 ===== */
.art-wenda-link { margin-top:22px; padding:13px 18px; background:#faf6ec; border:1px dashed #d8b877; border-radius:8px; text-align:center; }
.art-wenda-link a { color:#8a5a2b; font-size:14px; font-weight:600; text-decoration:none; }
.art-wenda-link a:hover { color:#b4772f; }

/* ===== 雪茄分类列表页 ===== */
.fenlei-grid { display:grid; gap:16px; margin-top:14px; }
.fenlei-card { background:#fff; border-radius:10px; overflow:hidden; box-shadow:0 1px 3px rgba(0,0,0,.05); transition:all .15s; text-decoration:none; display:block; }
.fenlei-card:hover { box-shadow:0 3px 14px rgba(138,90,43,.15); transform:translateY(-1px); }
.fenlei-card-img { width:100%; aspect-ratio:1.4; overflow:hidden; background:#f0e6d2; }
.fenlei-card-img img { width:100%; height:100%; object-fit:cover; display:block; }
.fenlei-card-info { padding:10px 12px 14px; }
.fenlei-card-type { font-size:11px; margin-bottom:4px; }
.fenlei-card-type .badge { display:inline-block; padding:1px 7px; border-radius:3px; font-size:11px; }
.fenlei-card-type .badge.domestic { background:#f0e6d2; color:#8a5a2b; }
.fenlei-card-type .badge.imported { background:#d4e6f1; color:#2e6a8a; }
.fenlei-card-name { font-size:14px; color:#2b2b2b; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.fenlei-pin { display:inline-block; background:#c0392b; color:#fff; font-size:10px; padding:0 5px; border-radius:3px; margin-right:4px; vertical-align:1px; }

/* ===== 雪茄分类详情页 ===== */
.cigar-detail { background:#fff; border-radius:10px; padding:26px 30px; box-shadow:0 1px 3px rgba(0,0,0,.05); }
.cigar-detail .cigar-name { font-size:24px; color:#2b2b2b; margin-bottom:4px; }
.cigar-detail .cigar-pubtime { font-size:13px; color:#999; margin-bottom:20px; padding-bottom:12px; border-bottom:1px solid #f0ece2; }
.cigar-detail .cigar-img-wrap { text-align:center; margin-bottom:22px; }
.cigar-detail .cigar-img-wrap img { width:500px; height:310px; object-fit:cover; border-radius:8px; max-width:100%; }

/* 雪茄信息网格（图片下方4行） */
.cigar-meta-grid { margin-bottom:20px; }
.cigar-meta-row { display:flex; align-items:flex-start; padding:10px 0; border-bottom:1px solid #f5f0e6; }
.cigar-meta-row:last-child { border-bottom:none; }
.cigar-meta-label { width:80px; flex-shrink:0; font-size:14px; color:#999; font-weight:500; }
.cigar-meta-value { flex:1; font-size:15px; color:#2b2b2b; }
.cigar-meta-value.cigar-price { color:#c0392b; font-weight:700; font-size:20px; }
.cigar-intro-row { flex-direction:column; }
.cigar-intro-row .cigar-meta-label { margin-bottom:6px; }
.cigar-intro-row .cigar-meta-value { line-height:1.85; color:#555; }

/* 星级 */
.cigar-stars { display:inline-flex; gap:2px; vertical-align:middle; }
.cigar-stars .star { font-size:20px; color:#ddd; transition:color .15s; }
.cigar-stars .star.on { color:#c0392b; }
.cigar-rating-count { font-size:13px; color:#888; margin-left:8px; }
.cigar-rate-login { font-size:13px; color:#8a5a2b; margin-left:8px; text-decoration:underline; }

/* 列表卡片星级 */
.fenlei-card-rating { display:flex; gap:1px; margin-top:4px; }
.fenlei-card-rating .star { font-size:13px; color:#ddd; }
.fenlei-card-rating .star.on { color:#c0392b; }

.cigar-wenda-refs { margin-top:22px; padding-top:16px; border-top:1px solid #f0ece2; }
.cigar-wenda-refs h3 { font-size:16px; margin-bottom:10px; color:#5a3d1e; padding-bottom:6px; border-bottom:2px solid #f0e6d2; }
.cigar-wenda-refs ul { list-style:none; }
.cigar-wenda-refs li { padding:7px 0; font-size:14px; border-bottom:1px dashed #eee; }
.cigar-wenda-refs li:last-child { border-bottom:none; }
.cigar-wenda-refs li a { color:#444; }
.cigar-wenda-refs li a:hover { color:#8a5a2b; }
.cigar-keywords { margin-top:14px; }
.cigar-keywords em { font-size:13px; color:#999; margin-right:6px; font-style:normal; }
.cigar-keywords a { display:inline-block; background:#f6f0e4; padding:3px 11px; border-radius:20px; font-size:13px; margin:0 6px 6px 0; color:#7a5427; text-decoration:none; }
.cigar-keywords a:hover { background:#8a5a2b; color:#fff; }

/* ===== 问答系统页面 ===== */
.wenda-wrap { max-width:800px; margin:0 auto; }
.wenda-auth-box { max-width:420px; margin:40px auto; background:#fff; border-radius:10px; padding:28px 32px; box-shadow:0 1px 3px rgba(0,0,0,.05); }
.wenda-auth-box h2 { font-size:20px; margin-bottom:20px; text-align:center; color:#5a3d1e; }
.wenda-auth-box .wenda-msg { margin-bottom:14px; }
.wenda-form .field { margin-bottom:15px; }
.wenda-form label { display:block; font-size:14px; color:#666; margin-bottom:5px; font-weight:600; }
.wenda-form input[type="text"],
.wenda-form input[type="password"],
.wenda-form textarea,
.wenda-form select { width:100%; padding:9px 12px; border:1px solid #e0d2b8; border-radius:6px; font-size:15px; font-family:inherit; background:#fdfcf7; }
.wenda-form input:focus,
.wenda-form textarea:focus { outline:none; border-color:#8a5a2b; box-shadow:0 0 0 3px rgba(138,90,43,.1); }
.wenda-form textarea { min-height:140px; resize:vertical; }
.wenda-form .btn-primary { display:block; width:100%; padding:11px; background:#8a5a2b; color:#fff; border:none; border-radius:6px; font-size:15px; cursor:pointer; font-weight:600; }
.wenda-form .btn-primary:hover { background:#6b4420; }
.wenda-form p { text-align:center; margin-top:14px; font-size:13px; color:#999; }
.wenda-form p a { color:#8a5a2b; }
.wenda-tabs { display:flex; gap:0; margin-bottom:18px; border-bottom:2px solid #f0e6d2; }
.wenda-tabs a { padding:9px 18px; font-size:14px; color:#888; text-decoration:none; border-bottom:2px solid transparent; margin-bottom:-2px; transition:all .15s; }
.wenda-tabs a.on { color:#8a5a2b; border-bottom-color:#8a5a2b; font-weight:600; }
.wenda-item { background:#fff; border-radius:10px; padding:16px 20px; margin-bottom:12px; box-shadow:0 1px 3px rgba(0,0,0,.05); }
.wenda-item h3 { font-size:17px; margin-bottom:6px; }
.wenda-item h3 a { color:#2b2b2b; text-decoration:none; }
.wenda-item h3 a:hover { color:#8a5a2b; }
.wenda-item .wenda-meta { font-size:12px; color:#999; }
.wenda-answers { margin-top:8px; }
.wenda-answer { padding:10px 14px; background:#f9f6ef; border-radius:6px; margin-top:8px; font-size:14px; color:#444; line-height:1.7; }
.wenda-answer .answer-by { font-size:12px; color:#999; margin-top:4px; }
.wenda-user-bar { display:flex; align-items:center; gap:12px; margin-bottom:18px; padding:10px 14px; background:#fff; border-radius:8px; font-size:14px; box-shadow:0 1px 2px rgba(0,0,0,.04); }
.wenda-user-bar .user-name { font-weight:600; color:#5a3d1e; }
.wenda-user-bar .btn { padding:4px 12px; background:#8a5a2b; color:#fff; border-radius:4px; font-size:13px; text-decoration:none; }
.wenda-user-bar .btn:hover { background:#6b4420; }
.wenda-user-bar a { font-size:13px; color:#8a5a2b; }
.wenda-msg { text-align:center; padding:30px; color:#999; font-size:14px; }
.wenda-stats { text-align:center; padding:10px 14px; margin-bottom:14px; background:#faf6ec; border-radius:8px; font-size:14px; color:#5a3d1e; }
.wenda-stats b { color:#8a5a2b; }
.wenda-pagination { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:6px; margin-top:20px; padding:10px 0; }
.wenda-page-btn { display:inline-flex; align-items:center; justify-content:center; min-width:36px; height:36px; padding:0 10px; border:1px solid #e0d2b8; border-radius:6px; font-size:13px; color:#5a3d1e; text-decoration:none; background:#fff; transition:all .15s; }
.wenda-page-btn:hover { background:#faf6ec; border-color:#c4a162; }
.wenda-page-btn.active { background:#8a5a2b; color:#fff; border-color:#8a5a2b; font-weight:600; }
.wenda-page-dots { display:inline-flex; align-items:center; justify-content:center; width:36px; height:36px; font-size:13px; color:#999; }
.wenda-meta-mobile { display:none; }
.wenda-msg a { color:#8a5a2b; }
.pending-q { background:#fff; border-radius:10px; padding:14px 18px; margin-bottom:10px; border:1px solid #f0e6d2; }
.pending-meta { font-size:12px; color:#999; margin-bottom:4px; }
.pending-content { font-size:14px; color:#444; line-height:1.7; }

/* ===== 手机端调整 ===== */
@media (max-width: 860px) {
  .cigar-detail { padding:16px 14px; }
  .cigar-detail .cigar-name { font-size:19px; }
  .cigar-detail .cigar-img-wrap img { width:80%; height:auto; max-height:none; }
  .cigar-meta-label { width:65px; font-size:13px; }
  .cigar-meta-value { font-size:14px; }
  .cigar-meta-value.cigar-price { font-size:18px; }
  .wenda-auth-box { margin:20px 12px; padding:22px 18px; }
  /* 雪茄列表卡片手机端 */
  .fenlei-grid { grid-template-columns:repeat(2,1fr) !important; gap:10px; }
  .fenlei-card-info { padding:8px 10px 10px; }
  .fenlei-card-name { font-size:13px; }
}

/* ===== 后台复选框列表 ===== */
.checkbox-list { display:flex; flex-wrap:wrap; gap:8px 18px; }
.checkbox-list label { display:inline-flex; align-items:center; gap:5px; font-size:13px; color:#555; cursor:pointer; }
.checkbox-list input[type="checkbox"] { margin:0; width:15px; height:15px; cursor:pointer; }

/* ===== 验证码输入行 ===== */
.captcha-row { display:flex; align-items:center; gap:10px; margin-bottom:14px; }
.captcha-row input[type="text"] { flex:1; margin-bottom:0; }
.captcha-code { display:inline-block; padding:8px 16px; background:#f0e6d3; border:1px solid #c9a96e; font-weight:bold; font-size:18px; letter-spacing:4px; color:#5a3e1b; font-family:monospace; min-width:80px; text-align:center; cursor:pointer; border-radius:4px; user-select:none; }

/* ===== 问答权限操作按钮 ===== */
.wenda-answer .btn.mini { padding:2px 8px; font-size:11px; }

/* ===== 后台分组权限表格 ===== */
#groupPermTable table { width:100%; border-collapse:collapse; font-size:13px; }
#groupPermTable th, #groupPermTable td { padding:8px 12px; border:1px solid #e0d4c0; text-align:center; }
#groupPermTable th { background:#faf6ec; color:#5a3e1b; font-weight:600; }
#groupPermTable td:first-child { text-align:left; min-width:100px; }
#groupPermTable input[type="checkbox"] { width:16px; height:16px; cursor:pointer; }

/* ===== 问答Tag标签 ===== */
.wenda-tags-wrap { margin:14px 0; padding:8px 0; border-top:1px dashed #e0d4c0; border-bottom:1px dashed #e0d4c0; }
.wenda-tags-wrap .art-tags { margin-bottom:6px; }
.wenda-tag-tools { display:flex; align-items:center; flex-wrap:wrap; gap:6px; margin-top:8px; }
.wenda-tag-tools .btn.mini { white-space:nowrap; }
.wenda-tag-tools .txt { padding:4px 8px; border:1px solid #ccc; border-radius:3px; font-size:13px; }

/* ===== Tag页面雪茄列表 ===== */
.tag-section-title { font-size:15px; color:#5a3e1b; margin:20px 0 10px; padding-bottom:4px; border-bottom:2px solid #c8a96e; }
.tag-cigar-list { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:10px; }
.tag-cigar-item { display:flex; align-items:center; gap:8px; background:#faf6ec; border-radius:6px; padding:8px 12px; text-decoration:none; transition:background .2s; max-width:320px; }
.tag-cigar-item:hover { background:#c8a96e33; }
.tag-cigar-item img { border-radius:4px; object-fit:cover; flex-shrink:0; }
.tag-cigar-type { font-size:11px; color:#999; padding:1px 6px; background:#e8dcc8; border-radius:3px; white-space:nowrap; }
.tag-cigar-name { font-size:14px; color:#333; font-weight:600; flex:1; }

/* ===== 雪茄导航站（daohang） ===== */
.daohang-group { font-size:20px; margin:26px 0 14px; padding-bottom:8px; border-bottom:2px solid #c8a96e; color:#5a3d1e; display:flex; align-items:baseline; gap:8px; }
.daohang-group .en { font-size:13px; color:#999; font-weight:normal; }
.daohang-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(300px, 1fr)); gap:18px; align-items:start; }
.daohang-card { background:#fff; border:1px solid #f0e7d6; border-radius:12px; padding:16px; box-shadow:0 1px 3px rgba(0,0,0,.05); display:flex; gap:14px; transition:box-shadow .2s, transform .2s, border-color .2s; overflow:hidden; max-width:100%; }
.daohang-card:hover { box-shadow:0 6px 18px rgba(0,0,0,.09); transform:translateY(-2px); border-color:#e2cfa6; }
.daohang-card:target { box-shadow:0 0 0 3px #c8a96e; }
.dh-img { flex-shrink:0; width:150px; height:108px; border-radius:8px; overflow:hidden; background:#f4f0e8; align-self:flex-start; }
.dh-img img { width:100%; height:100%; object-fit:cover; display:block; }
.dh-img.empty { display:flex; align-items:center; justify-content:center; background:#ece3d3; }
.dh-img-ph { font-size:36px; color:#b39a72; font-weight:700; line-height:1; }
.dh-body { flex:1; min-width:0; display:flex; flex-direction:column; overflow:hidden; max-width:100%; }
.dh-head { display:flex; align-items:center; flex-wrap:wrap; gap:4px 8px; }
.dh-name { flex:0 0 100%; min-width:0; font-size:16px; font-weight:700; color:#3a2a14; text-decoration:none; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dh-name:hover { color:#8a5a2b; }
.dh-go-mini { flex-shrink:0; font-size:12px; color:#fff; background:#b23b2e; padding:3px 10px; border-radius:14px; text-decoration:none; font-weight:600; white-space:nowrap; }
.dh-go-mini:hover { background:#922f24; }
.dh-cat.badge { display:none; }
.dh-cat.domestic { background:#eaf3e6; color:#3c7d2e; }
.dh-cat.imported { background:#e6eef7; color:#2e5f9e; }
.dh-intro { font-size:13px; color:#666; line-height:1.6; margin:6px 0; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; word-break:break-word; overflow-wrap:break-word; }
.dh-contact { font-size:12px; color:#8a5a2b; margin:4px 0; display:flex; flex-wrap:wrap; gap:4px 12px; max-width:100%; overflow:hidden; }
.dh-ct-item { white-space:normal; word-break:break-all; }
.dh-ct-item b { color:#a88f63; font-weight:600; }
.dh-clink { color:#8a5a2b; text-decoration:none; }
.dh-clink:hover { text-decoration:underline; }
.dh-cols { display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; max-width:100%; overflow:hidden; }
.dh-col { font-size:12px; color:#5a3d1e; background:#f6f0e4; border:1px solid #ecdfc8; padding:3px 9px; border-radius:14px; text-decoration:none; transition:background .2s; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dh-col:hover { background:#c8a96e; color:#fff; }
.dh-col i { color:#a88f63; font-style:normal; }
.dh-col:hover i { color:#f3e9d4; }
.dh-stars { flex-shrink:0; white-space:nowrap; color:#e23b2e; font-size:14px; letter-spacing:2px; }
/* ===== 网站详情（正文模式） ===== */
.dh-detail { background:#fff; border:1px solid #ecdfc8; border-radius:12px; padding:26px 28px; }
.dh-detail-title { font-size:26px; color:#5a3d1e; margin:0 0 16px; }
.dh-detail-img { margin:0 0 18px; }
.dh-detail-img .dh-img { width:auto; height:auto; display:block; background:transparent; align-self:auto; }
.dh-detail-img .dh-img img { width:100%; height:auto; max-height:340px; object-fit:cover; border-radius:10px; border:1px solid #eee; }
.dh-detail-img .dh-img.empty { display:flex; }
.dh-go { margin:0 0 18px; }
.dh-go-btn { display:inline-block; background:linear-gradient(135deg,#c0392b,#e74c3c); color:#fff; font-size:15px; font-weight:700; padding:11px 26px; border-radius:30px; text-decoration:none; box-shadow:0 4px 14px rgba(192,57,43,.28); transition:transform .15s,box-shadow .15s; }
.dh-go-btn:hover { transform:translateY(-1px); box-shadow:0 6px 18px rgba(192,57,43,.36); color:#fff; }
.dh-line { font-size:15px; line-height:1.9; color:#444; padding:7px 0; border-bottom:1px dashed #f0e7d6; }
.dh-line:last-of-type { border-bottom:none; }
.dh-label { color:#8a6d3b; font-weight:600; }
.dh-col-link { color:#b23b2e; text-decoration:none; margin-right:4px; }
.dh-col-link:hover { text-decoration:underline; }
.dh-back { margin-top:20px; }
.dh-back a { color:#8a6d3b; text-decoration:none; font-size:14px; }
.dh-back a:hover { text-decoration:underline; }
@media (max-width: 860px) {
  .daohang-grid { grid-template-columns:1fr; }
  .daohang-card { flex-direction:column; }
  .dh-img, .dh-img.empty { width:100%; height:160px; align-self:stretch; }
  .dh-detail { padding:18px 16px; }
  .dh-detail-title { font-size:22px; }
  /* 列表页按设备隐藏：手机端显示 pc-hidden 项，隐藏 mobile-hidden 项 */
  .daohang-card.pc-hidden { display:flex !important; }
  .daohang-card.mobile-hidden { display:none !important; }
}

/* ===== 雪茄动态（列表上方，手机端上下滚动随机展示） ===== */
.dyn { background:#fff; border-radius:10px; padding:10px 14px; margin-bottom:14px; box-shadow:0 1px 3px rgba(0,0,0,.05); overflow:hidden; max-width:100%; }

/* ===== 手机端置顶文章（仅手机端显示，PC端通过 pc-hidden 隐藏） ===== */
.pin-arts { background:#fff; border-radius:10px; padding:10px 14px; margin-bottom:14px; box-shadow:0 1px 3px rgba(0,0,0,.05); }
.pin-hd { font-size:15px; font-weight:700; color:#5a3d1e; margin-bottom:8px; }
.pin-list { display:flex; flex-direction:column; gap:10px; }
.pin-item { display:flex; gap:10px; text-decoration:none; padding:8px; border-radius:8px; background:#faf6ec; transition:background .15s; }
.pin-item:active { background:#f0e6d2; }
.pin-thumb { flex-shrink:0; width:80px; height:60px; border-radius:6px; overflow:hidden; }
.pin-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.pin-body { flex:1; min-width:0; display:flex; flex-direction:column; gap:3px; }
.pin-title { font-size:14px; font-weight:600; color:#2b2b2b; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pin-desc { font-size:12px; color:#888; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.pin-meta { font-size:11px; color:#aaa; display:flex; align-items:center; gap:6px; }
.dyn-hd { font-size:15px; font-weight:700; color:#5a3d1e; margin-bottom:6px; }
.dyn-view { height:96px; overflow:hidden; position:relative; }
.dyn-track { animation:dynScroll 18s linear infinite; }
.dyn-view:hover .dyn-track { animation-play-state:paused; }
@keyframes dynScroll { from { transform:translateY(0); } to { transform:translateY(-50%); } }
.dyn-item { display:flex; align-items:center; gap:8px; height:32px; line-height:32px; overflow:hidden; text-decoration:none; font-size:13px; color:#444; white-space:nowrap; }
.dyn-item:hover { color:#8a5a2b; }
.dyn-nick { flex:0 0 auto; color:#b4772f; font-weight:600; }
.dyn-date { flex:0 0 auto; color:#999; font-size:12px; }
.dyn-text { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; }
@media (max-width: 860px) {
  .dyn-view { height:120px; }
  .dyn-item { height:40px; line-height:40px; font-size:13px; }
}

/* ===== 手机端全局溢出修复 ===== */
@media (max-width: 860px) {
  /* 确保所有容器不超出屏幕宽度 */
  .wrap { max-width:100%; }
  .main-layout { max-width:100%; overflow:hidden; }
  .content { min-width:0; max-width:100%; overflow-x:hidden; }

  /* 文章列表项：标题和摘要不超出 */
  .item { overflow:hidden; max-width:100%; }
  .item-body { min-width:0; max-width:100%; overflow:hidden; }
  .item h2 { word-break:break-word; overflow-wrap:break-word; }
  .item h2 a { display:block; }
  .excerpt { word-break:break-word; overflow-wrap:break-word; }

  /* 分页：确保"下一页"可见，项目自动换行 */
  .pagination {
    max-width:100%;
    overflow:hidden;
    flex-wrap:wrap;
    justify-content:center;
    box-sizing:border-box;
  }
  .pagination .page-nav,
  .pagination .page-num {
    white-space:nowrap;
  }

  /* 雪茄导航站卡片：文字和图片不溢出 */
  .daohang-card { overflow:hidden; max-width:100%; }
  .dh-body { min-width:0; max-width:100%; overflow:hidden; }
  .dh-intro { word-break:break-word; overflow-wrap:break-word; }
  .dh-contact { word-break:break-word; overflow-wrap:break-word; max-width:100%; overflow:hidden; }
  .dh-ct-item { white-space:normal; word-break:break-all; }
  .dh-cols { max-width:100%; overflow:hidden; }
  .dh-col { max-width:100%; }

  /* 文章页防溢出 */
  .article-page { overflow-x:hidden; max-width:100%; }
  .art-content { overflow-x:hidden; max-width:100%; }
  .art-content p, .art-content h2 { word-break:break-word; overflow-wrap:break-word; }
  .art-content img { max-width:100%; }
  .art-content pre, .art-content code { max-width:100%; overflow-x:auto; word-break:break-word; }
  .art-source { word-break:break-all; max-width:100%; overflow:hidden; }

  /* 雪茄详情页防溢出 */
  .cigar-detail { overflow-x:hidden; max-width:100%; }
  .cigar-meta-grid { max-width:100%; }
  .cigar-meta-value { word-break:break-word; overflow-wrap:break-word; min-width:0; }
  .cigar-detail .cigar-img-wrap img { max-width:100%; }

  /* TAG页面防溢出 */
  .tag-index { max-width:100%; }
  .tag-cigar-list { max-width:100%; overflow:hidden; }
  .tag-cigar-item { max-width:100%; }

  /* 侧边栏防溢出 */
  .sidebar { max-width:100%; overflow-x:hidden; }
  .side-box { max-width:100%; overflow-x:hidden; }
  .fenlei-side-grid { max-width:100%; }

  /* 雪茄分类页防溢出 */
  .fenlei-grid { max-width:100%; }
  .fenlei-card { max-width:100%; overflow:hidden; }

  /* 导航站详情页防溢出 */
  .dh-detail { max-width:100%; overflow-x:hidden; }
  .dh-line { word-break:break-word; overflow-wrap:break-word; max-width:100%; }
  .dh-detail-img img { max-width:100%; }

  /* 问答页防溢出 */
  .wenda-item { overflow-x:hidden; max-width:100%; }
  .wenda-answer { word-break:break-word; overflow-wrap:break-word; max-width:100%; }
  .wenda-meta-mobile { display:block; font-size:12px; color:#999; margin-top:6px; }
  .wenda-page-btn { min-width:32px; height:32px; padding:0 8px; font-size:12px; }
  .wenda-pagination { gap:4px; }

  /* 表格防溢出 */
  table { max-width:100%; }
}

/* ===== 雪茄门店样式 ===== */

/* PC端右侧栏 - 门店城市入口 */
.side-mendian .md-city-cloud { display:flex; flex-wrap:wrap; gap:6px; }
.side-mendian .md-city-link { display:inline-block; padding:4px 12px; background:#f8f0e3; border-radius:20px; font-size:13px; color:#5a3d1e; text-decoration:none; transition:all .2s; }
.side-mendian .md-city-link:hover { background:#e8d5b8; color:#3a2510; }
.side-mendian .md-city-all { display:block; width:100%; margin-top:8px; text-align:right; font-size:12px; color:#b4772f; text-decoration:none; }
.side-mendian .md-city-all:hover { text-decoration:underline; }

/* 手机端首页 - 门店推荐城市 */
.md-mobile-cities { background:#fff; border-radius:10px; padding:12px 14px; margin-bottom:14px; box-shadow:0 1px 3px rgba(0,0,0,.05); }
.md-mobile-hd { font-size:15px; font-weight:700; color:#5a3d1e; margin-bottom:8px; }
.md-mobile-grid { display:flex; flex-wrap:wrap; gap:8px; }
.md-mobile-city { display:inline-block; padding:6px 16px; background:linear-gradient(135deg,#f8f0e3,#efe0c8); border-radius:20px; font-size:14px; color:#5a3d1e; text-decoration:none; transition:all .2s; }
.md-mobile-city:hover, .md-mobile-city:active { background:linear-gradient(135deg,#e8d5b8,#dcc8a0); transform:scale(1.05); }
.md-mobile-city.md-mobile-all { background:linear-gradient(135deg,#5a3d1e,#8a5a2b); color:#fff; }

/* 门店列表页 - 城市导航 */
.md-city-nav { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:20px; padding:14px; background:#fff; border-radius:10px; box-shadow:0 1px 3px rgba(0,0,0,.05); }
.md-city-nav a { display:inline-flex; align-items:center; gap:4px; padding:6px 14px; background:#f8f0e3; border-radius:20px; text-decoration:none; color:#5a3d1e; font-size:14px; transition:all .2s; }
.md-city-nav a:hover { background:#e8d5b8; }
.md-city-nav .md-city-count { font-size:11px; color:#999; background:#fff; padding:1px 6px; border-radius:10px; }

/* 门店列表 - 卡片网格 */
.md-group { font-size:18px; color:#5a3d1e; margin:20px 0 12px; padding-bottom:6px; border-bottom:2px solid #f0e6d2; }
.md-group .en { font-size:14px; color:#999; font-weight:normal; }
.md-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(260px, 1fr)); gap:16px; margin-bottom:20px; }
.md-card { background:#fff; border-radius:10px; overflow:hidden; box-shadow:0 2px 6px rgba(0,0,0,.07); transition:all .25s; }
.md-card:hover { box-shadow:0 4px 12px rgba(0,0,0,.12); transform:translateY(-2px); }
.md-card a { text-decoration:none; color:inherit; display:block; }
.md-card-img { width:100%; height:160px; overflow:hidden; background:#f5f0e8; }
.md-card-img img { width:100%; height:100%; object-fit:cover; transition:transform .3s; }
.md-card:hover .md-card-img img { transform:scale(1.05); }
.md-card-body { padding:12px 14px; }
.md-card-body h3 { font-size:15px; color:#3a2510; margin-bottom:6px; line-height:1.4; }
.md-card-body .md-addr { font-size:12px; color:#888; margin-bottom:4px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.md-card-body .md-phone { font-size:12px; color:#b4772f; }

/* 门店详情页 */
.md-detail { background:#fff; border-radius:10px; padding:24px; box-shadow:0 1px 3px rgba(0,0,0,.05); }
.md-breadcrumb { font-size:13px; color:#999; margin-bottom:12px; }
.md-breadcrumb a { color:#b4772f; text-decoration:none; }
.md-breadcrumb a:hover { text-decoration:underline; }
.md-detail-title { font-size:24px; color:#3a2510; margin-bottom:16px; }
.md-detail-img { margin-bottom:16px; }
.md-detail-img img { width:100%; max-height:400px; object-fit:cover; border-radius:8px; }
.md-info-card { background:#faf7f2; border-radius:8px; padding:16px 20px; margin-bottom:20px; }
.md-info-card h3 { font-size:16px; color:#5a3d1e; margin-bottom:10px; }
.md-info-table { width:100%; border-collapse:collapse; }
.md-info-table td { padding:8px 0; font-size:14px; border-bottom:1px solid #f0e6d2; }
.md-info-table .md-label { width:100px; color:#999; font-weight:normal; }
.md-info-table td:not(.md-label) { color:#333; }
.md-info-table td a { color:#b4772f; text-decoration:none; }
.md-info-table td a:hover { text-decoration:underline; }
.md-article { line-height:1.8; font-size:15px; color:#333; }
.md-article h2 { font-size:20px; color:#3a2510; margin:20px 0 10px; }
.md-article h3 { font-size:17px; color:#5a3d1e; margin:18px 0 8px; }
.md-article p { margin-bottom:12px; }
.md-article ul { margin-bottom:14px; padding-left:20px; }
.md-article li { margin-bottom:6px; line-height:1.7; }
.md-article img { max-width:100%; border-radius:8px; margin:10px 0; }
.md-disclaimer { font-size:12px; color:#aaa; margin-top:20px; padding-top:12px; border-top:1px dashed #eee; }
.md-back { margin-top:20px; padding-top:16px; border-top:1px solid #f0e6d2; }
.md-back a { color:#b4772f; text-decoration:none; font-size:14px; }
.md-back a:hover { text-decoration:underline; }
.md-back-link { margin-bottom:12px; }
.md-back-link a { color:#b4772f; text-decoration:none; font-size:14px; }

@media (max-width:768px) {
  .md-grid { grid-template-columns:repeat(auto-fill, minmax(160px, 1fr)); gap:10px; }
  .md-card-img { height:120px; }
  .md-card-body { padding:8px 10px; }
  .md-card-body h3 { font-size:14px; }
  .md-detail { padding:16px; }
  .md-detail-title { font-size:20px; }
  .md-article { font-size:14px; }
  .md-article h2 { font-size:18px; }
  .md-article h3 { font-size:16px; }
  .md-info-table .md-label { width:80px; }
}
