/* ============ 小店互助平台 · 移动端样式 ============ */
[hidden] { display: none !important; }
:root {
  --bg: #f4f6fb;
  --card: #ffffff;
  --text: #1f2430;
  --text-2: #7a8299;
  --line: #eceef5;
  --main: #4f6ef7;
  --main-2: #3d5af1;
  --grad-main: linear-gradient(135deg, #4f6ef7, #7a5cf0);
  --free: #10b981;
  --pay: #f59e0b;
  --warn: #ef4444;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(31, 36, 48, .06);
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { background: var(--bg); color: var(--text); }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  font-size: 15px; line-height: 1.55; max-width: 560px; margin: 0 auto; min-height: 100vh;
  padding-bottom: 100px; position: relative;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; }
input, select, textarea { font-family: inherit; font-size: 15px; }

/* ---------- 顶部品牌栏 ---------- */
.app-header {
  background: var(--grad-main); color: #fff; padding: 14px 16px 12px; border-radius: 0 0 20px 20px;
  position: relative; overflow: hidden;
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; }
.brand .logo { width: 36px; height: 36px; border-radius: 11px; border: 2px solid rgba(255,255,255,.6); background: rgba(255,255,255,.2); display: block; object-fit: cover; }
.slogan { margin-top: 8px; font-size: 12px; opacity: .92; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* ---------- 二级导航 ---------- */
.topnav2 {
  position: sticky; top: 0; z-index: 50; background: var(--card);
  display: flex; align-items: center; gap: 8px; padding: 10px 12px;
  box-shadow: var(--shadow); overflow-x: auto; scrollbar-width: none;
}
.topnav2::-webkit-scrollbar { display: none; }
.nav2-back {
  flex: 0 0 auto; width: 32px; height: 32px; border-radius: 10px; background: #f1f3fa;
  display: flex; align-items: center; justify-content: center; font-size: 20px; color: var(--text-2); font-weight: 700;
}
.status-tab, .baba-tab, .m-tab, .sub-tab {
  flex: 0 0 auto; padding: 7px 14px; border-radius: 20px; background: #f1f3fa;
  color: var(--text-2); font-size: 14px; font-weight: 500; transition: .18s;
}
.status-tab.active, .baba-tab.active, .m-tab.active, .sub-tab.active { background: var(--main); color: #fff; }

/* ---------- 统计条 ---------- */
.stats-bar {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  margin: 12px 12px 0; background: var(--card); border-radius: var(--radius);
  padding: 14px 6px; box-shadow: var(--shadow);
}
.stat-item { text-align: center; }
.stat-num { font-size: 22px; font-weight: 900; color: #f35a22; font-variant-numeric: tabular-nums; }
.stat-lbl { font-size: 11px; color: var(--text-2); margin-top: 2px; }

/* ---------- 首页模块卡片 ---------- */
.home-list { padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.home-card {
  display: flex; align-items: center; gap: 12px; background: var(--card);
  border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow);
  transition: transform .15s; position: relative; overflow: hidden;
}
.home-card:active { transform: scale(.98); }
.home-card .ic { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #fff; }
.home-card .ic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.home-card--baba .ic { background: linear-gradient(135deg, #34d399, #10b981); }
.home-card--tbmiao .ic { background: linear-gradient(135deg, #fb923c, #f97316); }
.home-card--pdd .ic { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
.home-card--help .ic { background: linear-gradient(135deg, #60a5fa, #3b82f6); }
.home-card--taobao .ic { background: linear-gradient(135deg, #fb7185, #f43f5e); }
.home-card--jd .ic { background: linear-gradient(135deg, #f87171, #ef4444); }
.home-card .info { flex: 1; min-width: 0; }
.home-card .t { font-size: 16px; font-weight: 700; }
.home-card .d { font-size: 12px; color: var(--text-2); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.tag-free { background: #e7f8f1; color: var(--free); }
.tag-pay { background: #fef4e2; color: #d97706; }
.arrow { color: #c3c9da; font-size: 22px; }

/* ---------- 顶部公告水平滚动 ---------- */
.notice-ticker {
  margin-top: 10px; height: 30px; overflow: hidden;
  background: rgba(255,255,255,.18); border-radius: 15px;
  display: flex; align-items: center;
}
.notice-marquee {
  display: block; width: 100%; height: 30px; line-height: 30px;
  font-size: 13px; color: #fff; opacity: .98;
  border: none; background: transparent;
}
.notice-marquee::-webkit-scrollbar { display: none; }

/* ---------- 进群横幅（旧版，保留兼容） ---------- */
.join-banner {
  margin: 4px 12px 12px; background: var(--card); border-radius: var(--radius);
  padding: 14px; box-shadow: var(--shadow); display: flex; align-items: center; justify-content: space-between;
}
.join-banner .l { display: flex; align-items: center; gap: 12px; }
.join-banner .pulse { width: 42px; height: 42px; border-radius: 50%; background: #eef2ff; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.join-banner .t { font-size: 15px; font-weight: 700; }
.join-banner .d { font-size: 12px; color: var(--text-2); }
.join-banner .go { color: var(--main); font-size: 14px; font-weight: 600; }
.home-foot { text-align: center; font-size: 11px; color: var(--text-2); line-height: 1.8; margin: 8px 0 96px; }

/* ---------- 底部固定进群入口 ---------- */
.float-join {
  position: fixed; left: 50%; right: auto; bottom: 12px; z-index: 90;
  width: calc(100% - 28px); max-width: 560px;
  transform: translateX(-50%);
  cursor: pointer;
}
.float-join__inner {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #65c466, #4caf50);
  border-radius: 26px; padding: 12px 14px 12px 16px;
  display: flex; flex-direction: row; flex-wrap: nowrap;
  align-items: center; justify-content: space-between; gap: 12px;
  box-shadow: 0 8px 24px rgba(76, 175, 80, .35);
}
.float-join__icon {
  position: relative; flex: 0 0 46px; width: 46px; height: 46px; border-radius: 50%;
  background: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.float-join__icon .ripple {
  position: absolute; inset: 0; border-radius: 50%;
  background: rgba(255,255,255,.45);
  animation: joinRipple 2.2s ease-out infinite;
}
.float-join__icon .ripple:nth-child(2) { animation-delay: 1.1s; }
@keyframes joinRipple {
  0% { transform: scale(1); opacity: .55; }
  100% { transform: scale(2.6); opacity: 0; }
}
.float-join__text { flex: 1; min-width: 0; }
.float-join__title { font-size: 16px; font-weight: 800; color: #fff; }
.float-join__sub { font-size: 12px; color: rgba(255,255,255,.9); margin-top: 2px; }
.float-join__go {
  flex: 0 0 auto; padding: 9px 18px; border-radius: 22px;
  background: #fff; color: #4caf50; font-size: 14px; font-weight: 700;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.float-join__glow {
  position: absolute; top: 0; left: -40%; width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent);
  animation: sheen 2.6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes sheen {
  0% { left: -40%; }
  100% { left: 120%; }
}

/* ---------- Hero ---------- */
.hero { padding: 20px 16px 8px; text-align: center; }
.hero h1 { font-size: 22px; }
.hero p { font-size: 13px; color: var(--text-2); margin-top: 6px; }
.hero .stat {
  display: flex; justify-content: center; gap: 26px; margin: 16px auto 0;
  background: var(--card); box-shadow: var(--shadow); border-radius: var(--radius);
  padding: 14px 10px; max-width: 420px;
}
.hero .stat b { font-size: 20px; color: var(--main); display: block; font-variant-numeric: tabular-nums; }
.hero .stat span { font-size: 11px; color: var(--text-2); }
.hero .stat-2 > div:nth-child(1) b, .hero .stat > div:nth-child(1) b { color: var(--free); }

/* ---------- 步骤说明 ---------- */
.steps { padding: 8px 12px; }
.section-title { font-size: 15px; font-weight: 700; margin: 10px 0 8px; }
.step { display: flex; gap: 10px; background: var(--card); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; box-shadow: var(--shadow); }
.step .num { flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%; background: var(--grad-main); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.step .txt { font-size: 13px; color: #3c4257; }

/* ---------- 通用卡片/表单 ---------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin: 10px 12px; }
.form-head { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 6px; font-weight: 500; }
.field input[type=text], .field input[type=number], .field select, .field textarea,
.form-row input[type=text], .form-row input[type=number], .form-row select, .form-row textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px;
  background: #fafbfe; outline: none; transition: border .15s;
}
.field input:focus, .field select:focus, .field textarea:focus,
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--main); background: #fff; }
.req { color: var(--warn); }
.hint { font-size: 12px; color: var(--text-2); margin-top: 4px; }

.btn-primary {
  background: var(--grad-main); color: #fff; border-radius: 12px; padding: 12px 20px;
  font-size: 15px; font-weight: 600; box-shadow: 0 4px 12px rgba(79,110,247,.3); transition: .15s;
}
.btn-primary:active { transform: scale(.97); }
.btn-primary.big { width: 100%; font-size: 16px; }
.btn-baba-launch {
  width: 100%; background: linear-gradient(135deg, #34d399, #10b981); color: #fff;
  border-radius: 12px; padding: 13px; font-size: 16px; font-weight: 700;
  box-shadow: 0 4px 12px rgba(16,185,129,.3);
}
.btn-mini { background: #eef2ff; color: var(--main); border-radius: 8px; padding: 6px 12px; font-size: 13px; font-weight: 600; }

/* ---------- 上传框 ---------- */
.upload-box {
  border: 2px dashed #d5dbec; border-radius: 12px; padding: 22px 12px; text-align: center;
  background: #fafbfe; transition: .15s;
}
.upload-box:active { border-color: var(--main); background: #f0f4ff; }
.up-icon { font-size: 26px; }
.up-text { font-size: 12px; color: var(--text-2); margin-top: 6px; }
.up-preview { position: relative; margin-top: 10px; display: inline-block; }
.up-preview img { max-width: 160px; max-height: 160px; border-radius: 10px; display: block; }
.up-rm {
  position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--warn); color: #fff; font-size: 14px; line-height: 1;
}
.up-box { border: 2px dashed #d5dbec; border-radius: 12px; padding: 16px; text-align: center; background: #fafbfe; }
.up-box input[type=file] { display: none; }
.up-box .up-tip { font-size: 13px; color: var(--text-2); }

/* ---------- 列表 ---------- */
.hall { padding: 4px 12px 16px; }
.empty { text-align: center; color: var(--text-2); font-size: 13px; padding: 30px 0; }
.item-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 14px; margin-bottom: 10px;
}
.item-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.item-title { font-size: 15px; font-weight: 700; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 8px; font-size: 12px; color: var(--text-2); }
.item-foot { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.item-foot .spacer { flex: 1; }
.price-badge { background: #fef4e2; color: #d97706; font-weight: 700; font-size: 13px; padding: 3px 10px; border-radius: 10px; }
.status-pill { padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.st-open { background: #e7f8f1; color: var(--free); }
.st-pending { background: #fef4e2; color: #d97706; }
.st-done { background: #e8f0fe; color: var(--main); }
.st-closed, .st-expired, .st-rejected { background: #f1f3fa; color: var(--text-2); }

.filter-bar { display: flex; align-items: center; gap: 10px; margin: 10px 12px; font-size: 13px; color: var(--text-2); }
.filter-bar select { border: 1.5px solid var(--line); border-radius: 8px; padding: 6px 10px; background: var(--card); }

/* ---------- 提交行 ---------- */
.submit-card .head { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.submit-row { display: flex; gap: 8px; }
.submit-row input { flex: 1; border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 14px; background: #fafbfe; font-size: 16px; letter-spacing: 1px; }
.submit-row input:focus { border-color: var(--main); outline: none; }
.submit-hint { font-size: 12px; color: var(--text-2); margin-top: 8px; }

/* ---------- 弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(18, 22, 34, .55); z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 18px;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.modal-mask.show { opacity: 1; pointer-events: auto; }
.modal-box {
  background: #fff; border-radius: 18px; width: 100%; max-width: 420px;
  max-height: 86vh; overflow-y: auto; padding: 18px 16px;
}
.m-title { font-size: 17px; font-weight: 700; margin-bottom: 12px; text-align: center; }
.m-tip { font-size: 12px; color: var(--text-2); margin-bottom: 12px; text-align: center; }
.m-actions { display: flex; gap: 10px; margin-top: 14px; }
.m-btn { flex: 1; padding: 11px; border-radius: 12px; font-size: 15px; font-weight: 600; }
.m-btn.cancel { background: #f1f3fa; color: var(--text-2); }
.m-btn.primary { background: var(--grad-main); color: #fff; }
.m-btn.warn { background: linear-gradient(135deg, #f87171, #ef4444); color: #fff; }
.d-body { font-size: 14px; }
.d-body img { max-width: 100%; border-radius: 10px; margin-top: 6px; }
.d-body .kv { margin-bottom: 10px; }
.d-body .kv b { display: block; font-size: 12px; color: var(--text-2); font-weight: 500; margin-bottom: 2px; }
.d-body .kv .v { word-break: break-all; cursor: pointer; }

/* ---------- Toast ---------- */
#toast {
  position: fixed; left: 50%; bottom: 15%; transform: translateX(-50%) translateY(10px);
  background: rgba(28, 32, 46, .9); color: #fff; font-size: 13px;
  padding: 10px 18px; border-radius: 22px; z-index: 300; opacity: 0;
  transition: .25s; pointer-events: none; max-width: 80vw; text-align: center;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 签到页 ---------- */
.sign-hero { padding: 18px 16px 6px; }
.sign-topbar { display: flex; align-items: center; gap: 8px; }
.sign-title { flex: 1; font-size: 20px; font-weight: 800; }
.sign-cs { width: 34px; height: 34px; border-radius: 50%; background: var(--card); box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; font-size: 17px; }
.sign-mascot { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.sign-mascot .em {
  width: 64px; height: 64px; border-radius: 22px; background: var(--card); box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 30px;
}
.sign-mascot .em .tag { background: #eef2ff; color: var(--main); font-size: 10px; margin-top: 2px; }
.sign-bubble { background: var(--card); box-shadow: var(--shadow); border-radius: 4px 16px 16px 16px; padding: 12px 14px; font-size: 13px; color: #3c4257; }
.sign-days-card { padding: 8px 12px; }
.sign-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 10px; }
.sd { text-align: center; padding: 9px 0; border-radius: 10px; font-size: 12px; font-weight: 600; }
.sd-done { background: #e7f8f1; color: var(--free); }
.sd-pending { background: #f1f3fa; color: var(--text-2); }
.sd-today { outline: 2px solid var(--main); color: var(--main); }
.sign-list { padding: 4px 12px 16px; }
.sign-item { display: flex; align-items: center; gap: 12px; }
.sign-item .si-ic { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 13px; background: #eef2ff; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.sign-item .si-info { flex: 1; min-width: 0; }
.sign-item .si-t { font-size: 15px; font-weight: 700; }
.sign-item .si-d { font-size: 12px; color: var(--text-2); }
.sign-item .si-go { background: var(--grad-main); color: #fff; border-radius: 18px; padding: 8px 16px; font-size: 13px; font-weight: 600; }

/* ---------- 页脚 ---------- */
.footer { text-align: center; font-size: 11px; color: var(--text-2); padding: 20px 16px 6px; line-height: 1.8; }

/* ---------- 领取弹窗 ---------- */
.claim-box { text-align: center; }
.claim-box .cm-title { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.claim-box .cm-tip { font-size: 12px; color: var(--text-2); margin-bottom: 10px; }
.claim-box .cm-content {
  background: #f6f8fd; border-radius: 12px; padding: 14px; font-size: 13px;
  word-break: break-all; text-align: left; max-height: 160px; overflow-y: auto; margin-bottom: 12px;
}
.claim-box .cm-actions { display: flex; gap: 8px; }
.cm-btn { flex: 1; padding: 11px; border-radius: 12px; font-size: 14px; font-weight: 600; background: #f1f3fa; color: var(--text-2); }
.cm-btn.primary { background: var(--grad-main); color: #fff; }

/* ---------- 二维码面板 ---------- */
.qr-tabs { display: flex; gap: 6px; margin-bottom: 12px; justify-content: center; flex-wrap: wrap; }
.qr-tab { padding: 6px 12px; border-radius: 16px; background: #f1f3fa; color: var(--text-2); font-size: 13px; }
.qr-tab.active { background: var(--main); color: #fff; }
.qr-img { width: 220px; height: 220px; margin: 0 auto; border-radius: 14px; background: #f6f8fd; display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--text-2); text-align: center; white-space: pre-line; }
.qr-tip { text-align: center; font-size: 12px; color: var(--text-2); margin-top: 10px; }

/* ---------- 图片放大预览 ---------- */
.img-preview { position: fixed; inset: 0; z-index: 400; background: rgba(0,0,0,.82); display: flex; align-items: center; justify-content: center; }
.img-preview img { max-width: 94vw; max-height: 88vh; border-radius: 10px; }
.img-preview .ip-close { position: fixed; top: 18px; right: 18px; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; font-size: 20px; }

/* ---------- 芭芭农场大厅 ---------- */
.baba-pane { display: none; }
.baba-pane.active { display: block; }
.baba-team { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; margin: 0 12px 10px; }
.baba-team .bt-head { display: flex; justify-content: space-between; align-items: center; }
.baba-team .bt-title { font-weight: 700; font-size: 15px; }
.baba-team .bt-slots { font-size: 12px; color: var(--free); font-weight: 600; }
.mine-subtabs { display: flex; gap: 8px; padding: 10px 12px; }
.mine-subtabs--split {
  gap: 0; padding: 4px; background: #fff; border-radius: 24px;
  box-shadow: var(--shadow); margin: 10px 12px;
}
.mine-subtabs--split .m-tab {
  flex: 1 1 50%; padding: 11px 0; border-radius: 20px;
  background: transparent; color: var(--text-2);
  font-size: 15px; font-weight: 600; text-align: center;
  border: none; outline: none; transition: .18s;
}
.mine-subtabs--split .m-tab.active {
  background: linear-gradient(135deg, #65c466, #4caf50);
  color: #fff; font-weight: 700;
}

/* 新版芭芭农场卡片 */
.baba-team-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 14px; margin: 0 12px 12px; overflow: hidden;
}
.baba-team-main { display: flex; gap: 12px; }
.baba-avatar {
  flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, #86efac, #22c55e);
  display: flex; align-items: center; justify-content: center; font-size: 26px;
  box-shadow: 0 3px 10px rgba(34,197,94,.2);
}
.baba-info { flex: 1; min-width: 0; }
.baba-line1 { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.baba-role {
  font-size: 16px; font-weight: 800; color: var(--text);
}
.baba-line2 {
  font-size: 14px; color: var(--text); font-weight: 600; line-height: 1.4;
}
.baba-line2 .b-type-sub { color: var(--text-2); font-weight: 500; font-size: 13px; }
.baba-req {
  margin-top: 8px; background: #ecfdf3; border-radius: 10px; padding: 8px 10px;
  font-size: 13px; color: #15803d; line-height: 1.45; word-break: break-all;
}
.baba-req .pin { margin-right: 4px; }
.baba-time { margin-top: 8px; font-size: 12px; color: var(--text-2); }
.baba-team-media {
  margin-top: 12px; display: flex; align-items: center; gap: 12px;
}
.baba-team-media img {
  width: 96px; height: 96px; object-fit: cover; border-radius: 12px;
  border: 1px solid var(--line); background: #f6f8fd;
}
.baba-team-media .no-shot {
  width: 96px; height: 96px; border-radius: 12px; background: #f6f8fd;
  display: flex; align-items: center; justify-content: center; font-size: 12px;
  color: var(--text-2); border: 1px dashed #d5dbec;
}
.baba-swap-btn {
  flex: 1; padding: 12px; border-radius: 12px; font-size: 15px; font-weight: 700;
  background: linear-gradient(135deg, #34d399, #10b981); color: #fff;
  box-shadow: 0 4px 12px rgba(16,185,129,.28); transition: .15s;
}
.baba-swap-btn:active { transform: scale(.98); }
.baba-swap-btn.secondary {
  background: #f1f3fa; color: var(--text); box-shadow: none; font-weight: 600;
}
.baba-swap-btn.warn {
  background: linear-gradient(135deg, #f87171, #ef4444); box-shadow: 0 4px 12px rgba(239,68,68,.25);
}
.baba-team-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.baba-team-actions .baba-swap-btn { flex: 1; min-width: 110px; }

/* ---------- 举报弹窗 ---------- */
.report-tip { background: #fef2f2; color: #b91c1c; font-size: 12px; border-radius: 10px; padding: 10px; margin-bottom: 12px; line-height: 1.6; }

/* ---------- 二级导航：三等分 ---------- */
.topnav2--split { gap: 0; padding: 10px 10px; overflow: hidden; }
.topnav2--split .nav2-back { flex: 0 0 30px; width: 30px; height: 30px; margin-right: 4px; }
.topnav2--split .baba-tab {
  flex: 1 1 0; min-width: 0; margin: 0 3px; padding: 8px 2px;
  font-size: 13px; text-align: center; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; display: block;
}

/* ---------- 开关行（声音通知） ---------- */
.switch-row {
  display: flex; align-items: center; gap: 10px; background: #f7f9ff;
  border: 1.5px solid #e6ebfb; border-radius: 12px; padding: 10px 12px; margin-bottom: 12px;
}
.switch-row .sw-info { flex: 1; min-width: 0; }
.switch-row .sw-t { font-size: 14px; font-weight: 600; color: var(--text); }
.switch-row .sw-d { font-size: 11.5px; color: var(--text-2); margin-top: 2px; line-height: 1.5; }
.switch { position: relative; flex: 0 0 46px; width: 46px; height: 26px; display: block; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 2; }
.switch .slider {
  position: absolute; inset: 0; background: #d5dbec; border-radius: 26px; transition: .2s;
}
.switch .slider::before {
  content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px;
  background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.18);
}
.switch input:checked + .slider { background: linear-gradient(135deg, #34d399, #10b981); }
.switch input:checked + .slider::before { transform: translateX(20px); }

/* ---------- 声音提醒按钮 ---------- */
.baba-swap-btn.sound {
  background: linear-gradient(135deg, #fbbf24, #f59e0b); box-shadow: 0 4px 12px rgba(245,158,11,.25);
}
.baba-swap-btn.muted { background: #f1f3fa; color: var(--text-2); box-shadow: none; font-weight: 600; }

/* ---------- 新版芭芭农场·我的卡片 ---------- */
.baba-team-card.mine-v2 { padding: 14px 14px 10px; margin: 0 12px 12px; }
.baba-team-card.mine-v2 .baba-team-row { display: flex; gap: 12px; align-items: flex-start; }
.baba-team-card.mine-v2 .baba-avatar-v2 {
  flex: 0 0 48px; width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, #86efac, #22c55e);
  display: flex; align-items: center; justify-content: center; font-size: 26px;
}
.baba-team-card.mine-v2 .baba-info-v2 { flex: 1; min-width: 0; }
.baba-team-card.mine-v2 .baba-line1 { display: flex; align-items: center; gap: 8px; }
.baba-team-card.mine-v2 .baba-role { font-size: 17px; font-weight: 800; color: var(--text); }
.tag-mine {
  background: #eff6ff; color: #2563eb; border: 1px solid #dbeafe;
  border-radius: 20px; padding: 2px 10px; font-size: 12px; font-weight: 700;
}
.baba-team-card.mine-v2 .baba-line2 {
  margin-top: 5px; font-size: 14px; color: var(--text); font-weight: 600; line-height: 1.4;
}
.baba-team-card.mine-v2 .baba-line3 {
  margin-top: 6px; font-size: 12px; color: var(--text-2);
}
.baba-team-card.mine-v2 .baba-line3 b { color: #22c55e; font-weight: 700; }
.baba-team-btns {
  display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap;
}
.baba-team-btns > button {
  flex: 1 1 30%; min-width: 90px; padding: 11px 6px; border-radius: 12px;
  font-size: 14px; font-weight: 700; text-align: center; transition: .15s;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
}
.baba-team-btns .btn-outline {
  background: #fff; color: #22c55e; border: 1.5px solid #22c55e;
}
.baba-team-btns .btn-primary { background: linear-gradient(135deg, #65c466, #4caf50); color: #fff; border: none; }
.baba-team-btns .btn-danger-outline {
  background: #fff; color: #ef4444; border: 1.5px solid #ef4444;
}
.baba-team-btns > button:active { transform: scale(.98); }
.btn-badge {
  background: #fff; color: #4caf50; border-radius: 50%; min-width: 18px; height: 18px;
  font-size: 11px; font-weight: 800; line-height: 18px; display: inline-block;
}
.baba-team-tools {
  display: flex; justify-content: flex-end; margin-top: 8px; padding-top: 8px;
  border-top: 1px dashed #eceef5;
}
.tool-link {
  font-size: 12px; color: var(--text-2); display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 6px; border-radius: 6px;
}
.tool-link.on { color: #22c55e; font-weight: 700; }
