/* 2027 宜嫁娶吉日 · 手机优先 App 级工具样式 */
.jyq {
  box-sizing: border-box;
  max-width: 680px;
  margin: 0 auto;
  padding: 14px 16px 28px;
  background: #fbf5ec;
  color: #241a16;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-text-size-adjust: 100%;
  font-size: 14px;
  line-height: 1.5;
}
.jyq * { box-sizing: border-box; }
.jyq h1,
.jyq p,
.jyq section,
.jyq header,
.jyq article,
.jyq div,
.jyq span,
.jyq strong,
.jyq button,
.jyq select,
.jyq label { margin: 0; }

.jyq-head { padding: 2px 0 10px; }
.jyq h1 {
  font-size: 23px;
  line-height: 1.28;
  font-weight: 800;
  letter-spacing: .3px;
  color: #21130f;
}
.jyq-sub {
  margin-top: 5px;
  font-size: 12.5px;
  color: #7d6a5d;
  line-height: 1.5;
}
.jyq-sub b {
  color: #a3262b;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.jyq-sub time { color: #6d5a4d; }

.card {
  background: #fff;
  border: 1px solid #efe2d1;
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 12px;
  box-shadow: 0 2px 10px rgba(120, 80, 40, .05);
}

.mstrip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 1px 6px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.mstrip::-webkit-scrollbar { display: none; }
.mchip {
  flex: 0 0 auto;
  min-width: 54px;
  min-height: 52px;
  padding: 6px 8px;
  border: 1px solid #ecdfcd;
  border-radius: 12px;
  background: #fffdf8;
  color: #463229;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  cursor: pointer;
}
.mchip .mn { font-size: 13px; font-weight: 700; line-height: 1.2; }
.mchip .mc { font-size: 11px; color: #a58d78; font-variant-numeric: tabular-nums; }
.mchip.is-on {
  background: #a3262b;
  border-color: #a3262b;
  color: #fff;
  box-shadow: 0 5px 12px rgba(163, 38, 43, .24);
}
.mchip.is-on .mc { color: #f6dcd6; }
.mchip[data-empty="1"] { opacity: .5; }

.zrow { display: flex; gap: 8px; margin-top: 8px; }
.zlab {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11.5px;
  color: #8a7361;
}
.zsel {
  width: 100%;
  height: 44px;
  padding: 0 8px;
  border: 1px solid #e6d6c2;
  border-radius: 10px;
  background: #fffdf8;
  color: #33251d;
  font-size: 16px;
  font-family: inherit;
  line-height: 44px;
}

.presets {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.presets::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 14px;
  border: 1px dashed #e0cbb0;
  border-radius: 22px;
  background: #fffaf2;
  color: #7b5a3a;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}
.chip[aria-pressed="true"] {
  background: #f8e8d1;
  border-style: solid;
  border-color: #c99a5e;
  color: #7a4a17;
}

.sum {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: linear-gradient(180deg, #fffdf8, #fff4e6);
  border-color: #f0dcc2;
  padding: 12px 14px;
}
.sumL { display: flex; align-items: baseline; gap: 5px; }
.sumM { font-size: 15px; font-weight: 700; color: #8a5a2a; }
.sumN {
  font-size: 33px;
  font-weight: 800;
  line-height: 1;
  color: #a3262b;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.5px;
}
.sumU { font-size: 12px; color: #8a7361; }
.sumR {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  text-align: right;
  font-size: 11.5px;
  color: #8a7361;
  line-height: 1.45;
}

.list { display: block; }
.day {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #fff;
  border: 1px solid #efe2d1;
  border-radius: 14px;
  padding: 11px 12px;
  margin-bottom: 10px;
  transition: box-shadow .2s, border-color .2s;
}
.day.hit {
  border-color: #c8975a;
  box-shadow: 0 0 0 2px rgba(200, 151, 90, .22);
}
.dcol { flex: 0 0 50px; text-align: center; padding-top: 3px; }
.dnum {
  display: block;
  font-size: 19px;
  font-weight: 800;
  color: #2a1b15;
  letter-spacing: -.4px;
  font-variant-numeric: tabular-nums;
}
.dwk { display: block; font-size: 11px; color: #9a8474; margin-top: 2px; }
.dinfo { flex: 1 1 auto; min-width: 0; }
.dtop { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tier {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  line-height: 1.35;
}
.tier.t2 { background: #a3262b; color: #fff; }
.tier.t1 { background: #fdf1df; color: #95632a; border: 1px solid #eed7b2; }
.djian { font-size: 12px; font-weight: 600; color: #6b5142; }
.dgz { font-size: 11.5px; color: #9a8474; font-variant-numeric: tabular-nums; }
.nx {
  font-size: 10.5px;
  padding: 1px 5px;
  border-radius: 5px;
  background: #f4e6cd;
  color: #8a5a1e;
  font-weight: 700;
}
.dmeta {
  margin-top: 5px;
  font-size: 11.5px;
  color: #8b7263;
  line-height: 1.45;
}
.dhours {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 7px;
}
.hchip {
  font-size: 10.5px;
  line-height: 1.5;
  padding: 2px 5px;
  border-radius: 6px;
  background: #fdf4e6;
  border: 1px solid #f0dfc7;
  color: #7c5730;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.dbtn {
  flex: 0 0 auto;
  width: 46px;
  height: 44px;
  border: 1px solid #eadbc6;
  border-radius: 10px;
  background: #fffdf8;
  color: #8a6642;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.empty {
  padding: 26px 14px;
  text-align: center;
  font-size: 13px;
  line-height: 1.7;
  color: #967f6c;
  background: #fff;
  border: 1px dashed #e8d7c1;
  border-radius: 14px;
}

.note {
  margin: 14px 2px 0;
  font-size: 11px;
  line-height: 1.75;
  color: #9c8674;
}

.bar {
  position: sticky;
  bottom: 0;
  margin: 14px -2px 0;
  padding: 8px 2px 6px;
  background: linear-gradient(180deg, rgba(251, 245, 236, 0), #fbf5ec 40%);
}
.copyall {
  display: block;
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 14px;
  background: #a3262b;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: .4px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(163, 38, 43, .26);
}
.copyall:active { transform: translateY(1px); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 92px;
  max-width: 80vw;
  padding: 9px 16px;
  border-radius: 20px;
  background: rgba(35, 22, 16, .92);
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
  opacity: 0;
  transform: translate(-50%, 8px);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
  z-index: 90;
  white-space: nowrap;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 720px) {
  .jyq { padding: 18px 24px 32px; }
  .jyq h1 { font-size: 26px; }
}
