/* 菜园交易站 · 移动端竖屏游戏 UI */
:root {
  --orange: #FF8A3D;
  --orange-deep: #F06A1D;
  --orange-soft: #FFF0E1;
  --gold: #F5A623;
  --gold-deep: #C98411;
  --green: #7CC142;
  --green-deep: #4C972C;
  --green-soft: #EAF7DC;
  --blue: #48AEE4;
  --blue-soft: #E3F4FE;
  --pink: #F47792;
  --pink-soft: #FFE8EE;
  --ink: #3D2B1D;
  --ink-2: #6E5946;
  --muted: #A08E7B;
  --cream: #FFF8EE;
  --card: #FFFFFF;
  --line: #F0E2D2;
  --shadow: 0 10px 26px rgba(120, 84, 42, .10);
  --radius: 22px;
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body { margin: 0; min-height: 100%; }

body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 255, 255, .55) 0 2px, transparent 3px) 0 0 / 26px 26px,
    radial-gradient(circle at 82% 28%, rgba(255, 255, 255, .4) 0 2px, transparent 3px) 0 0 / 34px 34px,
    linear-gradient(160deg, #E7F3D7 0%, #D7EAC4 50%, #EAF3DE 100%);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button { font-family: inherit; cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 3px solid rgba(255, 138, 61, .38); outline-offset: 2px; }

.app {
  position: relative;
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--cream);
  overflow-x: hidden;
  box-shadow: 0 0 60px rgba(70, 45, 20, .18);
  isolation: isolate;
}

.app-bg {
  position: absolute;
  z-index: 0;
  top: 0; left: 0; right: 0;
  height: 320px;
  background: linear-gradient(180deg, #8CD3F3 0%, #B7E5FA 48%, #E9F5E7 78%, var(--cream) 100%);
  pointer-events: none;
}

.main { position: relative; z-index: 1; padding-bottom: calc(86px + var(--sab)); }

.view { display: none; }
.view.is-active { display: block; animation: viewIn .24s ease both; }

/* ---------- 顶部玩家 HUD ---------- */
.hud {
  position: fixed;
  z-index: 50;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: calc(var(--sat) + 10px) 16px 12px;
  transition: background .25s ease, box-shadow .25s ease;
}
.hud.is-solid {
  background: linear-gradient(180deg, rgba(255, 251, 244, .98), rgba(255, 251, 244, .88));
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 26px rgba(96, 65, 32, .10);
}
.hud-left { display: flex; align-items: center; gap: 10px; min-width: 0; }

.avatar-btn {
  position: relative;
  width: 54px; height: 54px;
  flex: 0 0 54px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .96);
  padding: 0;
  background: #D9EDF8;
  box-shadow: 0 5px 14px rgba(52, 70, 84, .22);
  overflow: visible;
}
.avatar-btn img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; transform: scale(1.06); }
.avatar-badge {
  position: absolute;
  right: -4px; bottom: -2px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: linear-gradient(180deg, #8DD24E, #5FAF2E);
  border: 2px solid #fff;
  display: grid; place-items: center;
  color: #fff;
  box-shadow: 0 2px 6px rgba(50, 100, 20, .28);
}
.avatar-badge .mp-icon { width: 12px; height: 12px; }

.hud-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; min-width: 0; }
.hud-name {
  display: flex; align-items: center; gap: 3px;
  padding: 0; border: 0; background: none;
  color: #33251A;
  font-size: 16px; font-weight: 800; letter-spacing: -.01em;
  line-height: 1.2;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .7);
  max-width: 100%;
}
.hud-name span { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hud-name .mp-icon { width: 17px; height: 17px; opacity: .82; }

.coin-pill {
  display: inline-flex; align-items: center; gap: 5px;
  height: 29px;
  padding: 0 5px 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 211, 151, .95);
  background: linear-gradient(180deg, rgba(255, 252, 242, .98), rgba(255, 241, 217, .95));
  box-shadow: 0 4px 10px rgba(146, 97, 35, .14), inset 0 1px 0 #fff;
  color: #7A4C18;
}
.coin-pill .coin { width: 17px; height: 17px; color: var(--gold); filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .6)); }
.coin-pill b { font-size: 13.5px; font-weight: 900; min-width: 34px; text-align: left; font-variant-numeric: tabular-nums; }
.coin-pill.bump b { animation: coinBump .38s ease; }
.coin-plus {
  width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(180deg, #FFAE58, #FF7B22);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 2px 4px rgba(220, 110, 20, .28);
}
.coin-plus .mp-icon { width: 13px; height: 13px; }

.hud-tools { display: flex; align-items: center; gap: 8px; padding-top: 2px; }
.icon-btn {
  position: relative;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .9);
  background: rgba(255, 255, 255, .96);
  color: #59483A;
  display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(70, 50, 30, .14);
  transition: transform .12s ease;
}
.icon-btn .mp-icon { width: 20px; height: 20px; }
.icon-btn:active { transform: scale(.92); }
.icon-btn .dot {
  display: none;
  position: absolute;
  top: 6px; right: 6px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #F4511E;
  border: 2px solid #fff;
}
.icon-btn .dot.show { display: block; }

/* ---------- 首页 ---------- */
.hero { position: relative; overflow: hidden; background: #9FD9F4; }
.hero-img {
  display: block;
  width: 100%;
  aspect-ratio: 390 / 244;
  object-fit: cover;
  object-position: center 40%;
  user-select: none;
  -webkit-user-drag: none;
}
.hero-fade {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 54px;
  background: linear-gradient(180deg, rgba(255, 248, 238, 0), rgba(255, 248, 238, .5) 58%, var(--cream) 100%);
  z-index: 1;
  pointer-events: none;
}
.hero-cta {
  position: absolute;
  z-index: 3;
  left: 50%; bottom: 16px;
  transform: translateX(-50%);
  width: min(76%, 288px);
  height: 58px;
  border: 0;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(180deg, #FFE477 0%, #FFCE45 55%, #FFB225 100%);
  color: #7A3D0C;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: .03em;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, .55),
    inset 0 -3px 0 rgba(221, 137, 18, .28),
    0 3px 0 #E39A1C,
    0 12px 22px rgba(219, 131, 23, .34);
  transition: transform .12s ease, box-shadow .12s ease;
}
.hero-cta:active {
  transform: translateX(-50%) translateY(3px);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, .45),
    inset 0 -2px 0 rgba(221, 137, 18, .22),
    0 1px 0 #E39A1C,
    0 5px 12px rgba(219, 131, 23, .26);
}
.cta-ico {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(180deg, #9B672F, #7A4B1F);
  color: #D9F3A4;
  display: grid; place-items: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .24);
}
.cta-ico .mp-icon { width: 21px; height: 21px; }
.cta-badge {
  display: none;
  position: absolute;
  top: -8px; right: 16px;
  min-width: 20px; height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  background: #F4511E;
  border: 2px solid #fff;
  color: #fff;
  font-size: 10.5px;
  font-weight: 900;
  font-style: normal;
  line-height: 16px;
  box-shadow: 0 3px 8px rgba(200, 60, 20, .3);
}
.cta-badge.show { display: block; }

.home-body { position: relative; z-index: 2; padding: 20px 14px 0; }

.card {
  background: linear-gradient(180deg, #FFFFFF 0%, #FFFCF7 100%);
  border: 1px solid rgba(240, 226, 210, .95);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* 快捷操作 */
.quick-card {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  padding: 15px 8px 12px;
  margin-bottom: 13px;
}
.quick {
  position: relative;
  border: 0;
  background: none;
  border-radius: 16px;
  padding: 4px 2px 3px;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  color: var(--ink-2);
  transition: transform .12s ease, background .12s ease;
}
.quick:active { transform: scale(.94); background: #FFF4E7; }
.q-ico {
  position: relative;
  width: 52px; height: 52px;
  border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: inset 0 -3px 0 rgba(80, 110, 50, .07), 0 4px 10px rgba(110, 80, 40, .07);
}
.q-ico .mp-icon { width: 28px; height: 28px; }
.q-water { background: linear-gradient(180deg, #EAF8FF, #D5EFFC); color: #3AA3DB; }
.q-fert { background: linear-gradient(180deg, #F0F9E4, #E2F2D2); color: #5CA237; }
.q-harvest { background: linear-gradient(180deg, #FFF4E4, #FFE7C7); color: #EF892C; }
.q-trade { background: linear-gradient(180deg, #FFEFF3, #FFE0E8); color: #EF7690; }
.q-label { font-size: 12.5px; font-weight: 800; color: #5C4A3A; }
.q-badge {
  display: none;
  position: absolute;
  top: -2px; right: 0;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #F4511E;
  border: 2px solid #fff;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  font-style: normal;
  line-height: 14px;
  text-align: center;
}
.q-badge.show { display: block; }

/* 农产品交易 */
.market-card { padding: 15px 13px 15px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.sec-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sec-ico {
  width: 31px; height: 31px;
  flex: 0 0 31px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(180deg, #8ACF4E, #5FAF2D);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 3px 7px rgba(80, 140, 40, .22);
}
.sec-ico .mp-icon { width: 19px; height: 19px; }
.sec-ico-soft { background: linear-gradient(180deg, #FFF2DF, #FFE4C0); color: #E8892B; box-shadow: none; }
.sec-title h2 { margin: 0; font-size: 17px; font-weight: 900; letter-spacing: -.01em; color: #3A2A1D; }
.more-link {
  border: 0; background: none; padding: 4px 0 4px 8px;
  color: #9B8977; font-size: 11.5px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 1px;
  white-space: nowrap;
}
.more-link .mp-icon { width: 15px; height: 15px; }
.more-link:active { opacity: .6; }

.market-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.product {
  min-width: 0;
  padding: 6px 6px 8px;
  border-radius: 16px;
  background: #FBF6EF;
  border: 1px solid #F3E7D8;
  display: flex; flex-direction: column;
}
.product-img {
  width: 100%;
  height: 74px;
  object-fit: cover;
  border-radius: 11px;
  display: block;
  background: #F1E8DC;
}
.p-name {
  margin-top: 6px;
  font-size: 11.5px;
  font-weight: 800;
  color: #493729;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.p-stock { margin-top: 1px; font-size: 9.5px; color: #AD9B88; font-weight: 600; }
.p-foot { margin-top: 6px; display: flex; align-items: center; justify-content: space-between; gap: 3px; }
.p-price { display: inline-flex; align-items: center; gap: 2px; color: #6D4A22; font-size: 11.5px; font-weight: 900; font-variant-numeric: tabular-nums; }
.p-price .mp-icon { width: 13px; height: 13px; color: var(--gold); }
.p-btn {
  border: 0;
  height: 25px;
  padding: 0 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, #FFA45E, #FF7B2C);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  box-shadow: 0 2px 5px rgba(240, 120, 40, .28), inset 0 1px 0 rgba(255, 255, 255, .3);
  white-space: nowrap;
}
.p-btn:active { transform: scale(.94); }
.p-btn.ghost { background: #FFF2E3; color: #DD7C28; box-shadow: none; border: 1px solid #FFE0BD; }
.home-foot { margin: 17px 0 2px; text-align: center; font-size: 10.5px; color: #B4A390; letter-spacing: .06em; }

/* ---------- 通用页面 ---------- */
.page-pad { position: relative; z-index: 2; padding: calc(var(--sat) + 102px) 16px 22px; }
.page-head { margin: 2px 2px 14px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(214, 235, 192, .9);
  color: var(--green-deep);
  font-size: 10.5px; font-weight: 900; letter-spacing: .06em;
  box-shadow: 0 3px 8px rgba(80, 110, 50, .06);
}
.eyebrow .mp-icon { width: 13px; height: 13px; }
.page-head h2 { margin: 9px 0 0; font-size: 23px; line-height: 1.28; font-weight: 900; letter-spacing: -.02em; color: #342519; text-shadow: 0 1px 0 rgba(255, 255, 255, .66); }
.page-head .sub { margin: 6px 0 0; font-size: 11.5px; line-height: 1.65; color: #8D7A67; max-width: 94%; }

/* ---------- 农场 ---------- */
.farm-banner {
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 17px 16px;
  border-radius: 25px;
  border: 1px solid #F0DFC4;
  background:
    radial-gradient(circle at 86% 18%, rgba(255, 255, 255, .7) 0 38px, transparent 40px),
    linear-gradient(115deg, #FFE6BE 0%, #FFF6E4 55%, #EDF8DC 100%);
  box-shadow: 0 10px 24px rgba(145, 100, 40, .12);
  margin-bottom: 13px;
}
.farm-banner::after {
  content: "";
  position: absolute;
  right: -30px; bottom: -46px;
  width: 150px; height: 150px;
  border-radius: 50%;
  border: 18px solid rgba(255, 255, 255, .24);
  pointer-events: none;
}
.fb-copy { position: relative; z-index: 1; }
.fb-kicker { font-size: 10.5px; font-weight: 800; color: #A4773E; letter-spacing: .12em; }
.fb-copy strong { display: flex; align-items: baseline; gap: 5px; margin-top: 1px; font-size: 34px; line-height: 1.1; font-weight: 900; color: #6C411B; font-variant-numeric: tabular-nums; }
.fb-copy strong small { font-size: 13px; font-weight: 800; color: #9A713F; }
.fb-copy p { margin: 2px 0 0; font-size: 11px; color: #97754B; }
.fb-copy p b { color: #D77816; font-size: 12.5px; }
.fb-art { position: relative; z-index: 1; width: 82px; height: 82px; flex: 0 0 82px; transform: rotate(4deg); }
.fb-art img { width: 100%; height: 100%; object-fit: cover; border-radius: 20px; border: 3px solid #fff; box-shadow: 0 7px 16px rgba(120, 80, 30, .2); }

.bed-list { display: flex; flex-direction: column; gap: 11px; }
.bed {
  display: flex; gap: 11px;
  padding: 11px;
  border-radius: 21px;
  background: #fff;
  border: 1px solid #F0E2D2;
  box-shadow: 0 8px 20px rgba(120, 84, 42, .08);
}
.bed-visual {
  position: relative;
  flex: 0 0 94px;
  width: 94px; height: 104px;
  border-radius: 16px;
  overflow: hidden;
  background: #EDE3D5;
}
.bed-visual img { width: 100%; height: 100%; object-fit: cover; display: block; transition: filter .3s ease, transform .3s ease; }
.bed.growing .bed-visual img { filter: saturate(.58) brightness(1.04); transform: scale(1.04); }
.bed.empty .bed-visual img { display: none; }
.bed-soil {
  display: none;
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 236, 200, .28) 0 3px, transparent 4px) 0 0 / 22px 22px,
    radial-gradient(circle at 70% 68%, rgba(84, 51, 22, .22) 0 4px, transparent 5px) 0 0 / 28px 28px,
    linear-gradient(145deg, #B98250 0%, #96633A 55%, #7F5330 100%);
  place-items: center;
  color: rgba(255, 246, 228, .78);
}
.bed.empty .bed-soil { display: grid; }
.bed-soil .mp-icon { width: 32px; height: 32px; }
.bed-status {
  position: absolute;
  left: 6px; top: 6px;
  z-index: 2;
  display: inline-flex; align-items: center; gap: 3px;
  height: 19px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(61, 43, 29, .56);
  color: #fff;
  font-size: 9.5px; font-weight: 800;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  white-space: nowrap;
}
.bed-status.ready { background: linear-gradient(180deg, #83C94A, #58A92A); box-shadow: 0 2px 6px rgba(70, 140, 30, .24); }
.bed-status.growing { background: linear-gradient(180deg, #FFB15E, #ED8124); }
.bed-status.empty { background: rgba(83, 66, 48, .66); }
.bed-status .mp-icon { width: 10px; height: 10px; }
.bed-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.bed-title { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.bed-title h3 { margin: 0; font-size: 15px; font-weight: 900; color: #3B2A1D; white-space: nowrap; }
.bed-time { font-size: 10.5px; font-weight: 800; color: #E1862B; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bed-desc { margin: 3px 0 0; font-size: 10.5px; color: #A08D79; line-height: 1.45; }
.bed-progress { margin-top: 8px; height: 7px; border-radius: 999px; background: #F2E9DD; overflow: hidden; }
.bed-progress i { display: block; height: 100%; width: 0%; border-radius: inherit; background: linear-gradient(90deg, #A9DC6D, #6DB93B); transition: width .35s linear; }
.bed.ready .bed-progress i { background: linear-gradient(90deg, #FFD05A, #FF9A2E); }
.bed-actions { display: flex; align-items: center; gap: 6px; margin-top: 9px; }
.bed-btn {
  height: 30px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid #EFE2D2;
  background: #FFFBF5;
  color: #6C5845;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex; align-items: center; gap: 4px;
  white-space: nowrap;
  transition: transform .12s ease;
}
.bed-btn .mp-icon { width: 14px; height: 14px; }
.bed-btn:active { transform: scale(.95); }
.bed-btn:disabled { opacity: .45; }
.bed-btn.primary {
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, #FFA45E, #FF7A2C);
  box-shadow: 0 3px 0 #DE601D, 0 5px 10px rgba(240, 120, 40, .2);
  flex: 1;
  justify-content: center;
}
.bed-btn.primary:active { box-shadow: 0 1px 0 #DE601D, 0 2px 5px rgba(240, 120, 40, .18); }
.bed-btn.fert { color: #5E9C34; background: #F3FAE9; border-color: #DFEFCF; }
.bed-btn.water { color: #3E9BCB; background: #F0FAFF; border-color: #D8EEF9; }

/* ---------- 交易 ---------- */
.wallet-card {
  position: relative;
  overflow: hidden;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  padding: 18px 17px;
  border-radius: 26px;
  color: #fff;
  background: linear-gradient(135deg, #FFA052 0%, #FF8A3D 46%, #F06A1D 100%);
  box-shadow: 0 12px 26px rgba(240, 120, 40, .28);
  margin-bottom: 16px;
}
.wallet-card::before {
  content: "";
  position: absolute;
  right: -34px; top: -52px;
  width: 150px; height: 150px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .13);
}
.wallet-card::after {
  content: "";
  position: absolute;
  right: 26px; bottom: -38px;
  width: 96px; height: 96px;
  border-radius: 50%;
  border: 14px solid rgba(255, 255, 255, .1);
}
.wallet-main { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 2px; }
.wallet-main > span { font-size: 10.5px; font-weight: 700; opacity: .9; letter-spacing: .08em; }
.wallet-main b { display: flex; align-items: center; gap: 5px; font-size: 31px; font-weight: 900; line-height: 1.15; font-variant-numeric: tabular-nums; }
.wallet-main b .mp-icon { width: 23px; height: 23px; color: #FFE9A9; filter: drop-shadow(0 1px 0 rgba(160, 80, 10, .3)); }
.wallet-side { position: relative; z-index: 1; text-align: right; display: flex; flex-direction: column; gap: 1px; }
.wallet-side > span { font-size: 10px; opacity: .88; }
.wallet-side > b { font-size: 14px; font-weight: 900; }
.wallet-side .wallet-weight { font-size: 9.5px; opacity: .85; margin-top: 2px; }
.wallet-side em { font-style: normal; }

.list-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 2px 2px 10px; }
.list-head h3 { margin: 0; font-size: 16px; font-weight: 900; color: #3A2A1D; }
.mini-primary {
  border: 0;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #FFA45E, #FF7A2C);
  color: #fff;
  font-size: 11.5px;
  font-weight: 900;
  box-shadow: 0 4px 10px rgba(240, 120, 40, .24), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.mini-primary:active { transform: scale(.95); }
.mini-primary:disabled { opacity: .45; box-shadow: none; }

.trade-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.trade-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px;
  background: #fff;
  border: 1px solid #F0E2D2;
  border-radius: 19px;
  box-shadow: 0 7px 18px rgba(120, 84, 42, .07);
}
.trade-item img { width: 64px; height: 64px; flex: 0 0 64px; border-radius: 14px; object-fit: cover; background: #F2E9DD; }
.ti-info { flex: 1 1 auto; min-width: 0; }
.ti-info h3 { margin: 0; font-size: 14.5px; font-weight: 900; color: #3B2A1D; white-space: nowrap; }
.ti-info p { margin: 2px 0 4px; display: flex; align-items: center; gap: 3px; font-size: 10.5px; color: #9B8772; }
.ti-info p .mp-icon { width: 12px; height: 12px; color: var(--gold); }
.stock-pill {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  background: #F5F8ED;
  border: 1px solid #E5EED6;
  color: #739253;
  font-size: 9.5px; font-weight: 800;
}
.stock-pill.zero { background: #F6F2EC; border-color: #EDE4D8; color: #AC9C8A; }
.ti-actions { display: flex; flex-direction: column; gap: 5px; width: 62px; flex: 0 0 62px; }
.btn-sell {
  border: 0;
  height: 31px;
  border-radius: 10px;
  background: linear-gradient(180deg, #FFA45E, #FF7A2C);
  color: #fff;
  font-size: 11.5px;
  font-weight: 900;
  box-shadow: 0 3px 7px rgba(240, 120, 40, .2);
}
.btn-sell:active { transform: scale(.95); }
.btn-all {
  border: 1px solid #FFE0BE;
  height: 27px;
  border-radius: 9px;
  background: #FFF5E9;
  color: #DD7C28;
  font-size: 10px;
  font-weight: 800;
}
.btn-all:active { transform: scale(.95); }
.btn-sell:disabled, .btn-all:disabled { opacity: .42; box-shadow: none; }
.trade-empty {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 24px 16px;
  background: #fff;
  border: 1px dashed #E7D8C6;
  border-radius: 19px;
  text-align: center;
}
.trade-empty .empty-ico { width: 48px; height: 48px; border-radius: 50%; background: #FFF3E4; color: #E89035; display: grid; place-items: center; }
.trade-empty .empty-ico .mp-icon { width: 26px; height: 26px; }
.trade-empty h4 { margin: 0; font-size: 13.5px; font-weight: 900; color: #4A3828; }
.trade-empty p { margin: 0; font-size: 11px; color: #A18E7B; line-height: 1.55; }
.trade-empty .mini-primary { margin-top: 3px; }

.sales-card { padding: 14px; border-radius: 22px; }
.sales-card .sec-head { margin-bottom: 4px; }
.muted-note { font-size: 10px; color: #B0A08E; }
.sale-row { display: flex; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px dashed #F2E7DA; }
.sale-row:last-child { border-bottom: 0; padding-bottom: 2px; }
.sale-dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px; background: #82C64B; }
.sale-row:nth-child(2n) .sale-dot { background: #FFA24E; }
.sale-row:nth-child(3n) .sale-dot { background: #F47A93; }
.sale-name { flex: 1 1 auto; font-size: 11.5px; font-weight: 700; color: #6D5A47; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sale-amount { font-size: 12px; font-weight: 900; color: #E07A22; font-variant-numeric: tabular-nums; }
.sale-time { font-size: 9.5px; color: #B2A28F; width: 34px; text-align: right; }
.sales-empty { padding: 14px 0 8px; text-align: center; font-size: 11px; color: #A79582; }

/* ---------- 我的 ---------- */
.profile-card {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 22px 17px 17px;
  background: #fff;
  border: 1px solid #F0E2D2;
  border-radius: 26px;
  box-shadow: var(--shadow);
}
.profile-card::before {
  content: "";
  position: absolute;
  top: -90px; left: 50%;
  transform: translateX(-50%);
  width: 280px; height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, #EAF7DA 0%, rgba(234, 247, 218, 0) 70%);
  pointer-events: none;
}
.me-avatar-wrap { position: relative; width: 88px; height: 88px; margin: 0 auto; z-index: 1; }
.me-avatar {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 0 0 4px #E7F5D8, 0 10px 22px rgba(90, 80, 50, .18);
  background: #D9EDF8;
}
.me-leaf {
  position: absolute; right: -2px; bottom: 1px;
  width: 27px; height: 27px;
  border-radius: 50%;
  background: linear-gradient(180deg, #8DD24E, #5FAF2E);
  border: 3px solid #fff;
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 3px 7px rgba(60, 110, 20, .24);
}
.me-leaf .mp-icon { width: 13px; height: 13px; }
.me-tag {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 11px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #F0F8E6;
  border: 1px solid #DDEDC9;
  color: #64963D;
  font-size: 10px; font-weight: 800;
  position: relative; z-index: 1;
}
.me-tag .mp-icon { width: 12px; height: 12px; }
.profile-card h2 { position: relative; z-index: 1; margin: 7px 0 2px; font-size: 21px; font-weight: 900; color: #362619; letter-spacing: -.01em; }
.me-sub { position: relative; z-index: 1; margin: 0; font-size: 11px; color: #A18E7B; }
.me-sub b { color: #E0852C; }
.edit-name {
  position: relative; z-index: 1;
  margin-top: 8px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #FFE1BF;
  background: #FFF5E9;
  color: #DB7A28;
  font-size: 10.5px; font-weight: 800;
  display: inline-flex; align-items: center; gap: 4px;
}
.edit-name .mp-icon { width: 12px; height: 12px; }
.edit-name:active { transform: scale(.95); }
.me-stats { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.me-stat {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 11px 6px 10px;
  border-radius: 16px;
  background: #FBF7F0;
  border: 1px solid #F2E7D9;
}
.stat-ico { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; margin-bottom: 2px; }
.stat-ico .mp-icon { width: 16px; height: 16px; }
.s-gold { background: #FFF3D8; color: #E2A01F; }
.s-green { background: #EDF8E1; color: #68A93C; }
.s-orange { background: #FFEFE1; color: #E8862F; }
.s-blue { background: #E8F5FD; color: #4A9FCE; }
.me-stat b { font-size: 15.5px; font-weight: 900; color: #412F20; font-variant-numeric: tabular-nums; }
.me-stat b small { font-size: 9px; font-weight: 700; color: #A4917E; margin-left: 1px; }
.me-stat > span:last-child { font-size: 9.5px; color: #A4927F; }

.me-note { display: flex; gap: 11px; margin-top: 13px; padding: 14px; border-radius: 21px; }
.note-ico { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 12px; background: linear-gradient(180deg, #FFF2CF, #FFE5A7); color: #D8931D; display: grid; place-items: center; }
.note-ico .mp-icon { width: 21px; height: 21px; }
.me-note h3 { margin: 1px 0 3px; font-size: 13px; font-weight: 900; color: #4A3828; }
.me-note p { margin: 0; font-size: 10.5px; line-height: 1.65; color: #94816E; }
.me-sign { margin: 18px 0 4px; text-align: center; font-size: 10px; color: #B6A693; letter-spacing: .08em; }

/* ---------- 底部导航 ---------- */
.tabbar {
  position: fixed;
  z-index: 60;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  display: flex;
  padding: 7px 8px calc(7px + var(--sab));
  background: rgba(255, 253, 248, .95);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-top: 1px solid rgba(236, 223, 208, .95);
  box-shadow: 0 -8px 24px rgba(90, 60, 30, .06);
}
.tab {
  position: relative;
  flex: 1 1 0;
  border: 0; background: none;
  border-radius: 15px;
  padding: 5px 0 3px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: #AB9E90;
  font-size: 10.5px;
  font-weight: 800;
  transition: color .18s ease, transform .12s ease;
}
.tab .mp-icon { width: 25px; height: 25px; }
.tab:active { transform: scale(.93); }
.tab.is-active { color: #57A22F; }
.tab.is-active .mp-icon { filter: drop-shadow(0 2px 3px rgba(80, 150, 40, .2)); }
.tab-dot {
  display: none;
  position: absolute;
  top: 3px;
  left: calc(50% + 9px);
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #F4511E;
  border: 1.5px solid #fff;
}
.tab-dot.show { display: block; }

/* ---------- 底部弹层 ---------- */
.sheet-layer { position: fixed; inset: 0; z-index: 90; display: none; }
.sheet-layer.open { display: block; }
.sheet-mask {
  position: absolute; inset: 0;
  background: rgba(45, 30, 18, .46);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  animation: fadeIn .2s ease;
}
.sheet-panel {
  position: absolute;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 9px 18px calc(18px + var(--sab));
  border-radius: 26px 26px 0 0;
  background: #FFFCF7;
  box-shadow: 0 -16px 50px rgba(60, 40, 20, .24);
  animation: sheetUp .3s cubic-bezier(.2, .9, .3, 1);
}
.sheet-grab { width: 42px; height: 5px; border-radius: 999px; background: #E8DCCE; margin: 0 auto 13px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.sheet-head h2 { margin: 0; font-size: 18px; font-weight: 900; color: #3A2A1D; }
.sheet-close {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid #EFE3D5;
  background: #FFF9F1;
  color: #8C7B69;
  display: grid; place-items: center;
}
.sheet-close .mp-icon { width: 16px; height: 16px; }
.sheet-btn {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 15px;
  background: linear-gradient(180deg, #FFA45E, #FF7A2C);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 5px 0 #DE601D, 0 10px 18px rgba(240, 120, 40, .22);
  margin-top: 14px;
}
.sheet-btn:active { transform: translateY(2px); box-shadow: 0 2px 0 #DE601D, 0 5px 10px rgba(240, 120, 40, .2); }
.sheet-btn.ghost { background: #FFF7ED; color: #C9752A; box-shadow: none; border: 1px solid #FFE0BE; }
.sheet-note { margin: 10px 0 0; text-align: center; font-size: 10.5px; color: #AC9B89; line-height: 1.5; }

/* 收获弹层 */
.reward-hero { text-align: center; padding: 3px 0 4px; }
.reward-badge {
  width: 64px; height: 64px; margin: 0 auto 9px;
  border-radius: 50%;
  background: linear-gradient(180deg, #FFF0C2, #FFD775);
  color: #D48213;
  display: grid; place-items: center;
  box-shadow: 0 0 0 7px #FFF8E7, 0 8px 18px rgba(210, 150, 40, .2);
}
.reward-badge .mp-icon { width: 34px; height: 34px; }
.reward-hero h2 { margin: 0; font-size: 19px; font-weight: 900; color: #3A2A1D; }
.reward-hero p { margin: 4px 0 0; font-size: 11px; color: #A08D79; }
.reward-rows { margin-top: 13px; display: flex; flex-direction: column; gap: 7px; }
.reward-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 9px;
  border-radius: 14px;
  background: #FBF6EE;
  border: 1px solid #F2E7D8;
}
.reward-row img { width: 42px; height: 42px; border-radius: 11px; object-fit: cover; }
.reward-row .rr-name { flex: 1 1 auto; font-size: 12px; font-weight: 800; color: #4A3727; }
.reward-row .rr-amount { font-size: 12px; font-weight: 900; color: #E08027; }
.reward-total {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 11px;
  padding: 11px 13px;
  border-radius: 14px;
  background: #FFF8EC;
  border: 1px dashed #F0D9B8;
  font-size: 11.5px; color: #917152;
}
.reward-total b { font-size: 18px; color: #E07A22; font-weight: 900; display: inline-flex; align-items: center; gap: 3px; }
.reward-total b .mp-icon { width: 17px; height: 17px; color: var(--gold); }

/* 昵称弹层 */
.name-label { display: block; font-size: 11px; font-weight: 800; color: #8D7A67; margin: 2px 0 6px; }
.name-input {
  width: 100%;
  height: 48px;
  border-radius: 14px;
  border: 1.5px solid #EADCCB;
  background: #FFFDF9;
  padding: 0 14px;
  font-size: 15px;
  font-weight: 700;
  color: #3D2B1D;
  font-family: inherit;
}
.name-input::placeholder { color: #C1B1A0; }
.name-hint { margin: 7px 2px 0; font-size: 10px; color: #B09E8B; }
.sheet-actions { display: flex; gap: 9px; margin-top: 15px; }
.sheet-actions .sheet-btn { margin-top: 0; width: auto; }
.sheet-actions .sheet-btn.ghost { flex: 1 1 40%; }
.sheet-actions .sheet-btn.primary { flex: 1 1 60%; }

/* ---------- 提示与飘字 ---------- */
.toast {
  position: fixed;
  z-index: 88;
  left: 50%;
  bottom: calc(84px + var(--sab));
  transform: translate(-50%, 8px);
  max-width: min(84%, 360px);
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(56, 39, 24, .92);
  color: #FFF9EF;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  box-shadow: 0 8px 24px rgba(40, 25, 10, .22);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.fx-layer { position: fixed; inset: 0; z-index: 85; pointer-events: none; overflow: hidden; }
.float-fx {
  position: fixed;
  font-size: 15px;
  font-weight: 900;
  color: #FF7A2F;
  text-shadow: 0 1px 0 #fff, 0 2px 6px rgba(255, 255, 255, .8);
  animation: floatUp .95s ease-out forwards;
  pointer-events: none;
  white-space: nowrap;
}

/* ---------- 动效 ---------- */
@keyframes viewIn { from { opacity: .35; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheetUp { from { transform: translate(-50%, 100%); } to { transform: translate(-50%, 0); } }
@keyframes coinBump { 0% { transform: scale(1); } 40% { transform: scale(1.16); } 100% { transform: scale(1); } }
@keyframes floatUp { 0% { opacity: 0; transform: translate(-50%, 4px) scale(.9); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -46px) scale(1.04); } }
@keyframes waterPulse { 0% { box-shadow: 0 0 0 0 rgba(70, 170, 225, .4); } 100% { box-shadow: 0 0 0 12px rgba(70, 170, 225, 0); } }
.water-pulse { animation: waterPulse .7s ease-out; }

/* ---------- 小屏适配 ---------- */
@media (max-width: 360px) {
  .hud { padding-left: 13px; padding-right: 13px; }
  .avatar-btn { width: 48px; height: 48px; flex-basis: 48px; }
  .hud-name { font-size: 15px; }
  .hud-name span { max-width: 120px; }
  .icon-btn { width: 35px; height: 35px; }
  .hero-cta { height: 54px; font-size: 18px; bottom: 14px; }
  .cta-ico { width: 31px; height: 31px; }
  .hero-cta .cta-ico .mp-icon { width: 19px; height: 19px; }
  .home-body { padding-left: 11px; padding-right: 11px; }
  .q-ico { width: 47px; height: 47px; }
  .q-ico .mp-icon { width: 25px; height: 25px; }
  .q-label { font-size: 12px; }
  .market-card { padding-left: 10px; padding-right: 10px; }
  .product-img { height: 66px; }
  .p-name { font-size: 11px; }
  .p-price { font-size: 10.5px; }
  .p-btn { height: 23px; padding: 0 6px; font-size: 9.5px; }
  .bed-visual { flex-basis: 84px; width: 84px; height: 96px; }
  .bed-title h3 { font-size: 14px; }
  .bed-btn { padding: 0 8px; font-size: 10.5px; }
  .fb-art { width: 72px; height: 72px; flex-basis: 72px; }
  .page-pad { padding-left: 13px; padding-right: 13px; }
  .page-head h2 { font-size: 21px; }
  .wallet-main b { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
