/* 移动端固定：禁止缩放/回弹/图片拖动（像原生 App） */
html { -webkit-text-size-adjust: 100%; }
html, body { overscroll-behavior: none; touch-action: manipulation; }
img { -webkit-user-drag: none; user-select: none; }
/* =========================================================
   咖农 · 产地直连平台 —— 自适应样式
   移动优先（<768px）→ 平板（≥768px）→ 桌面（≥1024px）
   三端共用同一套样式与数据，实现互通。
   ========================================================= */

:root {
  --coffee-900: #2c2417;
  --coffee-800: #3a2f20;
  --coffee-700: #4a3728;
  --coffee-600: #5c4634;
  --coffee-500: #6b5240;
  --coffee-400: #8b6f47;
  --coffee-300: #c9a96a;
  --gold: #c9a96a;
  --bg: #f5f2ed;
  --card: #ffffff;
  --line: #ece5da;
  --text: #2c2417;
  --sub: #8a7a64;
  --muted: #a89880;
  --green: #2e7d4f;
  --green-bg: #e3f2e8;
  --blue: #3a5a8a;
  --blue-bg: #e8eef7;
  --radius: 14px;
  --shadow: 0 2px 12px rgba(74,55,40,0.08);
}

* { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
html { scroll-behavior:smooth; }
body {
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  background:var(--bg); color:var(--text);
  min-height:100vh; padding-bottom:74px;
}
a { color:inherit; text-decoration:none; cursor:pointer; }
button { font-family:inherit; cursor:pointer; }

/* ============ 顶部导航 ============ */
.topbar {
  position:sticky; top:0; z-index:100;
  background:linear-gradient(135deg,#4a3728 0%,#6b5240 100%);
  color:#fff; box-shadow:0 2px 10px rgba(0,0,0,0.15);
}
.topbar-inner {
  max-width:1200px; margin:0 auto; padding:10px 16px;
  display:flex; align-items:center; gap:16px;
}
.brand { display:flex; align-items:center; gap:10px; cursor:pointer; flex-shrink:0; }
.brand-logo { font-size:26px; }
.brand-text h1 { font-size:20px; font-weight:700; letter-spacing:2px; line-height:1.1; }
.brand-text p { font-size:11px; opacity:0.8; margin-top:2px; white-space:nowrap; }

.main-nav { display:none; }
.top-actions { margin-left:auto; display:flex; align-items:center; gap:10px; }
.user-chip {
  display:flex; align-items:center; gap:6px; cursor:pointer;
  background:rgba(255,255,255,0.14); border:1px solid rgba(255,255,255,0.25);
  border-radius:20px; padding:6px 12px; font-size:13px; color:#fff;
}
.user-chip .uc-icon { font-size:15px; }
.user-chip .uc-name { max-width:90px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* ============ 主容器 ============ */
.container { max-width:1200px; margin:0 auto; padding:16px; }

.page { display:none; animation:fadeIn 0.25s ease; }
.page.active { display:block; }
@keyframes fadeIn { from{opacity:0;transform:translateY(6px);} to{opacity:1;transform:translateY(0);} }

.page-title { font-size:20px; font-weight:700; color:var(--coffee-700); margin:4px 2px 14px; }

/* ============ 通用卡片 / 按钮 ============ */
.card {
  background:var(--card); border-radius:var(--radius); padding:18px; margin-bottom:14px;
  box-shadow:var(--shadow);
}
.card-title { font-size:15px; font-weight:600; margin-bottom:12px; color:var(--coffee-700); display:flex; align-items:center; gap:6px; }
.card-title::before { content:''; width:3px; height:15px; background:var(--coffee-400); border-radius:2px; }
.card-head { display:flex; justify-content:space-between; align-items:center; }
.card-head .card-title { margin-bottom:12px; }
.link-more { font-size:12px; color:var(--coffee-400); font-weight:600; }

.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:6px;
  padding:12px 20px; border:none; border-radius:10px; font-size:15px; font-weight:600;
  transition:opacity 0.2s, transform 0.05s; white-space:nowrap;
}
.btn:active { opacity:0.85; transform:scale(0.99); }
.btn-dark { background:linear-gradient(135deg,#6b5240,#4a3728); color:#fff; }
.btn-gold { background:linear-gradient(135deg,#d4b26a,#c9a96a); color:#3a2f20; }
.btn-ghost { background:rgba(255,255,255,0.14); color:#fff; border:1px solid rgba(255,255,255,0.4); }
.btn-ghost-dark { background:#fff; color:var(--coffee-700); border:1.5px solid #d8c9b4; }
.btn-sm { padding:8px 14px; font-size:13px; border-radius:8px; }
.btn-outline { background:#fff; color:var(--coffee-500); border:1.5px solid #d8c9b4; }

/* ============ 表单 ============ */
.form-grid { display:grid; grid-template-columns:1fr; gap:0 14px; }
.input-group { margin-bottom:12px; }
.input-group label { display:block; font-size:13px; color:#6b5d4a; margin-bottom:6px; font-weight:500; }
.input-group input, .input-group select, .input-group textarea {
  width:100%; padding:12px 14px; border:1.5px solid #e0d8cc; border-radius:10px;
  font-size:15px; background:#faf8f5; color:var(--text); outline:none; transition:border-color 0.2s;
  font-family:inherit;
}
.input-group input:focus, .input-group select:focus, .input-group textarea:focus { border-color:var(--coffee-400); background:#fff; }
.input-group textarea { resize:vertical; min-height:70px; }
.section-hint { font-size:12px; color:var(--muted); line-height:1.6; margin-bottom:12px; }

.result { margin-top:14px; display:none; }
.result.show { display:block; }
.result-tier { background:#fdf9f0; border-left:3px solid var(--gold); padding:10px 14px; border-radius:0 8px 8px 0; margin-bottom:12px; font-size:13px; color:var(--coffee-500); }
.result-tier strong { color:var(--coffee-700); }
.result-item { background:#faf6f0; border-left:3px solid var(--coffee-400); padding:12px 14px; border-radius:0 8px 8px 0; margin-bottom:10px; }
.result-item .name-row { display:flex; justify-content:space-between; align-items:center; margin-bottom:5px; gap:8px; }
.result-item .name { font-weight:600; font-size:15px; color:var(--coffee-700); }
.match-badge { font-size:11px; padding:2px 9px; border-radius:10px; font-weight:600; white-space:nowrap; }
.match-high { background:var(--green-bg); color:var(--green); }
.match-mid  { background:#fdf1dc; color:#a87719; }
.match-low  { background:#f5e6e6; color:#a85a5a; }
.result-item .desc { font-size:13px; color:#6b5d4a; line-height:1.6; }
.result-item .risk { font-size:12px; color:#b06a3a; margin-top:6px; line-height:1.5; background:#fdf4ec; padding:6px 9px; border-radius:6px; }
.tag { display:inline-block; font-size:11px; padding:2px 8px; border-radius:10px; background:#ede4d6; color:var(--coffee-500); margin-right:5px; margin-top:6px; }

/* ============ Hero ============ */
.hero {
  border-radius:var(--radius); overflow:hidden; margin-bottom:14px; color:#fff;
  background:linear-gradient(rgba(74,55,40,0.32), rgba(50,35,25,0.42)), url('../img/coffee-hero.jpg') center/cover no-repeat;
  padding:34px 22px; position:relative;
}
.hero::after { content:''; position:absolute; right:-30px; top:-30px; width:180px; height:180px; border-radius:50%; background:rgba(255,255,255,0.06); }
.hero-inner { position:relative; z-index:1; max-width:640px; }
.hero h2 { font-size:22px; font-weight:700; letter-spacing:1px; margin-bottom:8px; text-shadow:0 2px 6px rgba(0,0,0,0.55); }
.hero p { font-size:13px; opacity:1; line-height:1.7; margin-bottom:18px; text-shadow:0 1px 3px rgba(0,0,0,0.6); }
.hero-actions { display:flex; gap:10px; flex-wrap:wrap; }

/* ============ 行情 ============ */
.price-grid { display:grid; grid-template-columns:1fr; gap:12px; }
.price-card { background:linear-gradient(135deg,#4a3728,#6b5240); color:#fff; border-radius:14px; padding:18px 20px; }
.price-card .p-label { font-size:12px; opacity:0.7; margin-bottom:6px; }
.price-card .p-value { font-size:30px; font-weight:700; letter-spacing:1px; }
.price-card .p-unit { font-size:13px; opacity:0.75; margin-left:4px; }
.price-card .p-change { font-size:13px; margin-top:8px; display:flex; align-items:center; gap:6px; }
.up { color:#7ee0a8; } .down { color:#ff9b9b; }
.price-note { font-size:11px; color:var(--muted); text-align:center; margin-top:12px; line-height:1.6; }
.mini-chart { display:flex; align-items:flex-end; gap:4px; height:56px; margin-top:12px; }
.mini-bar { flex:1; background:rgba(255,255,255,0.25); border-radius:3px 3px 0 0; transition:background 0.2s; }
.mini-bar.highlight { background:rgba(255,255,255,0.7); }
.local-price-row { display:flex; justify-content:space-between; align-items:center; padding:11px 0; border-bottom:1px solid #f0ebe3; font-size:14px; }
.price-sub { font-size:12px; color:var(--muted); margin:-6px 0 6px; }
.ref-line { border-top:1px dashed var(--line); margin-top:6px; }
.ref-line small { display:block; font-size:11px; color:var(--muted); font-weight:400; margin-top:2px; }
.local-price-row:last-child { border-bottom:none; }
.local-price-row .lp-name { color:var(--coffee-700); font-weight:500; }
.local-price-row .lp-val { color:var(--coffee-400); font-weight:600; }
.local-price-row .lp-sub { font-size:11px; color:var(--muted); font-weight:400; margin-left:4px; }

/* ============ 快速入口 ============ */
.quick-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; }
.quick-item {
  background:var(--card); border-radius:var(--radius); padding:18px; text-align:center;
  box-shadow:var(--shadow); cursor:pointer; font-size:13px; color:var(--coffee-700); font-weight:500;
  display:flex; flex-direction:column; align-items:center; gap:8px; transition:transform 0.15s;
}
.quick-item:active { transform:scale(0.98); }
.quick-item .qi-icon { font-size:26px; }

/* ============ 种植管理 ============ */
.stage-tabs { display:flex; gap:6px; overflow-x:auto; padding-bottom:6px; margin-bottom:14px; scrollbar-width:none; }
.stage-tabs::-webkit-scrollbar { display:none; }
.stage-tab {
  flex-shrink:0; padding:8px 16px; background:#fff; border:1.5px solid #e0d8cc;
  border-radius:20px; font-size:13px; color:#6b5d4a; cursor:pointer; white-space:nowrap; transition:all 0.2s;
}
.stage-tab.active { background:var(--coffee-700); color:#fff; border-color:var(--coffee-700); }
.stage-content { display:none; }
.stage-content.active { display:block; animation:fadeIn 0.25s ease; }
.detail-block { margin-bottom:16px; }
.detail-block h4 { font-size:14px; color:var(--coffee-700); margin-bottom:8px; font-weight:600; }
.detail-block p, .detail-block li { font-size:13px; color:#5a4d3c; line-height:1.75; }
.detail-block ul { padding-left:18px; margin-top:4px; }
.fert-table { width:100%; border-collapse:collapse; font-size:12px; margin-top:8px; }
.fert-table th, .fert-table td { border:1px solid #e8e0d4; padding:8px 6px; text-align:center; }
.fert-table th { background:#f0e9de; color:var(--coffee-700); font-weight:600; }
.fert-table td { color:#5a4d3c; }
.ref-note { font-size:11px; color:var(--muted); margin-top:10px; line-height:1.6; }

/* ============ 品种库 ============ */
.variety-group-title { font-size:12px; color:var(--muted); font-weight:600; letter-spacing:1px; margin:16px 0 4px; padding-left:2px; }
.variety-group-title:first-child { margin-top:0; }
.variety-item { border-bottom:1px solid #f0ebe3; padding:14px 0; cursor:pointer; }
.variety-item:last-child { border-bottom:none; }
.variety-item .v-head { display:flex; justify-content:space-between; align-items:center; }
.variety-item .v-name { font-size:15px; font-weight:600; color:var(--coffee-700); }
.variety-item .v-en { font-size:11px; color:var(--muted); font-style:italic; }
.variety-item .v-brief { font-size:12px; color:#8a7a64; margin-top:5px; line-height:1.5; }
.v-detail { display:none; margin-top:12px; padding:14px; background:#faf6f0; border-radius:10px; }
.v-detail.show { display:block; }
.v-detail .vd-row { font-size:13px; color:#5a4d3c; line-height:1.7; margin-bottom:6px; }
.v-detail .vd-row strong { color:var(--coffee-700); font-weight:600; }

/* ============ 货源 ============ */
.filter-bar { display:flex; gap:6px; overflow-x:auto; padding-bottom:6px; margin-bottom:12px; scrollbar-width:none; }
.filter-bar::-webkit-scrollbar { display:none; }
.filter-chip {
  flex-shrink:0; padding:7px 14px; background:#fff; border:1.5px solid #e0d8cc;
  border-radius:18px; font-size:12px; color:#6b5d4a; cursor:pointer; white-space:nowrap; transition:all 0.2s;
}
.filter-chip.active { background:var(--coffee-700); color:#fff; border-color:var(--coffee-700); }
.filter-group { margin-bottom:10px; }
.filter-group-label { display:block; font-size:11px; color:#a09380; margin-bottom:6px; letter-spacing:1px; }
.filter-group-inner { display:flex; gap:6px; overflow-x:auto; scrollbar-width:none; }
.filter-group-inner::-webkit-scrollbar { display:none; }

.goods-toolbar { display:flex; gap:10px; margin-bottom:14px; flex-wrap:wrap; }
.search-input {
  flex:1; min-width:180px; padding:11px 14px; border:1.5px solid #e0d8cc; border-radius:10px;
  font-size:14px; background:#fff; outline:none; color:var(--text);
}
.search-input:focus { border-color:var(--coffee-400); }

.goods-grid { display:grid; grid-template-columns:1fr; gap:12px; }
.goods-card {
  background:#fff; border-radius:var(--radius); padding:16px; box-shadow:var(--shadow);
  display:flex; flex-direction:column;
}
.goods-head { display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:10px; gap:8px; }
.goods-name { font-size:16px; font-weight:600; color:var(--coffee-700); }
.goods-price { font-size:16px; font-weight:700; color:var(--coffee-400); white-space:nowrap; }
.goods-meta { font-size:12px; color:#8a7a64; line-height:1.9; }
.goods-meta span { margin-right:12px; }
.goods-tags { margin-top:10px; }
.goods-desc { font-size:12px; color:#8a7a64; margin-top:6px; line-height:1.6; }
.goods-actions { display:flex; gap:8px; margin-top:auto; padding-top:12px; }
.goods-actions .btn { flex:1; padding:10px; font-size:14px; }
.badge-verified { display:inline-block; font-size:10px; padding:2px 7px; border-radius:8px; background:var(--green-bg); color:var(--green); font-weight:600; margin-left:6px; }
.badge-sample { display:inline-block; font-size:10px; padding:2px 7px; border-radius:8px; background:var(--blue-bg); color:var(--blue); font-weight:600; margin-left:4px; }
.badge-recommend { display:inline-block; font-size:10px; padding:2px 7px; border-radius:8px; background:#fdf1dc; color:#a87719; font-weight:600; margin-left:4px; }
.goods-farmer { font-size:11px; color:var(--muted); margin-top:6px; }
.empty-tip { text-align:center; color:var(--muted); font-size:13px; padding:30px 10px; }

/* ============ 我的 ============ */
.guest-box { text-align:center; padding:20px 10px; }
.guest-icon { font-size:44px; margin-bottom:10px; }
.guest-title { font-size:17px; font-weight:600; color:var(--coffee-700); margin-bottom:6px; }
.guest-desc { font-size:13px; color:var(--sub); line-height:1.7; margin-bottom:18px; max-width:360px; margin-left:auto; margin-right:auto; }

.profile-head {
  background:linear-gradient(135deg,#6b5240,#4a3728); color:#fff; border-radius:var(--radius);
  padding:22px 18px; margin-bottom:14px; display:flex; align-items:center; gap:14px;
}
.avatar { width:54px; height:54px; border-radius:50%; background:rgba(255,255,255,0.2); display:flex; align-items:center; justify-content:center; font-size:24px; flex-shrink:0; }
.profile-info { flex:1; min-width:0; }
.profile-info .p-name { font-size:17px; font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.profile-info .p-role { font-size:12px; opacity:0.75; margin-top:3px; }

.role-switch { display:flex; background:#f0e9de; border-radius:10px; padding:3px; margin-bottom:14px; }
.role-switch div {
  flex:1; text-align:center; padding:9px; font-size:13px; color:#8a7a64;
  border-radius:8px; cursor:pointer; transition:all 0.2s; font-weight:500;
}
.role-switch div.active { background:#fff; color:var(--coffee-700); font-weight:600; box-shadow:0 1px 4px rgba(0,0,0,0.06); }

.menu-list { background:#fff; border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow); }
.menu-item {
  display:flex; justify-content:space-between; align-items:center;
  padding:15px 18px; border-bottom:1px solid #f5f0e9; font-size:14px; color:var(--coffee-700);
  cursor:pointer;
}
.menu-item:last-child { border-bottom:none; }
.mi-right { display:flex; align-items:center; gap:10px; }
.menu-arrow { color:#c9bda8; font-size:16px; }
.menu-value { color:#a09380; font-size:12px; margin-right:4px; }
.menu-count { font-size:11px; background:#ede4d6; color:var(--coffee-500); padding:2px 8px; border-radius:10px; }

/* ============ 底部导航（移动 / 平板） ============ */
.bottom-nav {
  position:fixed; bottom:0; left:0; right:0; z-index:200;
  background:#fff; display:flex; border-top:1px solid var(--line);
  padding:6px 0 max(6px, env(safe-area-inset-bottom));
}
.nav-item { flex:1; text-align:center; padding:6px 0; cursor:pointer; transition:color 0.2s; }
.nav-item .nav-icon { font-size:20px; display:block; margin-bottom:2px; filter:grayscale(1) opacity(0.5); transition:filter 0.2s; }
.nav-item .nav-text { font-size:11px; color:var(--muted); }
.nav-item.active .nav-icon { filter:none; }
.nav-item.active .nav-text { color:var(--coffee-700); font-weight:600; }

/* ============ 弹窗 ============ */
.modal-mask {
  position:fixed; inset:0; background:rgba(0,0,0,0.45); z-index:300;
  display:none; align-items:flex-end; justify-content:center;
}
.modal-mask.show { display:flex; }
.modal {
  background:#fff; width:100%; max-height:92vh; overflow-y:auto;
  border-radius:18px 18px 0 0; padding:20px; animation:slideUp 0.25s ease;
}
@keyframes slideUp { from{transform:translateY(40px);opacity:0;} to{transform:translateY(0);opacity:1;} }
.modal-title { font-size:17px; font-weight:700; color:var(--coffee-700); margin-bottom:14px; display:flex; justify-content:space-between; align-items:center; }
.modal-close { font-size:20px; color:var(--muted); cursor:pointer; background:none; border:none; }
.modal-body .input-group { margin-bottom:12px; }
.modal-scroll { max-height:60vh; overflow-y:auto; padding-right:4px; }
.modal-scroll p { margin:0 0 10px; font-size:13px; line-height:1.7; color:#4d4435; }
.modal-footer { display:flex; gap:10px; margin-top:8px; }
.modal-footer .btn { flex:1; }

/* 列表样式（我的货源/咨询/样品等） */
.list-item {
  background:#fff; border-radius:var(--radius); padding:14px 16px; margin-bottom:10px; box-shadow:var(--shadow);
}
.list-item .li-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:6px; gap:8px; }
.list-item .li-name { font-weight:600; color:var(--coffee-700); font-size:14px; }
.list-item .li-status { font-size:11px; padding:2px 8px; border-radius:10px; white-space:nowrap; }
.st-new, .st-pending { background:#fdf1dc; color:#a87719; }
.st-shipped, .st-done { background:var(--green-bg); color:var(--green); }
.st-cancelled { background:#f5e6e6; color:#a85a5a; }
.list-item .li-line { font-size:12px; color:#8a7a64; line-height:1.7; }
.list-item .li-time { font-size:11px; color:var(--muted); margin-top:6px; }
.list-item .li-actions { display:flex; gap:8px; margin-top:10px; }
.list-item .li-actions .btn { padding:8px 14px; font-size:13px; flex:1; }

/* ============ 轻提示 ============ */
.toast {
  position:fixed; left:50%; bottom:96px; transform:translateX(-50%) translateY(20px);
  background:rgba(44,36,23,0.95); color:#fff; padding:11px 22px; border-radius:24px;
  font-size:14px; z-index:500; opacity:0; pointer-events:none; transition:all 0.3s; max-width:86vw; text-align:center;
}
.toast.show { opacity:1; transform:translateX(-50%) translateY(0); }

/* ============ 平板（≥768px） ============ */
@media (min-width:768px) {
  body { padding-bottom:76px; }
  .main-nav { display:flex; gap:4px; margin:0 auto; }
  .nav-link {
    padding:9px 16px; border-radius:20px; font-size:14px; color:rgba(255,255,255,0.85);
    cursor:pointer; transition:all 0.2s;
  }
  .nav-link.active { background:rgba(255,255,255,0.2); color:#fff; font-weight:600; }
  /* 电脑端也显示底部导航（5 个 tab 完整，含【知识】），居中显示 */
  .bottom-nav { display:flex; max-width:640px; left:0; right:0; margin:0 auto; border-radius:16px 16px 0 0; box-shadow:0 -4px 18px rgba(0,0,0,0.06); }
  .form-grid { grid-template-columns:1fr 1fr; }
  .price-grid { grid-template-columns:1fr 1fr; }
  .goods-grid { grid-template-columns:repeat(2,1fr); }
  .quick-grid { grid-template-columns:repeat(4,1fr); }
  .modal-mask { align-items:center; }
  .modal { width:520px; border-radius:18px; max-height:85vh; }
  .hero { padding:44px 30px; }
  .hero h2 { font-size:28px; }
}

/* ============ 页面头部（带操作按钮） ============ */
.page-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:14px; }
.page-head .page-title { margin:0; }

/* ============ 登录页 ============ */
#page-login { min-height:calc(100vh - 130px); }
.login-wrap { display:flex; align-items:center; justify-content:center; min-height:calc(100vh - 140px); padding:20px 0; }
.login-card {
  background:#fff; border-radius:18px; box-shadow:var(--shadow); padding:28px 22px;
  width:100%; max-width:420px;
}
.login-brand { display:flex; align-items:center; gap:12px; margin-bottom:6px; }
.login-logo { font-size:34px; }
.login-brand h2 { font-size:22px; color:var(--coffee-700); letter-spacing:2px; }
.login-brand p { font-size:12px; color:var(--muted); margin-top:2px; }
.login-sub { font-size:13px; color:var(--sub); margin:8px 0 18px; }
.code-row { display:flex; gap:10px; align-items:flex-end; }
.code-row .code-input { flex:1; }
.code-btn { flex-shrink:0; padding:12px 14px; margin-bottom:12px; white-space:nowrap; }
.code-btn:disabled { opacity:0.6; cursor:not-allowed; }
.btn-lg { width:100%; padding:14px; font-size:16px; letter-spacing:2px; }
.login-hint { font-size:11px; color:var(--muted); text-align:center; margin-top:14px; line-height:1.8; }
.login-back { display:block; text-align:center; font-size:12px; color:var(--coffee-400); margin-top:12px; cursor:pointer; }

/* ============ 小型标签页（我的咨询/样品筛选） ============ */
.tab-mini { display:flex; gap:6px; margin-bottom:14px; }
.tab-mini-item {
  padding:7px 16px; background:#fff; border:1.5px solid #e0d8cc; border-radius:18px;
  font-size:13px; color:#6b5d4a; cursor:pointer; transition:all 0.2s;
}
.tab-mini-item.active { background:var(--coffee-700); color:#fff; border-color:var(--coffee-700); }

/* ============ 我的货源 / 我的咨询 列表项增强 ============ */
.status-badge { font-size:11px; padding:2px 9px; border-radius:10px; font-weight:600; white-space:nowrap; }
.st-active { background:var(--green-bg); color:var(--green); }
.st-sold { background:#f0e9de; color:var(--coffee-600); }
.st-down { background:#f5e6e6; color:#a85a5a; }
.st-replied { background:var(--green-bg); color:var(--green); }
.st-shipped { background:#e8eef7; color:var(--blue); }
.st-done { background:var(--green-bg); color:var(--green); }
.st-pending { background:#fdf1dc; color:#a87719; }

.li-tags { margin-top:6px; display:flex; flex-wrap:wrap; gap:5px; }
.li-tags .tag { margin:0; }

/* 我的货源卡片（信息行 + 操作） */
.mygoods-item { background:#fff; border-radius:var(--radius); padding:16px; margin-bottom:12px; box-shadow:var(--shadow); }
.mygoods-top { display:flex; justify-content:space-between; align-items:center; gap:8px; margin-bottom:8px; }
.mygoods-name { font-size:16px; font-weight:600; color:var(--coffee-700); }
.mygoods-price { font-size:15px; font-weight:700; color:var(--coffee-400); }
.mygoods-meta { font-size:12px; color:#8a7a64; line-height:1.9; }
.mygoods-meta span { margin-right:12px; }
.mygoods-actions { display:flex; gap:8px; margin-top:12px; }
.mygoods-actions .btn { flex:1; padding:9px; font-size:13px; }
.photo-thumbs { display:flex; gap:6px; margin-top:8px; flex-wrap:wrap; }
.photo-thumbs img { width:64px; height:64px; object-fit:cover; border-radius:8px; border:1px solid var(--line); }

/* ============ 照片上传 ============ */
.photo-upload-row { display:flex; flex-wrap:wrap; gap:10px; }
.photo-box {
  width:84px; height:84px; border:1.5px dashed #d8c9b4; border-radius:10px;
  display:flex; align-items:center; justify-content:center; color:#a89880;
  font-size:22px; cursor:pointer; background:#faf8f5; overflow:hidden; position:relative;
}
.photo-box img { width:100%; height:100%; object-fit:cover; }
.photo-box .photo-del {
  position:absolute; top:2px; right:2px; background:rgba(0,0,0,0.6); color:#fff;
  width:18px; height:18px; line-height:18px; text-align:center; border-radius:50%;
  font-size:11px; cursor:pointer;
}
.photo-note { font-size:11px; color:var(--muted); margin-top:6px; }

/* ============ 开关（可寄样） ============ */
.toggle-row { display:flex; align-items:center; gap:10px; margin-bottom:12px; }
.toggle-row label { font-size:13px; color:#6b5d4a; font-weight:500; }
.toggle {
  width:46px; height:26px; border-radius:13px; background:#d8c9b4; position:relative;
  cursor:pointer; transition:background 0.2s; flex-shrink:0;
}
.toggle::after {
  content:''; position:absolute; top:3px; left:3px; width:20px; height:20px;
  background:#fff; border-radius:50%; transition:left 0.2s;
}
.toggle.on { background:var(--green); }
.toggle.on::after { left:23px; }

/* 需求图表单内嵌小提示 */
.form-tip { font-size:11px; color:var(--muted); margin-top:4px; }

/* ============ 桌面（≥1024px） ============ */
@media (min-width:1024px) {
  .container { padding:20px; }
  .goods-grid { grid-template-columns:repeat(3,1fr); }
  .topbar-inner { padding:12px 20px; }
  .brand-text h1 { font-size:22px; }
  .hero { padding:54px 36px; }
  .hero h2 { font-size:32px; }
  .hero p { font-size:14px; }
}

/* ============ 第三轮：货源封面 / 图片查看器 ============ */
.goods-cover {
  position:relative; width:100%; height:170px; border-radius:12px; overflow:hidden;
  margin-bottom:12px; cursor:zoom-in; background:#f3eee5;
}
.goods-cover img { width:100%; height:100%; object-fit:cover; display:block; }
.goods-cover .cover-n {
  position:absolute; right:8px; bottom:8px; background:rgba(0,0,0,0.6); color:#fff;
  font-size:11px; padding:2px 8px; border-radius:10px;
}
.goods-cover.no-photo {
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:6px; border:1.5px dashed #d8c9b4; background:#faf8f5; cursor:default;
}
.goods-cover.no-photo .cover-ph { font-size:34px; color:#d0bea2; }
.goods-cover.no-photo .cover-txt { font-size:12px; color:#b4a38a; }
.viewer { position:relative; min-height:260px; display:flex; flex-direction:column; }
.viewer-close {
  position:absolute; top:-6px; right:-6px; width:32px; height:32px; border-radius:50%;
  background:var(--coffee-700); color:#fff; font-size:18px; border:none; cursor:pointer; z-index:2;
}
.viewer-img-wrap { flex:1; min-height:0; display:flex; align-items:center; justify-content:center; background:#f7f3ec; border-radius:12px; overflow:hidden; }
.viewer-img-wrap img { max-width:100%; max-height:62vh; object-fit:contain; }
.viewer-nav { display:flex; align-items:center; justify-content:space-between; margin-top:14px; }
.viewer-btn { background:var(--coffee-700); color:#fff; border:none; padding:9px 16px; border-radius:20px; font-size:13px; cursor:pointer; }
.viewer-count { font-size:13px; color:var(--coffee-600); font-weight:600; }

/* 发布表单照片（真上传） */
.photo-box .photo-add { display:flex; flex-direction:column; align-items:center; gap:3px; font-size:13px; }
.photo-box .photo-add-txt { font-size:10px; color:#a89880; white-space:nowrap; }

/* ============ 第三轮：消息 / 角标 / 回复 ============ */
.msg-badge, .nav-badge {
  background:#e2544a; color:#fff; font-size:11px; font-weight:600;
  min-width:18px; height:18px; line-height:18px; text-align:center; border-radius:9px; padding:0 5px;
}
.nav-badge { position:absolute; top:-2px; right:18%; }
.nav-item { position:relative; }
.msg-item { cursor:pointer; }
.msg-item.unread { background:#fff8ec; border-left:3px solid var(--coffee-400); }
.msg-item .msg-dot { font-size:10px; color:#e2544a; font-weight:600; }
.li-reply { margin-top:8px; background:#f0e9de; border-radius:8px; padding:8px 10px; font-size:13px; color:var(--coffee-700); line-height:1.6; }
.li-wait { font-size:12px; color:var(--muted); }

/* ============ 第四轮：排序 / 处理方式筛选 ============ */
.sort-bar { display:flex; gap:8px; overflow-x:auto; padding:8px 2px; margin-bottom:2px; }
.sort-chip {
  flex-shrink:0; font-size:12px; color:var(--muted); background:#f4efe7; border:1px solid var(--line);
  padding:5px 12px; border-radius:16px; cursor:pointer; white-space:nowrap;
}
.sort-chip.active { background:var(--coffee-700); color:#fff; border-color:var(--coffee-700); }
.proc-bar { display:flex; gap:8px; overflow-x:auto; padding:4px 2px 10px; }
.proc-chip {
  flex-shrink:0; font-size:12px; color:var(--muted); background:#faf8f5; border:1px solid var(--line);
  padding:5px 12px; border-radius:16px; cursor:pointer; white-space:nowrap;
}
.proc-chip.active { background:var(--green); color:#fff; border-color:var(--green); }
.form-bar { display:flex; gap:8px; overflow-x:auto; padding:4px 2px 10px; }
.form-chip {
  flex-shrink:0; font-size:12px; color:var(--muted); background:#faf8f5; border:1px solid var(--line);
  padding:5px 12px; border-radius:16px; cursor:pointer; white-space:nowrap;
}
.form-chip.active { background:var(--coffee-500); color:#fff; border-color:var(--coffee-500); }
.badge-form { display:inline-block; font-size:10px; padding:2px 7px; border-radius:8px; background:var(--coffee-300); color:#fff; font-weight:600; margin-left:4px; }

/* ============ 第四轮：置顶标识 / 农户链接 ============ */
.goods-card { position:relative; }
.goods-topcorner { position:absolute; top:-6px; left:-6px; z-index:3; }
.top-tag {
  background:linear-gradient(135deg,#e8a33c,#d9781f); color:#fff; font-size:12px; font-weight:700;
  padding:4px 10px; border-radius:0 12px 12px 12px; box-shadow:0 2px 6px rgba(217,120,31,0.4);
}
.goods-card.is-top { border-color:rgba(232,163,60,0.6); box-shadow:0 2px 10px rgba(232,163,60,0.18); }
.farmer-link { color:var(--coffee-600); font-weight:600; cursor:pointer; text-decoration:none; border-bottom:1px dashed var(--coffee-400); }
.farmer-link:hover { color:var(--coffee-800); }
.v-badge {
  display:inline-block; background:#1d8a4e; color:#fff; font-size:10px; font-weight:600;
  padding:1px 7px; border-radius:9px; margin-left:6px; vertical-align:middle;
}

/* ============ 第四轮：我的积分页 ============ */
.points-card {
  background:linear-gradient(135deg,#5b3a20,#8a5a2e); color:#fff; border-radius:14px;
  padding:22px 18px; text-align:center; margin-bottom:12px;
}
.pc-label { font-size:13px; opacity:0.85; }
.pc-value { font-size:40px; font-weight:800; margin:6px 0 12px; }
.pc-actions { text-align:center; }
.plan-row {
  display:flex; align-items:center; justify-content:space-between; padding:12px 0;
  border-bottom:1px solid var(--line);
}
.plan-row:last-child { border-bottom:none; }
.plan-cost { color:var(--coffee-700); font-weight:700; margin-right:12px; }
.pts-plus { color:#1d8a4e; font-weight:700; }
.pts-minus { color:#e2544a; font-weight:700; }
#pointsLog .li-line { display:flex; align-items:center; gap:8px; padding:8px 0; border-bottom:1px solid var(--line); }
#pointsLog .li-line:last-child { border-bottom:none; }

/* ============ 第四轮：分享有礼弹窗 ============ */
.share-box { display:flex; flex-direction:column; align-items:center; gap:10px; margin:12px 0; }
.share-qr { width:170px; height:170px; border:1px solid var(--line); border-radius:12px; padding:6px; background:#fff; }
.share-link { font-size:12px; color:var(--coffee-600); word-break:break-all; text-align:center; background:#f4efe7; padding:8px 12px; border-radius:8px; width:100%; }
.share-stat { font-size:12px; color:var(--muted); }
.rule-list { margin-top:6px; }
.rule-item { font-size:13px; color:#6b5d4a; padding:7px 0; border-bottom:1px dashed var(--line); display:flex; justify-content:space-between; align-items:center; }
.rule-item:last-child { border-bottom:none; }
.rule-pts { color:#e8a33c; font-weight:700; }
.rule-note { font-size:11px; color:var(--muted); margin-top:8px; background:#faf8f5; padding:8px; border-radius:8px; }

/* ============ 第四轮：农户主页 ============ */
.farmer-card { background:#fff; border:1px solid var(--line); border-radius:14px; padding:16px; margin-bottom:14px; }
.fc-head { display:flex; gap:12px; align-items:flex-start; }
.fc-avatar {
  width:52px; height:52px; border-radius:50%; background:var(--coffee-100); color:var(--coffee-700);
  display:flex; align-items:center; justify-content:center; font-size:24px; flex-shrink:0;
}
.fc-info { flex:1; min-width:0; }
.fc-name { font-size:17px; font-weight:700; color:var(--coffee-800); }
.fc-region { font-size:13px; color:var(--muted); margin-top:2px; }
.fc-bio { font-size:13px; color:#6b5d4a; margin-top:8px; line-height:1.6; background:#faf8f5; border-radius:8px; padding:8px 10px; }
.fc-bio-empty { color:var(--muted); font-style:italic; }
.fc-stats { display:flex; margin-top:14px; border-top:1px solid var(--line); padding-top:12px; }
.fc-stat { flex:1; text-align:center; }
.fc-n { font-size:20px; font-weight:800; color:var(--coffee-700); }
.fc-l { font-size:11px; color:var(--muted); margin-top:2px; }

/* ============ 第五轮：信任标签体系 ============ */
.goods-trust { display:flex; flex-wrap:wrap; gap:5px; margin:6px 0 2px; }
.t-badge { display:inline-block; font-size:10px; font-weight:700; padding:2px 7px; border-radius:8px; color:#fff; }
.tb-blue { background:#2b6fd4; }
.tb-green { background:#1d8a4e; }
.tb-gold { background:linear-gradient(135deg,#e8a33c,#d9781f); }
.tb-purple { background:#7b3fd4; }
.tb-gray { background:#8a8070; }
.badge-nego { display:inline-block; font-size:10px; padding:2px 7px; border-radius:8px; background:#fff3e0; color:#d9781f; font-weight:600; margin-left:4px; }
.cup-none { color:var(--muted); font-size:12px; }
.field-hint { font-size:11px; color:var(--muted); margin-top:3px; line-height:1.5; }
.menu-badge { display:inline-block; background:#1d8a4e; color:#fff; font-size:10px; padding:1px 7px; border-radius:9px; font-weight:600; }
.fc-trust { display:flex; flex-wrap:wrap; gap:5px; margin-top:6px; }
.fc-rec { font-size:12px; color:#d9781f; margin-top:6px; background:#fff8ee; padding:6px 10px; border-radius:8px; }

/* ============ 第五轮：种植 tabs / 咖啡医生 ============ */
.plant-tabs, .kn-tabs { display:flex; gap:8px; overflow-x:auto; padding:4px 2px 10px; }
.plant-tab, .kn-tab { flex-shrink:0; font-size:13px; color:var(--muted); background:#faf8f5; border:1px solid var(--line); padding:6px 14px; border-radius:18px; cursor:pointer; white-space:nowrap; }
.plant-tab.active, .kn-tab.active { background:var(--coffee-700); color:#fff; border-color:var(--coffee-700); }
.doctor-hero { background:#fff; border:1px solid var(--line); border-radius:14px; padding:16px; }
.doctor-title { font-size:17px; font-weight:700; color:var(--coffee-800); margin-bottom:4px; }
.upload-box { border:1.5px dashed var(--coffee-400); border-radius:10px; padding:16px; text-align:center; cursor:pointer; background:#faf8f5; }
.up-hint { font-size:13px; color:var(--muted); }
.doc-result { background:#f4efe7; border-radius:12px; padding:14px; margin-top:14px; }
.doc-disease { font-size:16px; color:var(--coffee-800); margin-bottom:8px; }
.doc-block { margin-top:8px; }
.doc-label { font-size:12px; font-weight:700; color:var(--coffee-700); }
.doc-block p { font-size:13px; color:#6b5d4a; margin:3px 0 0; line-height:1.6; }
.doc-note { font-size:11px; color:#d9781f; margin-top:8px; }
.diag-item { padding:10px 0; border-bottom:1px dashed var(--line); }
.diag-item:last-child { border-bottom:none; }
.diag-time { font-size:11px; color:var(--muted); margin-left:6px; }
.diag-txt { font-size:12px; color:#6b5d4a; margin-top:3px; }

/* ============ 第五轮：咖啡知识 ============ */
.kn-fav-bar { text-align:right; margin-bottom:10px; }
.article-card { background:#fff; border:1px solid var(--line); border-radius:12px; padding:14px; margin-bottom:10px; }
.article-cat { display:inline-block; font-size:10px; background:var(--coffee-100); color:var(--coffee-700); padding:2px 8px; border-radius:8px; font-weight:600; }
.article-title { font-size:16px; font-weight:700; color:var(--coffee-800); margin-top:6px; cursor:pointer; }
.article-prev { font-size:13px; color:#6b5d4a; margin-top:6px; line-height:1.6; }
.article-ops { display:flex; align-items:center; justify-content:space-between; margin-top:10px; }
.article-detail { line-height:1.9; }
.art-cover { width:100%; max-height:260px; object-fit:cover; border-radius:12px; margin:10px 0; display:block; }
.art-video { width:100%; max-height:320px; border-radius:12px; margin:10px 0; background:#000; display:block; }
.art-video-link { display:flex; align-items:center; justify-content:center; gap:8px; background:#2c2417; color:#fff; padding:16px; border-radius:12px; margin:10px 0; font-size:15px; font-weight:600; text-decoration:none; }
.fav-item { padding:11px 0; border-bottom:1px dashed var(--line); cursor:pointer; color:var(--coffee-700); }
.fav-item:last-child { border-bottom:none; }

/* ============ 第五轮：议价 ============ */
.nego-item { padding:10px 0; border-bottom:1px dashed var(--line); }
.nego-item:last-child { border-bottom:none; }
.nego-row { font-size:14px; color:var(--coffee-800); }
.nego-price { color:#d9781f; }
.nego-st { font-size:11px; color:#fff; background:var(--coffee-500); padding:1px 7px; border-radius:8px; margin-left:6px; }
.nego-txt { font-size:12px; color:#6b5d4a; margin-top:4px; }
.nego-time { font-size:11px; color:var(--muted); margin-top:4px; }
.nego-act { display:flex; gap:8px; margin-top:8px; }

/* ============ 第五轮：实名 / 保证金 / 小组长 / 纠纷 ============ */
.realname-ok { background:#e6f6ee; color:#1d8a4e; padding:10px; border-radius:10px; font-size:13px; margin-bottom:10px; }
.dep-balance { display:flex; justify-content:space-between; align-items:center; background:linear-gradient(135deg,#5b3a20,#8a5a2e); color:#fff; border-radius:12px; padding:16px 18px; }
.dep-balance b { font-size:24px; }
.dep-tier { font-size:12px; color:var(--coffee-700); margin:10px 0 4px; background:#f4efe7; padding:8px; border-radius:8px; }
.dep-logs { margin-top:12px; }
.dep-item { display:flex; justify-content:space-between; padding:8px 0; border-bottom:1px dashed var(--line); font-size:13px; }
.dep-item:last-child { border-bottom:none; }
.dep-plus { color:#1d8a4e; }
.dep-minus { color:#e2544a; }
.modal-footer-inline { margin:8px 0 4px; }

/* ============ 加工服务（生豆 / 脱壳 / 烘焙） ============ */
.proc-badge { display:inline-block; background:linear-gradient(135deg,#e8b34b,#c98d1f); color:#fff; font-size:11px; font-weight:600; padding:2px 8px; border-radius:10px; }
.svc-badge { display:inline-block; background:#eef2f7; color:#4a6286; font-size:11px; font-weight:600; padding:2px 8px; border-radius:10px; }
.sv-head { background:#fff8ec; border:1px solid #f0e0c0; border-radius:12px; padding:10px 12px; margin-bottom:10px; }
.sv-name { font-size:15px; font-weight:700; color:var(--coffee-800); }
.sv-tag { display:inline-block; background:linear-gradient(135deg,#8b6b3d,#6b4f2a); color:#fff; font-size:11px; font-weight:600; padding:2px 8px; border-radius:10px; margin-left:6px; }
.sv-meta { font-size:12px; color:#7a6a55; margin-top:3px; }
.sv-sec-title { font-size:13px; font-weight:700; color:var(--coffee-800); margin:10px 0 6px; }
.sv-goods { background:#faf6ef; border-radius:8px; padding:7px 10px; font-size:13px; color:var(--coffee-700); margin-bottom:6px; }
.credit-stat { display:flex; gap:14px; background:#faf6ef; border-radius:10px; padding:8px 12px; font-size:13px; color:var(--coffee-700); margin-bottom:8px; }
.credit-stat b { color:#b45309; }
.guar-item { font-size:13px; color:var(--coffee-700); padding:4px 0; }
.fc-credit-btn { margin-top:10px; text-align:center; background:#fff8ec; border:1px dashed #d8b26a; border-radius:10px; padding:8px; font-size:13px; color:#b45309; font-weight:600; cursor:pointer; }
.proc-check { display:flex; gap:18px; margin-top:6px; }
.proc-check .chk { display:flex; align-items:center; gap:6px; font-size:14px; color:var(--coffee-800); }
.proc-check input { width:16px; height:16px; accent-color:var(--coffee-700); }
.det-body { padding-top:4px; }
.det-meta { display:flex; flex-wrap:wrap; gap:10px; font-size:13px; color:var(--coffee-700); margin:8px 0; }
.det-proc-label { font-size:13px; font-weight:600; color:var(--coffee-800); margin-top:10px; }
.det-proc { display:flex; gap:10px; margin:8px 0 4px; }
.proc-btn { flex:1; border:1.5px solid var(--line); background:#fff; color:var(--coffee-700); font-size:14px; font-weight:600; padding:9px 0; border-radius:10px; cursor:pointer; transition:.15s; }
.proc-btn.active { background:linear-gradient(135deg,#6a4523,#8a5a2e); color:#fff; border-color:transparent; }
.proc-btn.disabled { opacity:.4; cursor:not-allowed; }
.det-fee-note { font-size:12px; color:var(--coffee-600); margin:2px 0 8px; }
.det-flavor { font-size:13px; color:var(--coffee-700); margin:6px 0; }
.det-photos { display:flex; gap:8px; margin:8px 0; flex-wrap:wrap; }
.det-photos img { width:86px; height:86px; object-fit:cover; border-radius:10px; cursor:pointer; border:1px solid var(--line); }
.det-price { font-size:15px; color:var(--coffee-800); margin:10px 0 4px; }
.det-price b { color:#b45309; font-size:17px; }
.det-svc { display:inline-block; background:#eef2f7; color:#4a6286; font-size:12px; font-weight:600; padding:3px 10px; border-radius:10px; margin:4px 0; }
.det-farmer { font-size:13px; color:var(--coffee-700); margin:6px 0 10px; }
.tb-red { background:#e2544a; }

/* ============ 移动端顶部导航优化（品牌标语始终显示，窄屏缩小字号保证放得下） ============ */
@media (max-width:700px) {
  .topbar-inner { padding:9px 12px; gap:8px; }
  .brand { gap:6px; }
  .brand-logo { font-size:24px; }
  /* 品牌标语始终显示，绝不隐藏；窄屏缩小字号避免挤到按钮 */
  .brand-text p { display:block; font-size:9px; letter-spacing:0; white-space:nowrap; }
  .brand-text h1 { font-size:16px; }
  .top-actions { margin-left:auto; gap:6px; flex-shrink:0; }
  .top-publish { padding:5px 8px; font-size:12px; white-space:nowrap; }
  .user-chip { padding:5px 8px; font-size:12px; margin-right:1px; }
  .user-chip .uc-name { max-width:56px; }
}

/* ===== 需求模块 + 信用体系 + 小组长公开 ===== */
.trade-toggle { display:flex; gap:8px; margin:10px 0; }
.trade-btn { flex:1; text-align:center; padding:9px 0; border-radius:10px; background:var(--coffee-100,#f3ead9); color:var(--coffee-700); font-weight:600; font-size:14px; cursor:pointer; border:1px solid #e6d9bd; transition:.2s; }
.trade-btn.active { background:linear-gradient(135deg,#7b4a12,#b45309); color:#fff; border-color:transparent; }
.credit-badge { display:inline-block; font-size:10px; font-weight:700; padding:2px 7px; border-radius:8px; color:#fff; margin-left:4px; }
.credit-top { display:flex; align-items:center; gap:10px; margin-bottom:8px; }
.credit-score { font-size:14px; color:var(--coffee-800); }
.credit-score b { color:#b45309; font-size:20px; }
.btn-row { display:flex; gap:8px; margin:8px 0; flex-wrap:wrap; }
.nego-tag { display:inline-block; font-size:9px; padding:1px 5px; border-radius:6px; background:#fff3e0; color:#d9781f; margin-left:4px; font-weight:600; }
.demand-deadline { color:#d9781f; font-size:12px; }
.pending-warn { background:#fff3e0; color:#b45309; padding:8px 10px; border-radius:8px; font-size:13px; margin-bottom:8px; }
.nego-ok { color:#1d8a4e; }
.nego-danger { color:#dc2626; }
.rank-no { font-weight:700; color:#b45309; min-width:22px; display:inline-block; }
.form-hint { font-size:12px; color:var(--muted); background:#faf6ef; padding:6px 10px; border-radius:6px; margin:6px 0; line-height:1.5; }

/* ===== 收藏货源 / 关注农户（买家侧第一轮） ===== */
.fav-btn { background:none; border:none; font-size:20px; line-height:1; cursor:pointer; color:#c8bdb0; padding:0 2px; transition:transform .12s; }
.fav-btn:hover { transform:scale(1.18); }
.fav-btn.on { color:#e0245e; }
.fav-row { padding:10px 4px; border-bottom:1px solid #f0e8da; }
.fav-row:last-child { border-bottom:none; }
.fav-row b { color:var(--coffee-800); font-size:15px; }
.fav-sub { font-size:12px; color:var(--muted); margin-top:3px; }
.fav-op { display:inline-block; margin-top:6px; font-size:12px; color:#b45309; cursor:pointer; padding:3px 10px; border:1px solid #e6c9a2; border-radius:14px; }
.fav-op:hover { background:#faf3e6; }
.fc-follow { font-size:12px; padding:5px 12px; white-space:nowrap; }
.fc-follow-count { font-size:11px; color:var(--muted); }




/* =========================================================
   圈子 · 推荐/交流 双标签 + 帖子
   ========================================================= */
.circle-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.circle-tab {
  flex: 1; padding: 10px 0; text-align: center; cursor: pointer;
  background: #f5efe4; color: #7a6a52; border-radius: 10px;
  font-size: 15px; font-weight: 600; border: 1px solid #e4dcc9; transition: all .2s;
}
.circle-tab.active { background: var(--coffee, #6f4e2e); color: #fff; border-color: var(--coffee, #6f4e2e); }
.post-toolbar { display: flex; gap: 8px; align-items: center; margin: 10px 0 12px; }
.post-toolbar .btn-gold { flex: 1; }
.post-cat-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.post-cat-bar .filter-chip { cursor: pointer; }
.post-card {
  background: #fff; border: 1px solid #eee2cd; border-radius: 12px;
  padding: 12px 14px; margin-bottom: 12px; box-shadow: 0 1px 3px rgba(111,78,46,.06);
}
.post-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.post-cat {
  background: var(--coffee-light, #efe3ce); color: #6f4e2e;
  font-size: 11px; padding: 2px 8px; border-radius: 20px; font-weight: 600;
}
.post-author { color: #8a7a62; font-size: 12px; }
.post-status { color: #c98a2d; font-size: 11px; background:#fbf1dc; padding:1px 6px; border-radius:4px; }
.post-report { margin-left: auto; font-size: 11px; color: #b09070; background: none; border: none; cursor: pointer; }
.post-title { font-size: 16px; font-weight: 700; color: #3a2c18; margin-bottom: 4px; }
.post-content { font-size: 14px; color: #4a3a24; line-height: 1.7; margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.post-imgs { display: flex; gap: 6px; margin-bottom: 8px; }
.post-imgs img { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; cursor: pointer; }
.post-foot { display: flex; gap: 8px; border-top: 1px dashed #eee2cd; padding-top: 8px; }
.btn-liked { background: #c0392b; color: #fff; border: none; }
.comment-block { margin-top: 12px; }
.comment-title { font-weight: 700; color: #3a2c18; margin-bottom: 6px; }
.comment-item { font-size: 13px; color: #4a3a24; padding: 6px 0; border-bottom: 1px dashed #f0e6d4; }
.comment-author { color: #6f4e2e; font-weight: 600; }
.comment-reply { margin-left: 8px; font-size: 11px; color: #b09070; background: none; border: none; cursor: pointer; }