/*!
 * en-func.css —— 英文站功能层样式（2026-09-26）
 * 只服务 /en/login /en/account /en/post /en/membership /en/market /en/listing
 * 六张功能页与顶栏账号按钮。设计口径与 en.css 一致：暖白底 / #2b4f9c 主色 /
 * .wrap 同款 1180 容器（en.css 的 .en-wrap）。改这里的样式不用动 en.css。
 */
/* 顶栏账号按钮样式已移入 en.css（2026-09-26）：它出现在**每页**顶栏，
   放这里只有功能页能吃到样式，普通页顶栏的 Sign in 会裸奔 + 换行两行。 */

.en-func-main { padding: 26px 0 60px; }
.en-func-narrow { max-width: 760px; margin: 0 auto; }
.en-func-head h1 { font-size: 26px; font-weight: 800; letter-spacing: -.01em; margin: 0 0 6px; }
.en-func-head p { margin: 0 0 22px; color: var(--c-ink-light); font-size: 14.5px; }

.en-panel {
  background: #fff; border: 1px solid #eadfd2; border-radius: 14px;
  padding: 22px 22px 24px; box-shadow: 0 10px 30px -22px rgba(38, 33, 29, .35);
}
.en-panel + .en-panel { margin-top: 16px; }
.en-panel h2 { font-size: 16px; font-weight: 800; margin: 0 0 14px; }

/* 表单 */
.en-field { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 8px 14px; align-items: center; margin-bottom: 12px; }
.en-field > label { font-size: 13px; font-weight: 700; color: var(--c-ink-soft); }
.en-field input, .en-field select, .en-field textarea {
  width: 100%; box-sizing: border-box; padding: 9px 11px; font-size: 14px; font-family: inherit;
  border: 1px solid #ddd2c4; border-radius: 9px; background: #fffdfa; color: var(--c-ink);
}
.en-field input:focus, .en-field select:focus, .en-field textarea:focus { outline: 2px solid #bcd0f5; border-color: var(--c-primary); }
.en-field textarea { min-height: 120px; resize: vertical; }
.en-field-full { grid-column: 1 / -1; }
.en-form-msg { margin: 6px 0 0; font-size: 13.5px; color: var(--c-ink-light); min-height: 1.2em; }
.en-form-msg.err { color: #b3261e; font-weight: 700; }
.en-form-msg.ok { color: #14714a; font-weight: 700; }
/* 详情页附件下载链接 / 需求补充文件（点击新窗口打开原文件） */
.en-attach-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--c-primary); text-decoration: none; border-bottom: 1px dashed currentColor; word-break: break-all; }
.en-attach-link::before { content: '⇩'; font-size: 13px; line-height: 1; }
.en-attach-link:hover { opacity: .82; }

.en-btn.primary, .en-btn.ghost { display: inline-block; padding: 10px 18px; font-size: 14px; font-weight: 800; border-radius: 10px; border: 1px solid transparent; cursor: pointer; text-decoration: none; }
.en-btn.primary { background: var(--c-primary); color: #fff; }
.en-btn.primary:hover { filter: brightness(1.08); }
.en-btn.ghost { background: #fff; color: var(--c-primary); border-color: var(--c-primary); }
.en-btn.ghost.is-current { color: var(--c-ink-light); border-color: #ddd2c4; cursor: default; }
.en-btn:disabled { opacity: .45; cursor: default; }

/* 登录页 tabs */
.en-auth-tabs { display: flex; gap: 6px; margin-bottom: 18px; }
.en-auth-tab { flex: 1; padding: 10px 8px; font-size: 14px; font-weight: 800; text-align: center; cursor: pointer; border: 1px solid #eadfd2; border-radius: 10px; background: #fffdfa; color: var(--c-ink-soft); }
.en-auth-tab.active { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.en-auth-pane { display: none; }
.en-auth-pane.active { display: block; }
.en-auth-note { margin-top: 14px; font-size: 13px; color: var(--c-ink-light); }

/* 徽标 */
.en-badge { display: inline-block; padding: 3px 9px; font-size: 11.5px; font-weight: 800; border-radius: 99px; }
.en-badge.product { background: #e8f1ff; color: #2456b0; }
.en-badge.demand { background: #fdeee4; color: #b05a1c; }
.en-badge.zh { background: #f0ece6; color: #7a6f63; }
.en-badge.level-regular { background: #f0ece6; color: #6b6157; }
.en-badge.level-premium { background: #fff3d6; color: #8a6410; }
.en-badge.level-vip { background: #2f2a26; color: #ffd77a; }

/* 账户页 */
.en-acc-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.en-acc-top b { font-size: 19px; }
#acc-id { color: var(--c-ink-light); font-size: 13.5px; }
.en-acc-quota { margin-top: 10px; font-size: 14px; color: var(--c-ink-soft); }
.en-acc-actions { margin-left: auto; display: flex; gap: 8px; }

/* 会员页 */
.en-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.en-plan { position: relative; background: #fff; border: 1px solid #eadfd2; border-radius: 14px; padding: 20px 18px 22px; }
.en-plan.hot { border-color: var(--c-primary); box-shadow: 0 14px 34px -24px rgba(43, 79, 156, .55); }
.en-plan.current { outline: 2px solid #14714a; outline-offset: -2px; }
.en-plan > b { font-size: 16px; font-weight: 800; }
.en-plan-price { font-size: 26px; font-weight: 800; margin: 10px 0 12px; color: var(--c-primary); }
.en-plan-price small { font-size: 13px; font-weight: 600; color: var(--c-ink-light); }
.en-plan ul { margin: 0 0 16px; padding: 0 0 0 18px; font-size: 13.5px; color: var(--c-ink-soft); display: grid; gap: 6px; }
.en-plan .en-btn { display: block; text-align: center; }
.en-plan-flag { position: absolute; top: -11px; right: 14px; background: #2f2a26; color: #ffd77a; font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 99px; }
.en-mbr-note { margin-top: 16px; font-size: 13.5px; color: var(--c-ink-soft); }
.en-mbr-note b { color: var(--c-ink); }

/* 市场 */
.en-mkt-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.en-mkt-tab { padding: 8px 16px; font-size: 14px; font-weight: 800; border: 1px solid #eadfd2; border-radius: 99px; background: #fffdfa; cursor: pointer; color: var(--c-ink-soft); }
.en-mkt-tab.active { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.en-mkt-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-size: 13px; color: var(--c-ink-light); }
.en-mkt-meta button { padding: 6px 12px; font-size: 12.5px; font-weight: 700; border: 1px solid #ddd2c4; background: #fff; border-radius: 8px; cursor: pointer; }
.en-mkt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.en-mkt-card { display: block; background: #fff; border: 1px solid #eadfd2; border-radius: 12px; padding: 14px 15px; text-decoration: none; color: inherit; transition: .15s; overflow: hidden; }
/* 列表缩略图（2026-09-29 用户「产品图片呢」）：中文列表卡是带图的，英文原来纯文字。
   有图才加 .has-thumb，把 padding 转移到 .en-mkt-body —— 无图卡片保持原样，不受影响。 */
.en-mkt-card.has-thumb { padding: 0; }
.en-mkt-card.has-thumb .en-mkt-body { padding: 13px 15px 15px; }
.en-mkt-thumb { display: block; aspect-ratio: 16 / 10; background: #faf7f3; border-bottom: 1px solid #f0e7db; overflow: hidden; }
.en-mkt-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.en-mkt-card:hover { border-color: var(--c-primary); box-shadow: 0 10px 24px -18px rgba(38, 33, 29, .45); }
.en-mkt-card b { display: block; font-size: 14.5px; line-height: 1.35; margin: 8px 0 4px; }
.en-mkt-card p { margin: 0 0 6px; font-size: 12.5px; color: var(--c-ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.en-mkt-card .en-mkt-price { color: #b05a1c; font-weight: 800; font-size: 14px; }
.en-mkt-card small { color: var(--c-ink-light); font-size: 11.5px; }
.en-mkt-tags { display: flex; gap: 6px; }
.en-empty { padding: 26px 4px; color: var(--c-ink-light); font-size: 14px; }

/* ==========================================================================
 * 列表页「筛选检索」条（/en/products /en/demands /en/quotes /en/market）
 * —— 2026-09-29 批次 1：用户要求英文站全部模仿中文站的功能与样式
 * ---------------------------------------------------------------------------
 * 中文样板 = /demands 的 .catalog-filter（实测 1240×180，两大行）：
 *   主行 = 关键词（⌕ 图标 + 输入）+ 全部类型 + 省 + 市 + 区县 + 搜索按钮
 *   次行 = 1/2/3 级类目三级级联（.catalog-levels，3 等分）
 *   末行 = 清空筛选 + 口径提示
 * 这里逐条对齐量出来的口径：底 #fffaf5 / 边 var(--c-line) / 圆角 15px / 控件高 42px、
 * 圆角 8px / 提示 11.5px。差异只有文案（英文）与列宽 —— 中文是 1240 的双列（左 244 侧栏），
 * 英文列表是 1180 单列，所以主行直接 5 轨铺满，不再留侧栏位。
 * ⚠️ 每条 grid 轨道都写成 minmax(0, …) 或 minmax(<px>, …)：裸 1fr 会被 <select> 的
 *    默认 min-width（Safari/Edge 下按最长 option 撑）顶破容器，这是本站的老毛病。
 * ========================================================================== */
.en-filt, .en-filt * { box-sizing: border-box; }
.en-filt { background: #fffaf5; border: 1px solid var(--c-line); border-radius: 15px; padding: 14px 14px 12px; margin: 0 0 20px; }
.en-filt-main { display: grid; grid-template-columns: minmax(210px, 1.7fr) 150px 132px 142px auto; gap: 10px; align-items: center; }
.en-filt-main select, .en-filt-levels select {
  width: 100%; min-width: 0; min-height: 42px; padding: 0 30px 0 12px; font-size: 13.5px; font-family: inherit;
  border: 1px solid var(--c-line); border-radius: 8px; background: #fff; color: var(--c-ink); outline: none; cursor: pointer;
}
.en-filt-main select:focus, .en-filt-levels select:focus { border-color: var(--c-primary); }
.en-filt-main select:disabled, .en-filt-levels select:disabled { background: #f1ece5; color: #a8a19a; cursor: not-allowed; }
.en-filt-kw { display: flex; align-items: center; gap: 7px; min-height: 42px; padding: 0 11px; background: #fff; border: 1px solid var(--c-line); border-radius: 8px; color: var(--c-primary); }
.en-filt-kw span { flex: none; font-size: 15px; line-height: 1; }
.en-filt-kw input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 13.5px; font-family: inherit; color: var(--c-ink); }
.en-filt-kw:focus-within { border-color: var(--c-primary); }
.en-filt-go { justify-self: end; white-space: nowrap; }

.en-filt-sortrow { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 12px; font-size: 12px; color: var(--c-ink-light); }
.en-filt-sortrow em { font-style: normal; font-weight: 700; color: var(--c-ink-soft); }
.en-filt-sortrow button { padding: 5px 11px; font: inherit; font-size: 12px; font-weight: 700; border: 1px solid var(--c-line); border-radius: 99px; background: #fff; color: var(--c-ink-soft); cursor: pointer; }
.en-filt-sortrow button:hover { border-color: var(--c-primary); color: var(--c-primary); }
.en-filt-sortrow button.on { background: #fbeae6; border-color: var(--c-primary); color: var(--c-primary); }

.en-filt-levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.en-filt-levels label { display: grid; gap: 5px; min-width: 0; font-size: 12px; font-weight: 700; color: var(--c-ink-soft); }

.en-filt-tip { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 13px; font-size: 11.5px; color: var(--c-ink-light); }
.en-filt-clear { padding: 0; border: 0; background: none; font: inherit; font-size: 11.5px; font-weight: 800; color: var(--c-primary); cursor: pointer; }
.en-filt-clear:hover { text-decoration: underline; }

.en-filt-chips { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.en-filt-chips:empty { display: none; }
.en-filt-chips em { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--c-ink-soft); }
.en-filt-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px 4px 10px; font: inherit; font-size: 12px; font-weight: 700; color: var(--c-primary); background: #fbeae6; border: 1px solid #f0d3cd; border-radius: 99px; cursor: pointer; }
.en-filt-chip:hover { border-color: var(--c-primary); }
.en-filt-chip i { font-style: normal; font-size: 13px; line-height: 1; opacity: .7; }
.en-filt-inline { padding: 0; border: 0; background: none; font: inherit; font-weight: 800; color: var(--c-primary); cursor: pointer; text-decoration: underline; }
.en-filt-zhrow { margin-top: 12px; }
.en-filt-zh { display: inline-flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: var(--c-ink-soft); cursor: pointer; }
.en-filt-zh input { flex: none; width: 15px; height: 15px; margin-top: 1px; accent-color: var(--c-primary); cursor: pointer; }
.en-filt-zh span { line-height: 1.45; }
/* 中文来源商品卡的「中文」角标（与详情页 /en/listing 的 zh badge 同款） */
.en-badge.zh { background: #f0e9de; color: var(--c-ink-soft); }

@media (max-width: 1000px) {
  .en-filt-main { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .en-filt-kw { grid-column: 1 / -1; }
  .en-filt-go { grid-column: 1 / -1; justify-self: stretch; text-align: center; }
}
@media (max-width: 620px) {
  .en-filt-main { grid-template-columns: minmax(0, 1fr); }
  .en-filt-levels { grid-template-columns: minmax(0, 1fr); }
}

/* 详情页 */
/* ==========================================================================
 * 英文详情页（/en/listing）—— 2026-09-29 用户要求「模仿中文详情页的样式和功能」后重做
 * ---------------------------------------------------------------------------
 * 中文样板（/products/988 实测）的结构：
 *   面包屑 → 大标题 → 元信息行（浏览/图数/地区）→ 标签
 *   → 左栏：图集（大图 + 计数 + 缩略图）/ 说明 + 规格表 / 参考报价（大红价 + 免责）/ 交易提醒
 *   → 右栏吸顶：发布与来源 → 供应商卡 → 大红「联系供应商」→ 免登录提示
 *
 * ⚠️ 上一轮崩坏（字段值被压成一字一行、整页 2238px）的根因有三个，这里逐个上保险：
 *     ① 页面被 .en-func-narrow(760px) 包住 —— 详情页已改回标准 .en-wrap(1180)；
 *     ② 栅格写死 340px —— 现在用 minmax(0, …)，任何一栏都能被压缩而不溢出；
 *     ③ facts 硬切两列 —— 现在 auto-fit，放不下就自己降成一列。
 *   改这段前先跑 .workbuddy/tmp/cfly-lst-measure.mjs 量一遍，别再凭感觉调。
 * ========================================================================== */
.en-dcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 0 7px; padding: 0; margin: 0 0 14px; font-size: 12.5px; color: var(--c-ink-light); }
.en-dcrumb a { color: var(--c-ink-light); text-decoration: none; }
.en-dcrumb a:hover { color: var(--c-primary); }
.en-dcrumb i { font-style: normal; color: #c9bfb3; }
.en-dcrumb span { color: var(--c-ink-soft); }

.en-lst-title { font-size: 25px; line-height: 1.32; font-weight: 800; letter-spacing: -.01em; margin: 0 0 8px; }
.en-lst-meta { font-size: 12.5px; color: var(--c-ink-light); margin-bottom: 10px; }
#lst-tags { flex-wrap: wrap; margin-bottom: 16px; }
.en-badge.soft { background: #f4efe8; color: #7a6f63; }

.en-lst-cols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.en-lst-col-main { min-width: 0; }
/* 顶栏 ≥901 是两行（102px），吸顶基准要跟着让开，否则卡片顶部被顶栏咬掉 */
.en-lst-col-side { position: sticky; top: 122px; }
.en-lst-col-main > .en-panel + .en-panel { margin-top: 16px; }
.en-panel-h { font-size: 15px; font-weight: 800; margin: 0 0 12px; padding-left: 10px; border-left: 3px solid var(--c-primary); line-height: 1.25; }
.en-panel-h2 { margin-top: 22px; }

/* 图集（本次补的「图片字段」：多图 + 缩略图切换 + 点击放大） */
.en-gal-stage { position: relative; background: #faf7f3; border: 1px solid #f0e7db; border-radius: 12px; min-height: 320px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.en-gal-stage img { max-width: 100%; max-height: 460px; width: auto; height: auto; display: block; cursor: zoom-in; }
.en-gal-stage .en-empty { padding: 40px 16px; text-align: center; }
.en-gal-count { position: absolute; right: 10px; bottom: 10px; padding: 3px 9px; border-radius: 99px; background: rgba(38, 33, 29, .62); color: #fff; font-size: 12px; font-weight: 700; }
.en-gal-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.en-gal-thumb { padding: 0; width: 68px; height: 68px; border-radius: 9px; overflow: hidden; border: 1px solid #eadfd2; background: #fff; cursor: pointer; }
.en-gal-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.en-gal-thumb.on { border-color: var(--c-primary); box-shadow: 0 0 0 2px rgba(43, 79, 156, .22); }
.en-gal-zoom { position: fixed; inset: 0; z-index: 3000; background: rgba(24, 20, 17, .86); display: flex; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; }
.en-gal-zoom img { max-width: 100%; max-height: 100%; border-radius: 10px; }

/* 说明 + 规格表 */
.en-lst-desc { white-space: pre-wrap; font-size: 14.5px; line-height: 1.7; color: var(--c-ink); max-width: 78ch; }
.en-lst-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 0 26px; }
.en-lst-facts > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 8px 0; border-bottom: 1px dashed #f0e7db; font-size: 13.5px; }
.en-lst-facts span { color: var(--c-ink-light); }
.en-lst-facts b { font-weight: 700; word-break: break-word; overflow-wrap: anywhere; min-width: 0; }

/* 参考报价 */
.en-pricebox .en-panel-h { border-left-color: #c93628; }
.en-price-line { display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; }
.en-price-cur { color: #c93628; font-size: 19px; font-weight: 800; }
.en-price-line b { color: #c93628; font-size: 30px; font-weight: 800; line-height: 1.15; letter-spacing: -.01em; }
.en-price-unit { color: var(--c-ink-light); font-size: 14px; font-weight: 600; }
.en-price-note { margin: 10px 0 0; font-size: 12.5px; line-height: 1.7; color: var(--c-ink-light); }
.en-notice p { margin: 0; font-size: 12.5px; line-height: 1.75; color: var(--c-ink-light); }

/* 右栏 发布与来源 */
.en-src-rows { display: grid; gap: 8px; }
.en-src-rows > div { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 8px; font-size: 13px; align-items: baseline; }
.en-src-rows span { color: var(--c-ink-light); }
.en-src-rows b { font-weight: 700; word-break: break-word; overflow-wrap: anywhere; min-width: 0; }
.en-src-card { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; padding: 12px; border: 1px solid #eadfd2; border-radius: 12px; background: #fffdfa; }
.en-src-mark { flex: none; width: 38px; height: 38px; border-radius: 10px; background: var(--c-primary); color: #fff; font-size: 17px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.en-src-id { min-width: 0; flex: 1 1 120px; }
.en-src-id b { display: block; font-size: 13.5px; font-weight: 800; word-break: break-word; }
.en-src-id small { color: var(--c-ink-light); font-size: 12px; }
.en-src-contact { flex: 1 0 100%; display: flex; flex-direction: column; gap: 3px; font-size: 13px; color: var(--c-ink-soft); }
.en-src-contact a { color: var(--c-primary); text-decoration: none; word-break: break-all; }
.en-src-contact a:hover { text-decoration: underline; }
.en-src-cta { display: block; text-align: center; margin-top: 14px; padding: 12px 18px; }
.en-src-note { margin: 8px 0 0; font-size: 12px; line-height: 1.65; color: var(--c-ink-light); }
.en-src-back { display: block; text-align: center; margin-top: 10px; }

@media (max-width: 1000px) {
  .en-plans, .en-mkt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* 单栏：图集整宽，来源卡从吸顶改成静态（窄屏吸顶会挡住正文） */
  .en-lst-cols { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .en-lst-col-side { position: static; top: auto; }
  .en-gal-stage img { max-height: 420px; }
}
@media (max-width: 620px) {
  .en-plans, .en-mkt-grid { grid-template-columns: 1fr; }
  .en-field { grid-template-columns: 1fr; }
  .en-field > label { margin-top: 2px; }
  .en-header-acc { padding: 6px 9px; font-size: 12px; }
  /* 窄屏把标签列收窄，宽度让给值（否则长公司名/长类目路径会顶到换行） */
  .en-lst-facts > div { grid-template-columns: 108px minmax(0, 1fr); font-size: 13px; }
  .en-src-rows > div { grid-template-columns: 66px minmax(0, 1fr); }
  .en-lst-title { font-size: 20px; }
  .en-gal-thumb { width: 56px; height: 56px; }
  .en-price-line b { font-size: 25px; }
}
