:root {
  --ink: #222;
  --muted: #5f5f5f;
  --teal: #38b7c5;
  --orange: #de6a2d;
  --red: #b83328;
  --soft: #f5f6f4;
}

* {
  box-sizing: border-box;
}

html {
  background: #e9e9e9;
}

body {
  margin: 0;
  color: var(--ink);
  background: #e9e9e9;
  font-family:
    -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial,
    sans-serif;
  letter-spacing: 0;
}

button {
  border: 0;
  font: inherit;
}

.yb-page {
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
  overflow: hidden;
  background: #fff;
}

.top-poster {
  position: relative;
  background: #d7dddc;
}

.top-poster img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 34%;
  filter: saturate(0.84) contrast(0.96) brightness(1.01);
}

.poster-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 16px 14px;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
}

.poster-title span {
  display: inline-block;
  margin-bottom: 6px;
  padding: 2px 7px;
  background: var(--teal);
  font-size: 12px;
  font-weight: 700;
}

.poster-title h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.12;
  letter-spacing: 0;
}

.poster-title p {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.5;
}

.wechat-box {
  margin: 12px 10px 14px;
  text-align: center;
}

.quote-mark {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 3px;
  width: 78px;
  margin: 0 auto -18px;
  padding: 0 10px;
  background: #fff;
}

.quote-mark i {
  position: relative;
  display: block;
  width: 14px;
  height: 29px;
  background: var(--teal);
}

.quote-mark i::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -14px;
  width: 0;
  height: 0;
  border-top: 14px solid var(--teal);
  border-left: 14px solid transparent;
}

.wechat-inner {
  padding: 34px 12px 23px;
  border: 2px solid var(--teal);
  background: #fff;
}

.wechat-inner p {
  margin: 0;
  letter-spacing: 1px;
  line-height: 1.75;
}

.orange {
  color: var(--orange);
  font-size: 16px;
  font-weight: 800;
}

.wechat-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  min-height: 46px;
  margin: 8px auto 4px;
  color: var(--red);
  background: #fff7f0;
  border: 1px dashed rgba(184, 51, 40, 0.4);
  border-radius: 2px;
  font-size: 27px;
  font-weight: 900;
  letter-spacing: 1px;
  user-select: all;
}

.copy-tip {
  color: var(--red);
  font-size: 17px;
  font-weight: 900;
}

.small-tip {
  color: #444;
  font-size: 14px;
  font-weight: 700;
}

.soft-copy,
.chat-story,
.route-panel,
.warning-list {
  margin: 0 14px 16px;
  padding: 15px 0 18px;
  border-bottom: 8px solid #f0f1ef;
}

.soft-copy h2,
.chat-story h2,
.route-panel h2,
.warning-list h2 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: 0;
}

.soft-copy p,
.chat-story p,
.warning-list p {
  margin: 8px 0;
  color: #444;
  font-size: 15px;
  line-height: 1.8;
}

.chat-row {
  max-width: 91%;
  margin: 10px 0;
  padding: 10px 12px;
  border-radius: 3px;
  font-size: 15px;
  line-height: 1.65;
}

.chat-row.user {
  margin-left: auto;
  color: #fff;
  background: #5cab52;
}

.chat-row.planner {
  color: #333;
  background: #efefef;
}

.image-block {
  position: relative;
  margin: 0;
  background: #fff;
}

.image-block img {
  display: block;
  width: 100%;
  aspect-ratio: 790 / 980;
  object-fit: cover;
  object-position: center 28%;
  filter: saturate(0.82) contrast(0.96);
}

.caption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 10px 12px;
  color: #fff;
  background: rgba(0, 0, 0, 0.52);
}

.caption strong {
  display: block;
  font-size: 22px;
  line-height: 1.3;
}

.caption span {
  display: block;
  margin-top: 3px;
  font-size: 14px;
  line-height: 1.55;
}

.route-panel {
  padding-top: 8px;
}

.route-sub {
  margin: 0 0 10px;
  padding: 8px 10px;
  color: #555;
  background: #f7f7f5;
  border-left: 3px solid var(--teal);
  font-size: 13px;
  line-height: 1.65;
}

.day {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid #e5e5e5;
  align-items: start;
}

.day b {
  color: #168895;
  background: transparent;
  border-left: 4px solid var(--teal);
  padding-left: 7px;
  text-align: left;
  line-height: 1.2;
  font-size: 16px;
}

.day span {
  color: #333;
  font-size: 15px;
  line-height: 1.6;
}

.day strong {
  display: block;
  color: #222;
  font-size: 15px;
  line-height: 1.55;
}

.day em {
  display: block;
  margin-top: 3px;
  color: #666;
  font-style: normal;
  font-size: 13px;
  line-height: 1.65;
}

.route-note {
  margin: 12px 0 0;
  padding: 9px 10px;
  color: #6c4d2d;
  background: #fff9f2;
  border: 1px solid #f0dcc4;
  font-size: 13px;
  line-height: 1.65;
}

.photo-grid {
  display: grid;
  gap: 10px;
  margin: 0 10px 16px;
}

.photo-grid article {
  overflow: hidden;
  background: #fff;
  border: 1px solid #e5e5e5;
}

.photo-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 790 / 610;
  object-fit: cover;
  filter: saturate(0.82) contrast(0.96);
}

.photo-grid strong {
  display: block;
  padding: 10px 12px 0;
  font-size: 21px;
  line-height: 1.35;
}

.photo-grid span {
  display: block;
  padding: 4px 12px 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.chat-story--light {
  padding: 16px 12px;
  background: #f7f8f6;
}

.message-template {
  margin: 12px 0;
  padding: 12px;
  color: #333;
  background: #fff;
  border-left: 4px solid var(--teal);
  font-size: 15px;
  line-height: 1.7;
}

.wide-copy {
  width: 100%;
  min-height: 44px;
  color: #fff;
  background: var(--orange);
  border-radius: 2px;
  font-size: 16px;
  font-weight: 900;
}

.warning-list p {
  padding: 8px 0;
  border-top: 1px solid #eee;
}

.final-box {
  margin-bottom: 10px;
}

.official-site {
  margin: 8px 14px 6px;
}

.official-site a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  color: #333;
  background: #fff;
  border: 1px solid #333;
  border-radius: 2px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 900;
}

.official-site a:active {
  background: #f4f4f4;
}

.page-footer {
  padding: 12px 16px 24px;
  color: #888;
  text-align: center;
  font-size: 12px;
  line-height: 1.7;
}

.page-footer p {
  margin: 0;
}

.sticky-wechat {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: min(100%, 430px);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  color: #fff;
  background: rgba(36, 36, 36, 0.97);
  transform: translateX(-50%);
}

.sticky-wechat span {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.sticky-wechat strong {
  display: block;
  margin-top: 2px;
  font-size: 18px;
  letter-spacing: 0.5px;
}

.sticky-wechat button {
  flex: 0 0 auto;
  min-width: 82px;
  min-height: 40px;
  color: #fff;
  background: var(--orange);
  border-radius: 2px;
  font-size: 16px;
  font-weight: 900;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(78px + env(safe-area-inset-bottom));
  z-index: 30;
  max-width: min(82vw, 360px);
  padding: 10px 14px;
  border-radius: 4px;
  color: #fff;
  background: rgba(35, 35, 35, 0.92);
  font-size: 14px;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 360px) {
  .poster-title h1 {
    font-size: 26px;
  }

  .soft-copy h2,
  .chat-story h2,
  .route-panel h2,
  .warning-list h2 {
    font-size: 21px;
  }

  .wechat-code {
    min-width: 172px;
    font-size: 25px;
  }
}
