/* 情侣小窝 · 全局可爱风格 */
:root {
  --pink: #ff8fab;
  --pink-deep: #ff6b9d;
  --pink-soft: #ffe0ec;
  --peach: #ffc8a2;
  --peach-soft: #fff0e6;
  --mint: #a8e6cf;
  --mint-deep: #5ecf9a;
  --lavender: #d4c4f0;
  --cream: #fff8fa;
  --ink: #5a3d4a;
  --ink-soft: #9a7a88;
  --white: #ffffff;
  --shadow: 0 12px 40px rgba(255, 107, 157, 0.12);
  --radius: 22px;
  --radius-sm: 14px;
  --font-display: 'ZCOOL KuaiLe', 'Comic Sans MS', cursive;
  --font-body: 'Nunito', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse at 10% 0%, #ffe4ef 0%, transparent 45%),
    radial-gradient(ellipse at 90% 10%, #ffe8d6 0%, transparent 40%),
    radial-gradient(ellipse at 50% 100%, #e0f7ef 0%, transparent 45%),
    var(--cream);
  min-height: 100vh;
  line-height: 1.6;
}

a { color: var(--pink-deep); text-decoration: none; }
a:hover { color: var(--pink); }

img { max-width: 100%; display: block; }

h1, h2, h3, .font-cute {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* 布局 */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: max(12px, env(safe-area-inset-left, 0px));
  padding-right: max(12px, env(safe-area-inset-right, 0px));
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 22px;
  border: none;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
  text-decoration: none;
  line-height: 1.2;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: linear-gradient(135deg, var(--pink), var(--pink-deep));
  color: #fff !important;
  box-shadow: 0 8px 22px rgba(255, 107, 157, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); color: #fff !important; }
.btn-secondary {
  background: var(--white);
  color: var(--pink-deep) !important;
  border: 2px solid var(--pink-soft);
}
.btn-mint {
  background: linear-gradient(135deg, var(--mint), var(--mint-deep));
  color: #fff !important;
  box-shadow: 0 8px 22px rgba(94, 207, 154, 0.3);
}
.btn-peach {
  background: linear-gradient(135deg, #ffd4a8, #ffb074);
  color: #fff !important;
}
.btn-danger {
  background: linear-gradient(135deg, #ff9a9e, #ff6b6b);
  color: #fff !important;
}
.btn-sm { padding: 7px 14px; font-size: 0.82rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; }

/* 卡片 */
.card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  border: 2px solid rgba(255, 255, 255, 0.9);
}

.card-hover {
  transition: transform .25s, box-shadow .25s;
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(255, 107, 157, 0.18);
}

/* 表单 */
.form-group {
  margin-bottom: 16px;
  min-width: 0;
  max-width: 100%;
}
.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--ink);
}
.form-control, .form-select, textarea.form-control {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 12px 14px;
  border: 2px solid var(--pink-soft);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: var(--font-body);
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border .2s, box-shadow .2s;
}
/* 手机端 date/number 原生控件易撑破布局 */
input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="month"],
input[type="number"] {
  max-width: 100%;
  min-width: 0;
  -webkit-appearance: none;
  appearance: none;
}
.form-control:focus, .form-select:focus, textarea.form-control:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(255, 143, 171, 0.15);
}
textarea.form-control { min-height: 90px; resize: vertical; }

/* 提示 */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 0.9rem;
  animation: fadeSlide .4s ease;
}
.alert-success { background: #e6fff4; color: #1f8a5c; border: 1px solid #b8f0d4; }
.alert-error { background: #ffe8ee; color: #c44569; border: 1px solid #ffc2d1; }
.alert-info { background: #fff4e8; color: #b86b2a; border: 1px solid #ffe0b8; }

/* 萝卜币 */
.coin {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  color: #e67e22;
}
.coin-icon {
  width: 22px;
  height: 22px;
  display: inline-block;
  vertical-align: -4px;
  flex-shrink: 0;
  background: url(data:image/png;base64,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) center / contain no-repeat;
}
img.coin-icon {
  /* 兼容旧 img 标签：用透明占位 + 背景图 */
  object-fit: contain;
  background: url(data:image/png;base64,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) center / contain no-repeat;
  /* 隐藏裂图图标：加载失败时仍显示背景 */
}
.coin-fallback {
  font-size: 1.05em;
  line-height: 1;
}
.brand .coin-icon,
.brand-icon {
  width: 32px;
  height: 32px;
}
.coin-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #fff3e0, #ffe0b2);
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  color: #e67e22;
  border: 2px solid #ffcc80;
  font-size: 0.9rem;
}

/* 头像 */
.avatar {
  width: 48px;
  height: 48px;
  max-width: 48px;
  max-height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 4px 12px rgba(255, 107, 157, 0.25);
  background: var(--pink-soft);
  flex-shrink: 0;
}
.avatar-lg {
  width: 80px;
  height: 80px;
  max-width: 80px;
  max-height: 80px;
}
.avatar-sm {
  width: 36px;
  height: 36px;
  max-width: 36px;
  max-height: 36px;
  border-width: 2px;
}
.avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: linear-gradient(135deg, var(--pink-soft), var(--peach));
}
img.avatar {
  display: block;
  width: 48px;
  height: 48px;
}
img.avatar-lg {
  width: 80px;
  height: 80px;
}
img.avatar-sm {
  width: 36px;
  height: 36px;
}

/* 标签 */
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--pink-soft);
  color: var(--pink-deep);
}
.tag-mint { background: #d8f8ea; color: #2a9d6e; }
.tag-peach { background: #ffe8d4; color: #d4782a; }
.tag-male { background: #d6eaff; color: #3a7bd5; }
.tag-female { background: #ffe0ec; color: #e05a8a; }

/* 表格 */
.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); }
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
table.data th {
  text-align: left;
  padding: 12px 14px;
  background: var(--pink-soft);
  color: var(--ink);
  font-weight: 700;
}
table.data td {
  padding: 12px 14px;
  border-bottom: 1px solid #ffe8f0;
  vertical-align: middle;
}
table.data tr:hover td { background: #fffafc; }

/* 空状态 */
.empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--ink-soft);
}
.empty .emoji { font-size: 3rem; margin-bottom: 12px; }

/* 动画 */
@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes pulse-soft {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}
@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.15); }
  30% { transform: scale(1); }
  45% { transform: scale(1.1); }
  60% { transform: scale(1); }
}
.anim-float { animation: float 3s ease-in-out infinite; }
.anim-pulse { animation: pulse-soft 2.5s ease-in-out infinite; }
.anim-heart { animation: heartBeat 1.6s ease-in-out infinite; }

.fade-in { animation: fadeSlide .5s ease both; }

/* 网格：minmax(0,1fr) 避免子项 min-content 把整页撑出横向滚动 */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }

@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
}

/* ========== 前台导航 ========== */
.front-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 248, 250, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 143, 171, 0.2);
  padding: 10px 0;
}
.front-nav .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: max(12px, env(safe-area-inset-left, 0px));
  padding-right: max(12px, env(safe-area-inset-right, 0px));
  min-width: 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--pink-deep);
  white-space: nowrap;
}
.brand img { width: 32px; height: 32px; }
.nav-links {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--ink-soft);
  transition: all .2s;
}
.nav-links a:hover, .nav-links a.active {
  background: var(--pink-soft);
  color: var(--pink-deep);
}
.nav-user {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-user-name {
  font-weight: 700;
  font-size: 0.88rem;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .front-nav .inner { flex-wrap: wrap; }
  .nav-links {
    order: 3;
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding-bottom: 4px;
  }
  .nav-links a { white-space: nowrap; font-size: 0.82rem; padding: 6px 12px; }
}

/* ========== 前台首页 ========== */
.hero-love {
  text-align: center;
  padding: 40px 16px 20px;
}
.hero-love .hearts {
  font-size: 2.8rem;
  margin-bottom: 8px;
}
.hero-love h1 {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  color: var(--pink-deep);
  margin: 0 0 8px;
}
.hero-love .slogan {
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.weather-chip {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin: 0 auto 18px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 143, 171, 0.28);
  box-shadow: 0 4px 14px rgba(255, 107, 157, 0.08);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-soft);
  line-height: 1.2;
  max-width: 96%;
}
.weather-ico { font-size: 0.95rem; }
.weather-place { color: var(--pink-deep); }
.weather-temp {
  color: #e67e22;
  font-size: 0.88rem;
}
.weather-text { color: var(--ink); }
.weather-extra {
  opacity: 0.75;
  font-weight: 600;
  font-size: 0.72rem;
}
.weather-tip {
  display: block;
  max-width: 420px;
  margin: -6px auto 18px;
  padding: 8px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,224,236,.75), rgba(255,240,230,.75));
  border: 1px solid rgba(255, 143, 171, 0.22);
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
}

.love-timer {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  max-width: 420px;
  margin: 0 auto 20px;
  box-sizing: border-box;
}
.timer-block {
  background: #fff;
  border-radius: 16px;
  padding: 12px 8px;
  flex: 1 1 0;
  min-width: 0;
  box-shadow: var(--shadow);
  border: 2px solid var(--pink-soft);
  text-align: center;
}
.timer-block .num {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 5vw, 1.8rem);
  color: var(--pink-deep);
  line-height: 1.1;
}
.timer-block .unit {
  font-size: 0.72rem;
  color: var(--ink-soft);
  font-weight: 700;
}

.couple-cards {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 520px;
  margin: 0 auto 36px;
  box-sizing: border-box;
}
.couple-card {
  background: #fff;
  border-radius: 22px;
  padding: 16px 14px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 2px solid #fff;
  flex: 1 1 0;
  min-width: 0;
  max-width: 200px;
  transition: transform .3s;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.couple-card:hover { transform: translateY(-4px); }
.couple-card .avatar,
.couple-card .avatar-lg {
  margin: 0 auto;
}
.couple-card .name {
  font-weight: 700;
  margin: 8px 0 4px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.couple-card .coin-badge {
  justify-content: center;
  max-width: 100%;
  font-size: 0.82rem;
  padding: 5px 10px;
}
.couple-heart {
  font-size: 1.6rem;
  flex: 0 0 auto;
  line-height: 1;
  animation: heartBeat 1.6s ease-in-out infinite;
  padding: 0 2px;
}

/* 首页 · 我的待办 */
.todo-section {
  margin: 8px 0 28px;
}
.todo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.todo-card { margin: 0; }
.todo-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.todo-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255,255,255,.94);
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
  border: 2px solid #fff;
}
.todo-main { min-width: 0; flex: 1; }
.todo-title {
  font-weight: 800;
  font-size: 1.02rem;
  margin-bottom: 4px;
  color: var(--ink);
}
.todo-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--ink-soft);
}
.todo-meta .dot { opacity: .5; }
.todo-remark {
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--pink-deep);
  background: var(--pink-soft);
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
}
.todo-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}
.todo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

@media (max-width: 480px) {
  .todo-item {
    flex-direction: column;
    align-items: stretch;
  }
  .todo-side {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (max-width: 480px) {
  .couple-card {
    padding: 14px 10px;
    border-radius: 18px;
  }
  .couple-card .avatar-lg,
  img.avatar-lg {
    width: 64px;
    height: 64px;
    max-width: 64px;
    max-height: 64px;
  }
  .couple-heart { font-size: 1.35rem; }
  .love-timer { gap: 6px; }
  .timer-block { padding: 10px 4px; border-radius: 14px; }
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin: 20px 0 40px;
}
.feature-item {
  background: rgba(255,255,255,.92);
  border-radius: 22px;
  padding: 24px 16px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 2px solid #fff;
  transition: transform .25s, box-shadow .25s;
  color: var(--ink);
  display: block;
}
.feature-item:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 18px 50px rgba(255, 107, 157, 0.2);
  color: var(--ink);
}
.feature-item .ico {
  font-size: 2.2rem;
  margin-bottom: 10px;
  display: block;
}
.feature-item .title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--pink-deep);
  margin-bottom: 4px;
}
.feature-item .desc {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* 菜品卡片 */
.dish-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 2px solid #fff;
  display: flex;
  flex-direction: column;
  transition: transform .25s;
}
.dish-card:hover { transform: translateY(-4px); }
.dish-img {
  height: 120px;
  background: linear-gradient(135deg, var(--pink-soft), var(--peach-soft));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}
.dish-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dish-body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; }
.dish-name { font-weight: 700; font-size: 1.05rem; margin-bottom: 4px; }
.dish-desc { font-size: 0.8rem; color: var(--ink-soft); flex: 1; margin-bottom: 10px; }
.dish-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* 前台小菜单 · 侧边栏分类 */
.menu-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 18px;
  align-items: start;
  margin-bottom: 12px;
}
.menu-sidebar {
  position: sticky;
  top: 78px;
  background: rgba(255,255,255,.94);
  border-radius: 22px;
  padding: 14px 10px;
  box-shadow: var(--shadow);
  border: 2px solid #fff;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}
.menu-sidebar-title {
  font-family: var(--font-display);
  color: var(--pink-deep);
  font-size: 1.05rem;
  padding: 4px 10px 10px;
}
.menu-cat-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.menu-cat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 0.9rem;
  transition: all .2s;
}
.menu-cat-item:hover {
  background: var(--pink-soft);
  color: var(--pink-deep);
}
.menu-cat-item.active {
  background: linear-gradient(135deg, var(--pink-soft), #ffe8d6);
  color: var(--pink-deep);
  box-shadow: inset 0 0 0 2px rgba(255, 107, 157, 0.25);
}
.menu-cat-ico { font-size: 1.1rem; width: 1.4em; text-align: center; }
.menu-cat-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-cat-count {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #fff;
  color: var(--pink-deep);
  font-size: 0.72rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}
.menu-main {
  background: rgba(255,255,255,.72);
  border-radius: 22px;
  padding: 18px;
  border: 2px solid rgba(255,255,255,.9);
  min-height: 320px;
}
.menu-main-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.menu-main-head h2 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--pink-deep);
}
.menu-dish-grid { margin: 0; }

@media (max-width: 860px) {
  .menu-layout {
    grid-template-columns: 1fr;
  }
  .menu-sidebar {
    position: relative;
    top: 0;
    max-height: none;
    padding: 12px;
  }
  .menu-cat-list {
    flex-direction: row;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 4px;
  }
  .menu-cat-item {
    flex-shrink: 0;
    white-space: nowrap;
  }
  .menu-sidebar-title { display: none; }
}

/* 相册 */
.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.album-item {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 2px solid #fff;
}
.album-item .pic {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--pink-soft);
}
.album-item .pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.album-item:hover .pic img { transform: scale(1.06); }
.album-item .meta { padding: 12px; }
.album-item .remark { font-size: 0.88rem; margin-bottom: 6px; }
.album-item .who {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

/* 百件事 */
.bucket-item {
  background: #fff;
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: var(--shadow);
  border: 2px solid #fff;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: transform .2s;
}
.bucket-item:hover { transform: translateX(4px); }
.bucket-item.done {
  border-color: var(--mint);
  background: linear-gradient(135deg, #f0fff8, #fff);
}
.bucket-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--pink-soft);
  color: var(--pink-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
  font-size: 0.85rem;
}
.bucket-item.done .bucket-num {
  background: var(--mint);
  color: #fff;
}
.bucket-title { font-weight: 700; margin-bottom: 2px; }
.bucket-desc { font-size: 0.82rem; color: var(--ink-soft); }

/* 惩罚板 */
.punish-card {
  background: #fff;
  border-radius: 18px;
  padding: 18px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 2px solid #fff;
  transition: transform .25s;
}
.punish-card:hover { transform: translateY(-4px); }
.punish-card .ico { font-size: 2rem; margin-bottom: 8px; }
.punish-card .name { font-weight: 700; margin-bottom: 4px; }
.punish-card .desc { font-size: 0.8rem; color: var(--ink-soft); margin-bottom: 10px; }

/* 页脚 */
.site-footer {
  text-align: center;
  padding: 32px 16px 40px;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

/* 页面标题区 */
.page-head {
  padding: 28px 0 20px;
  text-align: center;
}
.page-head h1 {
  font-size: 1.8rem;
  color: var(--pink-deep);
  margin: 0 0 6px;
}
.page-head p { color: var(--ink-soft); margin: 0; }

/* Modal */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(90, 61, 74, 0.35);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-mask.show { display: flex; }
.modal {
  background: #fff;
  border-radius: 24px;
  padding: 28px 24px;
  width: min(420px, 100%);
  box-shadow: 0 24px 60px rgba(0,0,0,.15);
  animation: fadeSlide .3s ease;
  max-height: 90vh;
  overflow-y: auto;
}
.modal h3 {
  margin: 0 0 16px;
  color: var(--pink-deep);
  text-align: center;
}
.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.modal-actions .btn { flex: 1; }

/* Toast */
.toast-wrap {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  pointer-events: none;
}
.toast {
  background: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 8px;
  animation: fadeSlide .3s ease;
  border: 2px solid var(--pink-soft);
  color: var(--ink);
}

/* 进度条 */
.progress-bar {
  height: 10px;
  background: var(--pink-soft);
  border-radius: 999px;
  overflow: hidden;
}
.progress-bar .fill {
  height: 100%;
  background: linear-gradient(90deg, var(--pink), var(--mint));
  border-radius: 999px;
  transition: width .5s ease;
}

/* ========== 后台 ========== */
.admin-body {
  display: flex;
  min-height: 100vh;
  background: var(--cream);
}
.admin-sidebar {
  width: 240px;
  background: linear-gradient(180deg, #fff 0%, #fff5f8 100%);
  border-right: 1px solid rgba(255, 143, 171, 0.25);
  padding: 24px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  flex-shrink: 0;
}
.admin-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--pink-deep);
  text-align: center;
  margin-bottom: 28px;
  padding: 8px;
}
.admin-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 4px;
  transition: all .2s;
}
.admin-menu a:hover, .admin-menu a.active {
  background: var(--pink-soft);
  color: var(--pink-deep);
}
.admin-main {
  flex: 1;
  padding: 28px;
  min-width: 0;
}
.admin-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.admin-top h1 {
  margin: 0;
  font-size: 1.6rem;
  color: var(--pink-deep);
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: #fff;
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow);
  border: 2px solid #fff;
}
.stat-card .label { font-size: 0.82rem; color: var(--ink-soft); font-weight: 700; }
.stat-card .value {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--pink-deep);
  margin-top: 4px;
}
.stat-card .emoji { font-size: 1.5rem; float: right; }

.wx-preset-card {
  background: linear-gradient(180deg, #fff7fa, #fff);
  border: 1px solid rgba(255, 143, 171, .28);
  border-radius: 16px;
  padding: 14px 16px 12px;
}
.wx-preset-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.wx-preset-body {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .82rem;
  line-height: 1.55;
  background: #fff;
  resize: vertical;
  min-height: 140px;
}
.wx-preset-fields {
  margin: 10px 0 0;
  padding-left: 18px;
  font-size: .78rem;
  color: var(--ink-soft);
  line-height: 1.7;
}
.wx-preset-fields code {
  color: var(--pink-deep);
  font-size: .76rem;
}

.admin-toggle {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 150;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--pink), var(--pink-deep));
  color: #fff;
  font-size: 1.4rem;
  box-shadow: 0 8px 24px rgba(255,107,157,.4);
  cursor: pointer;
}

@media (max-width: 860px) {
  .admin-sidebar {
    position: fixed;
    left: -260px;
    z-index: 160;
    transition: left .3s;
  }
  .admin-sidebar.open { left: 0; box-shadow: 8px 0 40px rgba(0,0,0,.1); }
  .admin-toggle { display: flex; align-items: center; justify-content: center; }
  .admin-main { padding: 20px 16px; }
}

/* 登录页 */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.login-box {
  width: min(400px, 100%);
  background: rgba(255,255,255,.92);
  border-radius: 28px;
  padding: 36px 30px;
  box-shadow: var(--shadow);
  border: 2px solid #fff;
  text-align: center;
}
.login-box h1 {
  color: var(--pink-deep);
  margin: 8px 0 6px;
}
.login-box .sub { color: var(--ink-soft); margin-bottom: 24px; font-size: 0.9rem; }

/* 用户选择卡 */
.user-pick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.user-pick-card {
  background: #fff;
  border-radius: 22px;
  padding: 24px 16px;
  text-align: center;
  border: 3px solid transparent;
  cursor: pointer;
  transition: all .25s;
  box-shadow: var(--shadow);
}
.user-pick-card:hover, .user-pick-card.selected {
  border-color: var(--pink);
  transform: translateY(-4px);
}
.user-pick-card.male:hover, .user-pick-card.male.selected { border-color: #6cb2f5; }
.user-pick-card.female:hover, .user-pick-card.female.selected { border-color: var(--pink-deep); }

.section-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--pink-deep);
  margin: 0 0 16px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
}
.toolbar .spacer { flex: 1; }

.badge-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--pink-deep);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
}

/* —— 经期记录 —— */
.period-home-tip {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 480px;
  margin: 12px auto 0;
  padding: 12px 16px;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(135deg, #fff5f8, #ffe8ef);
  border: 1px solid rgba(255, 140, 170, .35);
  border-radius: 16px;
  box-shadow: var(--shadow);
  transition: transform .2s;
}
.period-home-tip:hover { transform: translateY(-2px); }
.period-home-tip.period-phase-period {
  background: linear-gradient(135deg, #ffe4ec, #ffd0de);
}
.period-home-tip.period-phase-soon,
.period-home-tip.period-phase-late {
  background: linear-gradient(135deg, #fff8f0, #ffe9d6);
}
.period-home-label {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--pink-deep);
}
.period-home-care {
  font-size: .82rem;
  color: var(--ink-soft);
  line-height: 1.4;
}

.period-status {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  align-items: stretch;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff7fa 0%, #ffe9f1 55%, #fff 100%);
  border: 1px solid rgba(255, 150, 180, .28);
}
.period-status.period-phase-period {
  background: linear-gradient(135deg, #ffe6ef, #ffd4e2 60%, #fff8fb);
}
.period-status.period-phase-soon,
.period-status.period-phase-late {
  background: linear-gradient(135deg, #fff6ea, #ffe8d2 60%, #fffaf4);
}
.period-status.period-phase-fertile {
  background: linear-gradient(135deg, #f3fff7, #e4f8ec 60%, #fafffc);
}
.period-phase-label {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--pink-deep);
  margin-bottom: 6px;
}
.period-care {
  color: var(--ink);
  font-size: .92rem;
  line-height: 1.55;
  max-width: 420px;
}
.period-status-side {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.period-stat {
  min-width: 0;
  flex: 1 1 88px;
  padding: 10px 12px;
  background: rgba(255,255,255,.72);
  border-radius: 14px;
  text-align: center;
}
.period-stat span {
  display: block;
  font-size: .72rem;
  color: var(--ink-soft);
  margin-bottom: 4px;
}
.period-stat strong {
  font-size: .95rem;
  color: var(--pink-deep);
}
.period-grid {
  margin-bottom: 8px;
  align-items: start;
}
.period-grid > .card,
.period-cal,
.period-status,
.period-status-main {
  min-width: 0;
  max-width: 100%;
}
.period-cal {
  width: 100%;
  overflow: hidden;
}
.period-cal-head,
.period-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: clamp(2px, 1vw, 6px);
  width: 100%;
}
.period-cal-head span {
  text-align: center;
  font-size: .72rem;
  color: var(--ink-soft);
  padding: 4px 0;
  min-width: 0;
}
.period-cal-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(.62rem, 2.6vw, .82rem);
  font-weight: 700;
  border-radius: 10px;
  background: rgba(255,255,255,.65);
  color: var(--ink);
  min-width: 0;
  padding: 0;
}
.period-cal-cell.empty { background: transparent; }
.period-cal-cell.today {
  box-shadow: inset 0 0 0 2px var(--pink);
}
.period-cal-cell.is-period {
  background: linear-gradient(145deg, #ff8fb3, #ff6b9a);
  color: #fff;
}
.period-cal-cell.is-predict {
  background: #ffe0ea;
  color: var(--pink-deep);
  border: 1px dashed rgba(255, 107, 154, .55);
}
.period-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
  font-size: .78rem;
  color: var(--ink-soft);
}
.period-legend .dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
}
.period-legend .dot.period { background: #ff6b9a; }
.period-legend .dot.predict {
  background: #ffe0ea;
  box-shadow: inset 0 0 0 1px #ff6b9a;
}
.period-legend .dot.today {
  background: #fff;
  box-shadow: inset 0 0 0 2px var(--pink);
}
.period-rec-actions {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}
.symptom-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.symptom-chip {
  border: 1px solid rgba(255, 140, 170, .4);
  background: #fff;
  color: var(--pink-deep);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .78rem;
  cursor: pointer;
  transition: all .2s;
}
.symptom-chip.on,
.symptom-chip:hover {
  background: var(--pink-soft);
  border-color: var(--pink);
}

@media (max-width: 900px) {
  .period-grid { grid-template-columns: minmax(0, 1fr); }
  .period-grid .grid-2 { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  .period-status { flex-direction: column; }
  .period-status-side { width: 100%; }
  .period-stat { flex: 1 1 calc(33.33% - 8px); min-width: 0; }
  .card { padding: 16px; }
  .page-head h1 { font-size: 1.55rem; }
  .period-phase-label { font-size: 1.2rem; }
  .period-care { max-width: none; font-size: .88rem; }
  .todo-head {
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .period-rec-actions {
    justify-content: flex-start;
    width: 100%;
  }
}
