/* ==========================================================================
   家庭计划 · 小红书小工具
   基线：Chrome 61 / Android 8.1（不使用 flex gap、inset、clamp、dvh 等新能力）
   ========================================================================== */

:root {
  --bg: #f8f5f0;
  --card: #ffffff;
  --ink: #2d2a25;
  --ink2: #7a736a;
  --ink3: #b0a89c;
  --brand: #d9764b;
  --brand-deep: #c4633c;
  --brand-soft: #fbede4;
  --green: #4c7c63;
  --green-soft: #e7f0e9;
  --amber: #c68a2e;
  --amber-soft: #faefd9;
  --red: #c25643;
  --red-soft: #f9e5df;
  --line: #eee8de;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
}

button {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  line-height: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}

input {
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}

i,
em,
b {
  font-style: normal;
  font-weight: inherit;
}

p {
  margin: 0;
}

[hidden] {
  display: none !important;
}

/* ---------- 骨架 ---------- */

.app {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 100%;
  margin: 0 auto;
  overflow: hidden;
}

.view {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: none;
}

.view.is-active {
  display: block;
}

.scroll {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  padding-top: 0;
  padding-top: var(--safe-area-inset-top, env(safe-area-inset-top, 0px));
}

.pad {
  position: relative;
  min-height: 100%;
  /* 底部 160 = 声明距底 96 + 声明自身高度 + 与正文的间隔；
     96 已大于导航栏占位（7 + 59），下拉到底时声明正好露在导航上方 */
  padding: 10px 18px 160px;
}

/* ---------- 页脚（版权 / 备案） ---------- */

.site-foot {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 96px;
  bottom: calc(96px + var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)));
  text-align: center;
  font-size: 10px;
  line-height: 1.5;
  color: #8f8779;
  letter-spacing: 0.2px;
  -webkit-user-select: text;
  user-select: text;
}

.site-foot p {
  margin: 0;
  white-space: nowrap;
}

.site-foot a {
  color: #8f8779;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.site-foot a:active {
  color: var(--brand);
}

/* ---------- 通用 ---------- */

.card {
  background: var(--card);
  border-radius: 16px;
  border: 1px solid rgba(45, 42, 37, 0.045);
  box-shadow: 0 7px 19px rgba(126, 100, 74, 0.06);
  padding: 15px;
  margin-bottom: 12px;
}

.page-head {
  padding: 8px 4px 16px;
}

.page-title {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.25;
  color: var(--ink);
}

.page-sub {
  margin-top: 4px;
  font-size: 11.5px;
  color: #8f8779;
  letter-spacing: 0.25px;
}

.sec {
  margin-top: 20px;
}

.sec-head {
  display: flex;
  align-items: center;
  padding: 0 4px 9px;
}

.sec-dot {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px rgba(217, 118, 75, 0.12);
  margin-right: 7px;
  -ms-flex-negative: 0;
  flex-shrink: 0;
}

.sec-dot.green {
  background: #4c7c63;
  box-shadow: 0 0 0 3px rgba(76, 124, 99, 0.12);
}

.sec-dot.gray {
  background: #c3baad;
  box-shadow: 0 0 0 3px rgba(195, 186, 173, 0.14);
}

.sec-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--ink);
}

.sec-count {
  margin-left: auto;
  font-size: 11px;
  color: var(--ink3);
}

.sec-link {
  margin-left: auto;
  font-size: 11px;
  color: var(--brand);
}

.list {
  padding: 2px 15px;
}

.row {
  display: flex;
  align-items: center;
  padding: 13px 0;
}

.row + .row {
  border-top: 1px solid var(--line);
}

.row-main {
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  min-width: 0;
}

.row-text {
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--ink);
  word-break: break-all;
  word-wrap: break-word;
}

.row-meta {
  margin-top: 4px;
}

.row-del {
  -ms-flex: 0 0 auto;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  margin-left: 3px;
  font-size: 19px;
  line-height: 26px;
  text-align: center;
  color: #cdc5b8;
  border-radius: 50%;
}

.row-del:active {
  background: #f4f0e9;
}

.tick {
  -ms-flex: 0 0 auto;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-right: 11px;
  border: 1px solid #dcd4c8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, border-color 0.18s;
}

.tick-mark {
  display: block;
  width: 8.5px;
  height: 4.5px;
  border-left: 1.5px solid #fff;
  border-bottom: 1.5px solid #fff;
  transform: rotate(-45deg) translate(0.5px, -1px);
  opacity: 0;
}

.tick.is-on {
  background: var(--green);
  border-color: var(--green);
}

.tick.is-on .tick-mark {
  opacity: 1;
}

.row.is-done .row-text {
  color: #a8a094;
  text-decoration: line-through;
}

.tag {
  display: inline-block;
  padding: 1.5px 7px;
  border-radius: 999px;
  font-size: 10px;
  line-height: 1.6;
  margin-right: 5px;
}

.tag-gray {
  background: #f4f0e9;
  color: #9b9387;
}

.tag-brand {
  background: var(--brand-soft);
  color: var(--brand-deep);
}

.tag-amber {
  background: var(--amber-soft);
  color: var(--amber);
}

.tag-red {
  background: var(--red-soft);
  color: var(--red);
}

/* 输入 */
.field {
  display: flex;
  align-items: center;
  height: 42px;
  padding: 0 12px;
  border-radius: 11px;
  background: #faf7f2;
  border: 1px solid #efe9df;
}

.field-input {
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  min-width: 0;
  height: 40px;
  font-size: 14px;
  color: var(--ink);
  -webkit-user-select: text;
  user-select: text;
}

.field-input::-webkit-input-placeholder {
  color: #b9b1a5;
}

/* 按钮 */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-align: center;
}

.btn:active {
  opacity: 0.82;
}

.btn-primary {
  background: linear-gradient(135deg, #e28d60 0%, #cf6a3f 100%);
  color: #fff;
  box-shadow: 0 5px 11px rgba(207, 106, 63, 0.24);
}

.btn-ghost {
  background: rgba(217, 118, 75, 0.1);
  color: var(--brand-deep);
}

.btn-sm {
  height: 32px;
  padding: 0 14px;
  font-size: 12.5px;
}

/* 空态 */
.empty {
  padding: 28px 20px 26px;
  text-align: center;
}

.empty-ico {
  position: relative;
  display: block;
  width: 46px;
  height: 46px;
  margin: 0 auto 11px;
  border-radius: 15px;
  border: 1.5px dashed #e3dbce;
  background: #fcfaf6;
}

.empty-ico::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 15px;
  height: 1.5px;
  margin: -1px 0 0 -7.5px;
  border-radius: 2px;
  background: #ddd4c5;
}

.empty-title {
  font-size: 13.5px;
  color: #8f8779;
}

.empty-sub {
  margin-top: 5px;
  font-size: 11px;
  color: #b8b0a3;
  line-height: 1.6;
}

.foot-note {
  margin-top: 22px;
  text-align: center;
  font-size: 10px;
  color: #c2baad;
  letter-spacing: 0.5px;
}

/* ---------- 今日 ---------- */

.hero {
  position: relative;
  overflow: hidden;
  margin-top: 6px;
  padding: 21px 19px 18px;
  border-radius: 20px;
  background: linear-gradient(152deg, #3c4c41 0%, #2a352e 55%, #222a25 100%);
  box-shadow: 0 10px 23px rgba(34, 42, 37, 0.24);
}

.hero::after {
  content: "";
  position: absolute;
  right: -45px;
  top: -60px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 141, 96, 0.5) 0%, rgba(224, 141, 96, 0) 68%);
}

.hero::before {
  content: "";
  position: absolute;
  left: -40px;
  bottom: -70px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(120, 175, 148, 0.28) 0%, rgba(120, 175, 148, 0) 70%);
}

.hero-date,
.hero-hello,
.hero-tip,
.hero-bar,
.hero-foot {
  position: relative;
  z-index: 1;
}

.hero-date {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.62);
  letter-spacing: 1px;
}

.hero-hello {
  margin-top: 7px;
  font-size: 26px;
  font-weight: 700;
  color: #fdfaf5;
  letter-spacing: 1.5px;
  line-height: 1.2;
}

.hero-tip {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.64);
}

.hero-bar {
  margin-top: 19px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
}

.hero-bar-in {
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #f3b78c 0%, #e08153 100%);
  transition: width 0.35s ease;
}

.hero-foot {
  margin-top: 9px;
  display: flex;
  align-items: baseline;
}

.hero-num {
  font-size: 17px;
  font-weight: 600;
  color: #fff;
}

.hero-num-sub {
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
}

.hero-label {
  margin-left: auto;
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 1px;
}

.remind {
  display: flex;
  align-items: center;
  margin-top: 12px;
  padding: 13px 14px;
  border-radius: 15px;
  background: linear-gradient(120deg, #fdf1e7 0%, #fbe8db 100%);
  border: 1px solid rgba(217, 118, 75, 0.16);
}

.remind.is-late {
  background: linear-gradient(120deg, #fbeae6 0%, #f9e1dc 100%);
  border-color: rgba(194, 86, 67, 0.18);
}

.remind-ico {
  position: relative;
  -ms-flex: 0 0 auto;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  margin-right: 11px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 8px rgba(217, 118, 75, 0.16);
}

.ri-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border: 1.5px solid #d9764b;
  border-radius: 50%;
}

.ri-hand {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1.5px;
  height: 4.5px;
  margin: -4.5px 0 0 -0.75px;
  background: #d9764b;
  border-radius: 1px;
}

.remind.is-late .ri-ring {
  border-color: #c25643;
}

.remind.is-late .ri-hand {
  background: #c25643;
}

.remind-main {
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  min-width: 0;
}

.remind-top {
  display: flex;
  align-items: baseline;
}

.remind-time {
  font-size: 13px;
  font-weight: 600;
  color: #a8532f;
  letter-spacing: 0.5px;
}

.remind-note {
  margin-left: 6px;
  font-size: 10px;
  color: #c08a6c;
}

.remind.is-late .remind-time {
  color: #a8493a;
}

.remind.is-late .remind-note {
  color: #c28479;
}

.remind-text {
  display: block;
  margin-top: 2px;
  font-size: 13.5px;
  color: #5a4a3f;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.remind-btn {
  -ms-flex: 0 0 auto;
  flex: 0 0 auto;
  margin-left: 8px;
  height: 29px;
  padding: 0 12px;
  line-height: 29px;
  border-radius: 999px;
  background: #fff;
  color: #c4633c;
  font-size: 11.5px;
  text-align: center;
  box-shadow: 0 3px 7px rgba(196, 99, 60, 0.12);
}

.quick {
  margin-top: 12px;
  padding: 15px 14px 13px;
}

.quick-head {
  display: flex;
  align-items: baseline;
  margin-bottom: 10px;
}

.quick-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.quick-hint {
  margin-left: auto;
  font-size: 10px;
  color: #b8b0a3;
}

.time-wrap {
  position: relative;
  display: flex;
  align-items: center;
  -ms-flex: 0 0 auto;
  flex: 0 0 auto;
  height: 27px;
  padding: 0 8px 0 9px;
  margin-left: 8px;
  border-radius: 999px;
  background: #f2ede5;
}

.time-wrap.has-value {
  background: var(--brand-soft);
}

.clock-ico {
  position: relative;
  display: block;
  width: 11px;
  height: 11px;
  border: 1px solid #9b9387;
  border-radius: 50%;
  margin-right: 4px;
  -ms-flex-negative: 0;
  flex-shrink: 0;
}

.time-wrap.has-value .clock-ico {
  border-color: var(--brand-deep);
}

.cc-hand {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1px;
  height: 3.5px;
  margin: -3.5px 0 0 -0.5px;
  background: #9b9387;
}

.time-wrap.has-value .cc-hand {
  background: var(--brand-deep);
}

.time-input {
  width: 24px;
  height: 27px;
  font-size: 11.5px;
  color: #9b9387;
  text-align: left;
}

.time-wrap.has-value .time-input {
  width: 62px;
  color: var(--brand-deep);
}

/* 空值时不显示原生 "--:--" 占位，用 .time-ph 文案代替 */
.time-input.is-empty {
  color: transparent;
}

.time-input::-webkit-calendar-picker-indicator {
  display: none;
}

.time-ph {
  position: absolute;
  left: 24px;
  top: 0;
  height: 27px;
  line-height: 27px;
  font-size: 11.5px;
  color: #9b9387;
  white-space: nowrap;
  pointer-events: none;
}

.time-wrap.has-value .time-ph {
  display: none;
}

.quick-foot {
  display: flex;
  align-items: center;
  margin-top: 11px;
}

.quick-foot .btn {
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
}

.quick-foot .btn + .btn {
  margin-left: 8px;
}

.carry {
  display: flex;
  align-items: center;
  margin-top: 11px;
  padding: 11px 14px;
  border-radius: 13px;
  border: 1px dashed #ddd3c4;
  background: rgba(255, 255, 255, 0.5);
}

.carry-dot {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c68a2e;
  margin-right: 8px;
  -ms-flex-negative: 0;
  flex-shrink: 0;
}

.carry-text {
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  font-size: 12px;
  color: #8b8173;
}

.carry-btn {
  font-size: 12px;
  color: #c68a2e;
  font-weight: 500;
}

/* 想法 */
.idea {
  display: flex;
  align-items: center;
  padding: 12px 0;
}

.idea + .idea {
  border-top: 1px solid var(--line);
}

.idea-bar {
  -ms-flex: 0 0 auto;
  flex: 0 0 auto;
  display: block;
  width: 3px;
  height: 16px;
  border-radius: 2px;
  margin-right: 10px;
  background: linear-gradient(180deg, #b7cfc0 0%, #4c7c63 100%);
}

.idea-text {
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13.5px;
  color: #5f574c;
  line-height: 1.45;
  word-break: break-all;
}

.idea-act {
  -ms-flex: 0 0 auto;
  flex: 0 0 auto;
  margin-left: 7px;
  height: 25px;
  padding: 0 10px;
  line-height: 25px;
  border-radius: 999px;
  background: #f3f7f4;
  color: #4c7c63;
  font-size: 11px;
  text-align: center;
}

.idea-del {
  -ms-flex: 0 0 auto;
  flex: 0 0 auto;
  width: 24px;
  height: 25px;
  line-height: 24px;
  text-align: center;
  font-size: 17px;
  color: #cdc5b8;
}

/* ---------- 要买什么 ---------- */

.add-card {
  padding: 13px;
}

.add-row {
  display: flex;
  align-items: center;
  margin-top: 9px;
}

.mini-field {
  display: flex;
  align-items: center;
  height: 36px;
  padding: 0 10px;
  border-radius: 10px;
  background: #faf7f2;
  border: 1px solid #efe9df;
}

.mini-field.grow {
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  min-width: 0;
  margin-right: 8px;
}

.mini-field.unit {
  width: 56px;
  margin-right: 7px;
  -ms-flex: 0 0 auto;
  flex: 0 0 auto;
}

.mini-input {
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  height: 34px;
  font-size: 12.5px;
  color: var(--ink);
  -webkit-user-select: text;
  user-select: text;
}

.mini-input::-webkit-input-placeholder {
  color: #b9b1a5;
}

/* 数量 / 单位框内容居中，视觉更整齐 */
.mini-field.unit .mini-input {
  text-align: center;
}

/* ---------- 家里有啥 ---------- */

.tip-bar {
  display: flex;
  align-items: center;
  margin-bottom: 11px;
  padding: 11px 13px;
  border-radius: 13px;
  background: linear-gradient(120deg, #fdf1e7 0%, #fbe9dd 100%);
  border: 1px solid rgba(217, 118, 75, 0.14);
}

.tip-dot {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d9764b;
  margin-right: 8px;
  box-shadow: 0 0 0 3px rgba(217, 118, 75, 0.14);
  -ms-flex-negative: 0;
  flex-shrink: 0;
}

.tip-text {
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  font-size: 12px;
  color: #a8613f;
}

.tip-go {
  font-size: 11.5px;
  color: #c4633c;
  font-weight: 500;
}

.expire-chip {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 11px;
  border-radius: 10px;
  background: #faf7f2;
  border: 1px dashed #e2d9cb;
  overflow: hidden;
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  min-width: 0;
}

.expire-chip.has-value {
  background: var(--brand-soft);
  border: 1px solid rgba(217, 118, 75, 0.3);
}

.expire-label {
  font-size: 12px;
  color: #ada496;
  white-space: nowrap;
}

.expire-chip.has-value .expire-label {
  color: var(--brand-deep);
}

.expire-input {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  font-size: 12px;
}

.expire-clear {
  width: 22px;
  height: 22px;
  line-height: 20px;
  text-align: center;
  font-size: 16px;
  color: #c8bfb2;
  margin-left: 4px;
  -ms-flex: 0 0 auto;
  flex: 0 0 auto;
}

.add-foot {
  display: flex;
  align-items: center;
  margin-top: 11px;
}

.add-hint {
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  font-size: 10px;
  color: #b4ac9f;
  padding-right: 8px;
}

.stepper {
  -ms-flex: 0 0 auto;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  margin-left: 6px;
}

.step {
  width: 28px;
  height: 28px;
  line-height: 26px;
  text-align: center;
  border-radius: 50%;
  background: #f5f1ea;
  color: #7a736a;
  font-size: 16px;
  -ms-flex: 0 0 auto;
  flex: 0 0 auto;
}

.step:active {
  background: #ece6dc;
}

.step-num {
  min-width: 46px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.step-unit {
  font-size: 9.5px;
  font-weight: 400;
  color: #a8a094;
  margin-left: 1.5px;
}

.stock-row.is-empty .row-text {
  color: #b7afa3;
  text-decoration: line-through;
}

.more-btn {
  -ms-flex: 0 0 auto;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  line-height: 22px;
  text-align: center;
  font-size: 15px;
  color: #cbc3b6;
  letter-spacing: 1px;
}

/* ---------- 快过期了 ---------- */

.summary {
  display: flex;
  align-items: center;
  padding: 17px 0 15px;
  border-radius: 17px;
  background: #fff;
  border: 1px solid rgba(45, 42, 37, 0.045);
  box-shadow: 0 7px 19px rgba(126, 100, 74, 0.06);
}

.sm-item {
  -ms-flex: 1 1 0%;
  flex: 1 1 0%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sm-num {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
}

.sm-num.red {
  color: var(--red);
}

.sm-num.amber {
  color: var(--amber);
}

.sm-num.green {
  color: var(--green);
}

.sm-label {
  margin-top: 4px;
  font-size: 10.5px;
  color: #a49b8e;
  letter-spacing: 0.5px;
}

.sm-line {
  display: block;
  width: 1px;
  height: 26px;
  background: var(--line);
}

.group {
  margin-top: 18px;
}

.exp-row {
  padding: 12px 0;
}

.exp-badge {
  -ms-flex: 0 0 auto;
  flex: 0 0 auto;
  width: 37px;
  height: 37px;
  margin-right: 11px;
  border-radius: 50%;
  text-align: center;
  line-height: 37px;
  font-size: 14px;
  font-weight: 700;
}

.exp-badge.red {
  background: var(--red-soft);
  color: var(--red);
}

.exp-badge.amber {
  background: var(--amber-soft);
  color: var(--amber);
}

.exp-badge.gray {
  background: #f3efe8;
  color: #9b9387;
}

.exp-badge.is-long {
  font-size: 11px;
  letter-spacing: -0.5px;
}

.exp-detail {
  font-size: 11px;
  color: #928a7d;
}

.empty-btn {
  width: 150px;
  margin: 0 auto 15px;
}

/* ---------- 底部导航 ---------- */

.dock {
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 7px;
  bottom: calc(7px + var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)));
  z-index: 20;
  display: flex;
  height: 59px;
  border-radius: 19px;
  background: #fff;
  border: 1px solid rgba(45, 42, 37, 0.05);
  box-shadow: 0 7px 22px rgba(74, 58, 42, 0.16);
}

.tab {
  position: relative;
  -ms-flex: 1 1 0%;
  flex: 1 1 0%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 4.5px 3px;
  border-radius: 15px;
  color: #b3aa9d;
  transition: color 0.18s, background 0.18s;
}

.tab.is-active {
  color: var(--brand);
  background: #fbece2;
}

.tab:active {
  opacity: 0.7;
}

.ico-wrap {
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ico {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
}

.tab-text {
  margin-top: 2px;
  font-size: 10px;
  letter-spacing: 0.25px;
  white-space: nowrap;
}

.s-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: currentColor;
}

.s-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 17px;
  height: 17px;
  margin: -8.5px 0 0 -8.5px;
  border-radius: 50%;
  border: 1px solid currentColor;
  opacity: 0.38;
}

.b-body {
  position: absolute;
  left: 50%;
  bottom: 1px;
  width: 15px;
  height: 12.5px;
  margin-left: -7.5px;
  border: 1.25px solid currentColor;
  border-radius: 2px 2px 4.5px 4.5px;
}

.b-handle {
  position: absolute;
  left: 50%;
  top: 2px;
  width: 7.5px;
  height: 5px;
  margin-left: -3.75px;
  border: 1.25px solid currentColor;
  border-bottom: none;
  border-radius: 4.5px 4.5px 0 0;
}

.x-body {
  position: absolute;
  left: 50%;
  top: 3.5px;
  width: 15px;
  height: 13px;
  margin-left: -7.5px;
  border: 1.25px solid currentColor;
  border-radius: 3px;
}

.x-line {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 15px;
  height: 1.25px;
  margin-left: -7.5px;
  background: currentColor;
  opacity: 0.75;
}

.c-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 1.25px solid currentColor;
  border-radius: 50%;
}

.c-hand {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1.25px;
  height: 5px;
  margin: -5px 0 0 -0.5px;
  background: currentColor;
  border-radius: 1px;
}

.c-hand::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 4.5px;
  height: 1.25px;
  background: currentColor;
  border-radius: 1px;
}

.badge {
  position: absolute;
  top: 3px;
  left: 50%;
  margin-left: 10px;
  min-width: 15px;
  height: 15px;
  padding: 0 3.5px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 9.5px;
  line-height: 15px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(217, 118, 75, 0.35);
}

/* ---------- 轻提示 ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 110px;
  z-index: 60;
  transform: translateX(-50%) translateY(6px);
  max-width: 240px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(45, 42, 37, 0.9);
  color: #fff;
  font-size: 12.5px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}

.toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- 遮罩 / 操作面板 ---------- */

.mask {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 70;
  background: rgba(30, 26, 22, 0.42);
  opacity: 0;
  transition: opacity 0.2s;
}

.mask.is-show {
  opacity: 1;
}

.sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  padding: 18px 18px 0;
  padding-bottom: 0;
  padding-bottom: var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px));
  border-radius: 20px 20px 0 0;
  background: #fff;
  transform: translateY(100%);
  transition: transform 0.24s ease;
  max-width: 480px;
  margin: 0 auto;
}

.sheet.is-show {
  transform: translateY(0);
}

.sheet-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
}

.sheet-desc {
  margin-top: 6px;
  font-size: 12px;
  color: #8f8779;
  text-align: center;
  line-height: 1.6;
}

.sheet-body {
  padding: 14px 0 16px;
}

.sheet-item {
  display: block;
  width: 100%;
  height: 46px;
  line-height: 46px;
  text-align: center;
  font-size: 14px;
  color: var(--ink);
  border-radius: 12px;
  background: #faf7f2;
  margin-bottom: 8px;
}

.sheet-item:active {
  background: #f2ede5;
}

.sheet-item.is-danger {
  color: var(--red);
  background: var(--red-soft);
}

.sheet-item.is-primary {
  color: var(--brand-deep);
  background: var(--brand-soft);
  font-weight: 500;
}

.sheet-item.is-cancel {
  margin-top: 4px;
  margin-bottom: 8px;
  background: #f4f0e9;
  color: #7a736a;
}

@media (hover: hover) {
  .row-del:hover {
    background: #f4f0e9;
  }
  .step:hover {
    background: #ece6dc;
  }
}
