/* ============================================================
   我爱长白山 · 本地生活 (52cbs.com)
   克制、真实、大厂感
   ============================================================ */
:root {
  --primary: #ff5000;
  --primary-dark: #e64800;
  --primary-light: #fff3ec;
  --bg: #f7f7f7;
  --card: #ffffff;
  --text: #1a1a1a;
  --text-2: #666;
  --text-3: #999;
  --line: #f0f0f0;
  --price: #ff3b30;
  --green: #07c160;
  --blue: #1989fa;
  --radius: 8px;
  --shadow: 0 1px 4px rgba(0,0,0,.04);
  --tabbar-h: 56px;
  --max-w: 600px;
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { touch-action: manipulation; }
body { touch-action: manipulation; overscroll-behavior-y: none; }
html, body {
  background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif;
  font-size: 14px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: 14px; outline: none; }
svg { width: 20px; height: 20px; vertical-align: middle; flex-shrink: 0; }

.app { max-width: var(--max-w); margin: 0 auto; min-height: 100vh; background: var(--bg); position: relative; padding-bottom: calc(var(--tabbar-h) + 20px); }

/* ============ 启动页 Splash ============ */
#splash {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--primary);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: opacity .5s ease;
}
#splash.hide { opacity: 0; pointer-events: none; }
.splash-inner { text-align: center; }
.splash-logo {
  font-size: 36px; font-weight: 800; color: #fff; letter-spacing: 2px;
  animation: splashIn .8s ease;
}
.splash-sub { color: rgba(255,255,255,.8); font-size: 14px; margin-top: 12px; animation: splashIn .8s ease .2s both; }
.splash-footer { position: absolute; bottom: 40px; color: rgba(255,255,255,.6); font-size: 12px; }
@keyframes splashIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ============ 顶部栏 ============ */
.header {
  background: var(--card); padding: 10px 12px;
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 100;
}
.header-city { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 2px; }
.header-city svg { width: 14px; height: 14px; color: var(--text-2); }
.header-search { flex: 1; background: var(--bg); border-radius: 18px; padding: 7px 14px; display: flex; align-items: center; gap: 6px; }
.header-search svg { width: 16px; height: 16px; color: var(--text-3); }
.header-search input { flex: 1; border: none; background: none; font-size: 13px; }
.header-pub { background: var(--primary); color: #fff; padding: 6px 14px; border-radius: 16px; font-size: 13px; font-weight: 500; }

/* ============ 分类横滑胶囊条 ============ */
.cat-scroll { background: var(--card); padding: 10px 0; border-bottom: 1px solid var(--line); }
.cat-inner { display: flex; gap: 8px; padding: 0 12px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cat-inner::-webkit-scrollbar { display: none; }
.cat-pill { flex: 0 0 auto; padding: 7px 16px; border-radius: 18px; font-size: 13px; color: var(--text-2); cursor: pointer; background: #f5f5f5; transition: all .2s cubic-bezier(.4,0,.2,1); white-space: nowrap; user-select: none; -webkit-tap-highlight-color: transparent; }
.cat-pill:active { transform: scale(.9); background: #e8e8e8; }
.cat-pill.on { background: var(--text); color: #fff; font-weight: 600; box-shadow: 0 2px 8px rgba(0,0,0,.2); transform: scale(1.04); }
.cat-pill-all { color: var(--primary); font-weight: 600; background: rgba(255,80,0,.08); }

/* ============ 板块标题 ============ */
.section-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 12px 8px; }
.section-head h3 { font-size: 16px; font-weight: 700; }
.section-head .more { font-size: 12px; color: var(--text-3); }

/* ============ 帖子列表 ============ */
.post-list { padding: 0 12px; }
.post-card { display: flex; gap: 10px; background: var(--card); border-radius: var(--radius); padding: 10px; margin-bottom: 8px; cursor: pointer; transition: transform .12s, background .12s; }
.post-card:active { background: #f5f5f5; transform: scale(.985); }
.post-thumb { width: 110px; height: 110px; border-radius: 10px; flex-shrink: 0; background: linear-gradient(135deg,#f5f5f5,#e8e8e8); overflow: hidden; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-thumb .no-img { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #ccc; flex-direction: column; gap: 4px; }
.post-thumb .no-img svg { width: 28px; height: 28px; }
.post-thumb .no-img span { font-size: 10px; }
.post-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.post-title { font-size: 14px; line-height: 1.4; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-price { color: var(--price); font-size: 16px; font-weight: 700; margin-bottom: auto; }
.post-price .rmb { font-size: 12px; }
.post-meta { display: flex; gap: 6px; margin-top: 6px; font-size: 11px; color: var(--text-3); }

/* ============ 空状态 ============ */
.empty { text-align: center; padding: 60px 20px; color: var(--text-3); }
.empty svg { width: 48px; height: 48px; margin-bottom: 12px; opacity: .3; }
.empty p { font-size: 13px; }

/* ============ 分类金刚区（宫格） ============ */
.kingkong { background: var(--card); padding: 14px 0 10px; margin-bottom: 10px; overflow: hidden; }
.kk-scroll { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.kk-scroll::-webkit-scrollbar { display: none; }
.kk-row { flex: 0 0 100%; scroll-snap-align: start; display: flex; flex-wrap: wrap; padding: 0 8px; }
.kk-item { width: 20%; display: flex; flex-direction: column; align-items: center; padding: 10px 4px; cursor: pointer; transition: transform .12s; -webkit-tap-highlight-color: transparent; }
.kk-item:active { transform: scale(.88); }
.kk-icon { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 6px; color: #fff; font-size: 20px; font-weight: 700; box-shadow: 0 4px 10px rgba(0,0,0,.12); }
.kk-name { font-size: 12px; color: var(--text); }
.kk-dots { display: flex; justify-content: center; gap: 5px; margin-top: 6px; }
.kk-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--line); }
.kk-dot.on { background: var(--primary); width: 14px; border-radius: 3px; }

/* ============ 动画 ============ */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideIn { from { transform: translateX(20px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.post-card { animation: fadeUp .35s ease both; }
.post-card:nth-child(2) { animation-delay: .05s; }
.post-card:nth-child(3) { animation-delay: .1s; }
.post-card:nth-child(4) { animation-delay: .15s; }
.post-card:nth-child(5) { animation-delay: .2s; }
.app > * { animation: fadeIn .25s ease; }
.me-post, .my-post { animation: fadeUp .3s ease both; }

/* 回到顶部 */
.back-top { position: fixed; right: 16px; bottom: 80px; width: 40px; height: 40px; border-radius: 50%; background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.15); display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 99; opacity: 0; transform: translateY(10px); transition: all .25s; -webkit-tap-highlight-color: transparent; }
.back-top.show { opacity: 1; transform: translateY(0); }
.back-top:active { transform: scale(.9); }
.back-top svg { width: 20px; height: 20px; color: var(--text-2); }

/* 骨架屏 */
.skel { display: flex; gap: 10px; background: var(--card); border-radius: 12px; padding: 10px; margin-bottom: 8px; }
.skel .s-img { width: 110px; height: 110px; border-radius: 10px; background: linear-gradient(90deg,#eee 25%,#f5f5f5 50%,#eee 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
.skel .s-info { flex:1; padding: 4px 0; }
.skel .s-line { height: 14px; border-radius: 4px; background: linear-gradient(90deg,#eee 25%,#f5f5f5 50%,#eee 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; margin-bottom: 8px; }
.skel .s-line.w60 { width: 60%; } .skel .s-line.w40 { width: 40%; } .skel .s-line.w80 { width: 80%; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ============ 底部 Tab ============ */
.tabbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: var(--max-w); height: var(--tabbar-h); background: var(--card); border-top: 1px solid var(--line); display: flex; z-index: 100; padding-bottom: env(safe-area-inset-bottom); }
.tabbar .tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--text-3); font-size: 10px; cursor: pointer; }
.tabbar .tab svg { width: 22px; height: 22px; }
.tabbar .tab.active { color: var(--primary); }
.tabbar .tab.pub { flex: 0 0 70px; }
.tabbar .tab.pub .pub-circle { width: 46px; height: 46px; border-radius: 50%; background: var(--primary); display: flex; align-items: center; justify-content: center; margin-top: -20px; box-shadow: 0 2px 8px rgba(255,80,0,.4); border: 3px solid var(--card); }
.tabbar .tab.pub .pub-circle svg { width: 22px; height: 22px; color: #fff; }

/* ============ 详情页 ============ */
.detail-header { background: var(--card); padding: 10px 12px; display: flex; align-items: center; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 100; }
.detail-header .back { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.detail-header .back svg { width: 20px; height: 20px; }
.detail-header .title { flex: 1; text-align: center; font-size: 16px; font-weight: 600; }
/* 图片轮播 */
.img-swiper { position: relative; background: #000; }
.swiper-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.swiper-track::-webkit-scrollbar { display: none; }
.swiper-slide { flex: 0 0 100%; scroll-snap-align: start; }
.swiper-slide img { width: 100%; aspect-ratio: 4/3; object-fit: contain; display: block; }
.swiper-dots { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; }
.sw-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.4); transition: all .2s; }
.sw-dot.on { background: #fff; width: 16px; border-radius: 3px; }
.sw-count { position: absolute; top: 10px; right: 12px; background: rgba(0,0,0,.5); color: #fff; font-size: 12px; padding: 3px 10px; border-radius: 12px; }
.detail-body { background: var(--card); margin-bottom: 8px; padding: 14px; }
.detail-price { color: var(--price); font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.detail-title { font-size: 16px; font-weight: 600; line-height: 1.4; margin-bottom: 10px; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.detail-tags .tag { font-size: 11px; color: var(--text-2); background: var(--bg); padding: 3px 8px; border-radius: 4px; }
.detail-meta { display: flex; gap: 14px; font-size: 12px; color: var(--text-3); padding-top: 10px; border-top: 1px solid var(--line); }
.detail-content { background: var(--card); margin-bottom: 8px; padding: 14px; font-size: 14px; line-height: 1.7; white-space: pre-wrap; }
.contact-bar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: var(--max-w); background: var(--card); border-top: 1px solid var(--line); padding: 10px 12px; display: flex; gap: 10px; z-index: 100; padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
.contact-bar .who { display: flex; align-items: center; gap: 8px; }
.contact-bar .who .avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--primary-light); display: flex; align-items: center; justify-content: center; color: var(--primary); font-weight: 600; font-size: 14px; }
.contact-bar .who .n { font-size: 12px; color: var(--text-2); }
.contact-bar .cbtn { flex: 1; border-radius: 20px; font-size: 14px; font-weight: 500; display: flex; align-items: center; justify-content: center; gap: 4px; }
.contact-bar .cbtn svg { width: 16px; height: 16px; }
.cbtn.call { background: var(--primary); color: #fff; }
.cbtn.chat { background: var(--primary-light); color: var(--primary); }
.cbtn.copy { background: #f5f5f5; color: var(--text-2); flex: 0 0 auto; padding: 0 16px; }
.cbtn:active { transform: scale(.96); }

/* ============ 反诈提示 ============ */
.notice-bar { background: #fffbe6; padding: 8px 12px; font-size: 12px; color: #ad8b00; line-height: 1.5; display: flex; gap: 6px; align-items: flex-start; }
.notice-bar svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 1px; color: #faad14; }

/* ============ 分类页 ============ */
.sub-tabs { display: flex; gap: 6px; padding: 10px 12px; overflow-x: auto; background: var(--card); border-bottom: 1px solid var(--line); }
.sub-tabs::-webkit-scrollbar { display: none; }
.sub-tab { white-space: nowrap; font-size: 13px; color: var(--text-2); padding: 6px 14px; border-radius: 16px; background: var(--bg); cursor: pointer; transition: all .2s; -webkit-tap-highlight-color: transparent; }
.sub-tab:active { transform: scale(.92); }
.sub-tab.on { background: var(--text); color: #fff; font-weight: 500; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.sort-row { display: flex; gap: 20px; padding: 10px 12px; font-size: 13px; color: var(--text-2); background: var(--card); border-bottom: 1px solid var(--line); }
.sort-row .s { cursor: pointer; padding: 4px 2px; transition: all .15s; position: relative; -webkit-tap-highlight-color: transparent; }
.sort-row .s:active { transform: scale(.92); }
.sort-row .s.on { color: var(--primary); font-weight: 600; }
.sort-row .s.on::after { content:''; position:absolute; bottom:-2px; left:50%; transform:translateX(-50%); width:16px; height:2px; background:var(--primary); border-radius:1px; }

/* ============ 表单 ============ */
.form-page { padding: 10px; padding-bottom: 100px; }
.form-card { background: var(--card); border-radius: var(--radius); padding: 0 14px; margin-bottom: 8px; }
.form-row { display: flex; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); gap: 10px; }
.form-row:last-child { border-bottom: none; }
.form-row label { width: 60px; font-size: 14px; color: var(--text-2); flex-shrink: 0; }
.form-row input, .form-row textarea { flex: 1; border: none; background: none; font-size: 14px; min-width: 0; }
.form-row textarea { min-height: 80px; resize: vertical; }
.form-row .val { flex: 1; text-align: right; font-size: 14px; }
.form-row .val.placeholder { color: var(--text-3); }
.form-row .arrow { color: var(--text-3); }
.form-submit { width: 100%; background: var(--primary); color: #fff; border-radius: 22px; padding: 13px; font-size: 15px; font-weight: 500; margin-top: 8px; }
.form-tip { font-size: 12px; color: var(--text-3); padding: 8px 4px; }
.img-upload-row { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 0; }
.img-upload-row .up-box { width: 64px; height: 64px; border: 1px dashed var(--text-3); border-radius: 6px; display: flex; align-items: center; justify-content: center; color: var(--text-3); background: var(--bg); cursor: pointer; }
.img-upload-row .up-box svg { width: 22px; height: 22px; }
.img-upload-row .up-preview { width: 64px; height: 64px; border-radius: 6px; object-fit: cover; }

/* ============ 登录注册 ============ */
.auth-page { padding: 40px 24px; }
.auth-logo { text-align: center; margin-bottom: 30px; }
.auth-logo .n { font-size: 26px; font-weight: 800; }
.auth-logo .n span { color: var(--primary); }
.auth-logo .s { font-size: 13px; color: var(--text-3); margin-top: 6px; }
.auth-tabs { display: flex; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.auth-tabs .at { flex: 1; text-align: center; padding: 12px; font-size: 15px; color: var(--text-3); cursor: pointer; }
.auth-tabs .at.on { color: var(--text); font-weight: 600; border-bottom: 2px solid var(--primary); margin-bottom: -1px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 24px 0 16px; color: var(--text-3); font-size: 12px; }
.auth-divider::before, .auth-divider::after { content:''; flex:1; height:1px; background: var(--line); }
.wechat-btn { width: 100%; background: #07c160; color: #fff; border-radius: 24px; padding: 13px; font-size: 16px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; }
.wechat-btn svg { width: 20px; height: 20px; }

/* ============ 我的 ============ */
.me-head { background: var(--card); padding: 20px 16px; display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.me-head .avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--primary-light); display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 20px; font-weight: 700; }
.me-head .n { font-size: 18px; font-weight: 700; }
.me-head .s { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.me-menu { background: var(--card); margin: 0 0 8px; }
.me-menu .mrow { display: flex; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 14px; cursor: pointer; }
.me-menu .mrow:last-child { border-bottom: none; }
.me-menu .mrow svg { width: 18px; height: 18px; margin-right: 10px; color: var(--text-3); }
.me-menu .mrow .arrow { margin-left: auto; color: var(--text-3); }

/* ============ 我的发布 ============ */
.my-post { background: var(--card); border-radius: var(--radius); padding: 10px; margin-bottom: 8px; display: flex; gap: 10px; }
.my-post .thumb { width: 80px; height: 80px; border-radius: 6px; background: var(--bg); overflow: hidden; flex-shrink: 0; }
.my-post .thumb img { width: 100%; height: 100%; object-fit: cover; }
.my-post .thumb .no-img { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--text-3); }
.my-post .info { flex: 1; min-width: 0; }
.my-post .t { font-size: 14px; font-weight: 500; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.my-post .p { color: var(--price); font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.my-post .meta { font-size: 11px; color: var(--text-3); display: flex; gap: 8px; align-items: center; }
.my-post .status { display: inline-block; font-size: 10px; padding: 1px 6px; border-radius: 4px; }
.st-pending { background: #fff7e6; color: #fa8c16; }
.st-approved { background: #e6ffed; color: #07c160; }
.st-rejected { background: #ffeceb; color: #ff3b30; }
.st-archived { background: #f0f0f0; color: #999; }
.my-post .ops { display: flex; gap: 6px; margin-top: 8px; }
.my-post .ops button { font-size: 12px; padding: 4px 10px; border-radius: 4px; background: var(--bg); color: var(--text-2); }
.my-post .ops .del { color: var(--price); }

/* ============ 底部弹出选择器 ============ */
.sheet-mask { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 200; display: flex; align-items: flex-end; }
.sheet { background: var(--bg); width: 100%; max-width: var(--max-w); margin: 0 auto; border-radius: 12px 12px 0 0; max-height: 70vh; display: flex; flex-direction: column; }
.sheet-head { padding: 12px 16px; font-size: 15px; font-weight: 600; text-align: center; background: var(--card); border-radius: 12px 12px 0 0; position: relative; }
.sheet-head .close { position: absolute; right: 14px; top: 10px; color: var(--text-3); font-size: 18px; cursor: pointer; }
.sheet-body { overflow-y: auto; }
.sheet-item { padding: 13px 16px; font-size: 14px; border-bottom: 1px solid var(--line); background: var(--card); cursor: pointer; }
.sheet-item.on { color: var(--primary); font-weight: 600; }

/* ============ Toast ============ */
.toast { position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%); background: rgba(0,0,0,.75); color: #fff; padding: 10px 20px; border-radius: 8px; font-size: 13px; z-index: 9999; pointer-events: none; }

/* ============ 后台 ============ */
.admin-wrap { padding: 10px; padding-bottom: 30px; }
.admin-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-bottom: 10px; }
.admin-stat { background: var(--card); border-radius: 6px; padding: 12px 4px; text-align: center; }
.admin-stat .num { font-size: 18px; font-weight: 700; }
.admin-stat .lbl { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.admin-tabs { display: flex; gap: 6px; margin-bottom: 10px; overflow-x: auto; }
.admin-tabs .at { white-space: nowrap; font-size: 13px; padding: 5px 12px; border-radius: 14px; background: var(--card); color: var(--text-2); cursor: pointer; }
.admin-tabs .at.on { background: var(--text); color: #fff; }
.admin-post { background: var(--card); border-radius: 6px; padding: 10px; margin-bottom: 8px; }
.admin-post .t { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.admin-post .m { font-size: 11px; color: var(--text-3); margin-bottom: 8px; }
.admin-post .acts { display: flex; gap: 6px; }
.admin-post .acts button { flex: 1; padding: 6px; border-radius: 4px; font-size: 13px; font-weight: 500; }
.admin-post .acts .ok { background: var(--green); color: #fff; }
.admin-post .acts .no { background: #ffeceb; color: var(--price); }
.admin-post .acts .del { background: var(--bg); color: var(--text-2); }

.hidden { display: none !important; }

/* ============ 全局高级感精修 ============ */
* { -webkit-tap-highlight-color: transparent; }
button, .cbtn, .kk-item, .cat-pill, .sub-tab, .post-card, .tabbar .ti, .header-pub, .form-submit {
  transition: transform .15s cubic-bezier(.4,0,.2,1), background .2s, box-shadow .2s, opacity .2s;
}
button:active:not(:disabled), .cbtn:active, .kk-item:active, .cat-pill:active, .sub-tab:active, .post-card:active {
  transform: scale(.96);
}
.form-submit:active { transform: scale(.98); }

/* 页面切换更丝滑 */
.app > * { animation: pageIn .3s cubic-bezier(.4,0,.2,1); }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* toast 更精致 */
#toast { transition: all .25s cubic-bezier(.4,0,.2,1) !important; }

/* ============ 营销标记 ============ */
.badge { display: inline-block; font-size: 10px; line-height: 1; padding: 2px 5px; border-radius: 3px; margin-right: 5px; vertical-align: 1px; font-weight: 600; }
.b-top { background: var(--price); color: #fff; }
.b-rank { background: var(--primary); color: #fff; }
.b-hot { background: #fa8c16; color: #fff; }
.b-highlight { background: #f5222d; color: #fff; }

/* ============ 积分中心 ============ */
.pts-hero { background: linear-gradient(135deg, var(--primary) 0%, #ff7a00 100%); color: #fff; text-align: center; padding: 30px 16px 26px; border-radius: 0 0 20px 20px; }
.pts-num { font-size: 44px; font-weight: 800; line-height: 1.1; }
.pts-lbl { font-size: 13px; opacity: .9; margin-top: 4px; }
.pts-bal { display: inline-block; margin-top: 10px; background: rgba(255,255,255,.2); font-size: 13px; padding: 4px 14px; border-radius: 20px; }
.pts-card { background: var(--card); border-radius: var(--radius); margin: 12px; padding: 14px; box-shadow: var(--shadow); }
.pts-title { font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.pts-code { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; letter-spacing: 2px; color: var(--primary); }
.pts-copy { background: var(--primary-light); color: var(--primary); font-size: 12px; padding: 5px 12px; border-radius: 6px; font-weight: 600; }
.pts-tip { font-size: 12px; color: var(--text-3); margin-top: 8px; }
.pts-team { background: var(--card); border-radius: var(--radius); margin: 12px; padding: 14px; box-shadow: var(--shadow); }
.team-row { display: flex; }
.team-item { flex: 1; text-align: center; padding: 10px 0; }
.team-item .n { font-size: 20px; font-weight: 700; }
.team-item .l { font-size: 12px; color: var(--text-3); }
.svc-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.svc-row:last-child { border-bottom: none; }
.svc-ic { width: 34px; height: 34px; border-radius: 9px; color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.svc-info { flex: 1; }
.svc-info .t { font-size: 14px; font-weight: 500; }
.svc-info .d { font-size: 12px; color: var(--text-3); }
.tx-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.tx-row:last-child { border-bottom: none; }
.tx-row .tl .t { font-size: 13px; font-weight: 500; }
.tx-row .tl .d { font-size: 11px; color: var(--text-3); }
.tx-row .am { font-size: 14px; font-weight: 600; }
.tx-row .am.up { color: var(--green); }
.tx-row .am.dn { color: var(--price); }
.mrow .badge-pts { margin-left: auto; font-size: 12px; color: var(--primary); font-weight: 600; }
.mrow .badge-pts + .arrow { margin-left: 2px; }

/* ============ 推广赚钱中心 ============ */
.rf-hero { background: linear-gradient(135deg, #ff9500 0%, #ff5000 100%); color: #fff; padding: 24px 18px; border-radius: 0 0 20px 20px; position: relative; overflow: hidden; }
.rf-hero::after { content:''; position:absolute; right:-30px; top:-30px; width:140px; height:140px; border-radius:50%; background:rgba(255,255,255,.12); }
.rf-title { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.rf-sub { font-size: 12px; opacity: .92; line-height: 1.6; }
.rf-me { margin-top: 12px; background: rgba(0,0,0,.18); border-radius: 10px; padding: 9px 12px; font-size: 12px; }
.rf-me b { font-size: 14px; letter-spacing: 1px; }
.rf-tabs { display: flex; gap: 6px; padding: 12px; overflow-x: auto; }
.rf-tabs::-webkit-scrollbar { display: none; }
.rf-tab { white-space: nowrap; font-size: 13px; padding: 6px 14px; border-radius: 16px; background: #f0f0f0; color: var(--text-2); cursor: pointer; transition: all .2s; -webkit-tap-highlight-color: transparent; }
.rf-tab:active { transform: scale(.92); }
.rf-tab.on { background: var(--text); color: #fff; font-weight: 600; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.rf-card { display: flex; gap: 10px; background: var(--card); border-radius: 12px; padding: 12px; margin-bottom: 10px; box-shadow: var(--shadow); animation: fadeUp .35s ease both; cursor: pointer; transition: transform .15s cubic-bezier(.4,0,.2,1), box-shadow .2s; -webkit-tap-highlight-color: transparent; }
.rf-card:active { transform: scale(.97); box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.rf-icon { width: 46px; height: 46px; border-radius: 12px; background: linear-gradient(135deg,#fff3ec,#ffe6d5); color: var(--primary); font-size: 20px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background-size: cover; background-position: center; overflow: hidden; }
.rf-info { flex: 1; min-width: 0; }
.rf-info .t { font-size: 15px; font-weight: 600; margin-bottom: 3px; }
.rf-info .rf-type { float: right; font-size: 10px; font-weight: 400; color: var(--primary); background: var(--primary-light); padding: 2px 7px; border-radius: 8px; }
.rf-info .d { font-size: 12px; color: var(--text-2); margin-bottom: 3px; }
.rf-info .c { font-size: 11px; color: var(--price); }
.rf-btns { display: flex; flex-direction: column; gap: 6px; justify-content: center; align-items: stretch; flex: 0 0 78px; }
.rf-go { background: var(--primary); color: #fff; font-size: 13px; font-weight: 700; padding: 8px 6px; border-radius: 8px; text-align: center; white-space: nowrap; box-shadow: 0 2px 6px rgba(255,80,0,.3); }
.rf-copy { background: #f5f5f5; color: var(--text-2); font-size: 13px; font-weight: 600; padding: 7px 6px; border-radius: 8px; text-align: center; white-space: nowrap; border: 1px solid var(--line); }
.rf-go:active, .rf-copy:active { transform: scale(.94); }

/* ============ 后台：推广联盟管理 ============ */
.rf-admin-table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 6px; overflow: hidden; }
.rf-admin-table th, .rf-admin-table td { padding: 8px; font-size: 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.rf-admin-table th { background: #fafafa; font-weight: 600; }
.rf-admin-table .acts button { font-size: 12px; padding: 3px 8px; border-radius: 4px; background: var(--bg); color: var(--text-2); margin-right: 4px; }
.rf-admin-table .acts .del { color: var(--price); }
.rf-form { background: var(--card); border-radius: 6px; padding: 12px; margin: 10px 0; }
.rf-form .row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.rf-form label { font-size: 12px; color: var(--text-2); width: 64px; display: inline-block; }
.rf-form input, .rf-form select, .rf-form textarea { border: 1px solid var(--line); border-radius: 4px; padding: 6px 8px; font-size: 13px; flex: 1; min-width: 160px; background: var(--bg); }
.rf-form textarea { width: 100%; min-height: 40px; }

/* ============ 酒店民宿预订横幅 ============ */
.hotel-banner { display: flex; align-items: center; gap: 10px; margin: 10px 12px; padding: 12px; border-radius: 12px; background: linear-gradient(135deg, #e6f7ff, #d6ecff); cursor: pointer; transition: transform .15s; }
.hotel-banner:active { transform: scale(.97); }
.hotel-banner .hb-icon { font-size: 26px; }
.hotel-banner .hb-info .t { font-size: 14px; font-weight: 700; color: #0b6fb8; }
.hotel-banner .hb-info .d { font-size: 12px; color: #5a8fc0; margin-top: 2px; }
