/* ========== 全局重置 ========== */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { font-size: 15px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif; background: #f5f6f7; color: #333; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; outline: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; outline: none; }
:root { --brand: #FF6B35; --brand-dark: #e55a2b; --price: #FF4D4F; --muted: #888; --card-r: 16px; }

/* ========== 全局页面导航栏（二级页面：返回 + 回首页） ========== */
.page-header {
  position: sticky; top: 0; z-index: 200;
  max-width: 500px; margin: 0 auto;
  display: none; align-items: center; gap: 8px;
  height: 46px; padding: 0 12px;
  background: #fff; border-bottom: 1px solid #eee;
}
.ph-btn {
  display: inline-flex; align-items: center; gap: 4px;
  height: 32px; padding: 0 14px; border-radius: 16px;
  font-size: 13px; color: #555; background: #f5f5f5; white-space: nowrap;
}
.ph-btn:active { opacity: .7; }
.ph-home { margin-left: auto; color: #fff; background: var(--brand); }
.ph-title { font-size: 15px; font-weight: 600; margin-left: 4px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ========== 布局工具 ========== */
.flex-1 { flex: 1; }
.row { display: flex; align-items: center; }
.row-between { display: flex; align-items: center; justify-content: space-between; }
.card { background: #fff; border-radius: var(--card-r); padding: 24px 20px; margin: 12px 16px; box-shadow: 0 2px 12px rgba(0,0,0,.04); }
.muted { color: var(--muted); font-size: 13px; }
.price { color: var(--price); font-weight: 600; }

/* ========== 按钮 ========== */
.btn-primary { background: var(--brand); color: #fff; border-radius: 24px; padding: 10px 24px; font-size: 15px; font-weight: 500; }
.btn-primary:active { background: var(--brand-dark); }
.btn-primary[disabled] { opacity: .5; }
.btn-plain { background: #f5f5f5; color: #666; border-radius: 24px; padding: 10px 24px; font-size: 14px; }
.btn-plain:active { background: #e8e8e8; }

/* ========== TabBar ========== */
.tabbar { position: fixed; bottom: 0; left: 0; right: 0; height: 56px; background: #fff; border-top: 1px solid #eee; display: flex; z-index: 100; max-width: 500px; margin: 0 auto; }
.tab-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #999; }
.tab-item.active { color: var(--brand); }
.tab-icon { font-size: 22px; }
.tab-text { font-size: 11px; }

/* #app 顶部/底部安全区 */
#app { max-width: 500px; margin: 0 auto; min-height: 100vh; padding-bottom: 70px; }

/* ========== 搜索栏：LOGO 靠左，搜索框撑满中间，城市/搜索按钮靠右，整行铺满 ========== */
.search-bar { display: block; }
.search-bar .row { display: flex; align-items: center; width: 100%; gap: 10px; }

/* 品牌LOGO（搜索框前的圆形图标） */
.brand-logo { width: 32px; height: 32px; border-radius: 50%; flex: 0 0 auto; object-fit: cover; }
/* 无图片时的「厂」字文字LOGO */
.brand-logo-text {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #FF8A5C, #FF6B35);
  color: #fff; font-size: 16px; font-weight: 700;
  box-shadow: 0 2px 6px rgba(255,107,53,.3);
}
/* 搜索框：撑满中间剩余空间 */
.search-input { flex: 1 1 auto; min-width: 0; border: 1px solid #e0e0e0; border-radius: 8px; padding: 8px 12px; font-size: 14px; }
/* 城市：固定宽度，贴右 */
.city-input { flex: 0 0 auto; width: 76px; border: 1px solid #e0e0e0; border-radius: 8px; padding: 8px; font-size: 14px; text-align: center; }
/* 搜索按钮：贴右 */
.search-btn { flex: 0 0 auto; padding: 8px 16px; font-size: 14px; }

/* ========== 岗位卡片 ========== */
.count-tip { margin: 4px 20px 0; font-size: 12px; }
.job-card { padding: 20px; }
.job-title { font-size: 18px; font-weight: 600; flex: 1; margin-right: 8px; }
.job-salary { font-size: 18px; }
.job-company { margin: 6px 0 10px; }
.job-bonus { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.job-share-row { display: flex; justify-content: flex-end; gap: 10px; }
.job-share-btn, .job-kf-btn { display: inline-flex; align-items: center; justify-content: center; height: 36px; padding: 0 16px; font-size: 13px; border-radius: 18px; }
.job-share-btn { color: var(--brand); background: #FFF3EC; border: 1px solid #FFD9C2; }
.job-kf-btn { color: #1989FA; background: #ECF5FF; border: 1px solid #C6E0FF; }
.job-share-btn:active { opacity: .7; }
.job-kf-btn:active { opacity: .7; }

/* ========== 标签 ========== */
.cu-tag { display: inline-block; padding: 2px 10px; border-radius: 4px; font-size: 11px; line-height: 1.8; white-space: nowrap; }
.cu-tag-red { background: #FFF1F0; color: #FF4D4F; border: 1px solid #FFCCC7; }
.cu-tag-orange { background: #FFF7E6; color: #FA8C16; border: 1px solid #FFD591; }
.cu-tag-blue { background: #E6F7FF; color: #1890FF; border: 1px solid #91D5FF; }
.cu-tag-green { background: #F6FFED; color: #52C41A; border: 1px solid #B7EB8F; }

/* ========== 品牌专题 ========== */
.topic-hero { position: relative; overflow: hidden; padding: 0; height: 220px; }
.topic-hero-img { width: 100%; height: 100%; object-fit: cover; }
.topic-hero-mask { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px; background: linear-gradient(transparent, rgba(0,0,0,.6)); color: #fff; }
.topic-hero-brand { font-size: 24px; font-weight: 700; }
.topic-hero-slogan { font-size: 13px; opacity: .9; }
.topic-hero-badge { position: absolute; top: 16px; right: 16px; background: var(--brand); color: #fff; font-size: 11px; padding: 4px 10px; border-radius: 4px; }
.topic-title { font-size: 17px; font-weight: 600; margin-bottom: 12px; }
.topic-text { font-size: 14px; line-height: 1.8; color: #666; }
.topic-features { display: flex; gap: 12px; margin-top: 16px; }
.topic-feature { flex: 1; text-align: center; }
.tf-icon { font-size: 28px; display: block; }
.tf-name { font-size: 13px; font-weight: 600; margin-top: 4px; }
.tf-desc { font-size: 11px; color: var(--muted); }
.topic-video-card { padding: 16px; }
.topic-video { width: 100%; height: 210px; border-radius: 12px; object-fit: cover; background: #000; }
.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gallery-img { width: 100%; height: 130px; object-fit: cover; border-radius: 8px; }
.gallery-tip { margin-top: 10px; text-align: center; font-size: 12px; }
.topic-cta { text-align: center; }
.cta-title { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.cta-desc { font-size: 13px; color: var(--muted); line-height: 1.7; margin-bottom: 16px; }
.cta-btn { width: 80%; text-align: center; padding: 12px; font-size: 16px; }

/* ========== 招聘预告横滑 ========== */
.preview-section { margin: 8px 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; padding: 0 20px 8px; }
.section-title { font-size: 16px; font-weight: 600; }
.preview-scroll { display: flex; gap: 12px; padding: 4px 16px 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* 两列铺满整行：每张卡占可视宽度的一半（减去列间距） */
.preview-card { flex: 0 0 auto; width: calc((100% - 12px) / 2); background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.preview-cover { width: 100%; height: 120px; object-fit: cover; }
.preview-cover-empty { display: flex; align-items: center; justify-content: center; font-size: 40px; background: #f5f5f5; }
.preview-info { padding: 10px 12px; }
.preview-company { font-size: 13px; color: var(--muted); }
.preview-title { font-size: 15px; font-weight: 600; margin: 4px 0 8px; }
.preview-meta { display: flex; gap: 6px; flex-wrap: wrap; }

/* ========== 空状态/加载 ========== */
.cu-empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.cu-empty-icon { font-size: 48px; }
.cu-empty-text { font-size: 14px; margin-top: 8px; }
.cu-loading { text-align: center; padding: 40px 20px; color: var(--muted); }
.cu-spinner { width: 28px; height: 28px; border: 3px solid #eee; border-top-color: var(--brand); border-radius: 50%; animation: spin .6s linear infinite; margin: 0 auto 8px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ========== 动画 ========== */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: none; } }
@keyframes slideInUp { from { transform: translateY(100%); } to { transform: none; } }
@keyframes zoomIn { from { transform: scale(.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .6; } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes glow { 0%,100% { box-shadow: 0 0 8px rgba(255,107,53,.3); } 50% { box-shadow: 0 0 20px rgba(255,107,53,.6); } }
.animate-fadeIn { animation: fadeIn .3s ease; }
.animate-fadeInUp { animation: fadeInUp .35s ease; }
.animate-fadeInDown { animation: fadeInDown .35s ease; }
.animate-slideInUp { animation: slideInUp .3s ease; }
.animate-zoomIn { animation: zoomIn .3s ease; }
.animate-pulse { animation: pulse 1.5s ease infinite; }
.animate-float { animation: float 2.5s ease infinite; }
.animate-glow { animation: glow 2s ease infinite; }
.delay-100 { animation-delay: .1s; }
.delay-200 { animation-delay: .2s; }
.delay-300 { animation-delay: .3s; }
.delay-400 { animation-delay: .4s; }

/* ========== Toast ========== */
.toast-mask { position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 9999; background: rgba(0,0,0,.8); color: #fff; padding: 12px 20px; border-radius: 8px; font-size: 14px; max-width: 260px; text-align: center; }

/* ========== Modal ========== */
.modal-mask { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.45); z-index: 9998; display: flex; align-items: center; justify-content: center; }
.modal-box { background: #fff; border-radius: 16px; width: 86%; max-width: 360px; overflow: hidden; }
.modal-header { padding: 20px 20px 8px; font-size: 17px; font-weight: 600; text-align: center; }
.modal-body { padding: 8px 20px 20px; font-size: 15px; color: #555; line-height: 1.7; text-align: center; }
.modal-footer { display: flex; border-top: 1px solid #eee; }
.modal-footer button { flex: 1; padding: 14px; font-size: 16px; }
.modal-cancel { color: #999; border-right: 1px solid #eee; }
.modal-ok { color: var(--brand); font-weight: 600; }

/* ========== 完善资料弹窗 ========== */
.profile-mask { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.45); z-index: 9998; display: flex; align-items: center; justify-content: center; }
.profile-box { background: #fff; border-radius: 16px; width: 86%; max-width: 340px; padding: 24px 20px 16px; box-sizing: border-box; }
.profile-title { font-size: 17px; font-weight: 600; text-align: center; }
.profile-tip { text-align: center; margin: 8px 0 16px; font-size: 12px; }
.profile-input { width: 100%; box-sizing: border-box; border: 1px solid #e0e0e0; border-radius: 8px; padding: 12px; font-size: 15px; margin-bottom: 12px; }
.profile-footer { display: flex; gap: 10px; margin-top: 4px; }
.profile-btn { flex: 1; padding: 12px; border-radius: 22px; font-size: 15px; text-align: center; }

/* ========== Loading ========== */
.loading-mask { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,.3); z-index: 9997; display: flex; align-items: center; justify-content: center; }
.loading-spinner { width: 36px; height: 36px; border: 4px solid #eee; border-top-color: var(--brand); border-radius: 50%; animation: spin .6s linear infinite; }

/* ========== 图片预览 ========== */
.img-viewer { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.95); z-index: 9999; display: flex; align-items: center; justify-content: center; }
.img-viewer img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* ========== 岗位详情 ========== */
.d-title { font-size: 20px; font-weight: 600; flex: 1; }
.d-salary { font-size: 20px; }
.d-company { margin: 8px 0 12px; }
.d-bonus { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.d-desc { font-size: 14px; line-height: 1.8; color: #666; margin-top: 12px; }
.partner-tip { display: flex; align-items: center; gap: 12px; }
.pt-title { font-size: 16px; font-weight: 600; }
.pt-btn { white-space: nowrap; padding: 8px 16px; font-size: 13px; }

/* ========== 表单 ========== */
.form-title { font-size: 16px; font-weight: 600; margin-bottom: 16px; }
.form-item { display: flex; align-items: center; margin-bottom: 14px; }
.form-label { width: 70px; font-size: 14px; color: #666; text-align: right; padding-right: 12px; }
.form-input { flex: 1; border: 1px solid #e0e0e0; border-radius: 8px; padding: 10px 12px; font-size: 14px; }
.form-picker { flex: 1; border: 1px solid #e0e0e0; border-radius: 8px; padding: 10px 12px; font-size: 14px; }
.form-picker.placeholder { color: #999; }
.form-tip { margin: 8px 0 16px; font-size: 12px; }
.apply-btn { width: 100%; padding: 14px; font-size: 16px; }

/* ========== 底部操作栏 ========== */
.bottom-bar { position: fixed; bottom: 0; left: 0; right: 0; display: flex; gap: 12px; padding: 12px 16px; background: #fff; border-top: 1px solid #eee; max-width: 500px; margin: 0 auto; z-index: 90; }
.bottom-bar .share-btn { flex: 1; padding: 12px; text-align: center; font-size: 15px; }

/* ========== 合伙人页 ========== */
.welcome { text-align: center; padding: 48px 24px; }
.welcome-icon { font-size: 64px; }
.welcome-title { font-size: 20px; font-weight: 700; margin: 16px 0 12px; }
.welcome-desc { font-size: 14px; color: var(--muted); line-height: 1.8; margin-bottom: 24px; }
.welcome-btn { width: 100%; padding: 14px; font-size: 16px; }
.avatar { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), #FF9F6B); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 600; margin-right: 12px; }
.user-meta { flex: 1; }
.nickname { font-size: 17px; font-weight: 600; }
.profile-hint { margin-top: 4px; color: var(--brand); }
.copy-btn { padding: 6px 12px; font-size: 12px; }
.stat { text-align: center; }
.stat-num { font-size: 24px; font-weight: 700; }
.menu-item { padding: 14px 0; border-bottom: 1px solid #f0f0f0; }
.menu-item:last-child { border-bottom: none; }
.arrow { color: #ccc; font-size: 18px; }
.share-wrap { padding: 16px; }
.share-big { width: 100%; padding: 14px; font-size: 16px; }

/* ========== 推荐列表 ========== */
.ref-card { padding: 16px 20px; }
.ref-name { font-size: 16px; font-weight: 600; }
.ref-status { font-size: 13px; padding: 2px 10px; border-radius: 4px; }
.ref-job { margin: 6px 0; font-size: 13px; }
.tier-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.s1 { background: #E6F7FF; color: #1890FF; }
.s2 { background: #FFF7E6; color: #FA8C16; }
.s3 { background: #F6FFED; color: #52C41A; }
.s4 { background: #F6FFED; color: #52C41A; }
.s5 { background: #FFF1F0; color: #FF4D4F; }

/* ========== 积分页 ========== */
.balance-card { text-align: center; }
.balance-label { font-size: 14px; color: var(--muted); }
.balance-num { font-size: 40px; font-weight: 700; color: var(--brand); margin: 4px 0 8px; }
.balance-tip { font-size: 12px; color: var(--muted); }
.checkin-card { display: block; }
.checkin-tip { margin-top: 2px; }
.checkin-btn { padding: 8px 18px; border-radius: 20px; font-size: 14px; font-weight: 700; white-space: nowrap; flex: 0 0 auto; }
.checkin-btn-active { background: linear-gradient(135deg, #FF8A5C, #FF6B35); color: #fff; box-shadow: 0 4px 12px rgba(255,107,53,.35); }
.btn-checked { background: #f5f6f7; color: #999; }
.rule-tip { margin-top: 12px; font-size: 12px; line-height: 1.7; background: #FFF4EE; border-radius: 8px; padding: 8px 12px; color: #C05A28; }
.ex-input { border: 1px solid #e0e0e0; border-radius: 8px; padding: 8px 12px; font-size: 14px; }
.ex-btn { padding: 8px 16px; font-size: 14px; }
.ex-tip { margin-top: 8px; font-size: 12px; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-tag { padding: 4px 12px; }
.prod-card { padding: 16px 20px; }
.prod-name { font-size: 15px; font-weight: 600; }
.prod-desc { margin: 4px 0; font-size: 13px; }
.prod-right { text-align: right; }
.prod-price { font-size: 16px; margin-bottom: 6px; }
.prod-btn { padding: 6px 14px; font-size: 13px; }

/* ========== 提现页 ========== */
.wd-form { margin: 16px 0; }
.wd-input { border: 1px solid #e0e0e0; border-radius: 8px; padding: 10px 12px; font-size: 14px; }
.wd-btn { padding: 10px 20px; font-size: 14px; }
.wd-tip { margin-top: 6px; font-size: 12px; }
.wd-card { padding: 16px 20px; }
.wd-amount { font-size: 18px; font-weight: 600; }
.wd-status { font-size: 13px; padding: 2px 10px; border-radius: 4px; }
.st0 { background: #f0f0f0; color: #999; }
.st1 { background: #FFF7E6; color: #FA8C16; }
.st2 { background: #F6FFED; color: #52C41A; }
.st3 { background: #FFF1F0; color: #FF4D4F; }

/* ========== 招聘预告详情 ========== */
.pv-swiper { width: 100%; height: 220px; overflow: hidden; position: relative; }
.pv-swiper-track { display: flex; height: 100%; transition: transform .5s ease; }
.pv-swiper-item { min-width: 100%; height: 100%; }
.pv-swiper-img { width: 100%; height: 100%; object-fit: cover; }
.pv-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.pv-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.4); }
.pv-dot.active { background: #fff; }
.pv-body { max-width: 500px; margin: 0 auto; }
.pv-head { text-align: center; }
.pv-company { font-size: 14px; color: var(--muted); }
.pv-title { font-size: 20px; font-weight: 700; margin-top: 6px; }
.pv-interview { text-align: center; }
.pvi-title { font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.pvi-time { font-size: 20px; font-weight: 700; color: var(--brand); }
.pvi-addr { margin-top: 8px; font-size: 14px; color: #666; }
.pvi-countdown { display: inline-block; margin-top: 12px; }
.pv-video-card { padding: 16px; }
/* 标题与视频之间留出间距 */
.pvc-title { font-size: 16px; font-weight: 600; margin-bottom: 14px; }
.pv-video { width: 100%; height: 210px; border-radius: 12px; background: #000; }
.pv-intro-text { font-size: 14px; line-height: 1.9; color: #555; }
.pv-cta { padding: 16px; }
.pv-cta .btn-primary { width: 100%; padding: 14px; font-size: 16px; }

/* ========== 分享海报弹窗 ========== */
.share-mask { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.5); z-index: 9998; display: flex; align-items: flex-end; }
.share-sheet { width: 100%; max-width: 500px; margin: 0 auto; max-height: 90vh; background: #f5f6f7; border-radius: 16px 16px 0 0; display: flex; flex-direction: column; overflow: hidden; }
.share-sheet-head { position: relative; padding: 20px 16px 10px; text-align: center; flex-shrink: 0; }
.share-sheet-title { font-size: 16px; font-weight: 700; }
.share-sheet-close { position: absolute; right: 20px; top: 16px; font-size: 24px; color: #999; }
.share-sheet-body { flex: 1; height: 0; overflow-y: auto; padding: 0 16px; -webkit-overflow-scrolling: touch; }
.poster-wrap { background: #fff; border-radius: 12px; padding: 12px; }
.poster-img { width: 100%; display: block; border-radius: 8px; }
.poster-loading { text-align: center; padding: 80px 0; color: var(--muted); }
.share-tip { margin: 10px 0; font-size: 12px; text-align: center; color: var(--muted); }
.share-sheet-footer { display: flex; gap: 12px; padding: 12px 16px; border-top: 1px solid #eee; background: #fff; flex-shrink: 0; }
.share-action-btn { flex: 1; padding: 12px; text-align: center; font-size: 15px; }
.poster-canvas { position: fixed; left: -9999px; top: 0; }

/* ============================================
   ColorUI 动效系统 (H5 版)
   与小程序 colorui.wxss 完全对齐 (rpx→px, 1:2)
   ============================================ */

/* ---------- 颜色系统 ---------- */
.cu-bg-orange { background-color: #FF6B35 !important; }
.cu-bg-orange-light { background-color: #FFF1E8 !important; }
.cu-bg-red { background-color: #e54d42 !important; }
.cu-bg-green { background-color: #39b54a !important; }
.cu-bg-blue { background-color: #0081ff !important; }
.cu-bg-yellow { background-color: #f37b1d !important; }
.cu-bg-grey { background-color: #8799a3 !important; }
.cu-bg-gray { background-color: #f0f0f0 !important; }
.cu-bg-white { background-color: #fff !important; }
.cu-text-orange { color: #FF6B35 !important; }
.cu-text-red { color: #e54d42 !important; }
.cu-text-green { color: #39b54a !important; }
.cu-text-blue { color: #0081ff !important; }
.cu-text-yellow { color: #f37b1d !important; }
.cu-text-grey { color: #8799a3 !important; }
.cu-text-white { color: #fff !important; }
.cu-text-muted { color: #999 !important; }

/* ---------- 动画 Keyframes (补充缺失的) ---------- */
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-6px); }
  60% { transform: translateY(-3px); }
}
@keyframes shimmer {
  0% { background-position: -200px 0; }
  100% { background-position: 200px 0; }
}

/* ---------- 入场动画 class (补充) ---------- */
.animate-fadeInLeft { animation: fadeInLeft 0.4s ease forwards; }
.animate-fadeInRight { animation: fadeInRight 0.4s ease forwards; }
.animate-bounce { animation: bounce 1.5s ease-in-out infinite; }
.animate-spin { animation: spin 1s linear infinite; }
.delay-500 { animation-delay: 0.5s; }

/* ---------- 交互反馈 ---------- */
.cu-press { transition: transform 0.15s ease, opacity 0.15s ease; }
.cu-press:active { transform: scale(0.96); opacity: 0.85; }
.cu-press-lg { transition: transform 0.15s ease, opacity 0.15s ease; }
.cu-press-lg:active { transform: scale(0.93); opacity: 0.85; }

/* 卡片按压效果 */
.cu-card { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.cu-card:active { transform: translateY(1px); box-shadow: 0 1px 4px rgba(0,0,0,.06); }

/* 涟漪文字效果 */
.cu-gradient-text {
  background: linear-gradient(90deg, #FF6B35, #FF8A5C);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- ColorUI 按钮组件 ---------- */
.cu-btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 22px; font-size: 15px; font-weight: 500;
  padding: 0 18px; height: 40px; line-height: 40px;
  border: none; transition: all 0.2s ease;
}
.cu-btn:active { transform: scale(0.96); opacity: 0.9; }
.cu-btn[disabled] { opacity: 0.5; transform: none; }
.cu-btn-block { width: 100%; }
.cu-btn-orange {
  background: linear-gradient(135deg, #FF8A5C, #FF6B35);
  color: #fff; box-shadow: 0 3px 8px rgba(255,107,53,.3);
}
.cu-btn-plain { background: #fff; color: #FF6B35; border: 1px solid #FF6B35; }
.cu-btn-green {
  background: linear-gradient(135deg, #4cd964, #39b54a);
  color: #fff; box-shadow: 0 3px 8px rgba(57,181,74,.3);
}
.cu-btn-ghost {
  background: rgba(255,255,255,.2); color: #fff;
  border: 1px solid rgba(255,255,255,.5);
}

/* ---------- ColorUI 卡片组件 ---------- */
.cu-card-solid {
  background: #fff; border-radius: 16px; padding: 12px;
  margin: 10px 8px; box-shadow: 0 1px 6px rgba(0,0,0,.05);
}
.cu-card-gradient {
  background: linear-gradient(135deg, #FF8A5C, #FF6B35);
  color: #fff; border-radius: 16px; padding: 12px;
  margin: 10px 8px; box-shadow: 0 3px 10px rgba(255,107,53,.25);
}
.cu-card-round { border-radius: 24px; }

/* ---------- 分割线 ---------- */
.cu-divider { height: 1px; background: #F5F6F7; margin: 8px 0; }

/* ---------- 加载骨架屏 ---------- */
.cu-skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 400px 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: 4px;
}

/* ---------- 角标 ---------- */
.cu-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 8px; background: #e54d42; color: #fff; font-size: 10px;
}

/* ---------- ColorUI 加载 Spinner ---------- */
.cu-loading {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px 0; color: #bbb; font-size: 13px;
}
.cu-spinner {
  width: 28px; height: 28px;
  border: 3px solid #FFE4D6; border-top-color: #FF6B35;
  border-radius: 50%; animation: spin 0.8s linear infinite;
  margin-bottom: 8px;
}

/* ---------- ColorUI 空状态 ---------- */
.cu-empty {
  display: flex; flex-direction: column; align-items: center;
  padding: 50px 10px; color: #ccc;
}
.cu-empty-icon { font-size: 48px; margin-bottom: 8px; opacity: 0.5; }
.cu-empty-text { font-size: 13px; color: #bbb; }

/* ---------- 布局工具 ---------- */
.cu-flex { display: flex; }
.cu-flex-center { display: flex; align-items: center; justify-content: center; }
.cu-flex-between { display: flex; align-items: center; justify-content: space-between; }
.cu-flex-1 { flex: 1; }
.cu-text-center { text-align: center; }
.cu-text-right { text-align: right; }
.cu-round { border-radius: 50%; }
.cu-shadow { box-shadow: 0 1px 6px rgba(0,0,0,.08); }
.cu-shadow-lg { box-shadow: 0 4px 12px rgba(0,0,0,.12); }

/* ---------- ColorUI Tag (补充) ---------- */
.cu-tag { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 4px; font-size: 11px; line-height: 1.6; margin-right: 6px; }
.cu-tag-orange { background: #FFF1E8; color: #FF6B35; }
.cu-tag-red { background: #FEF0F0; color: #e54d42; }
.cu-tag-green { background: #EBF8EE; color: #39b54a; }
.cu-tag-blue { background: #E7F1FF; color: #0081ff; }
.cu-tag-grey { background: #F1F2F3; color: #8799a3; }

/* ========== 厂花社区 ========== */
.community-tabs { display: flex; gap: 8px; padding: 8px 16px; position: sticky; top: 0; background: #f5f6f7; z-index: 10; }
.ctab { padding: 6px 16px; border-radius: 16px; font-size: 14px; background: #fff; color: #666; border: 1px solid #e0e0e0; }
.ctab.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.post-card { padding: 16px 20px; }
.post-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.post-author { font-size: 14px; font-weight: 600; color: #333; }
.post-title { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.post-content { font-size: 14px; color: #666; line-height: 1.7; max-height: 60px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin-bottom: 10px; }
.post-imgs { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; margin-bottom: 10px; }
.post-img { width: 100%; height: 100px; object-fit: cover; border-radius: 6px; }
.post-actions { display: flex; gap: 8px; padding-top: 10px; border-top: 1px solid #f0f0f0; }
.pa-btn { flex: 1; text-align: center; padding: 8px 0; font-size: 13px; color: #888; border-radius: 6px; }
.pa-active { color: var(--brand) !important; font-weight: 600; }
/* 发帖按钮：胶囊形（图标+文字自适应宽度，避免圆形撑不下溢出） */
.fab-btn { position: fixed; right: 20px; bottom: 80px; display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 20px; border-radius: 23px; background: var(--brand); color: #fff; font-size: 15px; font-weight: 600; white-space: nowrap; line-height: 1; z-index: 50; box-shadow: 0 4px 12px rgba(255,107,53,.4); }

/* 帖子详情 */
.post-detail-card { padding: 20px; }
.detail-imgs .post-img { height: 160px; }
.post-stats { display: flex; gap: 16px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #f0f0f0; }
.comment-bar { position: fixed; bottom: 0; left: 0; right: 0; display: flex; gap: 8px; padding: 8px 16px; background: #fff; border-top: 1px solid #eee; max-width: 500px; margin: 0 auto; z-index: 90; }
.comment-input { flex: 1; border: 1px solid #e0e0e0; border-radius: 20px; padding: 10px 16px; font-size: 14px; }
.comment-send { padding: 8px 16px; font-size: 14px; white-space: nowrap; }
.detail-action-bar { display: flex; gap: 8px; padding: 8px 16px 80px; }
.da-btn { flex: 1; text-align: center; padding: 10px 0; font-size: 14px; color: #666; border: 1px solid #e0e0e0; border-radius: 20px; }
.da-active { color: var(--brand); border-color: var(--brand); }

/* 评论 */
.comment-card { padding: 14px 20px; }
.c-author { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.c-content { font-size: 14px; color: #333; line-height: 1.6; margin-bottom: 4px; }
.c-time { font-size: 12px; }

/* 首页社区入口 */
.community-entry { display: flex; align-items: center; gap: 12px; }
.ce-icon { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, #FF8A5C, #FF6B35); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.ce-title { font-size: 16px; font-weight: 600; }
.ce-desc { font-size: 12px; margin-top: 2px; }
.ce-arrow { color: #ccc; font-size: 22px; }
