/* ==========================================================
   我的专属小商店 · App 版
   版式参考：顶部粉栏 + 左侧竖导航 + 卡片流 + 底部 tab + 悬浮加号
   ========================================================== */

:root {
  --pink-50: #FFF7FA;
  --pink-100: #FFF0F5;
  --pink-200: #FFDCE9;
  --pink-300: #FFC2D8;
  --pink-400: #FF9CBF;
  --pink-500: #F76C9E;
  --pink-600: #E8508A;

  --text-1: #5B4650;
  --text-2: #967E88;
  --text-3: #BCA6B0;

  --card-bg: rgba(255, 255, 255, 0.88);
  --radius-lg: 20px;
  --radius-md: 14px;

  --shadow-card: 0 6px 20px rgba(240, 140, 180, 0.12);
  --shadow-pop: 0 10px 26px rgba(247, 108, 158, 0.32);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", sans-serif;
  color: var(--text-1);
  font-size: 13px;
  line-height: 1.5;
  background: #FBE4EF;
  background-image:
    radial-gradient(circle at 88% 4%, #FFD3E5 0%, transparent 40%),
    radial-gradient(circle at 6% 90%, #EFD8F4 0%, transparent 42%),
    linear-gradient(170deg, #FFF6FA 0%, #FCE6F0 55%, #F8DCEC 100%);
  display: block;
  -webkit-font-smoothing: antialiased;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

input {
  font-family: inherit;
  border: none;
  outline: none;
  background: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ================= App 容器 ================= */
.app {
  position: relative;
  width: 100%;
  max-width: 430px;
  min-width: 0;
  margin: 0 auto;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: linear-gradient(170deg, #FFF7FA 0%, #FCE8F1 58%, #F8DEED 100%);
}

@media (min-width: 480px) {
  .app {
    box-shadow: 0 24px 70px rgba(214, 120, 160, 0.22);
  }
}

/* ================= 顶栏 ================= */
.topbar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  padding-top: env(safe-area-inset-top);
  height: calc(56px + env(safe-area-inset-top));
  background: linear-gradient(180deg, #FFE4EF 0%, #FFD9E8 100%);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.95);
  position: relative;
  z-index: 20;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.brand-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  box-shadow: 0 3px 10px rgba(240, 140, 180, 0.22);
}

.brand-title {
  flex: 1;
  min-width: 0;
  font-size: 18px;
  font-weight: 800;
  color: #F05C92;
  letter-spacing: 0.6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-date {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 11px;
  font-weight: 600;
  color: #E8508A;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(240, 140, 180, 0.14);
}

.topbar-date .apple {
  font-size: 11px;
}

/* ================= 主体 ================= */
.app-body {
  flex: 1;
  min-height: 0;
  display: flex;
  overflow: hidden;
}

/* ================= 左侧竖导航 ================= */
.rail {
  width: 70px;
  flex-shrink: 0;
  padding: 10px 6px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  overflow-y: auto;
  overflow-x: hidden;
}

.rail::-webkit-scrollbar {
  display: none;
}

.rail-logo {
  font-size: 24px;
  line-height: 1;
  margin-bottom: 8px;
  opacity: 0.9;
}

.rail-item {
  position: relative;
  width: 100%;
  padding: 8px 0 7px;
  border-radius: 16px;
  border: 1.5px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.rail-item:active {
  transform: scale(0.94);
}

.rail-item.active {
  background: #FFFFFF;
  border-color: #FFD3E3;
  box-shadow: 0 5px 14px rgba(255, 150, 185, 0.2);
}

.rail-emoji {
  font-size: 21px;
  line-height: 1;
  opacity: 0.78;
  transition: opacity 0.2s ease;
}

.rail-item.active .rail-emoji {
  opacity: 1;
}

.rail-label {
  font-size: 9.5px;
  color: #A98A96;
  letter-spacing: 0.2px;
  transition: color 0.2s ease;
}

.rail-item.active .rail-label {
  color: #F05C92;
  font-weight: 700;
}

.rail-badge {
  position: absolute;
  top: 2px;
  right: 9px;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--pink-500);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  line-height: 15px;
  text-align: center;
  display: none;
}

.rail-badge.show {
  display: block;
}

.rail-deco {
  margin-top: auto;
  padding: 18px 0 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  opacity: 0.72;
}

/* ================= 内容区 ================= */
.content {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px 12px 128px 4px;
  -webkit-overflow-scrolling: touch;
}

.content::-webkit-scrollbar {
  width: 0;
  display: none;
}

.view {
  display: none;
}

.view.active {
  display: block;
  animation: fadeUp 0.26s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================= 通用卡片 ================= */
.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 14px;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-card);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.card-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #E8508A;
  letter-spacing: 0.3px;
}

.card-extra {
  font-size: 10px;
  color: var(--text-3);
}

/* ================= 甜心币大卡 ================= */
.hero-card {
  position: relative;
  padding: 16px 15px 14px;
  margin-bottom: 12px;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #FFC9DE 0%, #FF9CC3 52%, #F97BAF 100%);
  box-shadow: 0 12px 28px rgba(247, 108, 158, 0.28);
  overflow: hidden;
  color: #fff;
}

.hero-deco {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-deco-1 {
  width: 150px;
  height: 150px;
  right: -55px;
  top: -60px;
  border: 14px solid rgba(255, 255, 255, 0.16);
}

.hero-deco-2 {
  width: 90px;
  height: 90px;
  right: 16px;
  bottom: -50px;
  background: rgba(255, 255, 255, 0.12);
}

.hero-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.hero-label {
  font-size: 11px;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.92);
}

.hero-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.hero-value {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 2px;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
}

.hero-value small {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  opacity: 0.88;
}

.hero-sub {
  position: relative;
  z-index: 1;
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 1px;
}

/* 迷你签到日历 */
.mini-calendar {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-top: 13px;
}

.cal-cell {
  height: 21px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.13);
}

.cal-cell.checked {
  background: rgba(255, 255, 255, 0.42);
  color: #fff;
  font-weight: 700;
}

.cal-cell.today {
  background: #FFFFFF;
  color: #F05C92;
  font-weight: 800;
}

/* ================= 心情 ================= */
.mood-row {
  display: flex;
  gap: 7px;
}

.mood-btn {
  flex: 1;
  padding: 8px 2px 7px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: all 0.18s ease;
}

.mood-btn:active {
  transform: scale(0.93);
}

.mood-btn.active {
  background: #FFF0F6;
  border-color: #FFA8C8;
  box-shadow: 0 4px 12px rgba(247, 108, 158, 0.18);
}

.mood-emoji {
  font-size: 21px;
  line-height: 1;
}

.mood-label {
  font-size: 9px;
  color: var(--text-2);
}

.mood-btn.active .mood-label {
  color: #E8508A;
  font-weight: 700;
}

/* ================= 小目标 ================= */
.todo-list {
  display: flex;
  flex-direction: column;
}

.todo-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 0;
  border-bottom: 1px dashed #FFE3EE;
}

.todo-item:last-child {
  border-bottom: none;
}

.todo-check {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1.5px solid #FFC2D8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: transparent;
  transition: all 0.18s ease;
}

.todo-item.done .todo-check {
  background: var(--pink-500);
  border-color: var(--pink-500);
  color: #fff;
}

.todo-text {
  flex: 1;
  font-size: 11.5px;
  color: var(--text-1);
  word-break: break-all;
}

.todo-item.done .todo-text {
  color: var(--text-3);
  text-decoration: line-through;
}

.todo-del {
  font-size: 13px;
  color: #D9C3CC;
  padding: 0 2px;
}

.todo-input-row {
  display: flex;
  gap: 7px;
  margin-top: 10px;
}

.todo-input {
  flex: 1;
  height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  background: #FFF5F9;
  border: 1px solid #FFE3EE;
  font-size: 11.5px;
}

.todo-input::placeholder {
  color: #C9B2BC;
}

.btn-pink {
  flex-shrink: 0;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #FFB3CC, #F76C9E);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 5px 12px rgba(247, 108, 158, 0.26);
  transition: transform 0.15s ease;
}

.btn-pink:active {
  transform: scale(0.94);
}

/* ================= 统计 ================= */
.stat-row {
  display: flex;
  gap: 9px;
}

.stat-box {
  flex: 1;
  padding: 12px 8px 10px;
  border-radius: var(--radius-md);
  background: #FFFFFF;
  text-align: center;
  box-shadow: 0 3px 10px rgba(240, 140, 180, 0.1);
}

.stat-num {
  font-size: 22px;
  font-weight: 800;
  color: #F05C92;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.stat-label {
  margin-top: 2px;
  font-size: 9.5px;
  color: var(--text-3);
}

/* ================= 区块标题 ================= */
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 2px 9px;
  font-size: 13px;
  font-weight: 800;
  color: #E8508A;
  letter-spacing: 0.3px;
}

.section-more {
  font-size: 10px;
  font-weight: 400;
  color: var(--text-3);
}

/* ================= 空态 ================= */
.empty {
  padding: 26px 12px 30px;
  text-align: center;
}

.empty-emoji {
  display: block;
  font-size: 38px;
  line-height: 1;
  margin-bottom: 10px;
  opacity: 0.85;
}

.empty-text {
  font-size: 11px;
  color: #B79BA7;
  line-height: 1.6;
}

/* ================= 最近用掉 ================= */
.used-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.used-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 3px 10px rgba(240, 140, 180, 0.08);
}

.used-emoji {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #FFF0F6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.used-name {
  flex: 1;
  font-size: 11.5px;
  color: var(--text-1);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.used-time {
  font-size: 9.5px;
  color: var(--text-3);
}

/* ================= 点单页 ================= */
.promo-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px;
  margin-bottom: 12px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  border: 1.5px dashed #FFC2D8;
}

.promo-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 13px;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  box-shadow: 0 3px 10px rgba(240, 140, 180, 0.14);
}

.promo-title {
  font-size: 12.5px;
  font-weight: 800;
  color: #E8508A;
}

.promo-desc {
  font-size: 10px;
  color: var(--text-3);
  margin-top: 3px;
  line-height: 1.5;
}

/* 分类 chips */
.chip-row {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 2px 1px 10px;
}

.chip-row::-webkit-scrollbar {
  display: none;
}

.chip {
  flex-shrink: 0;
  height: 29px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-2);
  box-shadow: 0 3px 10px rgba(240, 140, 180, 0.1);
  transition: all 0.18s ease;
}

.chip.active {
  background: linear-gradient(135deg, #FFB3CC, #F76C9E);
  color: #fff;
  box-shadow: 0 5px 14px rgba(247, 108, 158, 0.28);
}

/* 商品网格 */
.goods-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.goods-card {
  padding: 10px;
  border-radius: 18px;
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.goods-thumb {
  height: 62px;
  border-radius: 13px;
  background: linear-gradient(155deg, #FFF4F8 0%, #FFE1EC 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  position: relative;
}

.goods-tag {
  position: absolute;
  top: 5px;
  left: 5px;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  color: #F05C92;
  font-size: 8px;
  font-weight: 700;
}

.goods-name {
  margin-top: 8px;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--text-1);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.goods-desc {
  margin-top: 3px;
  font-size: 9px;
  color: var(--text-3);
  line-height: 1.5;
  height: 27px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.goods-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.price {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 11px;
  font-weight: 800;
  color: #F05C92;
}

.add-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFB3CC, #F76C9E);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(247, 108, 158, 0.3);
  transition: transform 0.15s ease;
}

.add-btn:active {
  transform: scale(0.86);
}

/* ================= 购物车 ================= */
.cart-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px;
  margin-bottom: 9px;
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  box-shadow: var(--shadow-card);
}

.cart-emoji {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 13px;
  background: linear-gradient(155deg, #FFF4F8, #FFE1EC);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.cart-info {
  flex: 1;
  min-width: 0;
}

.cart-name {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-1);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.cart-price {
  margin-top: 3px;
  font-size: 10.5px;
  font-weight: 700;
  color: #F05C92;
}

.qty-ctrl {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}

.qty-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #FFF0F6;
  color: #F05C92;
  font-size: 13px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #FFDCE9;
}

.qty-btn:active {
  background: #FFDCE9;
}

.qty-num {
  min-width: 14px;
  text-align: center;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-1);
}

/* 结算条 */
.checkout-bar {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  margin-top: 4px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -4px 20px rgba(240, 140, 180, 0.16);
  backdrop-filter: blur(8px);
}

.checkout-left {
  flex: 1;
  min-width: 0;
}

.checkout-label {
  font-size: 9.5px;
  color: var(--text-3);
}

.checkout-total {
  font-size: 18px;
  font-weight: 800;
  color: #F05C92;
  line-height: 1.2;
}

.checkout-total small {
  font-size: 10px;
  font-weight: 500;
  margin-left: 2px;
}

.checkout-btn {
  flex-shrink: 0;
  height: 38px;
  padding: 0 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #FFB3CC, #F76C9E);
  color: #fff;
  font-size: 12.5px;
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(247, 108, 158, 0.3);
  transition: transform 0.15s ease;
}

.checkout-btn:active {
  transform: scale(0.95);
}

.checkout-btn.disabled {
  background: #F3DDE5;
  color: #fff;
  box-shadow: none;
}

/* ================= 订单 ================= */
.order-card {
  padding: 13px;
  margin-bottom: 9px;
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  box-shadow: var(--shadow-card);
}

.order-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
}

.order-no {
  font-size: 9.5px;
  color: var(--text-3);
  letter-spacing: 0.3px;
}

.order-status {
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
}

.order-status.pending {
  background: #FFF0F6;
  color: #F05C92;
}

.order-status.used {
  background: #EAF7F2;
  color: #4FB79A;
}

.order-status.canceled {
  background: #F1EDEF;
  color: #A8969E;
}

.order-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.order-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-1);
}

.order-item-emoji {
  font-size: 15px;
}

.order-item-name {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.order-item-qty {
  font-size: 10px;
  color: var(--text-3);
}

.order-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px dashed #FFE3EE;
}

.order-total {
  font-size: 12px;
  font-weight: 800;
  color: #F05C92;
}

.order-actions {
  display: flex;
  gap: 6px;
}

.btn-sm {
  height: 27px;
  padding: 0 12px;
  border-radius: 999px;
  background: #FFF5F9;
  border: 1px solid #FFE3EE;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-2);
}

.btn-sm:active {
  background: #FFE9F2;
}

.btn-sm.primary {
  background: linear-gradient(135deg, #FFB3CC, #F76C9E);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 10px rgba(247, 108, 158, 0.24);
}

/* ================= 我的 ================= */
.profile-card {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-avatar {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(150deg, #FFE1EC, #FFC2D8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 5px 14px rgba(247, 108, 158, 0.2);
}

.profile-info {
  flex: 1;
  min-width: 0;
}

.profile-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-1);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.profile-sub {
  margin-top: 2px;
  font-size: 10px;
  color: var(--text-3);
}

.profile-edit {
  flex-shrink: 0;
  height: 26px;
  padding: 0 13px;
  border-radius: 999px;
  background: #FFF0F6;
  color: #F05C92;
  font-size: 10px;
  font-weight: 700;
  border: 1px solid #FFDCE9;
}

.task-list {
  display: flex;
  flex-direction: column;
}

.task-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed #FFE3EE;
}

.task-item:last-child {
  border-bottom: none;
}

.task-emoji {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 11px;
  background: #FFF5F9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}

.task-info {
  flex: 1;
  min-width: 0;
}

.task-name {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-1);
}

.task-desc {
  margin-top: 1px;
  font-size: 9.5px;
  color: var(--text-3);
}

.task-btn {
  flex-shrink: 0;
  height: 27px;
  padding: 0 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, #FFB3CC, #F76C9E);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(247, 108, 158, 0.24);
}

.task-btn.done {
  background: #F3EDEF;
  color: #B9A6AE;
  box-shadow: none;
}

.setting-card {
  padding: 4px 14px;
}

.setting-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  font-size: 11.5px;
  color: var(--text-1);
  border-bottom: 1px dashed #FFE3EE;
}

.setting-row:last-child {
  border-bottom: none;
}

.setting-arrow {
  color: #D2BCC6;
  font-size: 15px;
}

.foot-note {
  text-align: center;
  padding: 16px 0 6px;
  font-size: 9.5px;
  color: #CFB9C3;
  letter-spacing: 1px;
}

/* ================= 底部 tab ================= */
.tabbar {
  flex-shrink: 0;
  display: flex;
  padding-bottom: env(safe-area-inset-bottom);
  height: calc(56px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.97);
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
  box-shadow: 0 -4px 18px rgba(240, 150, 185, 0.16);
  position: relative;
  z-index: 20;
}

.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transition: transform 0.15s ease;
}

.tab-item:active {
  transform: scale(0.94);
}

.tab-emoji {
  font-size: 19px;
  line-height: 1;
  filter: grayscale(0.5);
  opacity: 0.62;
  transition: all 0.2s ease;
}

.tab-label {
  font-size: 9px;
  color: #B9A6AE;
  transition: color 0.2s ease;
}

.tab-item.active .tab-emoji {
  filter: grayscale(0);
  opacity: 1;
  font-size: 21px;
}

.tab-item.active .tab-label {
  color: #F05C92;
  font-weight: 700;
}

/* ================= 悬浮加号 ================= */
.fab {
  position: absolute;
  right: 15px;
  bottom: calc(70px + env(safe-area-inset-bottom));
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(140deg, #FFB3CC, #F76C9E);
  color: #fff;
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(247, 108, 158, 0.42);
  z-index: 40;
  transition: transform 0.15s ease;
}

.fab:active {
  transform: scale(0.9);
}

/* ================= 底部弹层 ================= */
.sheet-mask {
  position: absolute;
  inset: 0;
  background: rgba(90, 45, 65, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 50;
}

.sheet-mask.show {
  opacity: 1;
  pointer-events: auto;
}

.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 74%;
  overflow-y: auto;
  background: #FFFFFF;
  border-radius: 24px 24px 0 0;
  padding: 8px 16px calc(20px + env(safe-area-inset-bottom));
  transform: translateY(101%);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 60;
}

.sheet.show {
  transform: translateY(0);
}

.sheet-handle {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: #FFDCE9;
  margin: 0 auto 14px;
}

.sheet-title {
  font-size: 15px;
  font-weight: 800;
  color: #E8508A;
  margin-bottom: 4px;
}

.sheet-sub {
  font-size: 10.5px;
  color: var(--text-3);
  margin-bottom: 14px;
  line-height: 1.6;
}

.sheet-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sheet-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border-radius: var(--radius-md);
  background: #FFF8FB;
  border: 1px solid #FFE9F2;
}

.sheet-item-emoji {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}

.sheet-item-text {
  flex: 1;
  font-size: 11.5px;
  color: var(--text-1);
  line-height: 1.55;
}

.sheet-close {
  width: 100%;
  height: 42px;
  margin-top: 14px;
  border-radius: 999px;
  background: #FFF0F6;
  color: #F05C92;
  font-size: 12px;
  font-weight: 700;
}

/* ================= 提示 ================= */
.toast {
  position: absolute;
  left: 50%;
  bottom: calc(120px + env(safe-area-inset-bottom));
  transform: translate(-50%, 8px);
  background: rgba(72, 42, 56, 0.9);
  color: #fff;
  font-size: 11.5px;
  padding: 9px 16px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.24s ease;
  z-index: 80;
  white-space: nowrap;
  max-width: 80%;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ================= 弹层输入与保存 ================= */
.sheet-input {
  width: 100%;
  height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  background: #FFF7FA;
  border: 1.5px solid #FFE3EE;
  font-size: 13px;
  margin-bottom: 10px;
  transition: border-color 0.2s ease;
}

.sheet-input:focus {
  border-color: #FFB3CC;
}

.sheet-input::placeholder {
  color: #C9B2BC;
}

.sheet-save {
  width: 100%;
  height: 44px;
  border-radius: 999px;
  background: linear-gradient(135deg, #FFB3CC, #F76C9E);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(247, 108, 158, 0.28);
  margin-bottom: 8px;
  transition: transform 0.15s ease;
}

.sheet-save:active {
  transform: scale(0.97);
}

.sheet-item {
  width: 100%;
  text-align: left;
}
