* { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
body { font-family:-apple-system,"PingFang SC","Microsoft YaHei",sans-serif; background:#f0eee6; color:#262521; }
#shell { max-width:520px; margin:0 auto; min-height:100vh; background:#f0eee6; position:relative; }
#app { padding-bottom:64px; min-height:100vh; }

/* 顶栏 */
.topbar { position:sticky; top:0; z-index:20; background:#fff; padding:12px 14px; display:flex; align-items:center; gap:10px; border-bottom:1px solid #e9e5da; }
.topbar h1 { font-size:17px; flex:1; }
.topbar .back { font-size:20px; cursor:pointer; padding:0 6px; color:#333; text-decoration:none; }
.bell { position:relative; cursor:pointer; font-size:18px; }
.badge { position:absolute; top:-6px; right:-10px; background:#b3352b; color:#fff; border-radius:9px; font-size:10px; min-width:16px; height:16px; line-height:16px; text-align:center; padding:0 4px; font-style:normal; }
.hide { display:none !important; }

/* 底部导航 */
#tabbar { position:fixed; bottom:0; left:50%; transform:translateX(-50%); width:100%; max-width:520px; background:#fff; border-top:1px solid #e6e2d6; display:flex; z-index:30; }
#tabbar a { flex:1; text-align:center; padding:7px 0 6px; font-size:11px; color:#8b8778; text-decoration:none; position:relative; }
#tabbar a .ico { display:block; font-size:19px; margin-bottom:1px; }
#tabbar a.active { color:#d97757; font-weight:600; }
#tabbar a .badge { top:0; right:calc(50% - 24px); }
#pub-fab { flex:0 0 56px; width:52px; height:52px; margin:-18px 8px 0; border:0; border-radius:50%; background:#d97757; color:#fff; font-size:28px; line-height:1; box-shadow:0 3px 8px rgba(22,104,220,.4); cursor:pointer; }
#pub-fab:active { transform:scale(.94); }

/* 发布选择弹层 */
.pub-mask { position:fixed; inset:0; background:rgba(0,0,0,.4); z-index:85; display:flex; align-items:flex-end; }
.pub-sheet { background:#fff; width:100%; max-width:520px; margin:0 auto; border-radius:16px 16px 0 0; padding:8px 0 14px; animation:pubup .2s ease; }
@keyframes pubup { from { transform:translateY(100%); } to { transform:translateY(0); } }
.pub-h { text-align:center; font-size:16px; font-weight:600; padding:14px 0 6px; }
.pub-opt { display:flex; align-items:center; gap:12px; padding:14px 20px; cursor:pointer; }
.pub-opt:active { background:#f0eee6; }
.pub-opt .pico { font-size:26px; }
.pub-opt b { font-size:16px; display:block; }
.pub-opt span { font-size:12px; color:#8b8778; }
.pub-cancel { text-align:center; padding:14px; margin-top:6px; color:#57544a; border-top:8px solid #f0eee6; cursor:pointer; }

/* 搜索历史 */
#f-history { background:#fff; }
.hist-row { display:flex; align-items:center; gap:6px; padding:0 12px 8px; flex-wrap:wrap; }
.hist-label { font-size:12px; color:#8b8778; }
.hist-chip { background:#f0eee6; border-radius:12px; padding:3px 11px; font-size:12px; color:#57544a; cursor:pointer; }
.hist-chip:active { background:#f6e8dd; }
.hist-clear { font-size:11px; color:#aba69a; cursor:pointer; margin-left:auto; }

/* 大厅空状态 */
.feed-empty { text-align:center; padding:60px 20px; }
.feed-empty .fe-icon { font-size:54px; }
.feed-empty .fe-t { font-size:16px; font-weight:600; margin-top:12px; }
.feed-empty .fe-s { font-size:13px; color:#8b8778; margin-top:6px; }
.feed-empty .fe-btns { display:flex; gap:12px; justify-content:center; margin-top:22px; }

/* 图片查看大图 */
.img-mask { position:fixed; inset:0; background:rgba(0,0,0,.92); z-index:95; display:flex; align-items:center; justify-content:center; cursor:zoom-out; }
.img-mask img { max-width:100%; max-height:100%; object-fit:contain; }
.img-mask .img-close { position:absolute; top:20px; right:24px; color:#fff; font-size:26px; }

/* 通用 */
.card { background:#fff; border-radius:10px; margin:10px 12px; padding:12px; }
.btn { display:block; width:100%; background:#d97757; color:#fff; border:0; border-radius:8px; padding:11px; font-size:15px; cursor:pointer; }
.btn:disabled { opacity:.5; }
.btn.ghost { background:#fff; color:#d97757; border:1px solid #d97757; }
.btn.warn { background:#b3352b; }
.btn.small { display:inline-block; width:auto; padding:6px 14px; font-size:13px; border-radius:6px; }
.btn.gray { background:#f0eee6; color:#57544a; }
input, select, textarea { width:100%; border:1px solid #ddd8cb; border-radius:8px; padding:10px; font-size:14px; background:#fff; margin-top:6px; }
textarea { min-height:88px; resize:vertical; }
label.f { display:block; margin-top:12px; font-size:13px; color:#57544a; }
label.f b.req { color:#b3352b; }
.row { display:flex; gap:8px; }
.row > * { flex:1; }
.muted { color:#8b8778; font-size:12px; }
.center { text-align:center; }
h2.sec { font-size:14px; color:#57544a; margin:16px 14px 4px; }

/* feed */
.typetabs { display:flex; background:#fff; }
.typetabs div { flex:1; text-align:center; padding:10px 0; font-size:15px; color:#57544a; cursor:pointer; border-bottom:2px solid transparent; }
.typetabs div.on { color:#d97757; border-color:#d97757; font-weight:600; }
.chipbar { display:flex; overflow-x:auto; gap:8px; padding:10px 12px; background:#fff; scrollbar-width:thin; scrollbar-color:#d9c7bd transparent; }
.chipbar::-webkit-scrollbar { height:5px; }
.chipbar::-webkit-scrollbar-thumb { background:#d9c7bd; border-radius:3px; }
.chipbar::-webkit-scrollbar-track { background:transparent; }
/* 桌面端:品类全部换行铺开,不再横向滚动(16 个大类一屏看全) */
@media (min-width: 768px) {
  .chipbar { flex-wrap:wrap; overflow-x:visible; }
}
.chip { flex:0 0 auto; background:#f0eee6; border-radius:14px; padding:5px 13px; font-size:13px; color:#57544a; cursor:pointer; white-space:nowrap; }
.chip.on { background:#f6e8dd; color:#d97757; font-weight:600; }
.filters { display:flex; gap:6px; padding:0 12px 10px; background:#fff; }
.filters select { margin-top:0; font-size:13px; padding:7px 6px; }
.searchbar { padding:0 12px 10px; background:#fff; display:flex; gap:8px; }
.searchbar input { margin-top:0; }
.searchbar button { flex:0 0 auto; }

.lcard { background:#fff; border-radius:10px; margin:10px 12px; padding:12px; display:flex; gap:10px; cursor:pointer; }
.lcard .cover { width:84px; height:84px; border-radius:8px; background:#f0eee6 center/cover no-repeat; flex:0 0 auto; display:flex; align-items:center; justify-content:center; font-size:26px; }
.lcard .info { flex:1; min-width:0; }
.lcard .t { font-size:15px; font-weight:600; overflow:hidden; text-overflow:ellipsis; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.lcard .meta { margin-top:5px; font-size:12px; color:#8b8778; display:flex; flex-wrap:wrap; gap:6px; }
.tag { background:#f0eee6; border-radius:4px; padding:1px 6px; font-size:11px; color:#57544a; }
.tag.blue { background:#f6e8dd; color:#d97757; }
.tag.gold { background:#fff7e6; color:#d48806; }
.tag.red { background:#f7e2de; color:#b3352b; }
.tag.green { background:#eaf0e2; color:#5e8c5b; }

/* 详情 */
.gallery { display:flex; overflow-x:auto; gap:8px; padding:12px; background:#fff; }
.gallery img { height:200px; border-radius:8px; }
.gallery video { height:200px; border-radius:8px; }
.kv { display:flex; padding:6px 0; font-size:14px; }
.kv .k { width:88px; color:#8b8778; flex:0 0 auto; }
.kv .v { flex:1; }
.contactbox { background:#f6f4ee; border-radius:8px; padding:12px; margin-top:10px; }
a.btn { text-decoration:none; box-sizing:border-box; }
.btn.call { background:#5e8c5b; color:#fff; font-size:16px; font-weight:600; padding:13px; margin-top:4px; }
.safetip { background:#fff7e6; color:#d48806; font-size:12px; line-height:1.6; border-radius:8px; padding:10px 12px; margin-top:10px; }
.disclaimer { text-align:center; font-size:11px; color:#aba69a; padding:14px 20px 20px; }
.desc { white-space:pre-wrap; font-size:14px; line-height:1.7; color:#333; }

/* 消息 */
.convitem { display:flex; gap:10px; padding:13px 14px; background:#fff; border-bottom:1px solid #f0eee6; cursor:pointer; align-items:center; }
.avatar { width:44px; height:44px; border-radius:50%; background:#f6e8dd; color:#d97757; display:flex; align-items:center; justify-content:center; font-size:18px; font-weight:600; flex:0 0 auto; position:relative; }
.avatar .dot { position:absolute; right:0; bottom:0; width:10px; height:10px; border-radius:50%; border:2px solid #fff; background:#c6c1b4; }
.avatar .dot.on { background:#5e8c5b; }
.convitem .cinfo { flex:1; min-width:0; }
.convitem .cname { font-size:15px; font-weight:600; display:flex; gap:6px; align-items:center; }
.convitem .clast { font-size:12px; color:#8b8778; margin-top:3px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.convitem .cright { text-align:right; font-size:11px; color:#aba69a; }
.convitem .cright .badge { position:static; display:inline-block; margin-top:5px; }

/* 聊天 */
#chatlist { padding:12px 12px 76px; }
.bubble { max-width:76%; margin:6px 0; padding:9px 12px; border-radius:10px; font-size:14px; line-height:1.5; word-break:break-all; clear:both; }
.bubble.me { float:right; background:#f4e3d7; border-top-right-radius:2px; }
.bubble.them { float:left; background:#fff; border-top-left-radius:2px; }
.bubble img { max-width:100%; border-radius:6px; display:block; }
.bubble.wx { background:#eaf0e2; border:1px dashed #5e8c5b; }
.bubble .bt { font-size:10px; color:#aba69a; margin-top:4px; text-align:right; }
#chatinput { position:fixed; bottom:0; left:50%; transform:translateX(-50%); width:100%; max-width:520px; background:#fff; display:flex; gap:8px; padding:10px 12px; border-top:1px solid #e6e2d6; z-index:40; }
#chatinput input[type=text] { flex:1; margin-top:0; }
#chatinput button { flex:0 0 auto; width:auto; padding:0 16px; }
.chat-sys { text-align:center; font-size:11px; color:#aba69a; margin:8px 0; clear:both; }

/* mine 状态徽章 */
.stbadge { font-size:11px; border-radius:4px; padding:2px 7px; }
.st-pending_payment { background:#fff7e6; color:#d48806; }
.st-active { background:#eaf0e2; color:#5e8c5b; }
.st-expired { background:#f0eee6; color:#8b8778; }
.st-completed { background:#f6e8dd; color:#d97757; }
.st-removed { background:#f7e2de; color:#b3352b; }

/* me */
.mehead { background:linear-gradient(135deg,#d97757,#e0916f); color:#fff; padding:22px 16px; }
.mehead .nm { font-size:19px; font-weight:600; }
.mehead .memberline { margin-top:8px; font-size:13px; opacity:.92; }
/* 「我」页赞赏横幅:平台根基入口,统计卡下方、基础资料上方,要醒目 */
.donatebanner { display:flex; align-items:center; gap:14px; margin:12px 12px 4px;
  background:linear-gradient(135deg,#d97757,#c05c3b); border-radius:14px;
  padding:16px 18px; color:#fff; cursor:pointer;
  box-shadow:0 3px 14px rgba(217,119,87,.28); }
.donatebanner:hover { filter:brightness(1.05); }
.donatebanner .db-l { flex:1; }
.donatebanner .db-t { font-size:16.5px; font-weight:700; margin-bottom:4px;
  font-family:Georgia,"Songti SC",serif; }
.donatebanner .db-s { font-size:12.5px; line-height:1.65; color:#fbe9df; }
.donatebanner .db-btn { flex-shrink:0; display:inline-block; width:auto;
  background:#fff; color:#c05c3b; font-weight:700; border:none;
  padding:10px 18px; white-space:nowrap; }
@media (min-width: 768px) { .donatebanner { max-width:760px; margin:14px auto 4px; } }

/* 行情:大厅入口 banner + 行情页卡片(涨红跌绿,A股习惯) */
.market-entry { display:flex; align-items:center; justify-content:space-between; margin:10px 12px;
  padding:12px 16px; background:linear-gradient(135deg,#d97757,#c05c3b); color:#fff;
  border-radius:12px; cursor:pointer; font-size:13.5px; }
.market-entry b { font-size:15px; } .market-entry .me-go { font-weight:700; flex-shrink:0; margin-left:10px; }
.mk-note { font-size:12px; color:#8b8778; margin:10px 12px 4px; line-height:1.65; }
.mk-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:10px; padding:0 12px; }
.mk-card { background:#fff; border-radius:12px; padding:14px 15px; }
.mk-l2 { font-size:13px; color:#57544a; margin-bottom:6px; }
.mk-price { font-size:22px; font-weight:700; color:#262521; font-family:Georgia,"Songti SC",serif; line-height:1.2; }
.mk-price span { font-size:12px; font-weight:400; color:#8b8778; margin-left:4px; font-family:inherit; }
.mk-chg { font-size:12.5px; margin-top:5px; font-variant-numeric:tabular-nums; }
.mk-chg.up { color:#c0392b; } .mk-chg.down { color:#3a7d3a; } .mk-chg.flat { color:#8b8778; }
@media (min-width: 768px) { .market-entry { margin:12px 0; } .mk-grid { padding:0; } .mk-note { margin:10px 0 4px; } }

.statgrid { display:flex; text-align:center; padding:14px 0; }
.statgrid div { flex:1; }
.statgrid b { display:block; font-size:18px; }
.statgrid span { font-size:11px; color:#8b8778; }
.prefline { display:flex; align-items:center; gap:8px; padding:6px 0; font-size:13px; }
.prefline .x { color:#b3352b; cursor:pointer; padding:0 6px; }

/* toast & modal */
#toast { position:fixed; left:50%; bottom:90px; transform:translateX(-50%); background:rgba(0,0,0,.75); color:#fff; padding:9px 18px; border-radius:8px; font-size:13px; opacity:0; transition:opacity .25s; z-index:99; pointer-events:none; max-width:80%; text-align:center; }
#toast.show { opacity:1; }
#modal-mask { position:fixed; inset:0; background:rgba(0,0,0,.45); z-index:80; display:flex; align-items:center; justify-content:center; }
#modal { background:#fff; border-radius:12px; width:86%; max-width:420px; max-height:76vh; padding:18px; overflow-y:auto; }
#modal h3 { margin-bottom:10px; }
#modal-body { font-size:13px; line-height:1.8; color:#57544a; margin-bottom:14px; white-space:pre-wrap; }

/* login */
.loginwrap { padding:60px 26px; }
.loginwrap h1 { font-size:26px; margin-bottom:6px; }
.loginwrap .sub { color:#8b8778; font-size:13px; margin-bottom:30px; }
.agreeline { display:flex; gap:6px; align-items:flex-start; font-size:12px; color:#8b8778; margin-top:14px; }
.agreeline input { width:auto; margin-top:2px; }
.agreeline a { color:#d97757; text-decoration:none; }
.devhint { margin-top:10px; font-size:12px; color:#d48806; background:#fff7e6; border-radius:6px; padding:8px; }

.loadmore { text-align:center; padding:14px; color:#d97757; font-size:13px; cursor:pointer; }
.empty { text-align:center; color:#aba69a; padding:60px 0; font-size:13px; }

/* 新手引导 */
#guide-mask { position:fixed; inset:0; background:rgba(15,23,42,.74); z-index:90; display:flex; align-items:center; justify-content:center; padding:20px; }
.gcard { background:#fff; border-radius:16px; max-width:400px; width:100%; padding:26px 22px 20px; position:relative; }
.gskip { position:absolute; top:12px; right:16px; font-size:12px; color:#8b8778; cursor:pointer; }
.gicon { font-size:46px; text-align:center; }
.gstep { text-align:center; font-size:11px; color:#aba69a; margin-top:4px; }
.gtitle { font-size:19px; font-weight:700; text-align:center; margin:8px 0 10px; }
.gbody { font-size:14px; line-height:1.85; color:#57544a; white-space:pre-line; min-height:130px; }
.gdots { display:flex; gap:6px; justify-content:center; margin:14px 0 12px; }
.gdots i { width:7px; height:7px; border-radius:50%; background:#e6e2d6; transition:all .2s; }
.gdots i.on { background:#d97757; width:18px; border-radius:4px; }
.grole { display:block; width:100%; text-align:left; background:#f6f4ee; border:1px solid #e6e2d6; border-radius:10px; padding:13px 14px; margin-top:10px; font-size:13px; color:#57544a; cursor:pointer; }
.grole b { font-size:15px; color:#262521; display:block; margin-bottom:2px; }
.gbtnrow { display:flex; gap:8px; }
.gbtnrow .btn { font-size:14px; padding:10px; }

/* 使用帮助 FAQ */
details.faq { background:#fff; border-radius:10px; margin:8px 12px; padding:2px 12px; }
details.faq summary { padding:11px 0; font-size:14px; font-weight:600; cursor:pointer; list-style:none; }
details.faq summary::before { content:"❓ "; }
details.faq[open] summary::before { content:"💡 "; }
details.faq p { padding:0 0 12px; font-size:13px; line-height:1.8; color:#57544a; white-space:pre-line; }

/* ===== 顶部导航栏(桌面) ===== */
#topnav { display:none; position:fixed; top:0; left:0; right:0; height:58px; background:#fff; border-bottom:1px solid #e9e5da; z-index:40; }
.nav-inner { max-width:1120px; margin:0 auto; height:58px; display:flex; align-items:center; padding:0 24px; gap:34px; }
.nav-logo { font-size:19px; font-weight:700; color:#d97757; white-space:nowrap; }
.nav-links { display:flex; gap:28px; flex:1; }
.nav-links a { font-size:15px; color:#57544a; text-decoration:none; position:relative; padding:19px 0; }
.nav-links a.active { color:#d97757; font-weight:600; }
.nav-links a.active::after { content:""; position:absolute; bottom:0; left:0; right:0; height:2px; background:#d97757; }
.nav-links .badge { top:11px; right:-15px; }
.nav-pub { background:#d97757; color:#fff; border:0; border-radius:8px; padding:8px 20px; font-size:14px; cursor:pointer; white-space:nowrap; }
.nav-pub:hover { background:#bd5d3a; }

/* login / chat 页隐藏全部导航 */
body.no-nav #topnav, body.no-nav #tabbar { display:none !important; }

/* ===== 桌面宽屏(≥820px):正经网站布局 ===== */
@media (min-width:820px) {
  body { background:#ece9df; }
  #topnav { display:block; }
  #tabbar { display:none !important; }
  #shell { max-width:1120px; padding-top:58px; background:transparent; }
  #app { padding-bottom:32px; }
  /* 页面标题栏避开固定 header */
  .topbar { top:58px; }
  /* 大厅:筛选区一整条,卡片多列网格 */
  .typetabs { margin-top:14px; border-radius:10px 10px 0 0; }
  #f-history { border-radius:0 0 10px 10px; }
  #f-list { display:grid; grid-template-columns:repeat(auto-fill, minmax(330px,1fr)); gap:14px; padding:16px 0; }
  .lcard { margin:0; transition:box-shadow .15s, transform .15s; }
  .lcard:hover { box-shadow:0 6px 18px rgba(0,0,0,.09); transform:translateY(-2px); }
  .lcard .cover { width:96px; height:96px; }
  .feed-empty { grid-column:1 / -1; }
  /* 其余页面(详情/发布/我/消息):内容居中成一栏,不拉满整屏 */
  .card, .gallery, .convitem, .mehead, details.faq { max-width:760px; margin-left:auto; margin-right:auto; }
  h2.sec { max-width:760px; margin-left:auto; margin-right:auto; }
  .convitem:hover { background:#f6f4ee; }
  .chip, .nav-links a, .lcard, .pub-opt, .btn { }
}

/* ===== Claude 风格层(v18):奶油底 + 赤陶橙 + 全局统一字体 + 温润圆角 ===== */
:root {
  /* 正文/UI:近 Claude 的 Styrene(人文无衬线);嵌入字体不可行(付费+纯拉丁无中文),用最接近的系统栈 */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
               "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  /* 标题:近 Claude 的 Tiempos(衬线) */
  --font-serif: "Tiempos Text", Georgia, "Times New Roman",
                "Songti SC", "Noto Serif SC", SimSun, serif;
}
/* 全局统一走无衬线;表单元素默认不继承字体,显式指定,确保"所有字体"无一例外 */
html, body, button, input, select, textarea,
.btn, .chip, .tag, .pico, .badge { font-family: var(--font-sans); }
/* 标题 / 品牌 / 大字走衬线(Claude 的标志性对比) */
h1, h2, h2.sec, h3, .nav-logo, .topbar h1, .loginwrap h1, .pub-h, .mehead .nm, .gtitle {
  font-family: var(--font-serif);
  font-weight: 600; letter-spacing: .01em;
}
body { background: #f0eee6; }
.card, .lcard, .contactbox, .mehead {
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(64, 50, 35, .06);
}
.card, .lcard { border: 1px solid #eae6da; }
.btn { border-radius: 10px; }
.chip { border-radius: 999px; }
#topnav { background: rgba(250, 249, 245, .92); backdrop-filter: blur(8px);
          border-bottom: 1px solid #e6e2d6; box-shadow: none; }
#tabbar { background: #fbfaf6; border-top: 1px solid #e6e2d6; }
.lcard:hover { box-shadow: 0 6px 18px rgba(80, 60, 40, .10); }
input, select, textarea { border-radius: 8px !important; background: #fdfcf9; }
.safetip, .devhint { border-radius: 12px; }
