/* ===== 准点游 · 设计 token ===== */
:root {
  --brand: #c0472b;
  --brand-warm: #c8502f;
  --brand-deep: #b93f26;
  --brand-soft: #fbe3df;
  --gold: #b08424;
  --gold-soft: #ebdcb4;
  --bg: #f7f2e8;
  --card: #ffffff;
  --text: #2b2622;
  --text-2: #8a8178;
  --text-3: #b3aa9f;
  --line: #f0e8da;
  --line-2: #eae1d2;
  --green: #3f7a52;
  --green-soft: #dcefe0;
  --beige: #f0eae0;
  --beige-text: #8a7a66;
  --shadow: 0 2px 10px rgba(80, 50, 30, 0.06);
  --shadow-lg: 0 10px 26px rgba(80, 50, 30, 0.12);
  --r-lg: 20px;
  --r-md: 16px;
  --r-sm: 12px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  background: #ece5d7;
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
  color: var(--text);
  display: flex;
  justify-content: center;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  /* 像原生 App 一样不允许长按选中文字（避免出现整块蓝色选区） */
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* 输入框、可选中的内容要恢复文本选择 */
input,
textarea,
[contenteditable] {
  -webkit-user-select: text;
  user-select: text;
}

/* 手机框：移动端全屏，桌面居中 430px */
#app {
  width: 100%;
  max-width: 430px;
  height: 100vh;
  background: var(--bg);
  position: relative;  overflow: hidden;
  display: flex;
  flex-direction: column;
}

@media (min-width: 520px) {
  #app {
    height: min(920px, 98vh);
    margin: auto;
    border-radius: 30px;
    box-shadow: 0 24px 60px rgba(60, 40, 25, 0.22), 0 0 0 10px #fff;
  }
}

button {
  font-family: inherit;
  border: 0;
  background: none;
  cursor: pointer;
  color: inherit;
  padding: 0;
}

input {
  font-family: inherit;
}

/* ===== 顶栏 ===== */
.app-header {
  flex: none;
  height: calc(48px + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--bg);
  z-index: 30;
}

.app-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.header-left {
  position: absolute;
  left: 14px;
  top: calc(50% + env(safe-area-inset-top) / 2);
  transform: translateY(-50%);
}

.header-right {
  position: absolute;
  right: 12px;
  top: calc(50% + env(safe-area-inset-top) / 2);
  transform: translateY(-50%);
}

.city-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid #efe6d6;
  font-size: 12.5px;
  color: #5c5348;
  box-shadow: 0 1px 4px rgba(80, 50, 30, 0.05);
}

.city-pill svg {
  width: 13px;
  height: 13px;
}

/* 仿真小程序胶囊 */
.capsule {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(0, 0, 0, 0.07);
}

.cap-dots {
  display: flex;
  gap: 2.5px;
}

.cap-dots i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #3d352c;
  display: block;
}

.cap-div {
  width: 1px;
  height: 11px;
  background: rgba(0, 0, 0, 0.1);
}

.cap-dash {
  width: 11px;
  height: 1.4px;
  background: #3d352c;
  border-radius: 1px;
}

.cap-ring {
  width: 12px;
  height: 12px;
  border: 1.4px solid #3d352c;
  border-radius: 50%;
  position: relative;
}

.cap-ring::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #3d352c;
}

/* ===== 主滚动区 ===== */
.app-main {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 4px 16px calc(96px + env(safe-area-inset-bottom));
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.app-main::-webkit-scrollbar {
  display: none;
}

/* ===== 行程卡 ===== */
.trip-card {
  position: relative;
  border-radius: var(--r-lg);
  padding: 16px 18px 15px;
  color: #fff;
  background: linear-gradient(135deg, #ca5532 0%, #c0472b 46%, #b33c25 100%);
  box-shadow: 0 10px 22px rgba(176, 60, 35, 0.24);
  overflow: hidden;
}

.trip-card::after {
  content: '';
  position: absolute;
  right: -46px;
  top: -56px;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
}

.trip-title-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.trip-title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.6px;
}

.trip-en {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 9.5px;
  letter-spacing: 0.34em;
  color: rgba(255, 255, 255, 0.42);
  white-space: nowrap;
}

.trip-meta {
  margin-top: 7px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.88);
}

.trip-progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 15px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.82);
}

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

.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #f3dda8, #e6c582);
  transition: width 0.4s ease;
}

/* ===== 日期分组 ===== */
.day-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 20px 0 10px;
  padding: 0 2px;
}

.day-date {
  font-size: 15px;
  font-weight: 600;
  color: #3b342e;
  white-space: nowrap;
}

.day-badge {
  background: #f0e7d6;
  color: #8a7a66;
  font-size: 10.5px;
  padding: 2.5px 6px;
  border-radius: 5px;
  white-space: nowrap;
}

.day-badge-out {
  background: #fbe9dc;
  color: #b4622f;
  box-shadow: inset 0 0 0 1px #f2d2bd;
}

.day-tip {
  margin: -4px 0 10px 2px;
  font-size: 11.5px;
  color: #b4622f;
  line-height: 1.5;
}

.day-line {
  flex: 1;
  height: 1px;
  background: var(--line-2);
}

.day-dots {
  color: #c9bfb1;
  font-size: 15px;
  line-height: 1;
  padding: 0 2px;
}

/* ===== 条目卡 ===== */
.item-card {
  background: #fff;
  border-radius: var(--r-md);
  box-shadow: var(--shadow);
  margin-bottom: 12px;
  overflow: hidden;
  animation: fade-up 0.28s ease both;
}

.item-main {
  display: flex;
  gap: 12px;
  padding: 12px;
  align-items: center;
}

.item-thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--r-sm);
  flex: none;
  position: relative;
  overflow: hidden;
}

.item-thumb .cover-name {
  font-size: 8px;
  letter-spacing: 0.5px;
  bottom: 5px;
  left: 5px;
  right: 5px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-body {
  flex: 1;
  min-width: 0;
}

.item-row1 {
  display: flex;
  align-items: center;
  gap: 6px;
}

.item-name {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 0 1 auto;
  min-width: 0;
}

.item-row1 .badge {
  flex: none;
}

.chev {
  color: #c1b7a9;
  font-size: 14px;
  line-height: 1;
}

.badge {
  font-size: 10.5px;
  padding: 2.5px 6px;
  border-radius: 5px;
  white-space: nowrap;
  background: #f2ece1;
  color: #9a8a72;
}

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

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

.badge-mute {
  background: #eeeae3;
  color: #a8a094;
}

.item-row2 {
  margin-top: 7px;
  font-size: 12.5px;
  color: #9c9388;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.item-row2 .link {
  color: var(--gold);
}

.item-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  flex: none;
  align-self: stretch;
  padding: 0;
}

.state {
  font-size: 11.5px;
  padding: 3px 8px;
  border-radius: 6px;
  background: #f3ede1;
  color: #8e7f69;
  white-space: nowrap;
}

.state-grabbed {
  background: var(--green-soft);
  color: var(--green);
}

.state-missed {
  background: var(--brand-soft);
  color: var(--brand);
}

.state-none {
  background: #f3ede1;
  color: #a2957f;
}

.dots {
  color: #c9bfb1;
  font-size: 15px;
  line-height: 1;
  padding: 2px;
}

/* 抢票回填条 */
.ask-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px 11px;
  border-top: 1px solid #f7f0e6;
  background: #fffdfa;
}

.ask-text {
  font-size: 12px;
  color: #9c9388;
  margin-right: auto;
}

.btn-mini {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform 0.12s ease;
}

.btn-mini:active {
  transform: scale(0.96);
}

.btn-gold {
  background: var(--gold);
  color: #fff;
  box-shadow: 0 3px 8px rgba(176, 132, 36, 0.28);
}

.btn-outline {
  border: 1px solid #e4d5b4;
  color: #9a8a72;
  background: #fff;
}

.btn-ghost {
  color: #a79e92;
}

/* ===== 空态 ===== */
.empty {
  text-align: center;
  padding: 46px 20px;
  color: var(--text-3);
}

.empty-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.empty-title {
  font-size: 15px;
  color: #6b6259;
  font-weight: 600;
  margin-bottom: 6px;
}

.empty-sub {
  font-size: 12.5px;
  line-height: 1.7;
}

.empty-inset {
  padding: 30px 20px 26px;
}

/* 空状态里的主按钮：单列居中，不参与 flex 均分 */
.empty .btn-primary {
  display: block;
  flex: none;
  width: 200px;
  max-width: 100%;
  margin: 18px auto 0;
  padding: 0 18px;
}

/* ===== 悬浮按钮 ===== */
.fab {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(72px + env(safe-area-inset-bottom));
  background: linear-gradient(135deg, #cb5531, #b93f26);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 999px;
  box-shadow: 0 10px 20px rgba(176, 60, 35, 0.3);
  display: flex;
  align-items: center;
  gap: 7px;
  z-index: 22;
  transition: transform 0.12s ease;
}

.fab:active {
  transform: translateX(-50%) scale(0.97);
}

/* ===== 底部 tab ===== */
.tabbar {
  flex: none;
  height: calc(58px + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: #fff;
  border-top: 1px solid #f2eadd;
  display: flex;
  z-index: 25;
}

.tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #b0a79a;
  font-size: 11px;
  transition: color 0.15s ease;
}

.tab.active {
  color: var(--brand);
}

.tab svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ===== 景点页 ===== */
.release-hero {
  border-radius: 18px;
  padding: 14px;
  background: linear-gradient(135deg, #fadcc8 0%, #fbeee0 58%, #fcefe4 100%);
  position: relative;
  overflow: hidden;
  margin-top: 6px;
}

.release-hero::after {
  content: '';
  position: absolute;
  right: -30px;
  bottom: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
}

.hero-title {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--brand);
  font-weight: 700;
  font-size: 15px;
  position: relative;
  z-index: 1;
}

.hero-title .date {
  font-weight: 600;
  font-size: 12.5px;
  color: #c65a3c;
}

.hero-link {
  margin-left: auto;
  font-size: 12px;
  color: #b08a6e;
  font-weight: 400;
}

.hero-card-inner {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: var(--r-sm);
  margin-top: 10px;
  padding: 13px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 2px 8px rgba(160, 90, 50, 0.06);
}

.hero-name {
  font-size: 14.5px;
  font-weight: 600;
  color: #3b342e;
  flex: none;
}

.hero-when {
  margin-left: auto;
  font-size: 12.5px;
  color: #c0472b;
  white-space: nowrap;
}

.hero-when b {
  font-weight: 600;
}

.hero-card-inner .diff {
  flex: none;
  background: #eef7f0;
  color: var(--green);
}

/* 分类 chips */
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 14px 0 12px;
  scrollbar-width: none;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: none;
  padding: 7px 14px;
  border-radius: 999px;
  background: #fff;
  color: #6b6259;
  font-size: 13.5px;
  border: 1px solid #f2ebde;
  transition: all 0.15s ease;
}

.chip.active {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 600;
  border-color: transparent;
}

/* 景点网格 */
.spot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.spot-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  animation: fade-up 0.3s ease both;
}

.spot-cover {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.spot-cover svg.silhouette,
.item-thumb svg.silhouette,
.sheet-thumb svg.silhouette,
.pick-thumb svg.silhouette {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 82%;
  fill: rgba(255, 255, 255, 0.26);
  pointer-events: none;
}

.spot-cover .diff {
  position: absolute;
  top: 7px;
  right: 7px;
  font-size: 10.5px;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.cover-name {
  position: absolute;
  left: 9px;
  bottom: 7px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 10px;
  letter-spacing: 2px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}

.diff-hard {
  color: var(--brand);
}

.diff-medium {
  color: #c0803a;
}

.diff-easy {
  color: var(--green);
}

.diff-free {
  color: #8a8178;
}

.spot-body {
  padding: 9px 10px 11px;
}

.spot-name-row {
  display: flex;
  align-items: center;
  gap: 5px;
}

.spot-name {
  font-size: 14px;
  font-weight: 600;
  color: #2b2622;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.spot-set {
  margin-left: auto;
  font-size: 10.5px;
  color: var(--gold);
  white-space: nowrap;
  flex: none;
}

.spot-rule {
  margin-top: 5px;
  font-size: 11.5px;
  color: #a79e92;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== 封面色调 ===== */
.tone-cinnabar {
  background: linear-gradient(140deg, #c4573a 0%, #a5391f 60%, #8b2c17 100%);
}
.tone-bronze {
  background: linear-gradient(140deg, #bb9550 0%, #9a7734 55%, #7a5c22 100%);
}
.tone-jade {
  background: linear-gradient(140deg, #5c8a68 0%, #45714f 55%, #2f5440 100%);
}
.tone-azure {
  background: linear-gradient(140deg, #5c8f9c 0%, #41707c 55%, #2c5560 100%);
}
.tone-moss {
  background: linear-gradient(140deg, #5f7b52 0%, #4a6340 55%, #34482e 100%);
}
.tone-sand {
  background: linear-gradient(140deg, #c6a685 0%, #a98a6b 55%, #8a6f53 100%);
}
.tone-plum {
  background: linear-gradient(140deg, #7a5780 0%, #5c3c62 55%, #432b48 100%);
}
.tone-slate {
  background: linear-gradient(140deg, #77808a 0%, #5a636d 55%, #414952 100%);
}
.tone-indigo {
  background: linear-gradient(140deg, #4d5f9c 0%, #37477d 55%, #26335c 100%);
}
.tone-ember {
  background: linear-gradient(140deg, #cc7f42 0%, #b0612a 55%, #8f4b1c 100%);
}
.tone-pine {
  background: linear-gradient(140deg, #4a7360 0%, #375a4a 55%, #254236 100%);
}
.tone-copper {
  background: linear-gradient(140deg, #b07a4a 0%, #8f5d33 55%, #6f4623 100%);
}

/* ===== 我的 ===== */
.user-card {
  background: #fff;
  border-radius: 18px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 13px;
  box-shadow: var(--shadow);
  margin-top: 6px;
}

.avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f3e3c8, #e9d3ad);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.avatar svg {
  width: 30px;
  height: 30px;
  fill: #cdb28a;
}

.user-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.user-level {
  display: inline-block;
  margin-top: 6px;
  font-size: 10.5px;
  color: #8a7a66;
  background: #f2ece1;
  padding: 2px 7px;
  border-radius: 5px;
}

.list-group {
  background: #fff;
  border-radius: var(--r-md);
  margin-top: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.list-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 14px;
  font-size: 15px;
  position: relative;
}

.list-row + .list-row::before {
  content: '';
  position: absolute;
  top: 0;
  left: 14px;
  right: 0;
  height: 1px;
  background: #f5eee2;
}

.list-row .sub {
  margin-left: auto;
  font-size: 13px;
  color: #b08a6e;
  display: flex;
  align-items: center;
  gap: 3px;
}

.list-row .sub.warn {
  color: var(--brand);
}

.list-row .chev-r {
  color: #c9bfb1;
  font-size: 15px;
  margin-left: 2px;
}

.ghost-btn {
  width: 100%;
  margin-top: 16px;
  padding: 14px;
  border-radius: 14px;
  background: #fff;
  color: var(--brand);
  font-size: 14.5px;
  box-shadow: var(--shadow);
}

.page-foot {
  text-align: center;
  font-size: 11px;
  color: #c0b7a9;
  padding: 18px 0 4px;
  line-height: 1.8;
}

/* ===== 详情弹层 ===== */
.sheet-mask {
  position: absolute;
  inset: 0;
  background: rgba(35, 22, 15, 0.36);
  z-index: 60;
  animation: fade 0.2s ease both;
}

.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 90%;
  background: #fff;
  border-radius: 22px 22px 0 0;
  z-index: 61;
  display: flex;
  flex-direction: column;
  animation: sheet-up 0.26s cubic-bezier(0.22, 0.86, 0.3, 1) both;
  overflow: hidden;
}

.sheet-grip {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: #e7dfd2;
  margin: 8px auto 0;
  flex: none;
}

.sheet-body {
  overflow-y: auto;
  padding: 8px 16px 16px;
  flex: 1;
  scrollbar-width: none;
}

.sheet-body::-webkit-scrollbar {
  display: none;
}

.sheet-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.sheet-thumb {
  width: 78px;
  height: 78px;
  border-radius: var(--r-sm);
  flex: none;
  position: relative;
  overflow: hidden;
}

.sheet-title-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.sheet-name {
  font-size: 17px;
  font-weight: 700;
}

.sheet-chips {
  display: flex;
  gap: 7px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.mini-chip {
  font-size: 11.5px;
  padding: 4px 9px;
  border-radius: 6px;
  background: #f3ede1;
  color: #8a7a66;
}

.earliest-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fbf6ea;
  border: 1px solid #f1e7d2;
  border-radius: var(--r-sm);
  padding: 13px 14px;
  margin-top: 14px;
}

.cal-ico {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  box-shadow: 0 1px 4px rgba(150, 120, 60, 0.1);
}

.cal-ico svg {
  width: 20px;
  height: 20px;
  stroke: #c9a24a;
  fill: none;
  stroke-width: 1.6;
}

.earliest-label {
  font-size: 13px;
  color: #6f6456;
}

.earliest-hint {
  font-size: 10.5px;
  color: #b0a48f;
  margin-top: 3px;
}

.earliest-date {
  margin-left: auto;
  font-size: 20px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.section-title {
  font-size: 15px;
  font-weight: 700;
  margin: 18px 0 10px;
}

.tip-bar {
  background: #fbf6ea;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12.5px;
  color: #8a7a66;
}

.channel {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 0;
  border-bottom: 1px solid #f7f0e6;
}

.channel:last-of-type {
  border-bottom: 0;
}

.ch-ico {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  color: #fff;
}

.ch-ico svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.ch-ico svg.stroke {
  fill: none;
  stroke: #fff;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ch-miniprogram {
  background: #3fbf6e;
}

.ch-wechat {
  background: #4caf50;
}

.ch-website {
  background: #a9743f;
}

.ch-name {
  font-size: 14.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ch-badge {
  font-size: 10px;
  font-weight: 400;
  color: #a1907a;
  background: #f6efe3;
  padding: 1.5px 5px;
  border-radius: 4px;
}

.ch-sub {
  font-size: 11.5px;
  color: #a79e92;
  margin-top: 3px;
}

.ch-action {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
}

.btn-soft-green {
  background: #e9f7ee;
  color: #37945c;
  font-size: 12px;
  padding: 7px 11px;
  border-radius: 8px;
  white-space: nowrap;
}

.btn-soft-blue {
  background: #e8f2fd;
  color: #3d7fc4;
  font-size: 12px;
  padding: 7px 11px;
  border-radius: 8px;
  white-space: nowrap;
}

.btn-copy {
  color: #b08a6e;
  font-size: 12px;
  white-space: nowrap;
}

.notice-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 6px;
  font-size: 15px;
  font-weight: 700;
}

.notice-list {
  margin: 6px 0 0;
  padding-left: 18px;
  color: #8a8178;
  font-size: 12.5px;
  line-height: 1.9;
}

.sheet-actions {
  flex: none;
  display: flex;
  gap: 12px;
  padding: 12px 16px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid #f7f0e6;
  background: #fff;
}

.btn-primary {
  flex: 1;
  height: 46px;
  border-radius: 999px;
  background: linear-gradient(135deg, #cb5531, #b93f26);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 6px 14px rgba(176, 60, 35, 0.24);
  transition: transform 0.12s ease;
}

.btn-secondary {
  flex: 1;
  height: 46px;
  border-radius: 999px;
  border: 1px solid #e7d6c6;
  background: #fff;
  color: var(--brand);
  font-size: 15px;
  font-weight: 500;
}

.btn-primary:active,
.btn-secondary:active {
  transform: scale(0.98);
}

.btn-primary[disabled] {
  opacity: 0.6;
  box-shadow: none;
}

/* ===== 通用弹层（登录、新增提醒等） ===== */
.modal-wrap {
  position: absolute;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(35, 22, 15, 0.36);
  animation: fade 0.2s ease both;
}

.modal {
  width: 100%;
  max-width: 360px;
  background: #fff;
  border-radius: 18px;
  padding: 18px;
  max-height: 82%;
  display: flex;
  flex-direction: column;
  animation: pop 0.22s cubic-bezier(0.22, 0.86, 0.3, 1) both;
}

.modal-title {
  font-size: 16.5px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 14px;
}

/* 弹窗内的主按钮不参与 flex 拉伸（避免高度被压扁） */
.modal > .btn-primary {
  flex: none;
  height: 46px;
}

.search-field {
  background: #f8f4ec;
  border-radius: 10px;
  padding: 0 12px;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.search-field input {
  border: 0;
  background: transparent;
  outline: 0;
  flex: 1;
  font-size: 14px;
}

.pick-list {
  overflow-y: auto;
  flex: 1;
  margin: 0 -4px;
  padding: 0 4px;
}

.pick-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 4px;
  border-bottom: 1px solid #f7f0e6;
}

.pick-thumb {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  flex: none;
  position: relative;
  overflow: hidden;
}

.pick-name {
  font-size: 14px;
  font-weight: 500;
}

.pick-sub {
  font-size: 11px;
  color: #a79e92;
  margin-top: 2px;
}

.check {
  margin-left: auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid #e2d8c8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.check.on {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-size: 12px;
}

.field-date {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8f4ec;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13.5px;
  color: #6b6259;
  margin-bottom: 12px;
}

.field-date input {
  border: 0;
  background: transparent;
  outline: 0;
  font-size: 14px;
  margin-left: auto;
  color: var(--brand);
  font-weight: 600;
}

/* ===== 登录页 ===== */
.auth-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 26px 26px calc(20px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, #fdf8ee 0%, var(--bg) 46%);
}

.auth-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-top: 12px;
}

.auth-logo {
  width: 62px;
  height: 62px;
  border-radius: 19px;
  background: linear-gradient(135deg, #ca5532, #b33c25);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 24px rgba(176, 60, 35, 0.26);
}

.auth-logo svg {
  width: 30px;
  height: 30px;
  fill: #fff;
}

.auth-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 2px;
}

.auth-sub {
  font-size: 13px;
  color: #9a8f80;
  line-height: 1.7;
  margin-top: -6px;
}

.auth-form {
  margin-top: 30px;
}

.field {
  background: #fff;
  border: 1px solid #efe4d3;
  border-radius: 12px;
  padding: 0 14px;
  height: 48px;
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  transition: border-color 0.15s ease;
}

.field:focus-within {
  border-color: #d8b7a3;
}

.field input {
  border: 0;
  outline: 0;
  flex: 1;
  font-size: 15px;
  background: transparent;
  color: var(--text);
}

.field input::placeholder {
  color: #bdb3a4;
}

.auth-submit {
  width: 100%;
  height: 48px;
  border-radius: 999px;
  background: linear-gradient(135deg, #cb5531, #b93f26);
  color: #fff;
  font-size: 15.5px;
  font-weight: 600;
  margin-top: 6px;
  box-shadow: 0 10px 20px rgba(176, 60, 35, 0.26);
}

.auth-submit[disabled] {
  opacity: 0.65;
  box-shadow: none;
}

.auth-switch {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: #8a8178;
}

.auth-switch b {
  color: var(--brand);
  font-weight: 600;
}

.auth-tip {
  margin-top: 26px;
  font-size: 11.5px;
  color: #b3aa9f;
  text-align: center;
  line-height: 1.9;
}

.auth-err {
  background: #fbe3df;
  color: #b3402a;
  font-size: 12.5px;
  padding: 9px 12px;
  border-radius: 10px;
  margin-bottom: 12px;
}

/* 找回密码 */
.auth-sub-title {
  font-size: 15px;
  font-weight: 700;
  color: #2b2622;
  text-align: center;
  margin: -4px 0 14px;
  letter-spacing: 1px;
}

.auth-note {
  font-size: 12.5px;
  line-height: 1.8;
  color: #5d6b52;
  background: #eef3e6;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
  word-break: break-all;
}

.auth-note.warn {
  color: #8a5a20;
  background: #fbf0dc;
}

.auth-cmd {
  margin-top: 8px;
  padding: 8px 10px;
  background: #2b2622;
  color: #f0e8da;
  border-radius: 8px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 10.5px;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-all;
}

/* ===== 顶部提示条 / toast ===== */
.notice-bar {
  position: absolute;
  top: calc(10px + env(safe-area-inset-top));
  left: 12px;
  right: 12px;
  background: #2b2622;
  color: #fff;
  border-radius: 12px;
  padding: 11px 13px;
  font-size: 12.5px;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24);
  animation: drop 0.26s ease both;
  line-height: 1.5;
}

.notice-bar .x {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

.toast {
  position: absolute;
  left: 50%;
  bottom: calc(142px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  background: rgba(43, 38, 34, 0.92);
  color: #fff;
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 10px;
  z-index: 90;
  max-width: 78%;
  text-align: center;
  animation: fade-up 0.2s ease both;
  line-height: 1.5;
}

.loading {
  text-align: center;
  padding: 40px 0;
  color: #b3aa9f;
  font-size: 13px;
}

/* ===== 动画 ===== */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes sheet-up {
  from {
    transform: translateY(100%);
  }
  to {
    transform: none;
  }
}

@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes drop {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
