/* 田伴网站 · 静态站原有样式（style.css）之外的补充：
   卡片改成链接后的外观、AI 生成标注、搜索框、分页、文章页排版。
   配色和圆角都用 style.css 里的变量。 */

/* ---- 「商家入驻四步」：静态站用内联样式写死了 4 列，把响应式规则盖掉了，手机上会溢出。改用类，跟着断点变 ---- */
.steps-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .steps-4 { grid-template-columns: repeat(2, 1fr); gap: 30px 0; } }
@media (max-width: 680px) { .steps-4 { grid-template-columns: repeat(2, 1fr); gap: 24px 12px; } }   /* 手机上两列，别拖得太长 */
@media (max-width: 340px) { .steps-4 { grid-template-columns: 1fr; } }                              /* 320 宽的屏幕两列太挤 */

/* ---- 卡片现在是 <a>：保持原来 div 的样子 ---- */
a.m-card, a.p-card { color: inherit; text-decoration: none; display: flex; flex-direction: column; }
a.feed-item { color: inherit; text-decoration: none; display: grid; grid-template-columns: 220px 1fr; }
.feed-meta { flex-wrap: wrap; row-gap: 2px; } .feed-meta > span { white-space: nowrap; }   /* 日期、店名、角标放不下就换行，别把店名拆开 */
@media (max-width: 720px) { .feed-body { padding: 16px 16px 14px; } }
a.m-card:hover, a.p-card:hover, a.feed-item:hover { text-decoration: none; }
.p-card { position: relative; }

/* ---- AI 生成标注（合规要求，默认带） ---- */
.aigc-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; line-height: 1; padding: 4px 8px; border-radius: 999px;
  color: var(--primary-2); background: rgba(238, 132, 55, .10); border: 1px solid rgba(238, 132, 55, .25);
  white-space: nowrap; vertical-align: middle;
}
.p-head .aigc-badge { flex-shrink: 0; }
/* 店名占满剩下的宽度，日期和角标靠右。原来日期靠 margin-left:auto 顶到右边，老内核会先把空间给 auto 外边距、把店名挤成一个字 */
.p-head .p-by { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-head .p-date { white-space: nowrap; margin-left: 0; }
.p-meta { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; }   /* 日期 + AI 生成 */
.p-head { flex-wrap: wrap; row-gap: 4px; }                                         /* 一行放不下就换行，不挤店名 */
.draft-badge {
  font-size: 11px; line-height: 1; padding: 4px 8px; border-radius: 999px;
  color: #8a5a00; background: #fff3d6; border: 1px solid #f0d48a; white-space: nowrap;
}

/* ---- 发现页 / 文章列表：搜索框、结果提示、空状态 ---- */
.explore-search { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; margin: 5px 5px 5px auto; }   /* 输入框占满、按钮按自己的宽度；grid 的 gap 老内核也认 */
.explore-search input {
  flex: 1; min-width: 0; max-width: 320px; padding: 9px 14px; border-radius: 999px;
  border: 1px solid var(--line-soft); background: var(--bg-card); color: var(--ink); font-size: 14px; outline: none;
}
.explore-search input:focus { border-color: var(--primary); }
.post-search { margin: 0 0 18px; }
.list-tools .explore-search { max-width: 480px; margin: 0 auto 14px; }   /* 电脑上搜索框在分类上面、居中 */
.explore-result { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.explore-empty { grid-column: 1 / -1; text-align: center; padding: 60px; color: var(--muted); }
.tag-bar { flex-wrap: wrap; }
.tag-bar .chip { text-decoration: none; font-size: 13px; padding: 6px 14px; }
.tag-bar .chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---- 分页 ---- */
.pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 36px 0 8px; color: var(--muted); font-size: 14px; }
.pagination a {
  padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line-soft);
  background: var(--bg-card); color: var(--ink-2); text-decoration: none; transition: all .25s;
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }

/* ---- 文章页 ---- */
.article { max-width: 780px; margin: 0 auto; padding: 28px 20px 10px; }
.article-head { padding: 0 8px 8px; }
.article-head .tag { text-decoration: none; margin-right: 6px; }
.article h1 { font-size: clamp(24px, 3.2vw, 34px); line-height: 1.35; margin: 12px 0 14px; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.article-author { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); text-decoration: none; font-weight: 600; }
.article-author img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.article-cover { width: 100%; border-radius: var(--r-lg); margin: 8px 0 22px; display: block; }
.article-body { font-size: 17px; line-height: 1.9; color: var(--ink); }
.article-body > :first-child { margin-top: 0; }
.article-body p { margin: 0 0 1.1em; }
.article-body h2, .article-body h3 { margin: 1.6em 0 .7em; line-height: 1.4; }
.article-body h2 { font-size: 22px; } .article-body h3 { font-size: 19px; }
.article-body img { max-width: 100%; height: auto; border-radius: var(--r-md); display: block; margin: 14px auto; cursor: zoom-in; }
.article-body figure { margin: 18px 0; }
.article-body figure img { margin: 0; }
.article-body figcaption { margin-top: 8px; text-align: center; font-size: 14px; line-height: 1.6; color: var(--muted); }
.article-body a { color: var(--primary-2); }
.article-body blockquote { margin: 1.2em 0; padding: 10px 18px; border-left: 3px solid var(--primary); background: var(--bg-2); border-radius: 0 var(--r-md) var(--r-md) 0; color: var(--ink-2); }
.article-body ul, .article-body ol { padding-left: 1.4em; margin: 0 0 1.1em; }
.article-body li { margin: .3em 0; }
.article-body pre { background: var(--bg-3); padding: 14px 16px; border-radius: var(--r-md); overflow: auto; font-size: 14px; }
.article-body code { font-size: .9em; background: var(--bg-3); padding: 2px 6px; border-radius: 6px; }
.article-body pre code { background: none; padding: 0; }
.article-body table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: 15px; }
.article-body th, .article-body td { border: 1px solid var(--line-soft); padding: 8px 10px; text-align: left; }
.article-body th { background: var(--bg-2); }
.article-merchant {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: 36px; padding: 16px 18px; border-radius: var(--r-lg);
  background: var(--bg-card); border: 1px solid var(--line-soft);
}
.article-merchant img { width: 64px; height: 64px; border-radius: var(--r-md); object-fit: cover; }
.article-merchant > div { flex: 1; min-width: 200px; }
.article-merchant .name { font-weight: 700; display: flex; align-items: center; gap: 8px; }
.article-merchant .desc { color: var(--ink-2); font-size: 14px; margin-top: 4px; }
.article-merchant .meta { color: var(--muted); font-size: 13px; margin-top: 4px; }

@media (max-width: 720px) {
  .article { padding-top: 16px; }
  .article-body { font-size: 16px; }
  /* 列表页（发现商家、商家动态）手机上：标题只留一行；搜索框吸顶；分类 / 标签一行横着滑，结果紧跟在下面。
     原来标题介绍加大段、标签折成四行，结果被推到两屏以外，搜一次就得重新往下拉 */
  .list-head { padding: 14px 0 8px; }
  .list-head .breadcrumb, .list-head p { display: none; }
  .list-head h1 { font-size: 20px; margin: 0; }
  .list-tools { position: sticky; top: 70px; z-index: 8; background: var(--bg); margin: 0 -24px; padding: 8px 24px 4px; }
  .list-tools .explore-search { margin: 0 0 6px; width: 100%; }
  .list-tools.expanded { position: static; }                /* 标签点了「展开全部」：换行铺开，不再吸顶 */
  .filter-bar { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; padding: 2px 0 4px; }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-bar > .chip { flex: 0 0 auto; margin: 3px; }
  .filter-bar.expanded { flex-wrap: wrap; overflow: visible; justify-content: center; }
  a.feed-item { grid-template-columns: 1fr; }                /* 手机上图在上、字在下（原来留 110px 给图，字被挤成一条） */
}

/* ---- 2026-12-01 从模板的标签上挪下来的样式 ----
   内容安全策略（CSP）不允许写死在标签上的样式，原来页面里 57 处 style="…" 全部换成了这里的类。
   值和原来一字不差，只是有了名字。按页面分组：通用的小工具在最前面。 */
.sec-alt { background: var(--bg-2); }
.mt-12 { margin-top: 12px; } .mt-14 { margin-top: 14px; } .mt-16 { margin-top: 16px; } .mt-18 { margin-top: 18px; } .mt-40 { margin-top: 40px; }
.pt-0 { padding-top: 0; } .pt-12 { padding-top: 12px; } .pt-20 { padding-top: 20px; } .pt-24 { padding-top: 24px; }
.pt-30 { padding-top: 30px; } .pt-50 { padding-top: 50px; }
.centered { justify-content: center; }
.align-left { text-align: left; }
.text-primary { color: var(--primary); }
.chip-count { opacity: .6; }
/* 标签行默认折叠：第 13 个起藏起来，选中的那个总露着（展开由 main.js 切 .expanded；没脚本时不加 .collapsible，全显示） */
.tag-bar.collapsible:not(.expanded) .chip.more:not(.active) { display: none; }
.chip-toggle { background: none; border-style: dashed; cursor: pointer; font: inherit; }
.chip-toggle[hidden] { display: none; }
.rating-count { opacity: .8; }
.ico-baseline { vertical-align: -1px; }
.svg-defs { position: absolute; }
.more-link { text-align: center; margin-top: 28px; }
.more-link-lg { text-align: center; margin-top: 40px; }

/* 首页 */

/* 页脚、发现页、商家页 */
.footer .brand-logo { filter: brightness(0) invert(1); opacity: .9; }
.contact-ico { margin-top: 4px; flex-shrink: 0; }
.crumb-bar { padding-top: 18px; }
.muted-note { color: var(--muted); font-size: 14px; }
.contact-card-flush { padding: 0; overflow: hidden; }

/* 关于田伴 */
.about-actions { display: flex; gap: 14px; margin-top: 24px; flex-wrap: wrap; }
.em-primary { color: var(--primary); font-style: normal; }
.geo-intro { max-width: 760px; margin: 0 auto; color: var(--ink-2); font-size: 16px; line-height: 1.9; }
.geo-demo { max-width: 760px; margin: 32px auto; background: var(--bg-card); border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  padding: 28px 32px; box-shadow: var(--shadow-sm); }
.geo-demo-row { display: flex; gap: 12px; align-items: flex-start; }
.geo-demo-ico { width: 36px; height: 36px; border-radius: 10px; background: var(--primary); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.geo-demo-q { font-family: var(--font-serif); font-size: 18px; color: var(--ink); }
.geo-demo-answer { border-left: 3px solid var(--primary-2); margin: 18px 0 18px 18px; padding-left: 18px; }
.geo-demo-a { font-size: 15px; color: var(--ink-2); }
.geo-demo-note { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--primary-2); }
.geo-label { font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.why-farmstay { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; max-width: 1000px; margin: 0 auto; }
.why-farmstay-img { border-radius: var(--r-xl); box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; object-fit: cover; }
.why-farmstay-text { color: var(--ink-2); font-size: 15.5px; line-height: 1.9; }
.step-num-2 { background: var(--primary-2); }
.step-num-3 { background: var(--primary-soft); }
.step-num-4 { background: #8a5a2b; }
.join-note { text-align: center; font-size: 12px; color: var(--muted); margin-top: 14px; }
@media (max-width: 800px) {
  .why-farmstay { grid-template-columns: 1fr; gap: 24px; }       /* 原来在手机上硬挤成两列 */
}

/* ---- 商家中心（App 里的「田伴圈」进来的人用，手机上为主）---- */
.me { padding: 20px 0 48px; max-width: 760px; margin: 0 auto; }
.me-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.me-head h1 { font-size: 22px; margin: 0; }
.me-logout { color: var(--muted); font-size: 13px; text-decoration: none; }
.me-tabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.me-tabs a { text-decoration: none; color: var(--ink-2); padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-soft); background: var(--bg-card); font-size: 14px; }
.me-tabs a.on { background: var(--primary-2); border-color: var(--primary-2); color: #fff; }
.me-tabs small { opacity: .65; }
.me-card { background: var(--bg-card); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 20px 18px; margin-bottom: 14px; box-shadow: var(--shadow-sm); }
.me-card h3 { margin: 0 0 12px; font-size: 16px; }
.me-card h3 small { color: var(--muted); font-weight: 400; font-size: 13px; }
.me-hero h2 { margin: 4px 0 10px; font-size: 22px; }
.me-hero h1 { font-size: 22px; margin: 4px 0 10px; }
.me-points { padding-left: 1.2em; color: var(--ink-2); font-size: 15px; line-height: 1.9; margin: 0 0 18px; }
.me-status { border-left: 4px solid var(--line); }
.st-pending { border-left-color: #d9a441; }
.st-rejected { border-left-color: #b5472f; }
.st-ok { border-left-color: #5a7a3a; }
.me-status-title { font-weight: 700; font-size: 18px; margin-bottom: 6px; }
.me-reason { color: #b5472f; background: #f8e6e1; border-radius: var(--r-sm); padding: 10px 12px; }
.me-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; align-items: center; }
.me-actions-end { justify-content: flex-end; }
.me-note { color: var(--muted); font-size: 13px; margin: 12px 0 0; }
.me-muted { color: var(--muted); font-size: 13px; }
.me-empty { text-align: center; color: var(--muted); padding: 36px 18px; }
.me-form .form-field { margin-bottom: 14px; font-weight: 600; color: var(--ink-2); font-size: 14px; }
.me-form .form-field small { font-weight: 400; color: var(--muted); }
.me-form .form-field input, .me-form .form-field select, .me-form .form-field textarea { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--white); color: var(--ink); outline: none; }
.me-form .form-field input:focus, .me-form .form-field select:focus, .me-form .form-field textarea:focus { border-color: var(--primary-soft); }
.me-cover { width: 100%; border-radius: var(--r-md); margin-bottom: 10px; display: block; }
.me-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.me-thumbs img { width: 84px; height: 84px; object-fit: cover; border-radius: var(--r-sm); display: block; }
.me-thumb { position: relative; }
.me-thumb button { position: absolute; top: -6px; right: -6px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; cursor: pointer; line-height: 1; }
.me-post-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.me-post-title { margin: 0 0 8px; font-size: 17px; }
.me-post-cover { width: 100%; border-radius: var(--r-md); margin-bottom: 10px; display: block; }
.me-post-text { color: var(--ink-2); font-size: 14px; margin: 0 0 4px; }
.me-steps .step h3 { font-size: 16px; }
.me-steps .step p { font-size: 13px; }
.badge { display: inline-block; font-size: 12px; line-height: 1; padding: 5px 9px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); border: 1px solid var(--line-soft); }
.badge-published { background: #eaf1e1; color: #5a7a3a; border-color: #cfdcbf; }
.badge-pending { background: #fff3d6; color: #8a5a00; border-color: #f0d48a; }
.badge-draft { background: var(--bg-2); color: var(--ink-2); }
.badge-rejected { background: #f8e6e1; color: #b5472f; border-color: #e8c4ba; }
.badge-offline { background: #f0eae1; color: var(--muted); }
.alert { padding: 12px 14px; border-radius: var(--r-sm); margin-bottom: 14px; font-size: 14px; }
.alert.ok { background: #eaf1e1; color: #4a6a2a; border: 1px solid #cfdcbf; }
.alert.err { background: #f8e6e1; color: #b5472f; border: 1px solid #e8c4ba; }
.alert.warn { background: #fff3d6; color: #8a5a00; border: 1px solid #f0d48a; }
.btn-danger { color: #fff; background: #b5472f; border-color: #b5472f; }
.btn-danger:hover { color: #fff; background: #963a26; border-color: #963a26; }
.post-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 18px 0; }
.post-gallery img { width: 100%; border-radius: var(--r-md); display: block; aspect-ratio: 4 / 3; object-fit: cover; }
.preview-bar { background: #8a5a00; color: #fff; text-align: center; padding: 10px 16px; font-size: 14px; }
@media (max-width: 680px) { .me { padding-top: 12px; } .me-card { padding: 16px 14px; } }

/* 选文件的按钮：浏览器自带的「选择文件」框在手机上又丑又不统一，用一层透明的输入框盖在按钮上，点按钮就是点它 */
.file-pick { position: relative; display: inline-flex; align-items: center; max-width: 100%; padding: 11px 18px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--white); color: var(--ink); font-size: 15px; font-weight: 600; cursor: pointer; overflow: hidden; }
.file-pick input[type="file"] { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.file-pick .file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- 电脑上登录商家中心（输登录码）、商家中心里的登录码 ---- */
.login-box { max-width: 440px; margin: 24px auto; }
.login-box h1 { font-size: 22px; margin: 0 0 10px; }
.login-box .me-muted { margin: 0 0 16px; line-height: 1.7; }
.me-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace; font-size: 22px; letter-spacing: 1px; white-space: nowrap;
  background: var(--bg-2); border: 1px dashed var(--line); border-radius: var(--r-sm); padding: 12px 16px; margin: 10px 0; text-align: center; }


/* ---- 看大图（main.js 的 initLightbox 现搭的全屏层）---- */
.lb { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 100; background: #14100c; }   /* 实底：半透明的话后面页面的字还看得见，干扰看图 */
.lb[hidden] { display: none; }
.lb-stage { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden; touch-action: none; }
.lb-out { position: absolute; left: 0; right: 0; top: 0; bottom: 0; margin: auto; pointer-events: none; }   /* 滑出去的旧图：居中叠在新图上 */
.lb-img { max-width: 100%; max-height: 100%; object-fit: contain; transform-origin: center center; transition: transform .18s ease-out;
  user-select: none; -webkit-user-drag: none; }
.lb-count { position: absolute; bottom: 28px; left: 0; right: 0; text-align: center; color: rgba(255, 255, 255, .78); font-size: 14px; pointer-events: none; }
.lb-close, .lb-prev, .lb-next { position: absolute; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(0, 0, 0, .45); color: #fff; line-height: 1; display: flex; align-items: center; justify-content: center; }   /* 深色底：图亮的时候按钮也看得清 */
.lb-close { top: 14px; right: 14px; font-size: 28px; }
.lb-prev, .lb-next { top: 50%; margin-top: -22px; font-size: 30px; }
.lb-prev { left: 12px; } .lb-next { right: 12px; }
body.lb-open { overflow: hidden; }
.gallery img, .post-gallery img { cursor: zoom-in; }
.lb-single .lb-prev, .lb-single .lb-next, .lb-single .lb-count { display: none; }   /* 只有一张图：不要箭头和计数 */

/* ---- 图文编辑页的「预览」：整屏的一层（电脑上是居中的一块），里面是按文章页模板渲染出来的文章（main.js 的 initPostPreview）。
   手机上占满屏幕，滚动是它自己的。比 .lb（看大图）低一层：预览里的照片点开要看得到大图。
   这一层里不用 flex 的 gap：它一开始是藏着的，手机兼容脚本量不出宽度 ---- */
.post-preview { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 90; background: rgba(20, 16, 12, .55); }
.post-preview[hidden] { display: none; }
.post-preview-panel { width: 100%; height: 100%; background: var(--bg); display: flex; flex-direction: column; overflow: hidden; }
.post-preview-bar { flex: none; display: flex; align-items: center; padding: 10px 14px; background: var(--bg-card); border-bottom: 1px solid var(--line-soft); }
.post-preview-note { margin-left: 12px; min-width: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.post-preview-scroll { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.post-preview .article { padding-top: 20px; }
.preview-empty { color: var(--muted); }
body.preview-open { overflow: hidden; }
@media (min-width: 760px) {
  .post-preview-panel { width: calc(100% - 56px); height: auto; max-width: 820px; max-height: calc(100vh - 56px); margin: 28px auto; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
}

/* ---- 商家页「服务项目」：名称和价格一行，放不下时价格整块换到下一行（原来只在手机上这样，窗口 1000 左右时价格被从「¥88/人」中间断开） ---- */
.service-name { flex-wrap: wrap; gap: 2px 10px; }
.service-price { white-space: nowrap; }

/* ---- 正文按块编辑（main.js 的 initBodyBlocks）：一段是一块、一张照片是一块，右边的 ↑ ↓ 调顺序、✕ 删掉；块之间的「＋」加一段或放一张照片。
   这里的间距都用外边距、不用 flex 的 gap：块是脚本现搭的，老内核上每渲染一遍都得再补一次（render 里调了 flexGapFix） ---- */
.me-body.has-blocks > textarea { display: none; }            /* 有脚本时正文在块里改，文本框只留给表单交 */
.me-body-label { display: block; }
.body-blocks[hidden] { display: none; }
.bb-gap { position: relative; padding-top: 30px; margin: 1px 0; }        /* 上面 30px 是「＋」的地盘；挑选条开着时往下长，不压着下一块 */
.bb-add { position: absolute; left: 50%; top: 0; width: 30px; height: 30px; margin-left: -15px; padding: 0; border: 1px dashed var(--line);
  border-radius: 50%; background: var(--bg); color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; }
.bb-add:hover, .bb-add[aria-expanded="true"] { border-style: solid; border-color: var(--primary-2); color: var(--primary-2); }
.bb-add:focus { outline: none; box-shadow: 0 0 0 3px var(--primary-soft); }        /* 点完的焦点框跟着圆走，不是外面套一个方框 */
.bb-btn:focus { outline: none; }
.bb-picker { margin: 2px 0 6px; padding: 8px 12px; background: var(--bg-2); border-radius: var(--r-sm); font-size: 14px; }
.bb-pick { padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-card); color: var(--ink-2);
  font: inherit; font-size: 13px; margin-right: 10px; cursor: pointer; white-space: nowrap; }
.body-block { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--white); }
.bb-main { flex: 1; min-width: 0; }
.me-form .me-body .bb-text { display: block; width: 100%; min-height: 50px; margin: 0; padding: 12px 14px; border: 0; border-radius: var(--r-sm);
  background: transparent; font: inherit; font-size: 16px; line-height: 1.7; color: var(--ink); outline: none; resize: none; overflow: hidden; box-sizing: border-box; }
.bb-pic { padding: 8px 10px 4px; background: var(--bg-2); border-radius: var(--r-sm) var(--r-sm) 0 0; min-height: 64px; text-align: center; }
.bb-pic img { max-width: 100%; max-height: 240px; border-radius: 4px; display: inline-block; vertical-align: middle; }
.me-form .me-body .bb-cap { display: block; width: 100%; margin: 0; padding: 8px 14px 10px; border: 0; border-radius: 0 0 var(--r-sm) var(--r-sm);
  background: transparent; font: inherit; font-size: 14px; color: var(--ink-2); outline: none; box-sizing: border-box; }
.bb-tools { flex: none; display: flex; flex-direction: column; justify-content: center; padding: 4px 3px; border-left: 1px solid var(--line-soft); }
.bb-btn { width: 34px; height: 34px; margin: 2px 0; padding: 0; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--ink-2);
  font-size: 16px; line-height: 1; cursor: pointer; }
.bb-btn:hover { background: var(--bg-2); }
.bb-btn:disabled { opacity: .25; cursor: default; background: transparent; }
.bb-del:hover { color: #b5472f; }
.body-block.is-new { animation: bb-flash 1.4s ease-out; }
@keyframes bb-flash { from { background-color: var(--primary-soft); } to { background-color: var(--white); } }
.toast.has-action { pointer-events: auto; }                  /* 带按钮的提示（「撤销」）要收得住点按 */
.toast-btn { margin-left: 12px; padding: 4px 12px; border: 1px solid rgba(255, 255, 255, .6); border-radius: 999px; background: transparent;
  color: #fff; font: inherit; cursor: pointer; }

/* 「＋」里选相册 / 拍照用的选文件的框：藏着，脚本让它弹出来（表单里那几条通用的 input 规则会盖掉 hidden，这里压回去） */
.bb-file { display: none !important; }
.bb-pick-row { margin-bottom: 4px; }
.body-block.is-wait { border-style: dashed; background: var(--bg-2); }
.bb-wait { padding: 18px 14px; color: var(--muted); font-size: 14px; }
.file-row { display: flex; flex-wrap: wrap; align-items: center; }    /* 「选照片」和「拍照」并排（表单的每一格自己是竖着排的） */
.file-pick + .file-pick { margin-left: 10px; }               /* 两个按钮之间的间距（不用 flex 的 gap：老内核不认） */
.me-form .muted-note { margin: 0 0 16px; }                     /* 正文下面那行提示和下一格之间留点空 */
