/* ============================================================
   毫秒助手 · H5 样式表
   极简私密 · 暖白玫瑰粉 · 女生审美 · 专业大气
   ============================================================ */
:root {
  --pink: #E889A8;
  --pink-deep: #D96C8E;
  --pink-soft: #FBEFF2;
  --plum: #B35C7C;
  --bg: #FBF5F3;
  --card: #FFFFFF;
  --text: #3A2E33;
  --text-2: #9B8A90;
  --line: #F1E5E4;
  --green: #6FA98B;
  --amber: #DE9F4F;
  --red: #E26D6D;
  --radius: 18px;
  --shadow: 0 4px 16px rgba(190, 140, 152, 0.10);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

a { text-decoration: none; color: inherit; }
button { font-family: inherit; }

/* ── 顶部 ─────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(251, 245, 243, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--plum);
}
.header-deco {
  position: absolute;
  right: 16px;
  top: 14px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--plum));
  opacity: .6;
}

.mode-badge {
  position: fixed;
  top: 52px;
  left: 0; right: 0;
  z-index: 19;
  text-align: center;
  font-size: 12px;
  padding: 4px 0;
  color: var(--amber);
  background: rgba(255, 248, 240, 0.95);
}

/* ── 页面容器 ─────────────────────────── */
#view { padding: 16px 16px calc(84px + var(--safe-bottom)); }
.page { display: flex; flex-direction: column; gap: 14px; animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ── 卡片 ─────────────────────────────── */
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}
.card.clickable { cursor: pointer; transition: transform .12s ease; }
.card.clickable:active { transform: scale(0.985); }
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.card-row { display: flex; align-items: center; gap: 12px; }
.card-ico {
  width: 44px; height: 44px;
  flex-shrink: 0;
  border-radius: 14px;
  background: var(--pink-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.card-main { flex: 1; min-width: 0; }
.card-title { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.card-title-lg { font-size: 17px; font-weight: 700; }

.period-line { font-size: 15px; font-weight: 600; color: var(--text); }
.period-sub { font-size: 12px; color: var(--text-2); margin-top: 2px; }

/* ── 首页问候 ─────────────────────────── */
.hello { padding: 4px 2px 2px; }
.hello-title { font-size: 20px; font-weight: 700; letter-spacing: .5px; }
.hello-date { font-size: 13px; color: var(--text-2); margin-top: 4px; }

/* ── 徽章 / 标签 ─────────────────────── */
.chip {
  flex-shrink: 0;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 500;
}
.chip-safe  { background: #EAF5EF; color: var(--green); }
.chip-warn  { background: #FBF1E0; color: var(--amber); }
.chip-danger{ background: #FCE9E9; color: var(--red); }
.chip-period{ background: var(--pink-soft); color: var(--pink-deep); }
.chip-pmdd  { background: #F5ECF5; color: var(--plum); }
.chip-ovulation { background: #EAF4F8; color: #5B9BB0; }
.chip-overdue { background: #FCE9E9; color: var(--red); }
.chip-normal { background: #EEF3EF; color: #7A937F; }
.chip-none  { background: #F2F2F2; color: var(--text-2); }

.cat-tag {
  display: inline-block;
  font-size: 11px;
  color: var(--plum);
  background: var(--pink-soft);
  border-radius: 8px;
  padding: 1px 7px;
  margin-left: 6px;
  vertical-align: 1px;
  font-weight: 400;
}

/* ── 按钮 ─────────────────────────────── */
.btn {
  border: none;
  border-radius: 14px;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .1s ease, opacity .15s ease;
  -webkit-user-select: none; user-select: none;
}
.btn:active { transform: scale(0.97); opacity: .9; }
.btn-block { width: 100%; }
.btn-primary { background: linear-gradient(135deg, var(--pink), var(--pink-deep)); color: #fff; box-shadow: 0 6px 14px rgba(217, 108, 142, 0.28); }
.btn-soft { background: var(--pink-soft); color: var(--pink-deep); }
.btn-ghost { background: #F3F0EF; color: var(--text); }
.btn-danger-ghost { background: #FCE9E9; color: var(--red); }
.btn-sm { padding: 7px 13px; font-size: 13px; border-radius: 12px; }

.arrow { color: #CBBCC0; font-size: 18px; }

/* ── 统计块 ───────────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.stat {
  background: var(--card);
  border-radius: 16px;
  padding: 12px 4px;
  text-align: center;
  box-shadow: var(--shadow);
}
.stat-value { font-size: 16px; font-weight: 700; color: var(--plum); }
.stat-label { font-size: 11px; color: var(--text-2); margin-top: 3px; }

.sum-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.sum-item {
  background: var(--card);
  border-radius: 16px;
  padding: 12px 4px;
  text-align: center;
  box-shadow: var(--shadow);
}
.sum-item b { display: block; font-size: 18px; font-weight: 700; color: var(--text); }
.sum-item span { font-size: 11px; color: var(--text-2); }
.c-danger { color: var(--red) !important; }
.c-warn { color: var(--amber) !important; }
.c-safe { color: var(--green) !important; }

/* ── 进度条 ───────────────────────────── */
.progress {
  height: 8px;
  border-radius: 6px;
  background: #F3ECEB;
  overflow: hidden;
  margin-top: 6px;
}
.progress-fill {
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, #A9D7EA, #6FB4D6);
  transition: width .5s ease;
}
.water-num { font-size: 20px; font-weight: 700; }
.water-num span { font-size: 12px; font-weight: 400; color: var(--text-2); }
.water-pct { font-size: 14px; font-weight: 700; color: #6FB4D6; }

.quick-btns { display: flex; gap: 10px; margin-top: 12px; }
.quick-btns .btn { flex: 1; }

/* ── 快捷入口 ─────────────────────────── */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.qitem {
  background: var(--card);
  border-radius: 16px;
  padding: 14px 4px;
  text-align: center;
  box-shadow: var(--shadow);
  font-size: 12px;
  color: var(--text-2);
  transition: transform .12s ease;
}
.qitem:active { transform: scale(0.96); }
.qitem span { display: block; font-size: 22px; margin-bottom: 6px; }

/* ── 心情 ─────────────────────────────── */
.mood-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 12px 0; }
.mood-item {
  text-align: center;
  padding: 12px 0;
  border-radius: 14px;
  background: #F8F1F1;
  cursor: pointer;
  transition: all .15s ease;
}
.mood-item.on { background: var(--pink-soft); box-shadow: 0 0 0 2px var(--pink); }
.mood-emoji { display: block; font-size: 30px; }
.mood-label { display: block; font-size: 11px; color: var(--text-2); margin-top: 4px; }
.mood-item.on .mood-label { color: var(--pink-deep); font-weight: 600; }

.mood-row { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text); }
.mood-big { font-size: 26px; }
.mood-txt { color: var(--text); font-size: 13px; }
.mood-placeholder { color: var(--text-2); font-size: 13px; }
.mood-note { margin: 4px 0 12px; }

.sheet-moods { display: flex; justify-content: space-between; margin: 14px 0; }
.sheet-mood {
  font-size: 26px;
  padding: 6px;
  border-radius: 12px;
  cursor: pointer;
  transition: all .12s ease;
}
.sheet-mood.on { background: var(--pink-soft); box-shadow: 0 0 0 2px var(--pink); }

.cal-emoji { font-style: normal; font-size: 13px; display: block; }

/* ── 日历 ─────────────────────────────── */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-title { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.cal-nav {
  width: 34px; height: 34px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #FAF6F5;
  color: var(--plum);
  font-size: 18px;
  cursor: pointer;
}
.cal-back {
  font-size: 11px;
  color: var(--pink-deep);
  background: var(--pink-soft);
  border: none;
  border-radius: 10px;
  padding: 3px 8px;
  cursor: pointer;
}
.cal-week { display: grid; grid-template-columns: repeat(7, 1fr); margin-bottom: 4px; }
.cal-week-cell { text-align: center; font-size: 11px; color: var(--text-2); padding: 4px 0; }
.cal-row { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-day {
  position: relative;
  height: 42px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  border-radius: 12px;
  margin: 2px;
  cursor: pointer;
}
.cal-day.muted { color: #D9C9CD; }
.cal-day.today { box-shadow: inset 0 0 0 1.5px var(--pink); color: var(--pink-deep); font-weight: 700; }
.cal-day.period { background: var(--pink); color: #fff; font-weight: 600; }
.cal-day.pred { background: var(--pink-soft); color: var(--pink-deep); border: 1px dashed var(--pink); }
.cal-day.ovu { background: #EAF4F8; }
.cal-day.ovu .ovu-mark { position: absolute; bottom: 3px; font-style: normal; font-size: 8px; color: #5B9BB0; }
.cal-day.period .ovu-mark { color: #fff; }
.cal-day .dot { position: absolute; bottom: 4px; width: 4px; height: 4px; border-radius: 50%; background: var(--plum); }
.cal-day.w-full { background: #EAF5EF; }
.cal-day.w-part { background: #EAF4F8; }
.cal-legend { display: flex; gap: 14px; margin-top: 10px; font-size: 11px; color: var(--text-2); align-items: center; }
.cal-legend .lg { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 4px; vertical-align: -2px; }
.lg-period { background: var(--pink); }
.lg-pred { background: var(--pink-soft); border: 1px dashed var(--pink); }
.lg-ovu { background: #EAF4F8; color: #5B9BB0; text-align: center; font-size: 9px; }
.lg-full { background: #EAF5EF; border: 1px solid var(--green); }
.lg-part { background: #EAF4F8; }
.cal-tip { font-size: 11px; color: var(--text-2); margin-top: 8px; text-align: center; }

/* ── 列表 ─────────────────────────────── */
.list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.list-item:last-child { border-bottom: none; }
.li-bar { width: 4px; height: 40px; border-radius: 3px; flex-shrink: 0; }
.bar-danger { background: var(--red); }
.bar-warn { background: var(--amber); }
.bar-safe { background: var(--green); }
.li-main { flex: 1; min-width: 0; }
.li-title { font-size: 15px; font-weight: 600; }
.li-sub { font-size: 12px; color: var(--text-2); margin-top: 3px; }

/* ── 表单 ─────────────────────────────── */
.field { margin-bottom: 14px; }
.field-label { display: block; font-size: 12px; color: var(--text-2); margin-bottom: 6px; }
.field-input {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
  font-size: 14px;
  background: #FCFAF9;
  outline: none;
  transition: border-color .15s ease;
}
.field-input:focus { border-color: var(--pink); background: #fff; }
input[type="date"].field-input, input[type="time"].field-input { -webkit-appearance: none; }

.cat-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-item {
  font-size: 12px;
  padding: 6px 13px;
  border-radius: 12px;
  background: #F5EEEE;
  color: var(--text-2);
  cursor: pointer;
  transition: all .12s ease;
}
.cat-item.on { background: var(--pink-soft); color: var(--pink-deep); font-weight: 600; box-shadow: 0 0 0 1.5px var(--pink); }

.stepper {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.stepper button {
  width: 34px; height: 34px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #FAF6F5;
  color: var(--plum);
  font-size: 18px;
  cursor: pointer;
}
.stepper span { min-width: 72px; text-align: center; font-size: 14px; font-weight: 600; }
.stepper.sm button { width: 30px; height: 30px; }
.stepper.sm span { min-width: 60px; font-size: 13px; }

.time-input {
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 7px 10px;
  font-size: 13px;
  background: #FCFAF9;
  outline: none;
}

.goal-preset { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

/* ── 我的页 ───────────────────────────── */
.profile { display: flex; align-items: center; gap: 14px; }
.avatar {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink-soft), #F3DCE3);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}
.p-info { flex: 1; min-width: 0; }
.p-name { font-size: 17px; font-weight: 700; }
.p-sub { font-size: 12px; color: var(--text-2); margin-top: 3px; }

.set-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.set-row:last-child { border-bottom: none; }
.set-row.sub { padding-left: 12px; }
.set-row.danger .set-label { color: var(--red); }
.set-label { font-size: 14px; }
.set-tip { font-size: 11px; color: var(--text-2); }
.set-note { font-size: 11px; color: var(--text-2); background: #F9F3F2; border-radius: 10px; padding: 8px 10px; margin-top: 8px; line-height: 1.6; }

.switch {
  width: 46px; height: 28px;
  border-radius: 15px;
  background: #E4DCDD;
  position: relative;
  transition: background .2s ease;
  cursor: pointer;
  flex-shrink: 0;
}
.switch i {
  position: absolute;
  top: 3px; left: 3px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
  transition: transform .2s ease;
}
.switch.on { background: linear-gradient(135deg, var(--pink), var(--pink-deep)); }
.switch.on i { transform: translateX(18px); }

.about { text-align: center; }
.about-name { font-size: 16px; font-weight: 700; color: var(--plum); }
.about-ver { font-size: 12px; color: var(--text-2); margin-top: 3px; }
.about-dis { font-size: 11px; color: var(--text-2); margin-top: 10px; line-height: 1.7; text-align: left; }

/* ── 空状态 ───────────────────────────── */
.empty { text-align: center; padding: 26px 0 16px; color: var(--text-2); }
.empty p { margin: 4px 0; font-size: 14px; }
.empty .dim { font-size: 12px; color: #C0B0B4; }

/* ── 喝水杯 ───────────────────────────── */
.cup-card { text-align: center; }
.cup { position: relative; width: 130px; height: 186px; margin: 6px auto 14px; }
.cup-body {
  position: absolute;
  left: 0; right: 0; top: 8px; bottom: 0;
  border: 5px solid #E7D3D8;
  border-bottom-width: 8px;
  border-radius: 8px 8px 24px 24px;
  overflow: hidden;
  background: #fff;
}
.cup-fill {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, #AFDDF2, #7AB9DB);
  transition: height .5s ease;
}
.cup-fill::before {
  content: '';
  position: absolute;
  top: -9px; left: -8px; right: -8px;
  height: 18px;
  background: radial-gradient(ellipse at center, rgba(255,255,255,.85), transparent 72%);
}
.cup-handle {
  position: absolute;
  right: -24px; top: 34px;
  width: 36px; height: 72px;
  border: 5px solid #E7D3D8;
  border-left: none;
  border-radius: 0 20px 20px 0;
}
.cup-label {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 800;
  color: #5E8FA6;
  text-shadow: 0 1px 2px rgba(255,255,255,.7);
  z-index: 2;
  pointer-events: none;
}
.cup-info { font-size: 15px; color: var(--text); }
.cup-info b { color: var(--plum); font-size: 18px; }
.cup-target { font-size: 12px; color: var(--text-2); margin-top: 2px; }

/* ── 心情统计条 ───────────────────────── */
.stat-bar-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
.sb-emoji { font-size: 18px; width: 24px; text-align: center; }
.progress.sb { flex: 1; margin: 0; }
.sb-num { font-size: 12px; color: var(--text-2); min-width: 72px; text-align: right; }

/* ── 底部导航 ─────────────────────────── */
.tabbar {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  padding-bottom: var(--safe-bottom);
  height: calc(60px + var(--safe-bottom));
}
.tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-2);
  font-size: 11px;
}
.tab svg {
  width: 24px; height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tab.active { color: var(--pink-deep); font-weight: 600; }

/* ── Toast ────────────────────────────── */
.toast {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(.9);
  background: rgba(50, 38, 43, 0.88);
  color: #fff;
  padding: 11px 20px;
  border-radius: 14px;
  font-size: 14px;
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: all .2s ease;
  max-width: 76%;
  text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.toast-error { background: rgba(190, 60, 60, 0.92); }

/* ── Loading ──────────────────────────── */
.loading {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  z-index: 80;
  background: rgba(251, 245, 243, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
}
.loading.show { display: flex; }
.spinner {
  width: 30px; height: 30px;
  border: 3px solid var(--pink-soft);
  border-top-color: var(--pink);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.page-loading { display: flex; justify-content: center; padding: 60px 0; }

/* ── 弹窗 ─────────────────────────────── */
.modal, .sheet { position: fixed; left: 0; top: 0; right: 0; bottom: 0; z-index: 60; display: none; }
.modal.show, .sheet.show { display: block; }
.modal-mask, .sheet-mask {
  position: absolute;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(50, 38, 43, 0.45);
}
.modal-box {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(300px, 82%);
  background: #fff;
  border-radius: 20px;
  padding: 22px 20px 16px;
  text-align: center;
}
.modal-title { font-size: 16px; font-weight: 700; }
.modal-msg { font-size: 13px; color: var(--text-2); margin-top: 8px; line-height: 1.7; white-space: pre-line; }
.modal-btns { display: flex; gap: 10px; margin-top: 18px; }
.modal-btns .btn { flex: 1; }

/* ── Bottom Sheet ─────────────────────── */
.sheet-body {
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  background: #fff;
  border-radius: 22px 22px 0 0;
  padding: 18px 18px calc(22px + var(--safe-bottom));
  animation: slideUp .25s ease;
}
@keyframes slideUp { from { transform: translateY(40px); opacity: .6; } to { transform: none; opacity: 1; } }
.sheet-title { font-size: 16px; font-weight: 700; text-align: center; margin-bottom: 16px; }
.sheet-btns { display: flex; gap: 10px; margin-top: 6px; }
.sheet-btns .btn { flex: 1; }

/* ── 登录页 ─────────────────────────────── */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: linear-gradient(160deg, #FBF5F3 0%, #F5E6EA 50%, #EFD5DC 100%);
}
.login-card {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border-radius: 28px;
  padding: 48px 36px 40px;
  box-shadow: 0 12px 48px rgba(179, 92, 124, 0.15);
  text-align: center;
}
.login-logo {
  font-size: 56px;
  margin-bottom: 12px;
}
.login-title {
  font-size: 28px;
  font-weight: 700;
  color: #B35C7C;
  margin: 0 0 8px;
}
.login-slogan {
  font-size: 13px;
  color: #9B8A90;
  margin: 0 0 36px;
  line-height: 1.6;
}
.login-field {
  text-align: left;
  margin-bottom: 20px;
}
.login-label {
  display: block;
  font-size: 13px;
  color: #9B8A90;
  margin-bottom: 8px;
  font-weight: 500;
}
.login-input {
  width: 100%;
  height: 52px;
  padding: 0 18px;
  border: 1.5px solid #F1E5E4;
  border-radius: 16px;
  font-size: 16px;
  color: #3D2E33;
  background: #FCFAF9;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  box-sizing: border-box;
}
.login-input:focus {
  border-color: #E889A8;
  box-shadow: 0 0 0 4px rgba(232, 137, 168, 0.12);
  background: #fff;
}
.login-code-row {
  display: flex;
  gap: 12px;
}
.login-code-input {
  flex: 1;
}
.login-code-btn {
  flex-shrink: 0;
  width: 120px;
  height: 52px;
  font-size: 13px;
  border-radius: 16px;
  white-space: nowrap;
}
.login-code-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.login-btn {
  height: 52px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 16px;
  margin-top: 8px;
}
.login-tip {
  font-size: 12px;
  color: #B8A8AD;
  margin: 16px 0 0;
  line-height: 1.6;
}

/* ========== v3 新增功能样式 ========== */

/* 子标签页 */
.sub-tabs {
  display: flex;
  background: #F7F0F1;
  border-radius: 14px;
  padding: 4px;
  margin-bottom: 16px;
}
.sub-tab {
  flex: 1;
  text-align: center;
  padding: 10px 8px;
  font-size: 13px;
  color: #9B8A90;
  border-radius: 10px;
  cursor: pointer;
  transition: all .2s;
  font-weight: 500;
}
.sub-tab.active {
  background: #fff;
  color: #B35C7C;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(179, 92, 124, 0.1);
}

/* 功能卡片网格 */
.module-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}
.module-card {
  display: block;
  padding: 18px 14px;
  border-radius: 16px;
  text-decoration: none;
  transition: transform .15s;
}
.module-card:active { transform: scale(0.97); }
.module-card-large { grid-column: span 1; }
.module-icon { font-size: 32px; margin-bottom: 8px; }
.module-name { font-size: 15px; font-weight: 600; color: #3D2E33; margin-bottom: 4px; }
.module-desc { font-size: 11px; color: #9B8A90; line-height: 1.4; }

/* 聚合页banner */
.health-banner, .life-banner {
  background: linear-gradient(135deg, #FFE4EC 0%, #FFF0F5 100%);
  border-radius: 18px;
  padding: 22px 18px;
  margin-bottom: 18px;
}
.life-banner { background: linear-gradient(135deg, #E8F4FD 0%, #F0F8FF 100%); }
.health-banner-title, .life-banner-title { font-size: 18px; font-weight: 700; color: #B35C7C; margin-bottom: 4px; }
.life-banner-title { color: #4A90D9; }
.health-banner-sub, .life-banner-sub { font-size: 12px; color: #9B8A90; }

/* 提醒卡片 */
.health-remind-card, .life-remind-card {
  background: #FFF8F0;
  border: 1px solid #FFE4C4;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 16px;
  cursor: pointer;
}
.life-remind-card { background: #FFF5F5; border-color: #FFD6D6; }
.remind-title { font-size: 14px; font-weight: 600; color: #3D2E33; margin-bottom: 6px; }
.remind-count { font-size: 12px; color: #E8893A; margin-bottom: 8px; }
.remind-list { display: flex; flex-direction: column; gap: 4px; }
.remind-item { display: flex; justify-content: space-between; font-size: 12px; color: #6B5A60; }
.remind-time { color: #B35C7C; font-weight: 600; min-width: 45px; }
.remind-amount { color: #E8893A; font-weight: 600; }

/* 通用section标题 */
.section-title { font-size: 14px; font-weight: 600; color: #3D2E33; margin: 16px 0 10px; padding-left: 4px; }
.empty-small { text-align: center; padding: 24px; color: #B8A8AD; font-size: 13px; }
.back-bar { font-size: 14px; color: #B35C7C; padding: 8px 4px; margin-bottom: 12px; cursor: pointer; font-weight: 500; }
.btn-block { width: 100%; margin-top: 12px; }
.btn-small { padding: 6px 12px; font-size: 12px; border-radius: 8px; }
.btn-danger { color: #E85A5A !important; border-color: #FFD0D0 !important; }
.detail-actions { display: flex; gap: 10px; margin-top: 20px; }
.detail-actions .btn { flex: 1; }

/* 表单组 */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 13px; color: #6B5A60; margin-bottom: 6px; font-weight: 500; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; height: 44px; padding: 0 14px;
  border: 1.5px solid #F1E5E4; border-radius: 12px;
  font-size: 14px; color: #3D2E33; background: #FCFAF9;
  outline: none; box-sizing: border-box;
}
.form-group input:focus, .form-group select:focus { border-color: #E889A8; background: #fff; }
.check-group { display: flex; flex-wrap: wrap; gap: 8px; }
.check-item { display: flex; align-items: center; gap: 4px; font-size: 13px; color: #6B5A60; background: #F7F0F1; padding: 6px 10px; border-radius: 8px; }

/* ========== 家庭用药 ========== */
.today-med-list { display: flex; flex-direction: column; gap: 10px; }
.med-item { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 14px; padding: 14px; box-shadow: 0 2px 10px rgba(179, 92, 124, 0.06); }
.med-pending { border-left: 3px solid #FFB347; }
.med-taken { opacity: 0.6; border-left: 3px solid #6BCB77; }
.med-skipped { opacity: 0.5; border-left: 3px solid #ccc; }
.med-time { font-size: 16px; font-weight: 700; color: #B35C7C; min-width: 55px; }
.med-info { flex: 1; }
.med-name { font-size: 15px; font-weight: 600; color: #3D2E33; }
.med-sub { font-size: 12px; color: #9B8A90; margin-top: 2px; }
.med-actions { display: flex; gap: 6px; }
.med-status { font-size: 12px; color: #6BCB77; font-weight: 600; }

.med-plan-list { display: flex; flex-direction: column; gap: 10px; }
.med-plan-card { background: #fff; border-radius: 14px; padding: 14px; box-shadow: 0 2px 10px rgba(179, 92, 124, 0.06); }
.med-plan-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.med-plan-name { font-size: 15px; font-weight: 600; color: #3D2E33; }
.med-plan-body { display: flex; flex-direction: column; gap: 6px; }
.med-plan-row { display: flex; justify-content: space-between; font-size: 13px; }
.med-plan-row span:first-child { color: #9B8A90; }
.med-plan-row span:last-child { color: #3D2E33; font-weight: 500; }

.member-list { display: flex; flex-direction: column; gap: 10px; }
.member-card { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 14px; padding: 14px; box-shadow: 0 2px 10px rgba(179, 92, 124, 0.06); border-left: 3px solid #E889A8; }
.member-avatar { font-size: 32px; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: #FFF0F5; border-radius: 50%; }
.member-info { flex: 1; }
.member-name { font-size: 15px; font-weight: 600; color: #3D2E33; }
.member-sub { font-size: 12px; color: #9B8A90; margin-top: 2px; }
.member-allergy { font-size: 11px; color: #E85A5A; margin-top: 4px; background: #FFF0F0; padding: 4px 8px; border-radius: 6px; }

.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.stat-card { background: #fff; border-radius: 14px; padding: 18px 14px; text-align: center; box-shadow: 0 2px 10px rgba(179, 92, 124, 0.06); }
.stat-card-gradient { background: linear-gradient(135deg, #FFE4EC, #FFF0F5); }
.stat-value { font-size: 28px; font-weight: 700; color: #B35C7C; }
.stat-label { font-size: 12px; color: #9B8A90; margin-top: 4px; }
.stats-tip { background: #F7F0F1; border-radius: 12px; padding: 12px; font-size: 12px; color: #6B5A60; line-height: 1.6; }

/* ========== 记账 ========== */
.trip-list { display: flex; flex-direction: column; gap: 10px; }
.trip-card { background: #fff; border-radius: 14px; padding: 14px; box-shadow: 0 2px 10px rgba(179, 92, 124, 0.06); cursor: pointer; }
.trip-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.trip-name { font-size: 15px; font-weight: 600; color: #3D2E33; }
.trip-amount { font-size: 16px; font-weight: 700; color: #B35C7C; }
.trip-sub { font-size: 12px; color: #9B8A90; margin-bottom: 8px; }
.trip-members { display: flex; flex-wrap: wrap; gap: 6px; }
.member-tag { font-size: 11px; background: #F0F8FF; color: #4A90D9; padding: 3px 8px; border-radius: 6px; }

.trip-detail-header { background: linear-gradient(135deg, #E8F4FD, #F0F8FF); border-radius: 16px; padding: 18px; margin-bottom: 16px; }
.trip-detail-name { font-size: 18px; font-weight: 700; color: #3D2E33; margin-bottom: 8px; }
.trip-detail-total { font-size: 14px; color: #6B5A60; margin-bottom: 4px; }
.trip-detail-total span { font-size: 24px; font-weight: 700; color: #4A90D9; }
.trip-detail-per { font-size: 12px; color: #9B8A90; }

.settlement-card { background: #FFF8F0; border: 1px solid #FFE4C4; border-radius: 14px; padding: 14px; margin-bottom: 16px; }
.settlement-title { font-size: 14px; font-weight: 600; color: #E8893A; margin-bottom: 10px; }
.settlement-row { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 6px 0; }
.settlement-from { color: #E85A5A; font-weight: 600; }
.settlement-arrow { color: #9B8A90; }
.settlement-to { color: #6BCB77; font-weight: 600; }
.settlement-amount { margin-left: auto; font-weight: 700; color: #3D2E33; }

.expense-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.expense-item { display: flex; justify-content: space-between; align-items: center; background: #fff; border-radius: 10px; padding: 12px; }
.expense-info { flex: 1; }
.expense-cat { font-size: 14px; font-weight: 500; color: #3D2E33; }
.expense-sub { font-size: 11px; color: #9B8A90; margin-top: 2px; }
.expense-amount { font-size: 15px; font-weight: 700; color: #3D2E33; }

/* 份子钱 */
.gift-summary { background: linear-gradient(135deg, #FFF0F0, #FFF5F5); border-radius: 16px; padding: 16px; margin-bottom: 16px; }
.gift-summary-row { display: flex; gap: 12px; }
.gift-summary-item { flex: 1; text-align: center; }
.gift-summary-label { font-size: 11px; color: #9B8A90; margin-bottom: 4px; }
.gift-summary-value { font-size: 18px; font-weight: 700; }
.gift-summary-value.income { color: #6BCB77; }
.gift-summary-value.expense { color: #E85A5A; }
.gift-summary-count { font-size: 10px; color: #B8A8AD; margin-top: 2px; }

.return-remind { background: #FFF8F0; border: 1px solid #FFE4C4; border-radius: 14px; padding: 14px; margin-bottom: 16px; }
.return-remind-title { font-size: 14px; font-weight: 600; color: #E8893A; margin-bottom: 8px; }
.return-item { display: flex; justify-content: space-between; font-size: 12px; color: #6B5A60; padding: 4px 0; }

.gift-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.gift-item { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 12px; padding: 12px; }
.gift-icon { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: #fff; flex-shrink: 0; }
.gift-icon.income { background: #6BCB77; }
.gift-icon.expense { background: #E85A5A; }
.gift-info { flex: 1; }
.gift-name { font-size: 14px; font-weight: 600; color: #3D2E33; }
.gift-sub { font-size: 11px; color: #9B8A90; margin-top: 2px; }
.gift-amount { font-size: 15px; font-weight: 700; }
.gift-amount.income { color: #6BCB77; }
.gift-amount.expense { color: #E85A5A; }

/* ========== 健身 ========== */
.exercise-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.quick-record { background: #fff; border-radius: 16px; padding: 16px; margin-bottom: 16px; box-shadow: 0 2px 10px rgba(179, 92, 124, 0.06); }
.quick-record-title { font-size: 14px; font-weight: 600; color: #3D2E33; margin-bottom: 12px; }
.exercise-type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.exercise-type-btn { padding: 12px 4px; border: 1.5px solid #F1E5E4; background: #FCFAF9; border-radius: 12px; font-size: 13px; color: #6B5A60; cursor: pointer; transition: all .15s; }
.exercise-type-btn:active { background: #FFE4EC; border-color: #E889A8; color: #B35C7C; }

.exercise-record-list { display: flex; flex-direction: column; gap: 8px; }
.exercise-record-item { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 12px; padding: 12px; }
.exercise-record-icon { font-size: 24px; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: #F0FFF4; border-radius: 50%; }
.exercise-record-info { flex: 1; }
.exercise-record-type { font-size: 14px; font-weight: 600; color: #3D2E33; }
.exercise-record-date { font-size: 11px; color: #9B8A90; margin-top: 2px; }
.exercise-record-duration { font-size: 15px; font-weight: 700; color: #6BCB77; }

.duration-form { padding: 4px 0; }
.duration-title { font-size: 18px; font-weight: 700; color: #3D2E33; text-align: center; margin-bottom: 16px; }
.duration-quick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 16px; }
.duration-quick-btn { padding: 10px 2px; border: 1.5px solid #F1E5E4; background: #FCFAF9; border-radius: 10px; font-size: 12px; color: #6B5A60; cursor: pointer; }
.duration-quick-btn.active { background: #FFE4EC; border-color: #E889A8; color: #B35C7C; font-weight: 600; }

/* ========== 孕期育儿 ========== */
.baby-calc-card { display: flex; align-items: center; gap: 12px; background: linear-gradient(135deg, #FCE4EC, #FFF0F5); border-radius: 16px; padding: 16px; margin-bottom: 16px; cursor: pointer; }
.calc-icon { font-size: 32px; }
.calc-info { flex: 1; }
.calc-title { font-size: 15px; font-weight: 600; color: #B35C7C; }
.calc-desc { font-size: 11px; color: #9B8A90; margin-top: 2px; }
.calc-arrow { font-size: 20px; color: #B8A8AD; }

.baby-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.baby-card { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 14px; padding: 14px; box-shadow: 0 2px 10px rgba(179, 92, 124, 0.06); border-left: 3px solid #FFB6C1; cursor: pointer; }
.baby-avatar { font-size: 28px; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.baby-info { flex: 1; }
.baby-name { font-size: 15px; font-weight: 600; color: #3D2E33; }
.baby-sub { font-size: 12px; color: #9B8A90; margin-top: 2px; }
.baby-arrow { font-size: 18px; color: #B8A8AD; }
.baby-add-btns { display: flex; gap: 10px; }
.baby-add-btns .btn { flex: 1; }

.calc-form-card { background: #fff; border-radius: 16px; padding: 18px; box-shadow: 0 2px 10px rgba(179, 92, 124, 0.06); }
.calc-form-title { font-size: 16px; font-weight: 600; color: #3D2E33; margin-bottom: 16px; text-align: center; }
.calc-result { margin-top: 16px; background: #F7F0F1; border-radius: 12px; padding: 14px; }
.calc-result-row { display: flex; justify-content: space-between; font-size: 14px; padding: 6px 0; }
.calc-result-row .highlight { color: #B35C7C; font-weight: 700; font-size: 16px; }
.calc-result-tip { font-size: 12px; color: #6B5A60; margin-top: 10px; padding-top: 10px; border-top: 1px solid #E8DDE0; line-height: 1.6; }

.preg-header { background: linear-gradient(135deg, #FCE4EC, #FFF0F5); border-radius: 16px; padding: 20px; margin-bottom: 16px; text-align: center; }
.preg-week { font-size: 32px; font-weight: 700; color: #B35C7C; }
.preg-sub { font-size: 13px; color: #9B8A90; margin-top: 4px; }
.preg-progress { height: 8px; background: #fff; border-radius: 4px; margin: 14px 0 8px; overflow: hidden; }
.preg-progress-bar { height: 100%; background: linear-gradient(90deg, #E889A8, #B35C7C); border-radius: 4px; transition: width .3s; }
.preg-due { font-size: 12px; color: #6B5A60; }

.fetal-tip { background: #F0FFF4; border-radius: 14px; padding: 14px; margin-bottom: 16px; }
.fetal-tip-title { font-size: 14px; font-weight: 600; color: #3D2E33; margin-bottom: 8px; }
.fetal-tip-content { font-size: 13px; color: #6B5A60; line-height: 1.7; }

.baby-detail-header { background: linear-gradient(135deg, #FCE4EC, #FFF0F5); border-radius: 16px; padding: 20px; margin-bottom: 16px; text-align: center; }
.baby-detail-name { font-size: 20px; font-weight: 700; color: #3D2E33; }
.baby-detail-age { font-size: 16px; color: #B35C7C; font-weight: 600; margin-top: 4px; }
.baby-detail-weight { font-size: 12px; color: #9B8A90; margin-top: 4px; }

.milestone-card { background: #FFF8F0; border-radius: 14px; padding: 14px; margin-bottom: 16px; }
.milestone-title { font-size: 14px; font-weight: 600; color: #E8893A; margin-bottom: 10px; }
.milestone-list { display: flex; flex-direction: column; gap: 6px; }
.milestone-item { font-size: 13px; color: #6B5A60; line-height: 1.5; }

.vaccine-remind { background: #F0F8FF; border: 1px solid #C4E0FF; border-radius: 14px; padding: 14px; margin-bottom: 16px; }
.vaccine-remind-title { font-size: 14px; font-weight: 600; color: #4A90D9; margin-bottom: 8px; }
.vaccine-remind-age { font-size: 16px; font-weight: 700; color: #3D2E33; margin-bottom: 8px; }
.vaccine-item { display: flex; justify-content: space-between; font-size: 13px; padding: 4px 0; }
.vaccine-name { color: #3D2E33; font-weight: 500; }
.vaccine-dose { color: #9B8A90; font-size: 12px; }
.vaccine-remind-date { font-size: 12px; color: #4A90D9; margin-top: 8px; font-weight: 600; }
.vaccine-note { font-size: 11px; color: #E8893A; margin-top: 6px; }

.vaccine-full-title { font-size: 14px; font-weight: 600; color: #3D2E33; padding: 12px 4px; cursor: pointer; }
.vaccine-full-list { background: #fff; border-radius: 12px; padding: 10px; margin-bottom: 16px; }
.vaccine-full-item { padding: 8px 0; border-bottom: 1px solid #F5EEF0; }
.vaccine-full-item:last-child { border-bottom: none; }
.vaccine-full-age { font-size: 13px; font-weight: 600; color: #B35C7C; margin-bottom: 4px; }
.vaccine-full-vac { font-size: 12px; color: #6B5A60; padding: 2px 0; }
.dim { color: #B8A8AD; }

.exercise-record-del {
  background: none; border: none; color: #ccc; font-size: 20px;
  cursor: pointer; padding: 4px 8px; line-height: 1; border-radius: 50%;
}
.exercise-record-del:hover { color: #ff6b6b; background: #fff0f0; }

.item-del-btn {
  background: none; border: none; color: #ccc; font-size: 18px;
  cursor: pointer; padding: 2px 8px; line-height: 1; border-radius: 50%;
  align-self: center; flex-shrink: 0;
}
.item-del-btn:hover { color: #ff6b6b; background: #fff0f0; }

/* ============================================================
   毫秒助手 · 工具系统 / 首页改造 样式（v6）
   ============================================================ */

/* ── 通用 ─────────────────────────────── */
.empty-small { text-align: center; color: var(--text-2); padding: 28px 12px; font-size: 13px; }
.mono-text { font-family: Consolas, Menlo, monospace; letter-spacing: 0.5px; }
.dim { color: var(--text-2); font-size: 12px; }

/* ── 工具箱页 ─────────────────────────── */
.toolbox-page { padding-bottom: 20px; }
.toolbox-search { padding: 14px 16px 4px; }
.tool-search-input {
  width: 100%; height: 44px; border: none; outline: none;
  background: #fff; border-radius: 22px; padding: 0 20px;
  font-size: 14px; color: var(--text);
  box-shadow: var(--shadow);
}
.tool-search-input::placeholder { color: var(--text-2); }
.toolbox-cats {
  display: flex; overflow-x: auto; gap: 8px; padding: 12px 16px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.toolbox-cats::-webkit-scrollbar { display: none; }
.toolbox-cat {
  flex-shrink: 0; padding: 7px 15px; border-radius: 18px;
  background: #fff; font-size: 13px; color: var(--text-2);
  border: 1px solid var(--line); white-space: nowrap;
}
.toolbox-cat.on { background: var(--pink); color: #fff; border-color: var(--pink); font-weight: 500; }
.toolbox-section { padding: 6px 16px; }
.section-title { font-size: 15px; font-weight: 600; color: var(--plum); }
.toolbox-section .section-title { padding: 8px 4px; }

/* 工具列表（一行一个） */
.tool-grid {
  display: flex; flex-direction: column; gap: 8px;
}
.tool-card {
  background: #fff; border-radius: 12px; padding: 12px 14px;
  display: flex; flex-direction: row; align-items: center; gap: 12px;
  box-shadow: var(--shadow); cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease;
}
.tool-card:active { transform: scale(0.98); background: #f7f5fb; }
.tool-card-icon { font-size: 24px; line-height: 1; flex-shrink: 0; width: 32px; text-align: center; }
.tool-card-main { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tool-card-name { font-size: 14px; font-weight: 600; color: var(--text); }
.tool-card-code { font-size: 11px; color: var(--pink-deep); font-weight: 500; opacity: 0.85; }
.tool-card-desc {
  font-size: 12px; color: var(--text-2); line-height: 1.4;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tool-card-arrow { font-size: 20px; color: #ccc; flex-shrink: 0; line-height: 1; }

/* ── 工具使用页 ───────────────────────── */
.tool-page { padding-bottom: 30px; }
.tool-head {
  padding: 14px 16px 8px; display: flex; flex-direction: column; gap: 12px;
}
.tool-back {
  align-self: flex-start; background: none; border: none; color: var(--pink-deep);
  font-size: 13px; padding: 4px 2px; cursor: pointer;
}
.tool-head-main { display: flex; align-items: center; gap: 12px; }
.tool-head-icon {
  width: 52px; height: 52px; border-radius: 16px; background: var(--pink-soft);
  display: flex; align-items: center; justify-content: center; font-size: 28px;
}
.tool-head-name { font-size: 18px; font-weight: 700; color: var(--text); }
.tool-head-desc { font-size: 12px; color: var(--text-2); margin-top: 2px; }

.tool-form { padding: 6px 2px; }
.tool-field { margin-bottom: 12px; }
.tool-field-label {
  display: block; font-size: 12px; color: var(--text-2); margin-bottom: 6px;
}
.tool-input {
  width: 100%; height: 42px; border: 1px solid var(--line); border-radius: 12px;
  padding: 0 14px; font-size: 14px; outline: none; background: #fff;
  color: var(--text); transition: border 0.2s;
}
.tool-input:focus { border-color: var(--pink); }
.tool-textarea { height: 110px; padding: 12px 14px; resize: vertical; }
select.tool-input { -webkit-appearance: none; appearance: none; }
select.tool-input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23B35C7C' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }

.tool-result { min-height: 80px; }
.tool-tip {
  margin-top: 12px; padding: 10px 12px; border-radius: 10px;
  background: #FBF3F5; color: #8A6B75; font-size: 12px; line-height: 1.6;
}
.warn-tip { background: #FBF3EC; color: #9A6B3C; }
.tool-tip.warn { background: #FDF3E3; color: #9A6B1E; border: 1px solid #F3DFB8; }

/* 结果网格 */
.tool-result-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
.tr-item {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 10px; text-align: center;
}
.tr-value { font-size: 20px; font-weight: 700; color: var(--pink-deep); }
.tr-label { font-size: 11px; color: var(--text-2); margin-top: 4px; }

/* 进阶工具（比价/纪念日/设计规范/合同） */
.pre-box { margin-top: 12px; background: #FBF7F8; border: 1px solid #F0E4E8; border-radius: 12px; padding: 12px; max-height: 260px; overflow: auto; }
.pre-box pre { margin: 0; font-family: "SFMono-Regular", Consolas, "PingFang SC", monospace; font-size: 12px; line-height: 1.7; color: #5A4A50; white-space: pre-wrap; word-break: break-word; }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; }
.price-cat { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.price-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-2); padding: 2px 0; }
.price-row b { color: var(--pink-deep); font-size: 13px; }
.ann-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 4px; }
.ann-item { background: linear-gradient(145deg, #FFF7FA, #FFF0F5); border: 1px solid #F7DEE8; border-radius: 14px; padding: 12px; }
.ann-name { font-size: 13px; font-weight: 700; color: var(--text); }
.ann-days { font-size: 22px; font-weight: 800; color: var(--pink-deep); margin: 4px 0 2px; }
.ann-next { font-size: 11px; color: var(--text-2); }
.design-box { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 10px; }
.design-swatch { text-align: center; }
.design-color { display: block; height: 52px; border-radius: 12px; border: 1px solid #F0E4E8; }
.design-name { font-size: 12px; color: var(--text); margin-top: 5px; }
.design-hex { font-size: 11px; color: var(--text-2); }
.design-tip { font-size: 12px; color: var(--text-2); margin-bottom: 8px; }
.btn-sm { padding: 4px 10px; font-size: 12px; border-radius: 8px; }
.ann-bless { margin-top: 8px; }

/* BMI */
.bmi-box { text-align: center; padding: 18px 0; }
.bmi-value { font-size: 44px; font-weight: 800; color: var(--pink-deep); }
.bmi-label { display: inline-block; margin-top: 6px; padding: 4px 16px; border-radius: 14px; font-size: 14px; font-weight: 600; }
.bmi-label.good { background: #E7F3EC; color: var(--green); }
.bmi-label.warn { background: #FBF0E0; color: var(--amber); }
.bmi-label.danger { background: #FBE5E5; color: var(--red); }
.bmi-range { margin-top: 8px; font-size: 12px; color: var(--text-2); }

/* 睡眠 / 安全期 / 倒计时 / 决策 / 塔罗 / 运势 */
.sleep-box, .safe-box { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.sleep-title { font-size: 13px; font-weight: 600; margin-bottom: 10px; color: var(--text); }
.sleep-list { display: flex; flex-direction: column; gap: 8px; }
.sleep-item { font-size: 13px; color: var(--text-2); }
.safe-item { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.safe-item:last-child { border-bottom: none; }
.safe-item b { color: var(--pink-deep); }

.countdown-box { text-align: center; padding: 18px 0; }
.countdown-name { font-size: 14px; color: var(--text-2); }
.countdown-value { font-size: 40px; font-weight: 800; color: var(--pink-deep); margin: 6px 0; }
.countdown-value.today { font-size: 22px; }
.countdown-unit { font-size: 13px; color: var(--text-2); }
.countdown-sub { font-size: 12px; color: var(--text-2); margin-top: 6px; }

.decision-box, .tarot-box, .lucky-box { text-align: center; padding: 18px 0; }
.decision-label { font-size: 13px; color: var(--text-2); }
.decision-result { font-size: 26px; font-weight: 700; color: var(--pink-deep); margin: 10px 0 14px; }
.decision-options { font-size: 11px; color: var(--text-2); margin-top: 10px; }
.tarot-emoji { font-size: 46px; }
.tarot-name { font-size: 19px; font-weight: 700; color: var(--plum); margin: 8px 0; }
.tarot-desc { font-size: 13px; color: var(--text-2); line-height: 1.6; padding: 0 8px; }
.tarot-q { margin-top: 8px; font-size: 12px; color: var(--pink-deep); }

.lucky-star { font-size: 26px; letter-spacing: 3px; color: #F0B43B; }
.lucky-rank { font-size: 22px; font-weight: 700; color: var(--pink-deep); margin: 6px 0; }
.lucky-desc { font-size: 13px; color: var(--text-2); line-height: 1.6; }
.lucky-meta { display: flex; justify-content: center; gap: 18px; margin-top: 10px; font-size: 12px; color: var(--plum); }

.lottery-box { display: flex; flex-direction: column; gap: 8px; }
.lottery-item {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 12px; text-align: center; font-size: 15px; font-weight: 600;
  font-family: Consolas, Menlo, monospace; color: var(--plum); letter-spacing: 1px;
}

/* 列表类结果（密码/朋友圈文案） */
.moment-list { display: flex; flex-direction: column; gap: 8px; }
.moment-item {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px;
}
.moment-num {
  width: 22px; height: 22px; border-radius: 50%; background: var(--pink-soft);
  color: var(--pink-deep); font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.moment-text { flex: 1; font-size: 13px; color: var(--text); line-height: 1.5; word-break: break-all; }
.moment-copy {
  flex-shrink: 0; background: none; border: 1px solid var(--pink); color: var(--pink-deep);
  border-radius: 14px; padding: 4px 12px; font-size: 12px; cursor: pointer;
}
.moment-copy.copied { background: var(--pink); color: #fff; }

/* JSON / 编码输出 */
.json-ok { color: var(--green); font-size: 13px; margin-bottom: 10px; font-weight: 600; }
.json-err { color: var(--red); font-size: 13px; margin-bottom: 8px; }
.json-output {
  background: #2F2A2E; border-radius: 12px; padding: 12px; max-height: 280px;
  overflow: auto; margin-bottom: 12px;
}
.json-output pre {
  margin: 0; color: #F3D9E2; font-size: 12px; line-height: 1.6;
  font-family: Consolas, Menlo, monospace; white-space: pre-wrap; word-break: break-all;
}

/* 计算器 */
.calc-box { text-align: center; padding: 14px 0; }
.calc-expr { font-size: 14px; color: var(--text-2); }
.calc-result { font-size: 32px; font-weight: 800; color: var(--pink-deep); margin: 8px 0 14px; }

/* 身份证 / 手机号 */
.idcard-box { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.idcard-valid { font-size: 13px; font-weight: 600; margin-bottom: 8px; color: var(--green); }
.idcard-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.idcard-row:last-child { border-bottom: none; }
.idcard-row b { color: var(--plum); }
.phone-box { text-align: center; padding: 18px 0; }
.phone-num { font-size: 24px; font-weight: 700; color: var(--plum); }
.phone-op { margin-top: 8px; font-size: 15px; color: var(--pink-deep); }

/* 天气 / 汇率 / 文章 */
.weather-box { text-align: center; padding: 18px 0; }
.weather-loc { font-size: 14px; color: var(--text-2); }
.weather-temp { font-size: 46px; font-weight: 800; color: var(--plum); }
.weather-text { font-size: 16px; color: var(--pink-deep); margin: 4px 0 10px; }
.weather-meta { font-size: 12px; color: var(--text-2); }
.exchange-box { text-align: center; padding: 16px 0; }
.exchange-line { font-size: 14px; color: var(--text-2); }
.exchange-result { font-size: 30px; font-weight: 800; color: var(--pink-deep); margin: 6px 0; }
.exchange-rate { font-size: 13px; color: var(--plum); }
.article-box { max-height: 340px; overflow: auto; }
.article-content { font-size: 14px; line-height: 1.8; color: var(--text); white-space: pre-wrap; }

/* ── 首页改造 ─────────────────────────── */
.home-page { padding-bottom: 24px; }
.home-hero {
  position: relative; padding: 20px 16px 16px; overflow: hidden;
  background: linear-gradient(135deg, #F7DEE7 0%, #FBEFF2 60%, #FDF5F2 100%);
}
.home-hero.has-bg { background-size: cover; background-position: center; }
.home-hero-mask {
  position: absolute; inset: 0; pointer-events: none;
  background: rgba(255, 245, 248, 0.78);
  backdrop-filter: blur(1px);
}
.home-hero > * { position: relative; }
.hello-title { font-size: 20px; font-weight: 700; color: var(--plum); letter-spacing: 0.5px; }
.hello-date { font-size: 12px; color: var(--text-2); margin-top: 4px; }
.home-search {
  margin-top: 14px; height: 44px; background: rgba(255,255,255,0.92); border-radius: 22px;
  display: flex; align-items: center; gap: 8px; padding: 0 18px; cursor: pointer;
  box-shadow: var(--shadow);
}
.home-search-icon { font-size: 15px; }
.home-search-text { font-size: 13px; color: var(--text-2); }

/* 今日卡片 */
.today-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 14px 16px 4px; }
.today-item {
  background: #fff; border-radius: 16px; padding: 13px; box-shadow: var(--shadow);
  cursor: pointer; transition: transform 0.15s ease;
}
.today-item:active { transform: scale(0.97); }
.today-item-top { display: flex; justify-content: space-between; align-items: center; }
.today-item-ico { font-size: 22px; }
.chip {
  font-size: 10px; padding: 3px 9px; border-radius: 10px;
  background: #F4ECEE; color: var(--text-2);
}
.chip-good { background: #E7F3EC; color: var(--green); }
.chip-warn { background: #FBF0E0; color: var(--amber); }
.chip-danger { background: #FBE5E5; color: var(--red); }
.today-item-name { font-size: 13px; font-weight: 600; margin-top: 8px; color: var(--text); }
.today-item-line { font-size: 11px; color: var(--text-2); margin-top: 2px; }

/* 首页区块 */
.home-section-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 16px 10px;
}
.home-section-head .section-title { font-size: 15px; font-weight: 600; color: var(--plum); }
.home-more {
  background: none; border: none; color: var(--pink-deep); font-size: 12px; cursor: pointer;
}
.tool-grid-home { padding: 0 16px; }
.home-empty-tip {
  text-align: center; font-size: 12px; color: var(--text-2); padding: 10px 0 2px;
}
.home-cats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0 16px;
}
.home-cat {
  background: #fff; border-radius: 14px; padding: 13px 8px; text-align: center;
  box-shadow: var(--shadow); cursor: pointer;
}
.home-cat-icon { display: block; font-size: 22px; }
.home-cat-name { display: block; font-size: 11px; color: var(--text-2); margin-top: 5px; }

/* ── 我的页新增 ───────────────────────── */
.set-sub { font-size: 11px; color: var(--text-2); margin-left: auto; margin-right: 8px; }
.api-input {
  flex: 1; min-width: 0; height: 36px; border: 1px solid var(--line); border-radius: 10px;
  padding: 0 12px; font-size: 13px; outline: none; background: #fff; color: var(--text);
}
.api-input:focus { border-color: var(--pink); }
.card .btn-block { margin-top: 6px; }

/* 工具管理 sheet */
.sheet-title { font-size: 16px; font-weight: 700; color: var(--plum); padding: 6px 2px 12px; }
.tool-manage-list { max-height: 52vh; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.tool-manage-item {
  display: flex; align-items: center; gap: 12px; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; cursor: pointer;
}
.tool-manage-item.on { border-color: var(--pink); background: var(--pink-soft); }
.tm-icon { font-size: 22px; }
.tm-name { flex: 1; font-size: 14px; font-weight: 500; color: var(--text); }
.tm-check { font-size: 12px; color: var(--pink-deep); font-weight: 600; }
.sheet-btns { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }

/* 背景预览 */
.bg-preview {
  width: 100%; height: 160px; border-radius: 14px; border: 1px dashed var(--line);
  background-color: #F7E9EE; background-size: cover; background-position: center; margin-bottom: 12px;
}

/* 加载 */
.page-loading { display: flex; align-items: center; justify-content: center; padding: 60px 0; }
.spinner {
  width: 30px; height: 30px; border-radius: 50%;
  border: 3px solid var(--pink-soft); border-top-color: var(--pink);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== v7 数据型工具与新增组件样式 ===== */
.d-list { display:flex; flex-direction:column; gap:10px; margin:12px 0; }
.d-item { display:flex; align-items:center; gap:10px; background:#faf7f5; border:1px solid #f0e9e4; border-radius:12px; padding:10px 12px; }
.d-main { flex:1; min-width:0; }
.d-title { font-size:14px; font-weight:600; color:#3c2f2a; word-break:break-all; }
.d-sub { font-size:12px; color:#9b8d84; margin-top:2px; word-break:break-all; }
.d-del { flex:none; border:none; background:#fdecec; color:#e26d6d; font-size:12px; border-radius:8px; padding:5px 10px; cursor:pointer; }
.d-badge { flex:none; font-size:12px; padding:3px 8px; border-radius:20px; white-space:nowrap; }
.b-red { background:#fdecec; color:#d24545; }
.b-yellow { background:#fdf3e0; color:#c78a1e; }
.b-green { background:#e8f6ef; color:#2e9e6b; }
.b-gray { background:#eef0f2; color:#7d848c; }
.d-list-inline { display:flex; flex-wrap:wrap; gap:8px; }
.chip-sm { font-size:12px; background:#f3ede8; color:#7d6f66; border-radius:8px; padding:3px 8px; }
.code-pre { background:#2b2b2b; color:#e8e8e8; border-radius:10px; padding:12px; font-family:monospace; font-size:12px; white-space:pre-wrap; word-break:break-all; }
.file-input { display:block; width:100%; padding:14px; border:1.5px dashed #e5b8b0; border-radius:12px; background:#fffbf9; color:#b5716a; font-size:13px; cursor:pointer; margin:10px 0; }
.batch-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(90px,1fr)); gap:10px; margin:12px 0; }
.batch-cell { background:#fff; border:1px solid #f0e9e4; border-radius:10px; overflow:hidden; }
.batch-cell img { width:100%; display:block; }
.batch-name { font-size:10px; color:#9b8d84; padding:4px; text-align:center; word-break:break-all; }
.check-ok { background:#e8f6ef; color:#2e9e6b; border-radius:12px; padding:14px; font-size:14px; margin:12px 0; }
.txt-warn { color:#c78a1e; }
.txt-err { color:#d24545; }


/* ══════════ v8 新增样式 ══════════ */

/* 首页 · 快捷模块 */
.quick-row { display: flex; gap: 10px; padding: 14px 16px 2px; }
.quick-item { flex: 1; background: #fff; border-radius: 14px; padding: 12px 6px; text-align: center; box-shadow: 0 1px 6px rgba(190,120,140,.06); cursor: pointer; transition: transform .12s ease; }
.quick-item:active { transform: scale(.96); }
.quick-ico { display: block; font-size: 24px; }
.quick-name { display: block; font-size: 12px; color: #6d5a60; margin-top: 4px; font-weight: 600; }

/* 首页 · 推荐标题按钮 */
.tool-grid-home { padding: 0 16px; }

/* 我的 · 个人信息标签 */
.p-tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 18px 4px; }
.p-tag { font-size: 11px; background: #F6EBEF; color: #B0637F; padding: 4px 10px; border-radius: 12px; }
.p-tag.tag-hint { background: #EAF5EF; color: #2E9E6B; cursor: pointer; }
.p-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.arrow { color: #C9B6BD; font-size: 18px; }

/* 会员等级徽章 */
.lv-chip { font-size: 11px; padding: 3px 9px; border-radius: 12px; font-weight: 600; }
.lv-0 { background: #F0ECEA; color: #8A7E78; }
.lv-1 { background: #EAF3FD; color: #2E7DBE; }
.lv-2 { background: #F3E9FD; color: #7B3FB8; }
.lv-3 { background: #FFF3D6; color: #C78A1E; }

/* 会员卡片 */
.m-card { display: flex; align-items: center; gap: 12px; background: linear-gradient(135deg, #FBEFF3, #FFF7F2); border: 1px solid #F3DCE3; border-radius: 14px; padding: 14px; }
.m-lv { font-size: 30px; }
.m-info { flex: 1; }
.m-name { font-size: 15px; font-weight: 700; color: #4A363C; }
.m-desc { font-size: 12px; color: #9B8D84; margin-top: 2px; }
.m-price { font-size: 13px; font-weight: 700; color: #D2456E; }

/* 会员等级弹窗 */
.m-levels { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.m-tier { border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 12px; text-align: center; background: #fff; }
.m-tier.on { border-color: var(--pink-deep); background: #FEF6F8; }
.m-tier-icon { font-size: 28px; }
.m-tier-name { font-size: 14px; font-weight: 700; margin-top: 4px; }
.m-tier-price { font-size: 13px; color: #D2456E; font-weight: 700; margin-top: 2px; }
.m-tier-desc { font-size: 11px; color: #9B8D84; margin-top: 4px; line-height: 1.5; }
.m-tier-cur { font-size: 11px; color: #2E9E6B; margin-top: 6px; }

/* 工具页 · 添加到首页按钮 */
.tool-addhome { flex: none; border: 1.5px solid #E7D3DA; background: #fff; color: #B0637F; font-size: 12px; border-radius: 18px; padding: 6px 12px; cursor: pointer; white-space: nowrap; }
.tool-addhome.on { border-color: #2E9E6B; background: #EAF5EF; color: #2E9E6B; }

/* 跳转工具页 */
.jump-page { text-align: center; padding: 30px 16px; }
.jump-hero { font-size: 56px; margin: 10px 0 6px; }
.jump-name { font-size: 22px; font-weight: 800; color: #3D2E33; }
.jump-desc { font-size: 13px; color: #9B8D84; margin-top: 6px; }
.jump-intro { margin: 18px 0; text-align: left; font-size: 13px; line-height: 1.8; color: #6D5A60; }
.jump-page .btn { margin-top: 8px; }

/* 数据型工具操作区 */
.d-actions { display: flex; gap: 6px; margin-left: auto; }
.d-actions button { flex: none; border: none; background: #F6EBEF; color: #B0637F; font-size: 11px; border-radius: 8px; padding: 4px 8px; cursor: pointer; }

/* 常用页 */
.common-hero { background: linear-gradient(135deg, #F7DEE7, #FBEFF2); border-radius: 16px; margin: 14px 16px 4px; padding: 18px 16px; }
.common-hero-title { font-size: 18px; font-weight: 800; color: #4A363C; }
.common-hero-sub { font-size: 12px; color: #9B8D84; margin-top: 4px; }
#goTools { margin: 14px 16px 20px; width: calc(100% - 32px); }

/* 画像弹窗 */
.profile-form { display: flex; flex-direction: column; gap: 12px; }
.pf-label { font-size: 13px; font-weight: 600; color: #4A363C; }
.pf-input { border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 14px; background: #FCFAF9; outline: none; }
.pf-options { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-opt { font-size: 12px; padding: 7px 13px; border-radius: 12px; background: #F5EEEE; color: #6D5A60; cursor: pointer; transition: all .12s ease; }
.pf-opt.on { background: var(--pink-soft); color: var(--pink-deep); font-weight: 600; }
.pf-multi .pf-opt.on { background: #EAF5EF; color: #2E9E6B; }

/* 关于/协议页 */
.page-title-bar { display: flex; align-items: center; gap: 10px; padding: 14px 16px 4px; }
.icon-back { background: none; border: none; font-size: 20px; color: #B0637F; cursor: pointer; padding: 0; }
.page-title-text { font-size: 17px; font-weight: 700; color: #3D2E33; }
.doc-card { padding: 18px 16px; line-height: 1.8; font-size: 13px; color: #5C4B50; }
.about-hero { font-size: 52px; text-align: center; margin: 8px 0 4px; }
.about-name-lg { font-size: 22px; font-weight: 800; text-align: center; color: #3D2E33; }
.about-slogan { font-size: 13px; text-align: center; color: #D2456E; margin: 4px 0 16px; }
.about-sec { margin-bottom: 16px; }
.about-h { font-size: 14px; font-weight: 700; color: #4A363C; margin-bottom: 6px; }
.about-sec p { margin: 0; color: #6D5A60; }
.about-ver { text-align: center; font-size: 12px; color: #B8A8AD; margin-top: 8px; }

/* 植物养护等细分工具结果 */
.plant-box { text-align: center; }
.plant-title { font-size: 15px; font-weight: 700; color: #3D2E33; margin-bottom: 10px; }

/* 工具分类筛选项（tooltabs） */
.toolbox-cats { display: flex; gap: 8px; padding: 10px 16px; overflow-x: auto; }
.toolbox-cat { flex: none; font-size: 12px; padding: 7px 14px; border-radius: 16px; background: #F5EEEE; color: #6D5A60; cursor: pointer; }
.toolbox-cat.on { background: var(--pink-soft); color: var(--pink-deep); font-weight: 600; }
.toolbox-search { padding: 12px 16px 0; }
.tool-search-input { width: 100%; box-sizing: border-box; border: 1.5px solid var(--line); border-radius: 22px; padding: 11px 16px; font-size: 14px; background: #FCFAF9; outline: none; }

/* ═══════════ v11 智能升级 ═══════════ */
/* 输入框加大 · 年长用户友好 */
.tool-input{font-size:17px;padding:14px 16px;border-radius:12px;border:1.5px solid #e8dce6;background:#fff;transition:border-color .2s}
.tool-input:focus{border-color:#f08ab8;outline:none;box-shadow:0 0 0 3px rgba(240,138,184,.12)}
.tool-textarea{min-height:88px;line-height:1.6}
.tool-field-label{font-size:14px;font-weight:600;color:#5b4a52;margin-bottom:8px}
.tool-field{margin-bottom:16px}
.btn-submit{font-size:17px;padding:15px;border-radius:14px;background:linear-gradient(135deg,#f78fb8,#f08ab8);box-shadow:0 6px 18px rgba(240,138,184,.32)}
.btn-submit:hover{opacity:.94}
/* 语音按钮 */
.tool-input-wrap{position:relative;display:flex;align-items:center}
.tool-input-wrap .tool-input{flex:1;padding-right:52px}
.tool-search-wrap{position:relative;display:flex;align-items:center}
.voice-btn{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:36px;height:36px;border-radius:50%;border:none;background:#fff0f6;color:#e06a9a;cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 6px rgba(240,138,184,.25);z-index:3;transition:background .2s,color .2s}
.voice-btn:hover{background:#ffe3ee}
.voice-btn svg{position:absolute;transition:opacity .2s,transform .2s}
.voice-btn .voice-wave{display:none;align-items:center;gap:2px}
.voice-btn .voice-wave i{width:3px;height:8px;border-radius:2px;background:#fff;animation:wave 1s ease-in-out infinite}
.voice-btn .voice-wave i:nth-child(2){animation-delay:.15s}
.voice-btn .voice-wave i:nth-child(3){animation-delay:.3s}
.voice-btn .voice-wave i:nth-child(4){animation-delay:.45s}
.voice-btn.listening{background:#e0556e;color:#fff;animation:pulse 1s infinite}
.voice-btn.listening svg{opacity:0;transform:scale(.4)}
.voice-btn.listening .voice-wave{display:flex}
@keyframes wave{0%,100%{height:8px}50%{height:16px}}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(224,85,110,.5)}70%{box-shadow:0 0 0 12px rgba(224,85,110,0)}100%{box-shadow:0 0 0 0 rgba(224,85,110,0)}}
/* 首页搜索下拉 */
.home-search{position:relative}
.home-search-input{width:100%;border:none;background:transparent;outline:none;font-size:15px;color:#5b4a52;padding:0 8px}
.home-search-drop{position:absolute;left:0;right:0;top:calc(100% + 8px);background:#fff;border-radius:14px;box-shadow:0 12px 32px rgba(91,74,82,.16);z-index:50;overflow:hidden;border:1px solid #f3e5ee}
.hsd-item{display:flex;align-items:center;gap:10px;padding:12px 14px;border-bottom:1px solid #faf0f6;cursor:pointer}
.hsd-item:hover{background:#fff7fb}
.hsd-icon{font-size:20px}
.hsd-name{font-size:15px;font-weight:600;color:#3d2c34}
.hsd-desc{font-size:12px;color:#9a8b92;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:220px}
.hsd-go{color:#f08ab8;font-size:18px}
.hsd-empty,.hsd-more{padding:12px 14px;font-size:13px;color:#b096a2;text-align:center;cursor:pointer}
.hsd-more{color:#f08ab8;font-weight:600}
/* 智能数据工具列表 */
.smart-list .d-item{align-items:flex-start;padding:14px 14px}
.smart-item .d-meta{font-size:12px;color:#b3a4aa;margin-top:4px}
.smart-ops{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.s-op{font-size:12px;padding:5px 10px;border-radius:999px;border:1px solid #f0d9e6;background:#fff7fb;color:#c2648f;cursor:pointer}
.s-op:hover{background:#fbe3ee}
.s-op.s-del{color:#e0597a;border-color:#f5c9d6}
.smart-edit{background:#fffafc;border:1px dashed #f0b8d2;border-radius:12px;padding:12px;margin-top:8px;display:flex;flex-direction:column;gap:8px}
.smart-edit .tool-input{font-size:15px;padding:11px 12px}
.smart-edit-ops{display:flex;gap:10px;justify-content:flex-end}
.s-save{background:#f08ab8;color:#fff;border:none}
.se-time{display:flex;gap:8px}
.se-time .tool-input{flex:1}
/* 历史版本 */
.hist-item{background:#fff7fb;border:1px solid #f5dfeb;border-radius:12px;padding:12px;margin-bottom:10px}
.hist-time{font-size:12px;color:#b09aa5}
.hist-title{font-size:15px;font-weight:600;color:#3d2c34;margin:4px 0}
.hist-body{font-size:13px;color:#6b5660;margin-bottom:8px;word-break:break-all}
.sheet-title{font-size:17px;font-weight:700;color:#3d2c34;margin-bottom:12px;text-align:center}
/* 水印相机 */
.wm-box{padding:4px 0}
.wm-tip{font-size:13px;color:#b09aa5;text-align:center;margin:10px 0 16px}
.wm-preview{width:100%;border-radius:16px;box-shadow:0 8px 24px rgba(91,74,82,.15);display:block}
.wm-canvas-wrap{margin:14px 0}
.wm-actions .btn{margin-bottom:10px}
.acc-mask{letter-spacing:2px;color:#c2648f}

/* 设置分组 */
.set-group{margin:6px -4px 2px;padding:10px 4px 2px;border-top:1px dashed #f2e4ee}
.set-group-title{font-size:13px;font-weight:700;color:#c2648f}
