/*
 * 校园小农场 · H5 版样式（与小程序 pages/farm/index.wxss 同一套画面）
 * - 画面按 375px 宽设计（小程序 rpx ÷ 2），由 farm.js 按容器大小整体缩放，电脑上最宽约 480px，居中显示
 * - 所有类名都带 f- 前缀、所有动画名都带 f- 前缀，避免和 site.css / base.css 互相影响
 */
.cmf { position: absolute; inset: 0; z-index: 30; overflow: hidden; background: linear-gradient(180deg, #D8EBFF 0%, #E9F4FF 42%, #D9EEC4 100%); color: #10264A; font-size: 14px; line-height: 1.5; text-align: left; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; touch-action: manipulation; }
.cmf * { box-sizing: border-box; }
.cmf [hidden] { display: none !important; }
.cmf img { display: block; max-width: none; -webkit-user-drag: none; }
.cmf .ic { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.cmf [data-act] { cursor: pointer; }
.cmf [data-act]:focus { outline: none; }
.cmf [data-act]:focus-visible { outline: 2px solid #2A78D6; outline-offset: 2px; }
.cmf::before { content: ''; position: absolute; inset: 0; z-index: 0; background: rgba(16, 38, 74, .42); opacity: 0; transition: opacity .25s; pointer-events: none; }
.cmf.f-dim::before { opacity: 1; }
.f-probe { position: absolute; left: 0; top: 0; width: 0; height: 0; visibility: hidden; padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }

.f-stage { position: absolute; left: 50%; top: 0; z-index: 1; width: 375px; transform-origin: 50% 0; overflow: hidden; }
.cmf.f-framed .f-stage { box-shadow: 0 0 0 1px rgba(255, 255, 255, .7), 0 10px 40px rgba(36, 98, 178, .16); }
.f-farm { position: absolute; inset: 0; overflow: hidden; background: linear-gradient(180deg, #D8EBFF 0, #E6F3FF 150px, #B9E08F 150px); }

/* ---------- 抬头（同小程序 ui-head） ---------- */
.f-head { position: absolute; left: 0; right: 0; top: 0; z-index: 50; }
.f-head-sky { position: absolute; right: 0; bottom: -5px; width: 260px; opacity: .95; pointer-events: none; animation: f-uhDrift 9s ease-in-out infinite; }
.f-head-bar { position: relative; display: flex; align-items: center; gap: 2px; height: 48px; padding-left: 10px; }
.f-back { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-left: -3px; flex: none; transition: transform .15s; }
.f-back:active { transform: scale(.88); background: rgba(255, 255, 255, .6); }
.f-head-t { flex: 1; min-width: 0; padding-left: 4px; font-size: 18px; font-weight: 800; color: #10264A; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: .5px; }
@keyframes f-uhDrift { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-7px); } }

/* ---------- 菜地场景 ---------- */
.f-field-bg { position: absolute; left: 0; width: 375px; height: auto; z-index: 1; pointer-events: none; }
.f-cloud { position: absolute; left: 0; z-index: 2; opacity: .9; animation: f-drift linear infinite; pointer-events: none; }
@keyframes f-drift { from { transform: translateX(-100px); } to { transform: translateX(410px); } }
.f-butterfly { position: absolute; left: 0; z-index: 25; animation: f-fly 16s linear infinite; pointer-events: none; }
.f-butterfly img { width: 22px; height: 18px; animation: f-flap .25s ease-in-out infinite alternate; }
@keyframes f-flap { from { transform: scaleX(1); } to { transform: scaleX(.35); } }
@keyframes f-fly { 0% { transform: translate(-45px, 10px); } 20% { transform: translate(70px, -30px); } 40% { transform: translate(165px, 5px); } 60% { transform: translate(250px, -40px); } 80% { transform: translate(330px, -10px); } 100% { transform: translate(420px, -25px); } }

/* ---------- 头像 / 金币 ---------- */
.f-grow { flex: 1; min-width: 0; }
.f-ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f-prof { position: absolute; left: 14px; right: 14px; z-index: 30; display: flex; align-items: center; gap: 10px; animation: f-rise .5s both; }
.f-p-av { width: 48px; height: 48px; border-radius: 50%; border: 2.5px solid #fff; background: linear-gradient(180deg, #F2F8FF, #D6E9FF); box-shadow: 0 3px 8px rgba(36, 98, 178, .2); flex: none; display: flex; align-items: center; justify-content: center; font-size: 26px; line-height: 1; transition: transform .15s; }
.f-p-av[data-act]:active { transform: scale(.94); }
.f-p-n { display: flex; align-items: center; gap: 5px; font-size: 17px; font-weight: 800; color: #10264A; min-width: 0; line-height: 1.3; }
.f-p-lv { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.f-lvb { height: 19px; line-height: 19px; padding: 0 7px; border-radius: 9.5px; background: linear-gradient(180deg, #FFE38A, #FFC94A); color: #6B4500; font-size: 11px; font-weight: 800; flex: none; }
.f-exp { width: 100px; height: 9px; border-radius: 4.5px; background: #fff; overflow: hidden; box-shadow: inset 0 0 0 1px #D3E3F6; flex: none; }
.f-exp-bar { height: 100%; border-radius: 4.5px; background: linear-gradient(90deg, #4A9BF0, #0F4C9C); transition: width .6s; }
.f-exp-t { font-size: 11px; font-weight: 700; color: #4A5B78; white-space: nowrap; }
.f-p-cls { font-size: 11.5px; color: #4A5B78; }
.f-pills { position: absolute; left: 14px; right: 14px; z-index: 30; display: flex; align-items: center; gap: 8px; animation: f-rise .5s .08s both; }
.f-pill { display: flex; align-items: center; gap: 4px; height: 31px; padding: 0 11px 0 5px; border-radius: 15.5px; background: rgba(255, 255, 255, .95); box-shadow: 0 3px 8px rgba(36, 98, 178, .12); font-size: 13px; font-weight: 800; color: #10264A; white-space: nowrap; transition: transform .2s; }
.f-pill img { width: 23px; height: 23px; }
.f-pill.f-drops { padding-left: 10px; font-weight: 700; color: #4A5B78; }
.f-pill[data-act]:active { transform: scale(.96); opacity: .92; }
.f-pv { color: #2A78D6; font-weight: 900; font-size: 14px; }
.f-coins.f-pulse { transform: scale(1.12); }

/* ---------- 苗床 ---------- */
.f-field { position: absolute; left: 0; width: 375px; height: 1px; z-index: 10; }
.f-plot { position: absolute; transition: transform .12s; }
.f-plot:active { transform: scale(.94); }
.f-soil { position: absolute; left: 0; width: 100%; filter: drop-shadow(0 3px 3px rgba(60, 90, 30, .25)); }
.f-plot.f-sel .f-soil { filter: brightness(1.1); }
.f-locked-cover { position: absolute; left: 4px; right: 4px; border-radius: 11px; background: rgba(60, 45, 30, .45); }
.f-crop { position: absolute; left: 0; width: 100%; transform-origin: 50% 80%; pointer-events: none; }
.f-crop.f-sprout, .f-crop.f-young, .f-crop.f-bloom { animation: f-sway 3.6s ease-in-out infinite; }
.f-crop.f-ripe { animation: f-ripe 2.4s ease-in-out infinite; }
.f-crop.f-pop { animation: f-cropPop .55s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes f-sway { 0%, 100% { transform: rotate(-1.2deg); } 50% { transform: rotate(1.2deg); } }
@keyframes f-ripe { 0%, 100% { transform: scale(1, 1); } 45% { transform: scale(1.03, .97); } 60% { transform: scale(.99, 1.02) translateY(-1.5px); } }
@keyframes f-cropPop { 0% { transform: scale(.2) translateY(10px); opacity: 0; } 70% { transform: scale(1.12); opacity: 1; } 100% { transform: scale(1); } }
.f-weed { position: absolute; left: 2px; width: 33px; height: 26px; transform-origin: 50% 100%; animation: f-sway 2s ease-in-out infinite; pointer-events: none; }
.f-bug { position: absolute; right: 1px; width: 29px; height: 20px; animation: f-crawl 1.6s ease-in-out infinite; pointer-events: none; }
@keyframes f-crawl { 0%, 100% { transform: translateX(0) scaleY(1); } 50% { transform: translateX(-6px) scaleY(.92); } }
.f-bw { position: absolute; left: -15px; right: -15px; top: -26px; display: flex; justify-content: center; z-index: 3; }
.f-bubble { position: relative; display: flex; align-items: center; gap: 3px; height: 22px; padding: 0 8px; border-radius: 11px; font-size: 11px; font-weight: 800; white-space: nowrap; color: #10264A; background: #fff; box-shadow: 0 3px 7px rgba(36, 98, 178, .22); animation: f-bob 1.6s ease-in-out infinite; }
.f-bubble::after { content: ''; position: absolute; left: 50%; bottom: -7px; margin-left: -4px; border: 4px solid transparent; border-top: 4.5px solid #fff; }
.f-b-harvest, .f-b-steal { background: linear-gradient(180deg, #FFE38A, #FFC94A); color: #6B4500; }
.f-b-harvest::after, .f-b-steal::after { border-top-color: #FFC94A; }
.f-b-water { background: linear-gradient(180deg, #5EA8F2, #2A78D6); color: #fff; }
.f-b-water::after { border-top-color: #2A78D6; }
.f-b-help { color: #0F4C9C; }
.f-b-done { color: #22A060; animation: none; }
.f-b-cd { color: #3E8A2E; animation: none; padding: 0 7px 0 5px; background: rgba(255, 255, 255, .92); font-variant-numeric: tabular-nums; }
@keyframes f-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes f-rise { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: none; } }
.f-lock-tag { position: absolute; left: 50%; transform: translateX(-50%); height: 20px; padding: 0 7px 0 5px; border-radius: 10px; background: rgba(16, 38, 74, .55); font-size: 10px; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 2px; white-space: nowrap; }
.f-plant-hint { position: absolute; left: 50%; margin-left: -13px; width: 26px; height: 26px; line-height: 23px; text-align: center; border-radius: 50%; border: 2px dashed rgba(255, 255, 255, .95); color: #fff; font-size: 20px; animation: f-bob 1.2s ease-in-out infinite; }
.f-info { position: absolute; z-index: 100; transform: translateX(-50%); min-width: 115px; padding: 8px 12px; background: #fff; border-radius: 12px; box-shadow: 0 5px 14px rgba(36, 98, 178, .22); text-align: center; animation: f-infoIn .3s ease-out; pointer-events: none; }
.f-info::after { content: ''; position: absolute; bottom: -9px; left: 50%; margin-left: -6px; border: 6px solid transparent; border-top: 6px solid #fff; }
@keyframes f-infoIn { 0% { transform: translateX(-50%) scale(.2) translateY(10px); opacity: 0; } 70% { transform: translateX(-50%) scale(1.12); opacity: 1; } 100% { transform: translateX(-50%) scale(1); } }
.f-info-n { font-size: 14px; font-weight: 800; color: #10264A; white-space: nowrap; }
.f-info-t { font-size: 12px; color: #22A060; margin-top: 1px; font-weight: 700; white-space: nowrap; }
.f-info-w { font-size: 10px; color: #8593AB; margin-top: 1px; white-space: nowrap; }
.f-info-can { color: #2A78D6; }

/* ---------- 动画特效（放在弹层之上，开着仓库卖菜也能看到金币飘起来） ---------- */
.f-fxl { position: absolute; left: 0; width: 375px; height: 1px; z-index: 920; pointer-events: none; }
.f-fx { position: absolute; z-index: 200; pointer-events: none; }
.f-fx-float { transform: translateX(-50%); display: flex; align-items: center; gap: 3px; white-space: nowrap; font-size: 16px; font-weight: 900; color: #fff; text-shadow: 0 1.5px 0 #7A4A1A, 1.5px 0 0 #7A4A1A, -1.5px 0 0 #7A4A1A, 0 -1.5px 0 #7A4A1A, 0 3px 3px rgba(0, 0, 0, .2); animation: f-floatUp 1.5s ease-out both; }
.f-fx-float.f-big { font-size: 22px; }
.f-fx-ic { width: 24px; height: 24px; }
.f-fx-float.f-big .f-fx-ic { width: 32px; height: 32px; }
@keyframes f-floatUp { 0% { opacity: 0; transform: translate(-50%, 12px) scale(.5); } 15% { opacity: 1; transform: translate(-50%, 0) scale(1.15); } 28% { transform: translate(-50%, -3px) scale(1); } 75% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -60px) scale(1); } }
.f-fx-pop { animation: f-popItem 1.3s ease-out both; }
.f-fx-pop-img { width: 55px; height: 55px; margin-left: -27.5px; }
@keyframes f-popItem { 0% { opacity: 0; transform: translateY(10px) scale(.3); } 25% { opacity: 1; transform: translateY(-50px) scale(1.3) rotate(-8deg); } 45% { transform: translateY(-40px) scale(1) rotate(6deg); } 70% { opacity: 1; transform: translateY(-45px) scale(1) rotate(0); } 100% { opacity: 0; transform: translateY(-100px) scale(.4); } }
.f-fx-can { position: absolute; left: -5px; top: -35px; width: 48px; height: 48px; transform-origin: 30% 80%; animation: f-pour 1.4s ease-in-out both; }
@keyframes f-pour { 0% { opacity: 0; transform: translate(-15px, -10px) rotate(10deg); } 20% { opacity: 1; transform: translate(0, 0) rotate(0); } 40%, 80% { transform: rotate(-38deg); } 100% { opacity: 0; transform: rotate(-38deg) translateY(-10px); } }
.f-drop { position: absolute; width: 9px; height: 12px; opacity: 0; animation: f-dropFall .55s ease-in 2; }
.f-drop.f-d1 { left: 37px; top: -3px; animation-delay: .45s; }
.f-drop.f-d2 { left: 45px; top: 3px; animation-delay: .6s; }
.f-drop.f-d3 { left: 30px; top: 5px; animation-delay: .75s; }
@keyframes f-dropFall { 0% { opacity: 0; transform: translateY(0); } 25% { opacity: 1; } 100% { opacity: 0; transform: translateY(48px); } }
.f-pf { position: absolute; left: -8px; top: -8px; width: 16px; height: 16px; border-radius: 50%; background: #B9854E; opacity: 0; animation: .6s ease-out both; }
.f-pf.f-p1 { animation-name: f-pf1; }
.f-pf.f-p2 { animation-name: f-pf2; }
.f-pf.f-p3 { animation-name: f-pf3; }
.f-pf.f-p4 { animation-name: f-pf4; background: #D9A86A; }
@keyframes f-pf1 { from { opacity: .9; transform: scale(.4); } to { opacity: 0; transform: translate(-30px, -12px) scale(1.3); } }
@keyframes f-pf2 { from { opacity: .9; transform: scale(.4); } to { opacity: 0; transform: translate(30px, -12px) scale(1.3); } }
@keyframes f-pf3 { from { opacity: .9; transform: scale(.4); } to { opacity: 0; transform: translate(-12px, 10px) scale(1.1); } }
@keyframes f-pf4 { from { opacity: .9; transform: scale(.4); } to { opacity: 0; transform: translate(15px, 12px) scale(1.1); } }
.f-fx-img { width: 38px; height: 30px; margin-left: -19px; }
.f-fx-yank { animation: f-yank 1.1s ease-out both; }
.f-fx-flee { animation: f-flee 1.3s ease-in both; }
@keyframes f-yank { 0% { transform: translate(0, 0) rotate(0); } 25% { transform: translate(0, -15px) rotate(-10deg) scale(1.1); } 100% { opacity: 0; transform: translate(-45px, -110px) rotate(-200deg) scale(.6); } }
@keyframes f-flee { 0% { transform: translate(0, 0); } 20% { transform: translate(5px, -10px) rotate(10deg); } 40% { transform: translate(30px, -30px) rotate(-10deg); } 70% { transform: translate(60px, -75px) rotate(12deg); } 100% { opacity: 0; transform: translate(110px, -130px) rotate(0) scale(.6); } }
.f-fx-glove { width: 48px; height: 48px; margin-left: -24px; animation: f-grab 1.1s ease-in-out both; }
@keyframes f-grab { 0% { opacity: 0; transform: translate(35px, -45px) rotate(25deg); } 30% { opacity: 1; transform: translate(0, 0) rotate(0); } 50% { transform: translate(0, 6px) scale(.88); } 100% { opacity: 0; transform: translate(50px, -70px) rotate(30deg); } }
.f-spk { position: absolute; width: 28px; height: 28px; opacity: 0; animation: f-twinkle 1s ease-out both; }
.f-spk.f-s1 { left: -30px; top: -10px; }
.f-spk.f-s2 { left: 5px; top: -35px; animation-delay: .15s; }
.f-spk.f-s3 { left: 20px; top: 0; width: 20px; height: 20px; animation-delay: .3s; }
@keyframes f-twinkle { 0% { opacity: 0; transform: scale(0) rotate(0); } 40% { opacity: 1; transform: scale(1.2) rotate(45deg); } 100% { opacity: 0; transform: scale(.2) rotate(90deg); } }

/* ---------- 右侧圆按钮 ---------- */
.f-side { position: absolute; right: 9px; z-index: 30; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.f-sb { position: relative; border-radius: 50%; background: rgba(255, 255, 255, .96); box-shadow: 0 4px 9px rgba(36, 98, 178, .2); display: flex; flex-direction: column; align-items: center; justify-content: center; transition: transform .15s; animation: f-popIn2 .45s cubic-bezier(.2, .9, .3, 1.4) backwards; }
.f-sb:nth-child(2) { animation-delay: .06s; }
.f-sb:nth-child(3) { animation-delay: .12s; }
.f-sb:nth-child(4) { animation-delay: .18s; }
.f-sb:nth-child(5) { animation-delay: .24s; }
.f-sb:active { transform: scale(.92); }
.f-sb > span { font-size: 9px; font-weight: 800; color: #10264A; white-space: nowrap; margin-top: -1px; line-height: 1.3; }
@keyframes f-popIn2 { from { opacity: 0; transform: scale(.5); } to { opacity: 1; transform: scale(1); } }
.f-dot { position: absolute; right: -2px; top: -2px; min-width: 15px; height: 15px; padding: 0 4px; border-radius: 7.5px; background: #FF5A4E; border: 1.5px solid #fff; color: #fff; font-size: 9px; line-height: 12px; text-align: center; font-weight: 700; }
.f-tip { position: absolute; left: 50%; transform: translateX(-50%); z-index: 60; max-width: 320px; padding: 6px 13px; border-radius: 15px; background: rgba(16, 38, 74, .82); color: #fff; font-size: 12px; white-space: nowrap; animation: f-fadeIn .25s; pointer-events: none; }

/* ---------- 白色面板：今日任务 + 一键收获 / 种子栏 ---------- */
.f-panel { position: absolute; left: 10px; right: 10px; z-index: 40; background: rgba(255, 255, 255, .97); border-radius: 18px; box-shadow: 0 -3px 13px rgba(36, 98, 178, .14); padding: 12px 13px; animation: f-rise .5s .1s both; }
.f-pn-h { display: flex; align-items: center; gap: 5px; font-size: 15px; font-weight: 800; color: #10264A; line-height: 1.4; }
.f-tasks { display: flex; gap: 8px; margin: 9px 0 11px; }
.f-tk { position: relative; flex: 1; height: 62px; border-radius: 11px; background: #F2F7FE; border: 1px solid #E1ECF9; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; line-height: 1.35; transition: all .3s; }
.f-tk:active { transform: scale(.96); opacity: .92; }
.f-tk-n { font-size: 12px; font-weight: 800; color: #10264A; }
.f-tk-v { font-size: 12px; font-weight: 800; color: #2A78D6; }
.f-tk.f-ok { background: #E8F7EE; border-color: #BDE6CC; }
.f-tk.f-ok .f-tk-v, .f-tk.f-ok .f-tk-n { color: #22A060; }
.f-tk-sp { position: absolute; right: 3px; top: 2px; width: 17px; height: 17px; animation: f-twinkleS 2.4s ease-in-out infinite; }
@keyframes f-twinkleS { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
.f-main-btn { width: 100%; }
.f-main-btn.f-idle { opacity: .75; }
.f-mb-sp { right: 22px; bottom: 46px; }
.f-sd-h { display: flex; align-items: center; justify-content: center; position: relative; font-size: 13.5px; font-weight: 800; color: #10264A; height: 22px; }
.f-sd-x { position: absolute; right: -3px; top: -3px; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #EEF4FB; transition: transform .15s; }
.f-sd-x:active { transform: scale(.9); }
.f-sd-body { height: 135px; margin-top: 4px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.f-sd-sec { font-size: 12px; font-weight: 800; color: #10264A; margin: 4px 0 5px; }
.f-sd-grid { display: flex; flex-wrap: wrap; gap: 7px; padding: 3px 5px 2px 0; }
.f-sd { position: relative; width: calc((100% - 21px) / 4); height: 66px; border-radius: 10px; background: #F5F9FE; border: 1.5px solid #E1ECF9; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.35; transition: all .2s; }
.f-sd-grid.f-three .f-sd { width: calc((100% - 14px) / 3); }
.f-sd > img { width: 31px; height: 31px; }
.f-sd:active { transform: scale(.96); }
.f-sd-n { font-size: 11px; font-weight: 800; color: #10264A; }
.f-sd-t { display: flex; align-items: center; font-size: 10px; color: #4A5B78; }
.f-sd-t.f-own { color: #22A060; font-weight: 800; }
.f-sd.f-on { border-color: #0F4C9C; background: #EAF3FE; transform: translateY(-2px); box-shadow: 0 4px 8px rgba(15, 76, 156, .18); }
.f-sd.f-locked { opacity: .55; }
.f-sd.f-sp { background: #FFFBEA; }
.f-sd.f-sp.f-on { background: #EAF3FE; }
.f-sd-lock { position: absolute; right: 4px; top: 4px; display: flex; }
.f-sd-ck { position: absolute; right: -5px; top: -5px; width: 18px; height: 18px; border-radius: 50%; background: #0F4C9C; border: 1.5px solid #fff; display: flex; align-items: center; justify-content: center; animation: f-popIn2 .3s both; }

/* ---------- 底部工具栏 ---------- */
.f-tools { position: absolute; left: 10px; right: 10px; z-index: 40; background: rgba(255, 255, 255, .97); border-radius: 16px; box-shadow: 0 4px 12px rgba(36, 98, 178, .14); display: flex; align-items: center; padding: 0 5px; animation: f-rise .5s .15s both; }
.f-tl { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: 11px; font-weight: 700; color: #4A5B78; line-height: 1.35; }
.f-tl-ic { width: 38px; height: 30px; border-radius: 15px; display: flex; align-items: center; justify-content: center; transition: all .25s; }
.f-tl:active .f-tl-ic { transform: scale(.92); }
.f-tl.f-on { color: #0F4C9C; font-weight: 800; }
.f-tl.f-on .f-tl-ic { background: #DCEBFD; animation: f-tlBounce .45s cubic-bezier(.2, .9, .3, 1.3); }
.f-tl.f-bump .f-tl-ic { animation: f-tlBounce .5s; }
@keyframes f-tlBounce { 0% { transform: scale(1); } 40% { transform: scale(1.2) translateY(-3px); } 100% { transform: scale(1); } }

/* ---------- 通用：按钮 / 标签 / 闪光 ---------- */
.f-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 40px; padding: 0 18px; border-radius: 20px; background: #fff; border: 1px solid #D6E5F7; font-size: 14px; font-weight: 700; color: #0F4C9C; box-shadow: 0 3px 8px rgba(36, 98, 178, .08); overflow: hidden; white-space: nowrap; transition: transform .15s, opacity .15s; }
.f-btn.f-primary { background: linear-gradient(180deg, #2D7DDC 0%, #0F4C9C 62%, #0B3F86 100%); border: 0; color: #fff; box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .28), 0 5px 11px rgba(15, 76, 156, .3); }
.f-btn.f-primary::after { content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .35), rgba(255, 255, 255, 0)); transform: skewX(-18deg); animation: f-shine 3.6s ease-in-out infinite; pointer-events: none; }
.f-btn.f-lg { height: 48px; font-size: 16px; border-radius: 24px; padding: 0 26px; }
.f-btn.f-block { display: flex; width: 100%; }
.f-btn:active { transform: scale(.96); opacity: .92; }
@keyframes f-shine { 0%, 55% { left: -60%; } 85%, 100% { left: 130%; } }
.f-tag { display: inline-flex; align-items: center; gap: 3px; height: 20px; padding: 0 7px; border-radius: 10px; font-size: 11px; font-weight: 700; background: #E6F0FC; color: #0F4C9C; white-space: nowrap; flex: none; }
.f-tag.f-ok { background: #E3F6EA; color: #22A060; }
.f-tag.f-sun { background: linear-gradient(180deg, #FFE38A, #FFC94A); color: #6B4500; }
.f-spark { position: absolute; width: 20px; height: 20px; animation: f-twinkleS 2.4s ease-in-out infinite; pointer-events: none; }
@keyframes f-fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes f-floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.f-rise { animation: f-rise .55s cubic-bezier(.2, .8, .2, 1) both; }
.f-d1 { animation-delay: .04s; } .f-d2 { animation-delay: .1s; } .f-d3 { animation-delay: .16s; } .f-d4 { animation-delay: .22s; } .f-d5 { animation-delay: .28s; }

/* ---------- 弹层 ---------- */
.f-mask { position: absolute; inset: 0; z-index: 900; background: rgba(16, 38, 74, .42); animation: f-fadeIn .25s; }
.f-fsheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 901; max-height: 84%; display: flex; flex-direction: column; background: #F4F9FF; border-radius: 20px 20px 0 0; overflow: hidden; animation: f-sheetUp .38s cubic-bezier(.2, .9, .3, 1.05); }
@keyframes f-sheetUp { from { transform: translateY(100%); } to { transform: none; } }
.f-bn { position: relative; height: 115px; flex: none; overflow: hidden; }
.f-bn-bg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; }
.f-bn-prop { position: absolute; bottom: 5px; right: 45px; width: 110px; height: 95px; object-fit: contain; animation: f-floatY 4s ease-in-out infinite; }
.f-bn-prop.f-shop { width: 130px; height: 100px; bottom: 2px; animation: none; }
.f-bn-prop.f-friends, .f-bn-prop.f-news, .f-bn-prop.f-help, .f-bn-prop.f-hunt { width: 85px; height: 85px; bottom: 11px; right: 55px; }
.f-bn-prop.f-barn { width: 110px; height: 105px; bottom: -3px; right: 40px; }
.f-bn-prop.f-rank { left: 50%; right: auto; margin-left: -55px; width: 110px; height: 90px; top: 0; bottom: auto; }
.f-sign { position: absolute; top: 35px; left: 30px; padding: 7px 15px; border-radius: 8px; background: linear-gradient(180deg, #F3CF95, #DDA867); border: 2.5px solid #A86E3A; box-shadow: 0 4px 0 #8A5628, 0 6px 10px rgba(80, 50, 20, .25); color: #5A3410; font-size: 19px; font-weight: 900; letter-spacing: 2px; transform: rotate(-3deg); animation: f-signSwing 3.2s ease-in-out infinite; transform-origin: 50% -10px; white-space: pre; text-align: center; line-height: 1.25; }
.f-sign.f-rank { left: 50%; margin-left: -55px; top: 68px; width: 110px; padding-left: 0; padding-right: 0; }
.f-sign.f-join { left: 20px; top: 32px; font-size: 15px; max-width: 150px; white-space: pre-wrap; }
@keyframes f-signSwing { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(2deg); } }
.f-bn-sp { right: 80px; top: 20px; }
.f-bn-x { position: absolute; right: 11px; top: 11px; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .92); display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(36, 98, 178, .2); transition: transform .15s; }
.f-bn-x:active { transform: scale(.9); }
.f-fs-top, .f-fs-foot { flex: none; }
.f-fs-body { flex: 1 1 auto; min-height: 0; padding: 10px 14px 5px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.f-coinbar { display: flex; align-items: center; gap: 5px; height: 40px; padding: 0 11px; border-radius: 12px; background: #fff; box-shadow: 0 3px 8px rgba(36, 98, 178, .08); margin-bottom: 9px; }
.f-coinbar img { width: 23px; height: 23px; }
.f-cb-v { font-size: 15px; font-weight: 900; color: #10264A; }
.f-cb-h { font-size: 11px; color: #8593AB; }
.f-list { display: flex; flex-direction: column; gap: 7px; }
.f-li { position: relative; display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 12px; background: #fff; box-shadow: 0 3px 8px rgba(36, 98, 178, .08); border: 1.5px solid transparent; line-height: 1.4; transition: all .2s; }
.f-li[data-act]:active { transform: scale(.98); }
.f-li.f-locked { opacity: .65; }
.f-li.f-big { padding: 11px 12px; }
.f-li-img { width: 38px; height: 38px; flex: none; }
.f-li.f-big .f-li-img { width: 48px; height: 48px; }
.f-li-av { width: 42px; height: 42px; border-radius: 50%; flex: none; border: 1.5px solid #fff; background: linear-gradient(180deg, #F2F8FF, #D6E9FF); box-shadow: 0 2px 5px rgba(36, 98, 178, .18); display: flex; align-items: center; justify-content: center; font-size: 22px; line-height: 1; }
.f-li-av.f-sm { width: 32px; height: 32px; font-size: 17px; }
.f-li-th { width: 60px; height: 45px; border-radius: 8px; flex: none; object-fit: cover; }
.f-li-n { font-size: 14.5px; font-weight: 800; color: #10264A; }
.f-li-s { display: flex; align-items: center; gap: 3px; font-size: 11px; color: #4A5B78; margin-top: 2px; flex-wrap: wrap; }
.f-li-s.f-lw { display: block; line-height: 1.55; }
.f-li-c { color: #2A78D6; font-size: 15px; }
.f-li-have { margin-left: 5px; font-size: 10px; color: #22A060; font-weight: 700; }
.f-li-lock { display: flex; align-items: center; gap: 2px; font-size: 11px; color: #8593AB; flex: none; }
.f-li-seed { width: 17px; height: 17px; }
.f-lvs { font-size: 10px; color: #6B4500; background: #FFE38A; padding: 0 5px; border-radius: 6px; margin-left: 3px; font-weight: 700; }
.f-pb { flex: none; display: flex; align-items: center; justify-content: center; gap: 2px; height: 29px; padding: 0 12px; border-radius: 14.5px; background: linear-gradient(180deg, #2D7DDC, #0F4C9C); color: #fff; font-size: 12px; font-weight: 800; box-shadow: 0 3px 6px rgba(15, 76, 156, .25); white-space: nowrap; transition: transform .15s, opacity .15s; }
.f-pb img { width: 17px; height: 17px; }
.f-pb[data-act]:active { transform: scale(.94); opacity: .92; }
.f-pb.f-white { background: #fff; color: #0F4C9C; border: 1px solid #D6E5F7; box-shadow: none; }
.f-pb.f-off { background: #D8E0EA; color: #fff; box-shadow: none; }
.f-fs-sec { display: flex; align-items: center; justify-content: space-between; margin: 13px 2px 7px; }
.f-fs-t { position: relative; display: flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 800; color: #10264A; }
.f-more { display: flex; align-items: center; font-size: 12px; font-weight: 700; color: #0F4C9C; }
.f-fs-btn { margin: 13px 0 5px; }
.f-spc { display: flex; gap: 8px; }
.f-spc-i { position: relative; flex: 1; height: 75px; border-radius: 12px; background: #fff; box-shadow: 0 3px 8px rgba(36, 98, 178, .08); display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; color: #10264A; transition: transform .15s; }
.f-spc-i:active { transform: scale(.96); }
.f-spc-i > img { width: 36px; height: 36px; }
.f-spc-n { position: absolute; left: 6px; top: 5px; font-size: 10px; color: #22A060; }
.f-spc-i > .f-spc-sp { position: absolute; right: 4px; top: 3px; width: 15px; height: 15px; }
.f-seeds { display: flex; flex-wrap: wrap; gap: 7px; }
.f-seedbox { position: relative; width: calc((100% - 21px) / 4); height: 68px; border-radius: 11px; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #10264A; box-shadow: 0 2px 6px rgba(36, 98, 178, .08); }
.f-seedbox.f-sp { background: #FFF8DF; }
.f-seedbox > img { width: 30px; height: 30px; }
.f-seedbox-n { position: absolute; right: 6px; top: 4px; font-size: 10px; color: #2A78D6; font-weight: 800; }
.f-hint-s { font-size: 11.5px; color: #4A5B78; line-height: 1.6; margin: 0 2px 8px; }
.f-hint-s.f-c { text-align: center; margin-top: 8px; }
.f-empty-s { width: 100%; text-align: center; color: #8593AB; font-size: 12.5px; padding: 18px 0; }
.f-tg { font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 8px; white-space: nowrap; line-height: 1.4; }
.f-tg-g { background: linear-gradient(180deg, #7FD77A, #3FAF52); color: #fff; }
.f-tg-o { background: linear-gradient(180deg, #FFB46A, #F08A24); color: #fff; }
.f-tg-b { background: #E1EEFD; color: #0F4C9C; }
.f-ftags { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.f-seg { display: flex; margin: 9px 14px 0; padding: 3px; border-radius: 20px; background: rgba(255, 255, 255, .85); box-shadow: 0 5px 15px rgba(36, 98, 178, .10); }
.f-seg-s { flex: 1; height: 32px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: #4A5B78; white-space: nowrap; transition: all .25s; }
.f-seg-s.f-on { background: linear-gradient(180deg, #2D7DDC, #0F4C9C); color: #fff; box-shadow: 0 3px 7px rgba(15, 76, 156, .3); }
.f-rk-n { width: 22px; text-align: center; font-size: 14px; font-weight: 900; color: #8593AB; flex: none; }
.f-rk-n.f-n1 { color: #F5A623; } .f-rk-n.f-n2 { color: #8AA4C4; } .f-rk-n.f-n3 { color: #E08A4A; }
.f-li.f-rk.f-me { border-color: #2A78D6; background: #F2F8FF; }
.f-rk-v { font-size: 15px; font-weight: 900; color: #10264A; flex: none; text-align: right; line-height: 1.25; }
.f-rk-v > span { display: block; font-size: 9px; color: #8593AB; font-weight: 600; }
.f-podium { display: flex; align-items: flex-end; justify-content: center; gap: 6px; margin: 14px 0 10px; }
.f-pd { width: 100px; display: flex; flex-direction: column; align-items: center; line-height: 1.35; animation: f-rise .5s both; }
.f-pd.f-p1 { animation-delay: .1s; } .f-pd.f-p3 { animation-delay: .2s; }
.f-pd-av { position: relative; }
.f-pd-emo { width: 48px; height: 48px; border-radius: 50%; border: 2.5px solid #fff; background: linear-gradient(180deg, #F2F8FF, #D6E9FF); box-shadow: 0 3px 7px rgba(36, 98, 178, .2); display: flex; align-items: center; justify-content: center; font-size: 26px; line-height: 1; }
.f-pd.f-p1 .f-pd-emo { width: 60px; height: 60px; border-color: #FFD24A; font-size: 33px; }
.f-crown { position: absolute; left: 50%; top: -17px; margin-left: -10px; display: flex; animation: f-bob 2s ease-in-out infinite; }
.f-pd-n { font-size: 13px; font-weight: 800; color: #10264A; margin-top: 4px; max-width: 95px; }
.f-pd-v { font-size: 11px; color: #4A5B78; font-weight: 700; margin-bottom: 4px; }
.f-pd-b { width: 100%; border-radius: 8px 8px 0 0; display: flex; align-items: flex-start; justify-content: center; padding-top: 5px; font-size: 22px; font-weight: 900; color: #fff; line-height: 1.2; }
.f-pd.f-p1 .f-pd-b { height: 65px; background: linear-gradient(180deg, #FFE27A, #F5B620); }
.f-pd.f-p2 .f-pd-b { height: 46px; background: linear-gradient(180deg, #CFDDF0, #9DB4D3); }
.f-pd.f-p3 .f-pd-b { height: 35px; background: linear-gradient(180deg, #FFD0B0, #EFA27A); }
.f-mine-bar { display: flex; align-items: center; gap: 8px; margin: 5px 14px 0; padding: 8px 11px; border-radius: 12px; background: #fff; border: 1.5px solid #2A78D6; line-height: 1.4; }
.f-mb-l { font-size: 12px; font-weight: 800; color: #0F4C9C; flex: none; }
.f-hmap { position: relative; border-radius: 14px; overflow: hidden; margin-bottom: 3px; box-shadow: 0 4px 10px rgba(36, 98, 178, .15); max-width: 100%; background: #EAF2E0; }
.f-hmap-img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.f-hpin { position: absolute; width: 38px; height: 46px; margin: -46px 0 0 -19px; animation: f-bob 2s ease-in-out infinite; }
.f-hpin-bg { position: absolute; left: 0; top: 0; width: 38px; height: 46px; }
.f-hpin-ic { position: absolute; left: 8px; top: 6px; width: 22px; height: 22px; }
.f-hpin.f-got { opacity: .45; animation: none; }
.f-hpin.f-on { z-index: 2; animation: f-bobBig 2s ease-in-out infinite; }
@keyframes f-bobBig { 0%, 100% { transform: scale(1.25); } 50% { transform: translateY(-4px) scale(1.25); } }
.f-li.f-hs.f-cur { border-color: #2A78D6; }
.f-hs-r { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.f-nw-h { display: flex; align-items: center; gap: 6px; }
.f-nw-t { font-size: 10.5px; color: #8593AB; }
.f-nw-dot { width: 7px; height: 7px; border-radius: 50%; background: #FF5A4E; }
.f-hp-img { width: 70px; height: 55px; border-radius: 10px; background: linear-gradient(180deg, #E6F4FF, #D3EAD0); display: flex; align-items: center; justify-content: center; flex: none; }
.f-hp-img > img { width: 45px; height: 45px; object-fit: contain; }

/* ---------- 开垦弹窗 / 确认框 ---------- */
.f-dialog { position: absolute; left: 40px; right: 40px; top: 50%; z-index: 905; transform: translateY(-50%); background: #fff; border-radius: 20px; padding: 20px 20px 17px; text-align: center; box-shadow: 0 10px 30px rgba(16, 38, 74, .25); animation: f-dlgIn .4s cubic-bezier(.2, .9, .3, 1.3) both; }
@keyframes f-dlgIn { from { opacity: 0; transform: translateY(-50%) scale(.7); } to { opacity: 1; transform: translateY(-50%) scale(1); } }
.f-mask.f-hi { z-index: 960; }
.f-dialog.f-hi { z-index: 965; left: 32px; right: 32px; }
.f-dl-t { position: relative; display: inline-block; font-size: 18px; font-weight: 900; color: #10264A; line-height: 1.35; }
.f-dl-c { margin: 8px 0 16px; font-size: 14px; color: #4A5B78; line-height: 1.65; white-space: pre-line; word-break: break-word; }
.f-dl-acts { display: flex; gap: 10px; }
.f-dl-acts .f-btn { flex: 1; padding: 0 10px; }
.f-ex-img { position: relative; height: 95px; margin: 8px auto 5px; width: 150px; background: radial-gradient(ellipse at 50% 70%, #CDEDA6 0, #CDEDA6 45%, rgba(205, 237, 166, 0) 70%); }
.f-ex-soil { position: absolute; left: 30px; top: 20px; width: 90px; height: 79px; animation: f-bob 2.4s ease-in-out infinite; }
.f-ex-sp { position: absolute; width: 22px; height: 22px; animation: f-twinkleS 1.6s ease-in-out infinite; }
.f-ex-sp.f-a { left: 15px; top: 10px; }
.f-ex-sp.f-b { right: 15px; top: 5px; animation-delay: .6s; }
.f-ex-s { display: flex; align-items: center; justify-content: center; gap: 3px; font-size: 13.5px; font-weight: 700; color: #10264A; margin-bottom: 12px; }
.f-ex-s img { width: 19px; height: 19px; }
.f-ex-w { font-size: 11.5px; color: #E2443F; margin: -7px 0 9px; }

/* ---------- 加入 / 修改资料 ---------- */
.f-overlay { position: absolute; inset: 0; z-index: 950; background: rgba(16, 38, 74, .45); display: flex; align-items: center; justify-content: center; animation: f-fadeIn .25s; }
.f-join { width: 335px; max-height: 88%; display: flex; flex-direction: column; background: #F4F9FF; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 30px rgba(16, 38, 74, .3); animation: f-dlgIn2 .45s cubic-bezier(.2, .9, .3, 1.2) both; }
@keyframes f-dlgIn2 { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: scale(1); } }
.f-bn.f-jbn { height: 125px; }
.f-bn-prop.f-join { right: 20px; width: 110px; height: 105px; bottom: -3px; animation: none; }
.f-jn-crop { position: absolute; width: 37px; height: 37px; bottom: 9px; animation: f-sway 2.6s ease-in-out infinite; }
.f-jn-crop.f-c1 { right: 135px; }
.f-jn-crop.f-c2 { right: 165px; bottom: 4px; animation-delay: .4s; }
.f-jn-crop.f-c3 { right: 107px; bottom: 3px; animation-delay: .8s; }
.f-join-body { flex: 1 1 auto; min-height: 0; padding: 5px 18px 15px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.f-jl { position: relative; display: flex; align-items: center; gap: 5px; font-size: 13.5px; font-weight: 800; color: #10264A; margin: 11px 0 6px; }
.f-avas { display: flex; flex-wrap: wrap; gap: 7px; }
.f-av { position: relative; width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 2px solid #E1ECF9; display: flex; align-items: center; justify-content: center; transition: all .2s; }
.f-av:active { transform: scale(.94); }
.f-av-e { font-size: 24px; line-height: 1; }
.f-av.f-on { border-color: #0F4C9C; transform: scale(1.05); box-shadow: 0 4px 8px rgba(15, 76, 156, .2); }
.f-av-ck { position: absolute; right: -5px; bottom: -5px; width: 19px; height: 19px; border-radius: 50%; background: #0F4C9C; border: 1.5px solid #fff; display: flex; align-items: center; justify-content: center; }
.f-jf { height: 42px; border-radius: 12px; background: #fff; border: 1px solid #DCE8F7; padding: 0 12px; display: flex; align-items: center; transition: border-color .15s; }
.f-jf:focus-within { border-color: #2A78D6; }
.f-jf input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: transparent; font-size: 14px; color: #10264A; -webkit-user-select: text; user-select: text; }
.f-jf input::placeholder { color: #A3AFC2; }
.f-cps { display: flex; flex-wrap: wrap; gap: 6px; }
.f-chip { display: inline-flex; align-items: center; gap: 4px; height: 31px; padding: 0 13px; border-radius: 15.5px; background: rgba(255, 255, 255, .92); color: #4A5B78; font-size: 13px; font-weight: 600; border: 1px solid #fff; box-shadow: 0 2px 6px rgba(36, 98, 178, .08); white-space: nowrap; transition: all .2s; }
.f-chip:active { transform: scale(.96); }
.f-chip.f-on { background: linear-gradient(180deg, #2D7DDC, #0F4C9C); border-color: transparent; color: #fff; box-shadow: 0 3px 8px rgba(15, 76, 156, .3); }
.f-located { display: flex; align-items: center; gap: 3px; font-size: 11.5px; color: #22A060; margin-top: 6px; }

/* ---------- 升级 ---------- */
.f-overlay.f-lvl { flex-direction: column; background: rgba(16, 38, 74, .55); }
.f-lvup { position: relative; width: 260px; padding: 25px 15px 20px; border-radius: 24px; background: linear-gradient(180deg, #FFFFFF, #EEF6FF); text-align: center; box-shadow: 0 0 0 4px rgba(255, 255, 255, .5), 0 15px 30px rgba(16, 38, 74, .3); animation: f-dlgIn2 .5s cubic-bezier(.2, .9, .3, 1.4) both; }
.f-rays { position: absolute; left: 50%; top: 50%; width: 450px; height: 450px; margin: -225px 0 0 -225px; z-index: -1; background: repeating-conic-gradient(rgba(255, 226, 122, .35) 0 10deg, rgba(255, 226, 122, 0) 10deg 20deg); border-radius: 50%; animation: f-spin 14s linear infinite; pointer-events: none; }
@keyframes f-spin { to { transform: rotate(360deg); } }
.f-lvup-t { position: relative; display: block; font-size: 30px; font-weight: 900; color: #10264A; letter-spacing: 2px; line-height: 1.3; animation: f-bob 1.6s ease-in-out infinite; }
.f-ribbon { display: inline-block; margin-top: 5px; padding: 3px 30px; background: linear-gradient(180deg, #FFE27A, #F5B620); color: #A3500A; font-size: 23px; font-weight: 900; border-radius: 6px; box-shadow: 0 3px 0 #D98E12; transform: perspective(100px) rotateX(10deg); line-height: 1.3; }
.f-lvup-art { position: relative; height: 140px; margin-top: 5px; }
.f-lv-trophy { position: absolute; left: 50%; margin-left: -65px; top: 5px; width: 130px; height: 106px; animation: f-bob 2.2s ease-in-out infinite; }
.f-lv-crop { position: absolute; bottom: 5px; width: 60px; height: 60px; animation: f-sway 2s ease-in-out infinite; }
.f-lv-crop.f-l { left: 10px; }
.f-lv-crop.f-r { right: 10px; }
.f-unlock { display: inline-block; padding: 7px 22px; border-radius: 20px; background: #fff; box-shadow: 0 4px 10px rgba(36, 98, 178, .18); font-size: 16px; font-weight: 900; color: #10264A; animation: f-popIn2 .5s .4s both; }
.f-lvup-s { font-size: 12.5px; color: #4A5B78; margin-top: 7px; }
.f-lvup-close { margin-top: 15px; color: #fff; font-size: 13px; opacity: .85; }
.f-confetti { position: absolute; top: 20px; width: 8px; height: 12px; border-radius: 2px; animation: f-confetti 1.8s ease-out both; }
.f-cf1 { left: 10%; background: #FF7E98; } .f-cf2 { left: 20%; background: #FFD23F; animation-delay: .1s; } .f-cf3 { left: 30%; background: #5AB8F0; animation-delay: .2s; } .f-cf4 { left: 40%; background: #7ED957; animation-delay: .05s; }
.f-cf5 { left: 50%; background: #FF9F2E; animation-delay: .15s; } .f-cf6 { left: 60%; background: #B48BE0; animation-delay: .25s; } .f-cf7 { left: 70%; background: #FF7E98; animation-delay: .1s; } .f-cf8 { left: 80%; background: #FFD23F; animation-delay: .2s; }
.f-cf9 { left: 90%; background: #5AB8F0; animation-delay: .3s; } .f-cf10 { left: 15%; background: #7ED957; animation-delay: .35s; } .f-cf11 { left: 55%; background: #FF5B5B; animation-delay: .4s; } .f-cf12 { left: 85%; background: #FF9F2E; animation-delay: .45s; }
@keyframes f-confetti { 0% { opacity: 0; transform: translateY(0) rotate(0); } 15% { opacity: 1; transform: translateY(-80px) rotate(90deg); } 100% { opacity: 0; transform: translateY(190px) rotate(540deg); } }

/* ---------- 加载 / 暂停 / 出错 ---------- */
.f-state { position: absolute; inset: 0; z-index: 980; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 30px; text-align: center; background: linear-gradient(180deg, #D8EBFF, #EFF6FF); }
.f-ill { width: 190px; height: 152px; object-fit: contain; animation: f-floatY 4s ease-in-out infinite; }
.f-st { font-size: 19px; font-weight: 900; color: #10264A; margin-top: 10px; }
.f-sdx { font-size: 13px; color: #4A5B78; margin: 6px 0 17px; line-height: 1.6; }
.f-state .f-btn { min-width: 180px; }
.f-state .f-btn + .f-btn { margin-top: 9px; }

@media (hover: hover) {
  .f-li[data-act]:hover { border-color: #D6E5F7; }
  .f-sb:hover, .f-pill[data-act]:hover { box-shadow: 0 5px 12px rgba(36, 98, 178, .28); }
  .f-tl:hover .f-tl-ic { background: #EEF4FB; }
  .f-tl.f-on:hover .f-tl-ic { background: #DCEBFD; }
}
@media (prefers-reduced-motion: reduce) {
  .f-cloud, .f-butterfly, .f-butterfly img, .f-head-sky, .f-crop, .f-weed, .f-bug, .f-bubble, .f-sign, .f-bn-prop, .f-rays, .f-hpin, .f-btn.f-primary::after { animation: none !important; }
}
