/* 美味小镇 WAP 文字版 — 复刻早期手机 WAP 页面观感
   白底 / 黑色正文 / 蓝色链接 / 竖线分隔 / 无卡片无圆角 */

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  background: #ffffff;
  color: #000000;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", SimSun, sans-serif;
  font-size: 16px;
  line-height: 1.85;
}

#wrap {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 10px calc(24px + env(safe-area-inset-bottom, 0px));
}

/* ── 页标题 ─────────────────────────────────── */
.ptitle {
  font-size: 16px;
  font-weight: bold;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 0 2px;
  color: #000;
}

/* ── 行 ─────────────────────────────────────── */
.ln {
  padding: 1px 0;
  word-break: break-all;
}
.gap { height: 12px; }

/* ── 链接 ───────────────────────────────────── */
a.lk {
  color: #1a0dab;
  text-decoration: none;
}
a.lk:active {
  color: #d14;
  background: #f2f2f2;
}
a.lk.big {
  font-size: 17px;
  font-weight: bold;
}

/* 分隔符 */
.sep {
  color: #000;
  padding: 0 1px;
}

/* 文本状态色 */
.dim { color: #666; }
.ok { color: #178a3c; }
.bad { color: #cc0000; }
.gold { color: #b8860b; font-weight: bold; }
.notice { color: #cc0000; }
.ad a.lk { color: #0b57d0; }
.lockmark { color: #b8860b; font-size: 13px; }

/* ── 顶部浮层通知 ───────────────────────────────
   fixed 脱离文档流：出现/消失都不改变页面布局，不触发重排。
   仅用 transform + opacity 做动画（合成层，不引起 layout）。 */
#notify {
  position: fixed;
  /* 贴右下角：避开页首标题与顶部操作链接，不遮挡正在读的内容 */
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));  /* 贴底，兼顾全面屏安全区 */
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  pointer-events: none;         /* 容器不拦截点击 */
}

.ntf {
  max-width: 460px;
  width: 100%;
  padding: 7px 11px;
  font-size: 14px;
  line-height: 1.55;
  color: #333;
  background: #ffffff;
  border: 1px solid #d8d8d8;
  border-left: 3px solid #999;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .13);
  word-break: break-all;
  pointer-events: auto;         /* 单条可点击关闭 */
  cursor: pointer;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity .22s ease, transform .22s ease;
  will-change: transform, opacity;
}
.ntf.show { opacity: 1; transform: translateY(0); }
.ntf.hide { opacity: 0; transform: translateY(8px); }

.ntf.ok { border-left-color: #178a3c; background: #f4faf6; color: #14602c; }
.ntf.bad { border-left-color: #cc0000; background: #fdf5f5; color: #a00000; }

@media (prefers-reduced-motion: reduce) {
  .ntf { transition: opacity .12s linear; transform: none; }
  .ntf.show, .ntf.hide { transform: none; }
}

/* ── 分页输入框 ─────────────────────────────── */
.pgin {
  width: 46px;
  height: 22px;
  margin-left: 6px;
  padding: 0 4px;
  border: 1px solid #999;
  background: #fff;
  font-family: inherit;
  font-size: 14px;
  vertical-align: middle;
}

/* ── 开场表单 ───────────────────────────────── */
.tin {
  width: 150px;
  height: 26px;
  padding: 0 6px;
  border: 1px solid #999;
  background: #fff;
  font-family: inherit;
  font-size: 15px;
}
.cu-list {
  padding: 2px 0;
}
.cu-opt {
  display: block;
  padding: 2px 0;
  font-size: 15px;
  cursor: pointer;
}
.cu-opt input {
  margin-right: 6px;
  vertical-align: -1px;
}

#intro {
  padding-top: calc(10px + env(safe-area-inset-top, 0px));
}
.intro-h {
  font-size: 19px;
  font-weight: bold;
  padding: 6px 0 2px;
}
.intro-sub {
  color: #666;
  font-size: 14px;
  padding-bottom: 8px;
}

@media (min-width: 520px) {
  body { background: #e9e9e9; }
  #wrap {
    background: #fff;
    min-height: 100vh;
    box-shadow: 0 0 12px rgba(0,0,0,.12);
  }
}
