/* ========= 萍乡两只羊 PC 官网 · 现代卡片风 ========= */
:root {
  --brand: #00b26a;
  --brand-deep: #009159;
  --accent: #ff6b00;
  --ink: #16202b;
  --ink-2: #5b6773;
  --ink-3: #97a2ad;
  --bg: #f3f6f8;
  --card: #ffffff;
  --radius: 16px;
  --shadow: 0 2px 12px rgba(22, 32, 43, 0.06);
  --shadow-hover: 0 10px 28px rgba(22, 32, 43, 0.12);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.7; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- 头部 ---------- */
.site-header { background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(22, 32, 43, 0.06); }
.header-inner { display: flex; align-items: center; gap: 22px; height: 62px; }
/* 整张横版字标。以前是「图标 + 萍 + 事通」三段拼，图标里也有个「萍」字，
   读起来是「萍 萍乡两只羊」，flex 的 gap 还把「萍」和「事通」拆出一个空格。 */
.logo { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.logo img { display: block; height: 38px; width: auto; }
.logo span { color: var(--ink); font-size: 20px; font-weight: 800; letter-spacing: 1px; white-space: nowrap; }
.top-nav { display: flex; gap: 4px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.top-nav::-webkit-scrollbar { display: none; }
/* 每个链接内部绝不换行。加了「便民电话」之后，880px 左右的窗口会把每个词竖着劈开 */
.top-nav a { white-space: nowrap; flex-shrink: 0; }
.top-nav a { padding: 6px 14px; border-radius: 20px; font-size: 15px; color: var(--ink-2); transition: 0.15s; }
.top-nav a:hover { background: #eef6f2; color: var(--brand); }
.top-nav a.active { background: var(--brand); color: #fff; font-weight: 600; }
.mini-search input { border: 1.5px solid #e3e8ec; background: #f6f8fa; border-radius: 18px; padding: 7px 16px; font-size: 14px; outline: none; width: 150px; transition: 0.2s; }
.mini-search input:focus { border-color: var(--brand); background: #fff; width: 200px; }
.publish-btn { background: var(--accent); color: #fff; padding: 8px 20px; border-radius: 20px; font-weight: 700; font-size: 14px; box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3); transition: 0.15s; white-space: nowrap; margin-left: auto; }
.publish-btn:hover { transform: translateY(-1px); }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(135deg, #00b26a 0%, #00c17e 55%, #0bd18e 100%); padding: 54px 0 46px; color: #fff; }
.hero-title { font-size: 40px; font-weight: 900; letter-spacing: 2px; }
.hero-sub { margin-top: 10px; font-size: 16px; opacity: 0.92; }
.hero-search { display: flex; max-width: 640px; margin-top: 26px; border-radius: 30px; overflow: hidden; box-shadow: 0 12px 32px rgba(0, 80, 48, 0.25); }
.hero-search input { flex: 1; border: none; outline: none; padding: 15px 24px; font-size: 16px; }
.hero-search button { border: none; background: var(--ink); color: #fff; padding: 0 38px; font-size: 16px; font-weight: 700; cursor: pointer; }
.hot-words { margin-top: 16px; font-size: 14px; opacity: 0.95; }
.hot-words a { margin-right: 14px; text-decoration: underline; text-underline-offset: 4px; color: #fff; }

/* ---------- 分类磁贴 ---------- */
.cate-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 12px; margin: -24px 0 22px; position: relative; }
.tile { display: flex; flex-direction: column; align-items: center; gap: 6px; background: var(--card); padding: 16px 6px 13px; border-radius: var(--radius); box-shadow: var(--shadow); transition: 0.15s; font-size: 14px; font-weight: 600; }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.tile-icon { font-size: 30px; }

/* 分类色系（磁贴顶部细条 + 徽章底色共用） */
.t-blue { --tone: #2b6de8; }
.t-cyan { --tone: #00a6c2; }
.t-orange { --tone: #ff6b00; }
.t-purple { --tone: #8b5cf6; }
.t-teal { --tone: #0d9488; }
.t-pink { --tone: #ec4899; }
.t-green { --tone: #00b26a; }
.t-indigo { --tone: #6366f1; }
.t-gray { --tone: #64748b; }
.t-brown { --tone: #b45309; }
.tile { border-top: 3px solid var(--tone, #e5e7eb); }

/* 移动端底部导航（窄屏才显示） */
.mobile-nav { display: none; }
@media (max-width: 860px) {
  .mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #eef1f4;
    z-index: 60;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-nav a {
    flex: 1;
    text-align: center;
    font-size: 11px;
    color: var(--ink-2);
    padding: 7px 0 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
  }
  .mobile-nav a span { font-size: 19px; }
  .mobile-nav a.on { color: var(--brand); }
  .mobile-nav a.cta { color: var(--accent); font-weight: 700; }
  body { padding-bottom: 58px; } /* 给底部导航留位 */
}

/* 公告条（后台管理） */
.notice-note { display: flex; align-items: flex-start; gap: 10px; border-radius: var(--radius); padding: 12px 18px; margin-bottom: 12px; font-size: 14px; line-height: 1.7; }
.notice-note .notice-ico { flex-shrink: 0; }
.notice-info { background: #e6f0ff; color: #1d4ed8; border: 1px solid #c7dbff; }
.notice-warning { background: #fff7ed; color: #b45309; border: 1px solid #fed7aa; }
.notice-success { background: #e9f9f1; color: #157a4e; border: 1px solid #c6efdb; }

/* 公益说明 */
.gongyi-note { display: flex; align-items: center; gap: 14px; background: #e9f9f1; border: 1px solid #c6efdb; border-radius: var(--radius); padding: 14px 20px; margin-bottom: 18px; font-size: 14px; color: #157a4e; line-height: 1.7; }
.gongyi-note strong { color: var(--brand-deep); }
.gongyi-badge { flex-shrink: 0; background: var(--brand); color: #fff; font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 14px; }
@media (max-width: 640px) { .gongyi-note { align-items: flex-start; } }

/* 风险提示灰字 */
.risk-tip { color: var(--ink-3); font-size: 13px; line-height: 1.7; background: #f6f8fa; border-radius: 10px; padding: 12px 16px; margin-top: 8px; }

/* 官方核实公章 */
.official-seal { display: flex; align-items: center; gap: 14px; background: #fdf6f5; border: 1px solid #f0d5d2; border-radius: 10px; padding: 14px 18px; margin-top: 8px; }
.seal-stamp { flex-shrink: 0; color: #c0392b; border: 2px solid #c0392b; border-radius: 8px; padding: 6px 12px; font-size: 15px; font-weight: 700; letter-spacing: 2px; transform: rotate(-8deg); }
.seal-text { color: #a04b44; font-size: 13px; line-height: 1.6; }

/* ---------- 布局 ---------- */
.layout { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 30px; }
.main-col { flex: 1; min-width: 0; }
.side-col { width: 310px; flex-shrink: 0; }
@media (max-width: 860px) { .layout { flex-direction: column; } .side-col { width: 100%; } .hero-title { font-size: 28px; } .top-nav { display: none; } .mini-search { display: none; } }

.feed-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.sec-title { font-size: 20px; font-weight: 800; }
.more-link { color: var(--brand); font-size: 14px; font-weight: 600; }

/* ---------- 信息卡片流 ---------- */
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.card-grid.wide { grid-template-columns: repeat(3, 1fr); margin-top: 14px; }
@media (max-width: 860px) { .card-grid, .card-grid.wide { grid-template-columns: 1fr; } }

/* 小红书瀑布流（CSS 多列，图片自然高度形成参差） */
.card-masonry { column-count: 2; column-gap: 14px; }
@media (max-width: 480px) { .card-masonry { column-gap: 10px; } }
.card-masonry .info-card { break-inside: avoid; display: inline-block; width: 100%; margin-bottom: 14px; }
.card-masonry .info-card.has-thumb .card-thumb { aspect-ratio: auto; }
.card-masonry .info-card.has-thumb .card-thumb img { height: auto; aspect-ratio: auto; }
.info-card { background: var(--card); border-radius: var(--radius); padding: 18px 18px 14px; box-shadow: var(--shadow); transition: 0.15s; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.info-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
/* 有缩略图的卡片：图在上，内容在下 */
.info-card.has-thumb { padding: 0; }
.info-card.has-thumb .card-body { padding: 12px 16px 14px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.card-thumb { position: relative; width: 100%; aspect-ratio: 16 / 10; background: #eef1f4; overflow: hidden; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: 0.25s; }
.info-card:hover .card-thumb img { transform: scale(1.04); }
.thumb-count { position: absolute; right: 8px; bottom: 8px; background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 12px; padding: 1px 8px; border-radius: 8px; }
.card-top { display: flex; gap: 8px; }
.badge { font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 12px; color: var(--tone, var(--ink-2)); background: color-mix(in srgb, var(--tone, #64748b) 12%, white); }
.badge.hot { color: var(--accent); background: #fff1e6; }
.card-title { font-size: 16.5px; font-weight: 700; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-summary { font-size: 13.5px; color: var(--ink-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px; }
.card-price { color: var(--accent); font-weight: 800; font-size: 16px; white-space: nowrap; flex-shrink: 0; }
.card-loc { color: var(--ink-3); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; text-align: right; }

/* ---------- 侧栏 ---------- */
.cta-card { background: linear-gradient(135deg, #16202b, #2a3b4d); color: #fff; border-radius: var(--radius); padding: 24px; text-align: center; margin-bottom: 16px; }
.cta-card h3 { font-size: 18px; line-height: 1.5; }
.cta-card p { font-size: 13px; opacity: 0.75; margin: 10px 0 16px; line-height: 1.8; }
.cloud-card { background: var(--card); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cloud-tag { font-size: 13px; padding: 4px 13px; border-radius: 15px; background: #f0f3f5; color: var(--ink-2); transition: 0.15s; }
.cloud-tag:hover { background: var(--brand); color: #fff; }
.cloud-tag.strong { background: #e6f7f0; color: var(--brand); font-weight: 700; }

/* ---------- 列表页 ---------- */
.breadcrumb { font-size: 13px; color: var(--ink-3); margin: 16px 0 6px; }
.page-h1 { font-size: 24px; font-weight: 800; margin: 8px 0 14px; }
.filter-card { background: var(--card); border-radius: var(--radius); padding: 14px 18px; box-shadow: var(--shadow); }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-row.towns { margin-top: 10px; padding-top: 10px; border-top: 1px dashed #e8ecef; }
.chip { font-size: 14px; padding: 5px 16px; border-radius: 17px; background: #f0f3f5; color: var(--ink-2); transition: 0.15s; }
.chip:hover { background: #e6f7f0; color: var(--brand); }
.chip.on { background: var(--brand); color: #fff; font-weight: 700; }
.chip.small { font-size: 13px; padding: 3px 13px; }

.pager { display: flex; justify-content: center; gap: 18px; padding: 26px 0; align-items: center; color: var(--ink-3); }
.pager a { background: var(--card); padding: 8px 24px; border-radius: 20px; color: var(--brand); font-weight: 700; box-shadow: var(--shadow); }
.empty { color: var(--ink-3); padding: 40px 0; text-align: center; }
.empty a { color: var(--brand); font-weight: 600; }

/* ---------- 详情页 ---------- */
.detail-card { background: var(--card); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.detail-h1 { font-size: 26px; font-weight: 800; line-height: 1.5; }
.detail-meta { color: var(--ink-3); font-size: 13px; margin: 12px 0; }
.detail-price { color: var(--accent); font-size: 26px; font-weight: 800; margin: 6px 0; }
.detail-content { white-space: pre-wrap; font-size: 16px; line-height: 2; padding: 16px 0; border-top: 1px solid #f0f3f5; }
.detail-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; padding: 6px 0 12px; }
.detail-img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; cursor: zoom-in; transition: 0.15s; }
.detail-img:hover { opacity: 0.9; }
.lightbox { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.9); display: none; align-items: center; justify-content: center; z-index: 999; cursor: zoom-out; padding: 20px; }
.lightbox.show { display: flex; }
.lightbox img { max-width: 92vw; max-height: 92vh; border-radius: 6px; }
.closed-tip { background: #fff7e6; color: #b45309; padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; }

.contact-box { background: linear-gradient(135deg, #ecfdf5, #f0faf5); border-radius: 14px; padding: 20px; margin-top: 18px; border: 1px solid #d1fadf; }
.contact-box h3 { margin-bottom: 8px; }
.unlock-cta { display: flex; align-items: center; gap: 18px; margin-top: 12px; background: #fff; border-radius: 12px; padding: 16px; }
.unlock-cta strong { color: var(--brand); }
.qr-placeholder { width: 112px; height: 112px; border: 2px dashed var(--brand); border-radius: 12px; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--brand); font-size: 13px; background: #fff; flex-shrink: 0; margin: 0 auto; }
.qr-placeholder.small { width: 92px; height: 92px; margin: 0; }

.side-list { list-style: none; }
.side-list li { padding: 8px 0; border-bottom: 1px dashed #eef1f4; }
.side-list li a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; color: var(--ink-2); }
.side-list li a:hover { color: var(--brand); }
.side-more { margin-top: 12px; text-align: right; font-size: 14px; }
.side-more a { color: var(--brand); font-weight: 600; }
.side-col .cloud-card + .cloud-card { margin-top: 16px; }
.side-col > .sec-title, .main-col.plain > .sec-title { margin-bottom: 12px; }

/* 详情页侧栏白卡 */
.side-col:not(.plain) { background: var(--card); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }

/* ---------- 协议页 ---------- */
.legal-doc { background: var(--card); border-radius: var(--radius); padding: 34px 38px 44px; box-shadow: var(--shadow); max-width: 860px; margin: 0 auto 30px; }
.legal-doc h1 { font-size: 26px; font-weight: 800; text-align: center; }
.legal-date { text-align: center; color: var(--ink-3); font-size: 13px; margin-top: 8px; }
.legal-intro { background: #f6f8fa; border-radius: 10px; padding: 16px 18px; margin: 22px 0 8px; color: var(--ink-2); line-height: 1.9; }
.legal-doc h2 { font-size: 18px; font-weight: 700; margin: 30px 0 12px; padding-left: 10px; border-left: 4px solid var(--brand); }
.legal-doc p { line-height: 1.95; color: #444; margin-bottom: 10px; }
.legal-doc strong { color: var(--ink); }
@media (max-width: 640px) { .legal-doc { padding: 22px 18px 30px; } }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--ink); color: #8b98a5; margin-top: 36px; padding: 30px 0; font-size: 13px; }
.footer-cta { display: flex; justify-content: space-between; align-items: center; gap: 20px; background: #223040; border-radius: var(--radius); padding: 20px 26px; margin-bottom: 20px; flex-wrap: wrap; }
.footer-cta h3 { color: #fff; margin-bottom: 6px; font-size: 17px; }
.footer-links { margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.footer-links a { color: #8b98a5; }
.footer-links a:hover { color: #fff; }
.copyright a { color: #8b98a5; }

/* ==================== 便民黄页 ==================== */
.page-desc { color: var(--ink-2); font-size: 14px; line-height: 1.8; margin: -6px 0 18px; max-width: 760px; }

.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.svc-card {
  display: block; background: #fff; border: 1px solid #eaeef1; border-radius: 14px;
  padding: 18px; transition: 0.15s;
}
.svc-card:hover { border-color: var(--brand); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06); transform: translateY(-2px); }
.svc-hd { display: flex; align-items: center; gap: 8px; }
.svc-name { font-size: 17px; font-weight: 700; color: var(--ink); flex: 1; }
.tag.official { background: #e8f5ee; color: #00994f; font-size: 12px; padding: 2px 8px; border-radius: 5px; }
.tag.merchant { background: #f2f3f5; color: #8a8f99; font-size: 12px; padding: 2px 8px; border-radius: 5px; }

.svc-phones { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.svc-phone { font-size: 17px; font-weight: 700; color: var(--brand); background: #e8f5ee; border-radius: 999px; padding: 5px 14px; letter-spacing: 0.5px; }

.svc-tags { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.svc-tag { font-size: 12px; color: var(--ink-2); background: #f4f5f7; border-radius: 5px; padding: 3px 9px; }
.svc-meta { margin-top: 8px; font-size: 13px; color: var(--ink-3); }

/* 详情页：电话是整页最大的东西，用户来这儿只为了这个 */
.svc-phone-box { margin: 20px 0; background: #f6faf8; border: 1px solid #dceee5; border-radius: 14px; padding: 22px; }
.svc-phone-big {
  display: inline-block; font-size: 30px; font-weight: 800; color: var(--brand);
  letter-spacing: 1px; margin-right: 24px;
}
.svc-phone-big:hover { text-decoration: underline; }
.svc-phone-hint { margin-top: 8px; font-size: 12px; color: #9aa0a6; }

.detail-table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14.5px; }
.detail-table th, .detail-table td { text-align: left; padding: 11px 0; border-bottom: 1px solid #f0f2f4; vertical-align: top; }
.detail-table th { width: 96px; font-weight: 400; color: #9aa0a6; }
.detail-table td { color: var(--ink); line-height: 1.7; }

/* 核实状态如实告知。宁可显得数据不完美，也不能让人以为号码一定对 */
.verify-bar { margin: 18px 0; padding: 13px 16px; border-radius: 10px; font-size: 13.5px; line-height: 1.75; }
.verify-bar.ok { background: #e8f5ee; color: #2b7a52; }
.verify-bar.warn { background: #fff5e6; color: #a05e00; }

.empty-card { background: #fffaf0; border: 1px solid #f2e3c0; border-radius: 14px; padding: 28px; max-width: 760px; }
.empty-card h2 { font-size: 19px; color: #8a6d1b; margin: 0 0 12px; }
.empty-card p { font-size: 14px; color: #a08430; line-height: 1.85; margin: 0 0 10px; }
.btn-cta { display: inline-block; margin-top: 12px; background: #c9a227; color: #fff; font-size: 14px; padding: 10px 26px; border-radius: 999px; }
.btn-cta:hover { background: #b8931f; }

.risk-note { margin-top: 28px; font-size: 12.5px; color: #a8abb0; line-height: 1.9; max-width: 820px; }
.side-empty { font-size: 13px; color: #9aa0a6; }

@media (max-width: 720px) {
  .svc-grid { grid-template-columns: 1fr; }
  .svc-phone-big { font-size: 26px; display: block; margin: 0 0 8px; }
}

/* ==================== 登录 / 发布（PC 上直接完成，不赶用户去小程序）==================== */
/* ⚠️ 必须放在下面那些 display:flex 之前生效：
   .code-row{display:flex} 这类作者样式和浏览器默认的 [hidden]{display:none} 特异性相同，
   作者样式胜出 —— 结果 JS 里 el.hidden=true 根本藏不住元素（实测：登录页冒出短信验证码框）。 */
[hidden] { display: none !important; }

.auth-wrap { display: flex; justify-content: center; padding: 40px 0 60px; }
.auth-card { width: 100%; max-width: 420px; background: #fff; border: 1px solid #eaeef1; border-radius: 16px; padding: 32px; }
.auth-h1 { font-size: 24px; margin: 0 0 6px; color: var(--ink); }
.auth-sub { font-size: 13.5px; color: var(--ink-2); margin: 0 0 22px; line-height: 1.7; }

.auth-tabs { display: flex; gap: 8px; margin-bottom: 22px; }
.auth-tab { flex: 1; padding: 10px; border: 1px solid #e3e8ec; background: #fff; border-radius: 10px; font-size: 14.5px; color: var(--ink-2); cursor: pointer; }
.auth-tab.on { border-color: var(--brand); color: var(--brand); font-weight: 600; background: #f2faf6; }
.auth-tab:disabled { opacity: 0.45; cursor: not-allowed; }

.qr-box { position: relative; width: 220px; height: 220px; margin: 0 auto; border: 1px solid #eaeef1; border-radius: 12px; overflow: hidden; }
.qr-box img { display: block; width: 220px; height: 220px; }
.qr-mask { position: absolute; inset: 0; background: rgba(255, 255, 255, 0.94); display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; font-size: 14px; color: var(--ink-2); }
.qr-hint { text-align: center; font-size: 13.5px; color: var(--ink-2); margin: 14px 0 0; }

.auth-mode { display: flex; gap: 20px; margin-bottom: 16px; }
.mode { background: none; border: none; padding: 4px 0; font-size: 16px; color: var(--ink-3); cursor: pointer; position: relative; }
.mode.on { color: var(--ink); font-weight: 700; }
.mode.on::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px; background: var(--brand); border-radius: 2px; }

.auth-inp, .fi, .ft { width: 100%; box-sizing: border-box; border: 1.5px solid #e3e8ec; background: #fafbfc; border-radius: 10px; padding: 12px 14px; font-size: 15px; outline: none; margin-bottom: 12px; font-family: inherit; }
.auth-inp:focus, .fi:focus, .ft:focus { border-color: var(--brand); background: #fff; }
.ft { resize: vertical; line-height: 1.7; }

.code-row { display: flex; gap: 10px; }
.code-row .auth-inp { flex: 1; }
.btn-code { white-space: nowrap; border: none; background: #e8f5ee; color: #00994f; border-radius: 10px; padding: 0 16px; font-size: 14px; cursor: pointer; margin-bottom: 12px; }

.auth-tip { font-size: 13px; line-height: 1.75; border-radius: 10px; padding: 12px 14px; margin: 0 0 16px; }
.auth-tip.warn { background: #fff5e6; color: #a05e00; }
.auth-err { color: #c0392b; font-size: 13.5px; margin: 10px 0 0; }
.auth-agree { text-align: center; font-size: 12.5px; color: var(--ink-3); margin: 22px 0 0; line-height: 1.8; }

.btn-primary { display: block; width: 100%; box-sizing: border-box; text-align: center; background: var(--brand); color: #fff; border: none; border-radius: 999px; padding: 13px; font-size: 16px; cursor: pointer; }
.btn-primary:hover { background: var(--brand-deep); }
.btn-primary:disabled { opacity: 0.6; cursor: default; }
.btn-big { padding: 15px; font-size: 17px; margin-top: 22px; }
.btn-ghost { display: inline-block; background: #fff; border: 1px solid #e3e8ec; border-radius: 999px; padding: 9px 20px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

/* ---- 发布表单 ---- */
.pub-wrap { padding: 30px 0 60px; }
.pub-card { max-width: 720px; margin: 0 auto; background: #fff; border: 1px solid #eaeef1; border-radius: 16px; padding: 32px; }
.pub-h1 { font-size: 26px; margin: 0 0 6px; color: var(--ink); }
.pub-sub { font-size: 13.5px; color: var(--ink-2); margin: 0 0 26px; }

.fl { display: block; font-size: 14px; color: var(--ink); font-weight: 600; margin: 20px 0 10px; }
.fl i { color: #e94b3c; font-style: normal; }
.fl small { font-weight: 400; color: var(--ink-3); margin-left: 8px; }
.fl small.over { color: #c0392b; font-weight: 600; }
.fh { font-size: 12.5px; color: var(--ink-3); line-height: 1.7; margin: -4px 0 0; }
.fh.center { text-align: center; margin-top: 14px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.chips .chip { border: 1px solid #e3e8ec; background: #fff; border-radius: 999px; padding: 8px 16px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.chips .chip.sm { padding: 6px 13px; font-size: 13px; }
.chips .chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.up-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 6px; }
.up-item, .up-add { width: 96px; height: 96px; border-radius: 10px; position: relative; }
.up-item img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; display: block; }
.up-del { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; border: none; background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 15px; line-height: 1; cursor: pointer; }
.up-add { border: 1.5px dashed #d5dbe0; display: flex; align-items: center; justify-content: center; font-size: 26px; color: #b6bfc7; cursor: pointer; }
.up-add:hover { border-color: var(--brand); color: var(--brand); }

@media (max-width: 720px) {
  .pub-card, .auth-card { padding: 22px 18px; border: none; border-radius: 0; }
  .two-col { grid-template-columns: 1fr; }
}

/* 陈旧提醒：老数据里 91% 超过半年，不说清楚就是在坑用户 */
.stale-tip { border-radius: 10px; padding: 11px 14px; font-size: 13.5px; line-height: 1.7; margin: 0 0 16px; }
.stale-tip.old { background: #f4f6f8; color: var(--ink-2); }
.stale-tip.expired { background: #fff5e6; color: #a05e00; }
.card-time { font-size: 12px; color: var(--ink-3); margin-left: auto; }
.card-time.old, .card-time.expired { color: #c0c4c9; }

/* 拿到联系方式后的礼貌提示 */
.contact-etiquette { margin: 14px 0 0; padding: 12px 15px; background: #f4f8f5; border-radius: 10px; color: #4a7a5c; font-size: 13.5px; line-height: 1.7; }

/* ── 置顶重做 + 薪资右对齐缩小（覆盖前面的旧规则）── */
.card-price { font-size: 13px; font-weight: 700; text-align: right; white-space: nowrap; margin: 4px 0 0; flex-shrink: 0; }
.card-foot { justify-content: flex-start; }
.card-loc { text-align: left; flex-shrink: 1; }
.card-toptag { flex-shrink: 0; color: #fff; background: var(--accent); border-radius: 4px; padding: 1px 7px; font-size: 11px; margin-left: 6px; }
