/*!
 * 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-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; }
.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-lst { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 20px; align-items: start; }
.en-lst-img img { width: 100%; border-radius: 12px; border: 1px solid #eadfd2; display: block; }
.en-lst-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; margin: 14px 0; }
.en-lst-facts > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 8px; font-size: 13.5px; }
.en-lst-facts span { color: var(--c-ink-light); }
.en-lst-facts b { font-weight: 700; word-break: break-word; }
.en-lst-desc { white-space: pre-wrap; font-size: 14.5px; line-height: 1.65; color: var(--c-ink); }
.en-lst-cta { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .en-plans, .en-mkt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .en-lst { grid-template-columns: 1fr; }
}
@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; }
}
