/* ============================================================
   流体玻璃 · 抄同行布局版 v13
   ------------------------------------------------------------
   布局参照：同行的 desk 页（拼团站）
     · 分段控件（手动执行 / 定时执行）+ 白色气泡滑过去
     · 输入框「凹进去」（四周内阴影）
     · 预设步数：点中变选中色 + 凸起
     · 立即执行：凸出的大药丸按钮
   保留：
     · 右上角调色盘（--glow-rgb 驱动全部发光色）
     · 滚动性能优化（无 background-attachment:fixed、无大面积 blur）
     · 轮播图未配置时收起
     · 扫码绑定浮层
   ============================================================ */

:root {
  /* ★ 发光基色，调色盘写这里 */
  --glow-rgb: 72, 200, 98;

  --card-bg:      rgba(255, 255, 255, .78);
  --card-border:  rgba(255, 255, 255, .85);
  --card-radius:  18px;
  --card-shadow:  0 2px 12px rgba(60, 80, 70, .06);

  --lamp-a: rgba(var(--glow-rgb), .62);
  --lamp-b: rgba(var(--glow-rgb), .34);
  --lamp-c: rgba(var(--glow-rgb), .18);

  --ink:        #1c2721;
  --ink-strong: #16241c;
  --ink-soft:   #8b9a92;
}

/* ---------- 背景 ---------- */
html {
  background: #f4f8f5;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  width: 100%;
  max-width: 100%;
}

body {
  background-color: #f4f8f5;
  background-image:
    radial-gradient(44% 34% at 8% 4%,   rgba(var(--glow-rgb), .13), transparent 68%),
    radial-gradient(40% 30% at 94% 12%, rgba(var(--glow-rgb), .11), transparent 68%),
    radial-gradient(46% 34% at 50% 98%, rgba(var(--glow-rgb), .10), transparent 70%),
    linear-gradient(168deg, #f8fcf9 0%, #f5faf6 40%, #f6fbf7 70%, #f2f8f3 100%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-attachment: scroll;
  color: var(--ink);
  overflow-x: hidden;
  overscroll-behavior-x: none;
  width: 100%;
  max-width: 100%;
}

#app,
#app[data-v-d190e07f],
.home-page,
.home-page[data-v-a9961e25] {
  max-width: 100vw;
  overflow-x: hidden;
}
#app,
#app[data-v-d190e07f],
.home-page,
.home-page[data-v-a9961e25] {
  background: transparent !important;
  background-image: none !important;
}

/* ============================================================
   轮播图未配置时收起
   ============================================================ */
.banner-section.fluid-empty,
.banner-section:not(:has(img)):not(:has(video)) {
  display: none !important;
  padding: 0 !important;
  margin: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
}
.banner-section {
  padding: 12px 16px 0 !important;
}

/* 通知条关闭按钮给调色盘让位 */
.notice-section .van-notice-bar__right-icon {
  margin-right: 42px !important;
}

/* ============================================================
   ★ 分段控件：手动执行 / 定时执行（白气泡滑动）
   ============================================================ */
.fx-tabs {
  position: relative;
  display: flex;
  align-items: stretch;
  margin: 12px 16px 10px;
  padding: 3px;
  box-sizing: border-box;
  background: rgba(240, 244, 242, .85);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 22px;
  box-shadow: inset 0 1px 2px rgba(60, 80, 70, .05);
  -webkit-user-select: none;
  user-select: none;
}

.fx-tabs-slider {
  position: absolute;
  top: 3px;
  left: 3px;
  width: calc(50% - 3px);
  height: calc(100% - 6px);
  background: #fff;
  border-radius: 19px;
  box-shadow:
    0 2px 8px rgba(60, 80, 70, .12),
    0 0 0 1px rgba(255, 255, 255, .9) inset;
  transition: transform .32s cubic-bezier(.34, 1.3, .5, 1);
  z-index: 0;
  pointer-events: none;
}
.fx-tabs-slider.right {
  transform: translateX(100%);
}

.fx-tab {
  position: relative;
  z-index: 1;
  flex: 1;
  padding: 11px 0;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: #7c8a82;
  border-radius: 19px;
  cursor: pointer;
  transition: color .25s ease;
  -webkit-tap-highlight-color: transparent;
}
.fx-tab.active {
  color: var(--ink-strong);
  font-weight: 600;
}

/* ============================================================
   ★ 步数卡片（白卡）
   ============================================================ */
.function-section {
  margin: 0 16px 16px;
  padding: 18px !important;
  background: var(--card-bg) !important;
  border: 1px solid rgba(var(--glow-rgb), .55) !important;
  border-radius: var(--card-radius) !important;
  /* ★ 整张步数卡片边缘发光，让边界清晰可见 */
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    0 0 0 1px rgba(var(--glow-rgb), .18),
    0 0 10px rgba(var(--glow-rgb), .40),
    0 0 22px rgba(var(--glow-rgb), .28),
    0 0 40px rgba(var(--glow-rgb), .16),
    0 3px 14px rgba(60, 80, 70, .08) !important;
  box-sizing: border-box;
}

/* ============================================================
   ★ 输入框：凹进去
   ============================================================ */
.fluid-bar {
  margin: 0 0 14px;
  padding: 0;
  animation: fluidIn .4s cubic-bezier(.22, 1, .36, 1) both;
}
@keyframes fluidIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

.fluid-input-wrap {
  position: relative;
  border-radius: 12px;
  background: linear-gradient(-75deg,
    rgba(232, 236, 233, .55),
    rgba(246, 248, 247, .75),
    rgba(232, 236, 233, .55));
  border: 1px solid rgba(255, 255, 255, .7);
  /* ★ 凹进去：四周内阴影 + 顶部更重 */
  box-shadow:
    inset 0 2px 3px rgba(70, 90, 80, .10),
    inset 0 -2px 2px rgba(255, 255, 255, .85),
    inset 2px 0 2px rgba(70, 90, 80, .04),
    inset -2px 0 2px rgba(70, 90, 80, .04),
    inset 0 0 6px 1px rgba(255, 255, 255, .5);
  transition: box-shadow .25s ease;
}

.fluid-input-wrap:focus-within {
  box-shadow:
    inset 0 2px 4px rgba(70, 90, 80, .13),
    inset 0 -2px 2px rgba(255, 255, 255, .9),
    inset 0 0 6px 1px rgba(255, 255, 255, .5),
    0 0 0 2px rgba(var(--glow-rgb), .22);
}

.fluid-input {
  width: 100%;
  height: 48px;
  padding: 0 46px 0 16px;
  box-sizing: border-box;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: .5px;
  color: var(--ink-strong);
  text-align: center;
  font-variant-numeric: tabular-nums;
  -webkit-appearance: none;
  appearance: none;
}
.fluid-input::placeholder {
  color: #a4b3aa;
  font-size: 16px;
  font-weight: 400;
}
.fluid-input::-webkit-outer-spin-button,
.fluid-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* 输入框右侧的小圆钮（随机步数） */
.fluid-gear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 9px;
  background: linear-gradient(-75deg,
    rgba(var(--glow-rgb), .14),
    rgba(var(--glow-rgb), .26),
    rgba(var(--glow-rgb), .14));
  box-shadow:
    inset 0 2px 2px rgba(255, 255, 255, .6),
    0 1px 2px rgba(60, 80, 70, .08);
  color: #2f4a3c;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .18s ease;
}
.fluid-gear:active { transform: translateY(-50%) scale(.9); }
.fluid-gear svg { display: block; }

/* 选中预设后输入框已凹，不需要脉冲动画 */

/* ============================================================
   ★ 预设步数网格：点中 → 选中色 + 凸起
   ============================================================ */
.function-grid {
  max-width: none !important;
  margin: 0 0 16px !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 9px !important;
  justify-items: stretch !important;
  align-items: stretch !important;
}

.function-item {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}

.function-button {
  width: 100% !important;
  min-height: 44px !important;
  padding: 11px 4px !important;
  box-sizing: border-box;
  border-radius: 11px !important;
  border: 1px solid rgba(255, 255, 255, .7) !important;
  background: linear-gradient(-75deg,
    rgba(238, 242, 239, .6),
    rgba(255, 255, 255, .85),
    rgba(238, 242, 239, .6)) !important;
  /* 默认微微凸起 */
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, .9),
    inset 0 -1px 2px rgba(70, 90, 80, .05),
    0 1px 2px rgba(60, 80, 70, .07) !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  color: #33443b !important;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  transition: transform .18s ease, box-shadow .2s ease, background .2s ease !important;
  -webkit-tap-highlight-color: transparent;
}

/* 顶部柔光（保留玻璃质感） */
.function-button::after {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  top: 1px;
  height: 42%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.function-button .step-number {
  position: relative;
  z-index: 1;
  color: inherit !important;
  text-shadow: none !important;
  font-size: 15px;
}

.function-button:active {
  transform: scale(.95) !important;
}

/* ★ 点中：选中色 + 明显凸起 */
.function-button.selected {
  background: linear-gradient(-75deg,
    rgba(var(--glow-rgb), .32),
    rgba(var(--glow-rgb), .55),
    rgba(var(--glow-rgb), .32)) !important;
  border-color: rgba(255, 255, 255, .8) !important;
  color: var(--ink-strong) !important;
  font-weight: 600 !important;
  box-shadow:
    inset 0 2px 2px rgba(255, 255, 255, .75),
    inset 0 -2px 3px rgba(var(--glow-rgb), .35),
    0 3px 2px -2px rgba(50, 80, 64, .28),
    0 1px 2px rgba(50, 80, 64, .12),
    0 0 8px rgba(var(--glow-rgb), .35) !important;
  transform: translateY(-1px);
}

/* 自定义按钮由输入框取代 */
.function-button.custom-button { display: none !important; }
.function-item:has(.custom-button) { display: none !important; }

/* ============================================================
   ★ 立即执行：凸出的大药丸
   ============================================================ */
.fx-execute {
  display: block;
  width: 100%;
  padding: 14px 24px;
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 999px;
  background: linear-gradient(-75deg,
    rgba(var(--glow-rgb), .32),
    rgba(var(--glow-rgb), .55),
    rgba(var(--glow-rgb), .32));
  /* ★ 凸出：外投影 + 顶部亮边 + 内部上亮下暗 */
  box-shadow:
    inset 0 2px 2px rgba(255, 255, 255, .8),
    inset 0 -2px 3px rgba(var(--glow-rgb), .35),
    0 4px 3px -2px rgba(50, 80, 64, .30),
    0 1px 2px rgba(50, 80, 64, .12),
    0 0 10px rgba(var(--glow-rgb), .30);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .5px;
  color: var(--ink-strong);
  cursor: pointer;
  transition: transform .18s cubic-bezier(.34, 1.4, .6, 1), box-shadow .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.fx-execute:active {
  transform: scale(.97) translateY(1px);
  box-shadow:
    inset 0 2px 4px rgba(50, 80, 64, .18),
    inset 0 -1px 2px rgba(255, 255, 255, .4),
    0 1px 1px rgba(50, 80, 64, .18);
}
.fx-execute[disabled] {
  opacity: .6;
  cursor: default;
  transform: none;
}
.fx-execute.loading {
  color: transparent !important;
}
.fx-execute.loading::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, .55);
  border-top-color: #2f5a44;
  animation: fluidSpin .7s linear infinite;
}
.fx-execute { position: relative; }
@keyframes fluidSpin { to { transform: rotate(360deg); } }

/* ============================================================
   ★ 定时执行面板（自建，对齐同行布局）
   ============================================================ */
.extra-function-section {
  display: none !important;   /* 原站那张卡由新面板取代 */
}

.fx-auto-panel {
  margin: 0 16px 16px;
  padding: 4px 18px 18px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  box-sizing: border-box;
}

.fx-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(0, 0, 0, .05);
}
.fx-row:last-of-type { border-bottom: none; }

.fx-row-label {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  flex: 0 0 auto;
  white-space: nowrap;
}

/* ---- iOS 风开关 ---- */
.fx-switch {
  position: relative;
  flex: 0 0 auto;
  width: 46px;
  height: 26px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(200, 205, 202, .85);
  cursor: pointer;
  transition: background .28s ease;
  -webkit-tap-highlight-color: transparent;
}
.fx-switch i {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .22);
  transition: transform .28s cubic-bezier(.34, 1.3, .5, 1);
}
.fx-switch.on {
  background: linear-gradient(-75deg,
    rgba(var(--glow-rgb), .75),
    rgba(var(--glow-rgb), 1),
    rgba(var(--glow-rgb), .75));
}
.fx-switch.on i { transform: translateX(20px); }

/* ---- 模式选择：两枚胶囊 ---- */
.fx-mode {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}
.fx-mode-btn {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  background: rgba(240, 242, 240, .9);
  color: #7d8b83;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.fx-mode-btn.active {
  background: #fff;
  border-color: rgba(var(--glow-rgb), .9);
  color: #1f3a29;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(60, 80, 70, .10);
}

/* ---- 步数范围 / 时间输入：小号凹进去 ---- */
.fx-range {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.fx-sep {
  font-size: 13px;
  color: #8b9a92;
}
.fx-num,
.fx-time {
  width: 84px;
  height: 38px;
  padding: 0 8px;
  box-sizing: border-box;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, .7);
  background: linear-gradient(-75deg,
    rgba(232, 236, 233, .55),
    rgba(246, 248, 247, .8),
    rgba(232, 236, 233, .55));
  box-shadow:
    inset 0 2px 3px rgba(70, 90, 80, .10),
    inset 0 -2px 2px rgba(255, 255, 255, .85);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-strong);
  text-align: center;
  font-variant-numeric: tabular-nums;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.fx-time { width: 96px; }
.fx-num::-webkit-outer-spin-button,
.fx-num::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.fx-num:focus,
.fx-time:focus { box-shadow:
    inset 0 2px 3px rgba(70, 90, 80, .10),
    inset 0 -2px 2px rgba(255, 255, 255, .85),
    0 0 0 2px rgba(var(--glow-rgb), .25); }

.fx-hint {
  font-size: 12px;
  color: #8b9a92;
  padding: 14px 0 12px;
  line-height: 1.5;
}

/* ---- 保存按钮：与「立即执行」同一套凸出样式 ---- */
.fx-save {
  display: block;
  width: 100%;
  padding: 14px 24px;
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 999px;
  background: linear-gradient(-75deg,
    rgba(var(--glow-rgb), .32),
    rgba(var(--glow-rgb), .55),
    rgba(var(--glow-rgb), .32));
  box-shadow:
    inset 0 2px 2px rgba(255, 255, 255, .8),
    inset 0 -2px 3px rgba(var(--glow-rgb), .35),
    0 4px 3px -2px rgba(50, 80, 64, .30),
    0 1px 2px rgba(50, 80, 64, .12),
    0 0 10px rgba(var(--glow-rgb), .30);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .5px;
  color: var(--ink-strong);
  cursor: pointer;
  transition: transform .18s cubic-bezier(.34, 1.4, .6, 1), box-shadow .2s ease;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}
.fx-save:active {
  transform: scale(.97) translateY(1px);
  box-shadow:
    inset 0 2px 4px rgba(50, 80, 64, .18),
    inset 0 -1px 2px rgba(255, 255, 255, .4),
    0 1px 1px rgba(50, 80, 64, .18);
}
.fx-save[disabled] { opacity: .6; cursor: default; transform: none; }
.fx-save.loading { color: transparent !important; }
.fx-save.loading::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, .55);
  border-top-color: #2f5a44;
  animation: fluidSpin .7s linear infinite;
}

/* 模式切换：两张面板只显示一张 */
body.fx-auto .function-section { display: none !important; }
body:not(.fx-auto) .fx-auto-panel { display: none !important; }

/* ============================================================
   ★ 历史记录卡
   ============================================================ */
.history-section {
  margin: 0 16px 16px !important;
  padding: 18px !important;
  background: var(--card-bg) !important;
  border: 1px solid var(--card-border) !important;
  border-radius: var(--card-radius) !important;
  box-shadow: var(--card-shadow) !important;
  box-sizing: border-box;
}

.section-header h3 {
  font-size: 16px !important;
  font-weight: 600 !important;
  color: var(--ink) !important;
}

.history-item {
  background: rgba(246, 249, 247, .8) !important;
  border: 1px solid rgba(255, 255, 255, .8) !important;
  border-left: 3px solid rgba(var(--glow-rgb), .85) !important;
  border-radius: 10px !important;
  box-shadow: 0 1px 2px rgba(60, 80, 70, .05) !important;
}

/* ============================================================
   底部 tab 栏
   ============================================================ */
.tab-bar,
.tabbar,
[class*="tab-bar"],
[class*="tabbar"] {
  background: rgba(255, 255, 255, .92) !important;
  border-top: .5px solid rgba(0, 0, 0, .07) !important;
  box-shadow: 0 -2px 10px rgba(60, 80, 70, .05) !important;
}

/* ============================================================
   ★ 右上角悬浮调色盘（完整保留）
   ============================================================ */
.fluid-palette-btn {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 9990;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .96);
  background: rgba(255, 255, 255, .78);
  color: #3b4a40;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 #fff,
    0 0 6px var(--lamp-a),
    0 0 14px var(--lamp-b),
    0 4px 12px rgba(50, 62, 55, .14);
  transition: transform .2s cubic-bezier(.34, 1.56, .64, 1), box-shadow .25s ease;
}
.fluid-palette-btn:active { transform: scale(.9); }
.fluid-palette-btn svg { display: block; }

.fluid-palette-panel {
  position: fixed;
  top: 54px;
  right: 20px;
  z-index: 9991;
  width: 202px;
  padding: 12px;
  box-sizing: border-box;
  border-radius: 18px;
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(255, 255, 255, .96);
  box-shadow:
    inset 0 1px 0 #fff,
    0 0 10px var(--lamp-a),
    0 0 24px var(--lamp-b),
    0 14px 36px rgba(40, 60, 48, .18);
  display: none;
  animation: fluidPop .25s cubic-bezier(.22, 1, .36, 1) both;
  touch-action: pan-y;
  overscroll-behavior: contain;
  -webkit-user-select: none;
  user-select: none;
}
.fluid-palette-panel.show { display: block; }

@keyframes fluidPop {
  from { opacity: 0; transform: translateY(-8px) scale(.96); }
  to   { opacity: 1; transform: none; }
}

.fluid-palette-title {
  font-size: 12px;
  color: #6f8477;
  margin-bottom: 9px;
  letter-spacing: .3px;
}

.fluid-swatches {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.fluid-swatch {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 9px;
  cursor: pointer;
  border: 1.5px solid rgba(255, 255, 255, .92);
  box-shadow: 0 0 5px currentColor;
  position: relative;
  transition: transform .16s ease;
}
.fluid-swatch:active { transform: scale(.9); }
.fluid-swatch.active::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 12px;
  border: 2px solid rgba(70, 82, 74, .5);
}

.fluid-palette-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.fluid-palette-row span {
  font-size: 12px;
  color: #6f8477;
  flex: 1;
}
.fluid-palette-row.range-row { gap: 6px; margin-bottom: 6px; }
.fluid-palette-row.range-row span { flex: 0 0 34px; font-size: 11.5px; }

.fluid-range {
  flex: 1;
  min-width: 0;
  height: 24px;
  margin: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  touch-action: pan-y;
  -ms-touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}
.fluid-range::-webkit-slider-runnable-track {
  height: 10px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .10);
  background: #ddd;
}
.fluid-range.tinted::-webkit-slider-runnable-track { background: var(--track, #ddd); }
.fluid-range.tinted::-moz-range-track { background: var(--track, #ddd); }
.fluid-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -5px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid rgba(70, 82, 74, .35);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
}
.fluid-range::-moz-range-track {
  height: 10px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, .9);
  background: #ddd;
}
.fluid-range::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid rgba(70, 82, 74, .35);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
}

.fluid-preview-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 9px;
}
.fluid-preview-row span {
  font-size: 11.5px;
  color: #6f8477;
  flex: 0 0 34px;
}
.fluid-preview {
  flex: 1;
  height: 20px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, .5), 0 0 6px currentColor;
}
.fluid-preview-hex {
  font-size: 11px;
  color: #7d8f84;
  font-variant-numeric: tabular-nums;
  letter-spacing: .3px;
}

.fluid-reset-btn {
  width: 100%;
  height: 30px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: #3a4a40;
  background: rgba(0, 0, 0, .05);
  border: 1px solid rgba(255, 255, 255, .9);
  cursor: pointer;
  transition: background .2s ease;
}
.fluid-reset-btn:active { background: rgba(0, 0, 0, .10); }

/* ============================================================
   扫码绑定浮层
   ============================================================ */
.fluid-mask {
  position: fixed;
  inset: 0;
  z-index: 99998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(28, 34, 30, .42);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  animation: fluidFade .25s ease both;
}
@keyframes fluidFade { from { opacity: 0 } to { opacity: 1 } }

.fluid-qr-panel {
  width: 100%;
  max-width: 340px;
  padding: 24px 20px 18px;
  border-radius: 22px;
  text-align: center;
  color: var(--ink);
  background: rgba(255, 255, 255, .97);
  border: 1px solid rgba(255, 255, 255, .96);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 0 10px var(--lamp-a),
    0 0 22px var(--lamp-b),
    0 22px 54px rgba(34, 50, 40, .24);
  animation: fluidPop .3s cubic-bezier(.22, 1, .36, 1) both;
}

.fluid-qr-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .5px;
  margin-bottom: 4px;
}
.fluid-qr-sub {
  font-size: 12.5px;
  color: #6f8477;
  margin-bottom: 12px;
  line-height: 1.5;
}
.fluid-qr-imgbox {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  margin: 6px auto 12px;
  padding: 12px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 0 7px rgba(var(--glow-rgb), .32), 0 4px 14px rgba(60, 66, 62, .10);
}
.fluid-qr-imgbox canvas,
.fluid-qr-imgbox img { display: block; border-radius: 8px; }
.fluid-qr-loading {
  font-size: 13px;
  color: #74847a;
  line-height: 1.7;
  word-break: break-all;
}

.fluid-qr-actions { display: flex; gap: 10px; margin-top: 6px; }
.fluid-qr-btn {
  flex: 1;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .95);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  background: rgba(246, 249, 247, .9);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, .9), 0 1px 3px rgba(60, 80, 70, .08);
  cursor: pointer;
  transition: transform .2s ease;
}
.fluid-qr-btn:active { transform: scale(.96); }
.fluid-qr-btn.primary {
  color: var(--ink-strong);
  background: linear-gradient(-75deg,
    rgba(var(--glow-rgb), .32),
    rgba(var(--glow-rgb), .55),
    rgba(var(--glow-rgb), .32));
  box-shadow:
    inset 0 2px 2px rgba(255, 255, 255, .8),
    inset 0 -2px 3px rgba(var(--glow-rgb), .35),
    0 4px 3px -2px rgba(50, 80, 64, .28);
}
.fluid-qr-btn[disabled] { opacity: .6; }

/* ============================================================
   轻提示
   ============================================================ */
.fluid-tip {
  position: fixed;
  left: 50%;
  top: 22%;
  transform: translate(-50%, -8px);
  z-index: 99999;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-strong);
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(255, 255, 255, .96);
  box-shadow:
    inset 0 1px 0 #fff,
    0 0 10px rgba(var(--glow-rgb), .30),
    0 12px 32px rgba(40, 56, 46, .16);
  opacity: 0;
  transition: opacity .25s ease, transform .25s cubic-bezier(.34, 1.56, .64, 1);
  pointer-events: none;
  white-space: nowrap;
}
.fluid-tip.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- 减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  .fluid-bar, .fx-tabs-slider, .fx-execute, .function-button {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- 小屏 ---------- */
@media (max-width: 360px) {
  .function-section,
  .extra-function-section,
  .history-section { margin-left: 12px !important; margin-right: 12px !important; }
  .fx-tabs { margin-left: 12px; margin-right: 12px; }
  .fluid-input { font-size: 16px; }
  .function-button { min-height: 42px !important; }
  .function-button .step-number { font-size: 14px; }
  .fx-execute { font-size: 15px; padding: 13px 20px; }
  .fluid-palette-panel { width: 192px; }
}

/* ============================================================
   ★ 会员页（/duration 注入）
   原页面老的套餐区块会被隐藏，换成三档会员
   ============================================================ */
.duration-page {
  background: transparent !important;
  background-image: none !important;
  padding: 16px 16px 90px !important;
  box-sizing: border-box;
}

.fx-vip-page {
  margin-bottom: 16px;
}

/* ---- 我的会员状态 ---- */
.fx-vip-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  margin-bottom: 14px;
  border-radius: var(--card-radius);
  background: linear-gradient(135deg,
    rgba(var(--glow-rgb), .22),
    rgba(var(--glow-rgb), .10) 60%,
    rgba(255, 255, 255, .5));
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 2px 12px rgba(60, 80, 70, .07);
}
.fx-vip-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 1px 4px rgba(60, 80, 70, .12);
  font-size: 20px;
}
.fx-vip-hero-text { flex: 1; min-width: 0; }
.fx-vip-hero-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-strong);
  margin-bottom: 3px;
}
.fx-vip-hero-sub {
  font-size: 12.5px;
  color: #7d8f85;
}
.fx-vip-tag {
  flex: 0 0 auto;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: #1f3a29;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 1px 4px rgba(60, 80, 70, .1);
}
.fx-vip-tag.none { color: #8b9a92; }

/* ---- 三档切换 ---- */
.fx-vip-tabs {
  position: relative;
  display: flex;
  margin-bottom: 14px;
  padding: 3px;
  background: rgba(240, 244, 242, .85);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 20px;
  box-shadow: inset 0 1px 2px rgba(60, 80, 70, .05);
}
.fx-vip-tabs-slider {
  position: absolute;
  top: 3px;
  left: 3px;
  width: calc(33.333% - 2px);
  height: calc(100% - 6px);
  background: #fff;
  border-radius: 17px;
  box-shadow: 0 2px 8px rgba(60, 80, 70, .12);
  transition: transform .32s cubic-bezier(.34, 1.3, .5, 1);
  pointer-events: none;
}
.fx-vip-tab {
  position: relative;
  z-index: 1;
  flex: 1;
  padding: 10px 0;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 500;
  color: #7c8a82;
  border-radius: 17px;
  cursor: pointer;
  transition: color .25s ease;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}
.fx-vip-tab.active { color: var(--ink-strong); font-weight: 600; }

/* ---- 套餐 2×2 ---- */
.fx-vip-plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.fx-plan {
  position: relative;
  padding: 14px 10px 12px;
  border-radius: 14px;
  border: 1.5px solid rgba(255, 255, 255, .8);
  background: linear-gradient(-75deg,
    rgba(238, 242, 239, .6),
    rgba(255, 255, 255, .85),
    rgba(238, 242, 239, .6));
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, .9),
    0 1px 3px rgba(60, 80, 70, .07);
  text-align: center;
  cursor: pointer;
  transition: all .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.fx-plan.active {
  border-color: rgba(var(--glow-rgb), .9);
  background: linear-gradient(-75deg,
    rgba(var(--glow-rgb), .18),
    rgba(var(--glow-rgb), .32),
    rgba(var(--glow-rgb), .18));
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, .8),
    0 2px 3px -2px rgba(50, 80, 64, .26),
    0 0 10px rgba(var(--glow-rgb), .35);
}
.fx-plan-name {
  font-size: 13px;
  color: #6f8477;
  margin-bottom: 6px;
}
.fx-plan.active .fx-plan-name { color: #33513f; }
.fx-plan-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink-strong);
  line-height: 1.1;
}
.fx-plan-price small { font-size: 12px; font-weight: 500; }
.fx-plan-orig {
  margin-top: 4px;
  font-size: 11.5px;
  color: #a8b5ad;
  text-decoration: line-through;
}
.fx-plan-badge {
  position: absolute;
  top: -1px;
  right: -1px;
  padding: 2px 8px;
  font-size: 10.5px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(-75deg, #ff9a52, #ff7a3d);
  border-radius: 0 12px 0 10px;
}

/* ---- 开通按钮 ---- */
.fx-vip-buy {
  display: block;
  width: 100%;
  padding: 15px 24px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 999px;
  background: linear-gradient(-75deg,
    rgba(var(--glow-rgb), .32),
    rgba(var(--glow-rgb), .55),
    rgba(var(--glow-rgb), .32));
  box-shadow:
    inset 0 2px 2px rgba(255, 255, 255, .8),
    inset 0 -2px 3px rgba(var(--glow-rgb), .35),
    0 4px 3px -2px rgba(50, 80, 64, .30),
    0 1px 2px rgba(50, 80, 64, .12),
    0 0 10px rgba(var(--glow-rgb), .30);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .5px;
  color: var(--ink-strong);
  cursor: pointer;
  position: relative;
  transition: transform .18s cubic-bezier(.34, 1.4, .6, 1);
  -webkit-tap-highlight-color: transparent;
}
.fx-vip-buy:active { transform: scale(.97) translateY(1px); }
.fx-vip-buy[disabled] { opacity: .6; }
.fx-vip-buy.loading { color: transparent !important; }
.fx-vip-buy.loading::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 20px; height: 20px;
  margin: -10px 0 0 -10px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, .55);
  border-top-color: #2f5a44;
  animation: fluidSpin .7s linear infinite;
}

/* ---- 权益对比 ---- */
.fx-vip-sec-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 12px;
}
.fx-benefits {
  margin-bottom: 18px;
  padding: 14px;
  border-radius: var(--card-radius);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
}
.fx-benefit-head,
.fx-benefit-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  align-items: center;
  gap: 4px;
  padding: 9px 0;
  font-size: 12.5px;
}
.fx-benefit-head {
  color: #7d8f85;
  font-weight: 600;
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}
.fx-benefit-row {
  color: #4c5f55;
  border-bottom: 1px solid rgba(0, 0, 0, .04);
}
.fx-benefit-row:last-child { border-bottom: none; }
.fx-benefit-row span:first-child,
.fx-benefit-head span:first-child { text-align: left; color: var(--ink); }
.fx-benefit-head span:not(:first-child),
.fx-benefit-row span:not(:first-child) { text-align: center; }
.fx-benefit-head .t-vip { color: #5AA9FF; }
.fx-benefit-head .t-pro { color: #8B7BFF; }
.fx-benefit-head .t-max { color: #FF8A5C; }

/* 小屏 */
@media (max-width: 360px) {
  .fx-benefit-head, .fx-benefit-row { font-size: 11.5px; }
  .fx-plan-price { font-size: 18px; }
}


/* ---------- 会员页：邀请好友一行入口 ---------- */
.fx-vip-invite-line {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: var(--card-radius);
  background: #fff;
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.fx-vip-invite-line .chev {
  margin-left: auto;
  color: #9ca3af;
  font-size: 17px;
  line-height: 1;
}


/* ---------- 首页：公告条只留一条（防失联优先），其余收起 ---------- */
.fx-home-merged .notice-section:nth-of-type(n+2),
.fx-home-merged .notice-section + .notice-section {
  display: none !important;
}

/* 防失联条压成一行，不占首屏高度 */
.fx-home-merged .fx-anti-lost {
  margin: 0 16px 10px;
}


/* ---------- 首页顶部提示条压紧（首屏优先给步数卡） ---------- */
.fx-topbar-anti {
  padding-top: 6px !important;
  padding-bottom: 6px !important;
  margin-bottom: 6px !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
}
.fx-topbar-anti > div,
.fx-topbar-anti > span {
  line-height: 1.35 !important;
}

/* 只收外边距，内边距保持原样，否则文字会被挤没 */

/* 首页公告条：只收外边距，内部样式完全不覆盖 */
.fx-topbar-notice {
  margin-bottom: 8px !important;
}


/* ============================================================
   防旧界面闪现（FOUC）
   ------------------------------------------------------------
   原站页面会先被 Vue 渲染出来，我们的注入脚本要等工作到页面
   节点出现后才替换，这中间用户会看到旧布局闪一下。

   这里用 CSS 在脚本接管前先把「将被替换的区块」藏住；
   万一脚本没跑起来（报错/网络问题），1.2 秒后自动恢复显示，
   保证不会出现白屏。
   ============================================================ */
@keyframes fx-hold-reveal {
  to { opacity: 1; visibility: visible; }
}

/* 会员页：原站那套「捐赠支持 + 12 个竖排卡」的套餐区 */
.duration-page .donation-section {
  opacity: 0;
  visibility: hidden;
  animation: fx-hold-reveal 0s linear 1.2s forwards;
}

/* 邀请页：原站标题栏 + 资源列表 / 空状态 */
.resources-page .page-header,
.resources-page .resources-list,
.resources-page .empty-state {
  opacity: 0;
  visibility: hidden;
  animation: fx-hold-reveal 0s linear 1.2s forwards;
}
