/* 站点纸条：卡片、弹层、写纸条。车厢页和站点页共用 */
.nc {
  --w: 132px; --pc: #FFF4C8;
  position: relative; width: var(--w); height: var(--w); flex: none; padding: 14px 10px 8px; border: 0; border-radius: 3px;
  background: var(--pc); color: #3A2C35; text-align: left; display: flex; flex-direction: column; gap: 4px; overflow: hidden;
  box-shadow: 0 6px 12px -6px rgba(58,44,53,.45), 0 1px 0 rgba(0,0,0,.05); transform: rotate(var(--r, 0deg)); font: inherit; cursor: pointer;
}
.nc::before { /* 胶带 */
  content: ""; position: absolute; top: -6px; left: 50%; width: 46px; height: 16px; margin-left: -23px;
  background: rgba(255,255,255,.55); box-shadow: 0 1px 2px rgba(0,0,0,.08); transform: rotate(-3deg);
}
.nc.passby { --pc: #DDEBF3; }
.nc.photo { --pc: #FBF7EF; padding: 8px 8px 6px; }
.nc .txt { font-size: 13px; line-height: 1.45; flex: 1; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; word-break: keep-all; overflow-wrap: anywhere; }
.nc .ph { flex: 1; min-height: 0; background: #ddd center / cover; border-radius: 1px; }
.nc .cap { font-size: 11px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nc .tip { flex: 1; display: flex; flex-direction: column; gap: 3px; min-height: 0; overflow: hidden; }
.nc .tip .cat { font-size: 11px; opacity: .65; }
.nc .tip b { font-size: 14px; line-height: 1.3; word-break: keep-all; }
.nc .tip p { font-size: 12px; line-height: 1.35; opacity: .85; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nc .by { font-size: 10px; opacity: .55; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 弹层 */
.nroot { position: fixed; inset: 0; z-index: 60; pointer-events: none; }
.nbg { position: absolute; inset: 0; background: rgba(40,28,34,.45); display: grid; place-items: center; padding: 16px; pointer-events: auto; animation: nfade .2s; }
@keyframes nfade { from { opacity: 0; } }
.nmodal {
  position: relative; width: 100%; max-width: 420px; max-height: calc(100dvh - 32px); overflow: auto;
  background: #FBF4E6; color: #3A2C35; border-radius: 18px; padding: 22px 20px 20px; box-shadow: 0 20px 40px -10px rgba(0,0,0,.4);
  font-family: "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
}
.nmodal h2 { font-size: 18px; margin: 0 28px 14px 0; }
.nmodal h2 small { font-size: 13px; font-weight: 400; opacity: .6; margin-left: 6px; }
.nx { position: absolute; top: 10px; right: 12px; width: 32px; height: 32px; border: 0; background: none; font-size: 24px; line-height: 1; opacity: .5; cursor: pointer; color: inherit; }
.nbig { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 10px 0 6px; }
.nbig .kind { font-size: 12px; opacity: .6; }
.nbig .nc { --w: min(320px, 78vw); cursor: default; padding: 22px 18px 12px; height: auto; min-height: min(220px, 56vw); }
.nbig .nc.photo { height: auto; padding: 10px 10px 10px; }
.nbig .nc.photo .ph { height: calc(var(--w) - 20px); flex: none; }
.nbig .nc .txt { font-size: 18px; -webkit-line-clamp: 9; }
.nbig .nc .cap { white-space: normal; font-size: 14px; margin-top: 4px; }
.nbig .nc .tip b { font-size: 20px; }
.nbig .nc .tip p { font-size: 15px; -webkit-line-clamp: 6; }
.nbig .nc .by { font-size: 12px; }
.nacts { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 14px; }
.nbtn {
  border: 0; border-radius: 999px; padding: 10px 18px; background: rgba(58,44,53,.08); color: inherit; font: inherit; font-weight: 600; cursor: pointer;
}
.nbtn.primary { background: #C4553F; color: #FFF6EC; width: 100%; margin-top: 6px; padding: 13px; }
.nbtn:disabled { opacity: .5; }
.nbtn.thanks.on { background: #C4553F; color: #FFF6EC; }
.nlink { border: 0; background: none; color: inherit; opacity: .6; text-decoration: underline; font: inherit; font-size: 13px; cursor: pointer; }
.nlink.block { display: block; text-align: center; margin-top: 14px; }
.ntabs { display: flex; gap: 6px; margin-bottom: 12px; }
.ntabs button, .cats button { flex: 1; border: 1px solid rgba(58,44,53,.18); background: transparent; border-radius: 999px; padding: 8px 6px; font: inherit; font-size: 14px; color: inherit; cursor: pointer; }
.ntabs button.on, .cats button.on { background: #3A2C35; color: #FBF4E6; border-color: #3A2C35; }
.cats { display: flex; gap: 6px; margin-bottom: 10px; }
.cats button { font-size: 13px; }
.nmodal textarea, .nmodal input:not([type=file]) {
  width: 100%; border: 1px solid rgba(58,44,53,.2); border-radius: 10px; background: #fff; padding: 11px 12px; font: inherit; font-size: 16px; color: inherit; margin-bottom: 8px;
}
.nmodal textarea { height: 110px; resize: none; }
.nmodal .ncode { text-align: center; letter-spacing: .15em; font-size: 20px; text-transform: uppercase; }
.pick { display: grid; place-items: center; min-height: 150px; border: 2px dashed rgba(58,44,53,.25); border-radius: 12px; margin-bottom: 8px; cursor: pointer; overflow: hidden; }
.pick img { width: 100%; max-height: 260px; object-fit: contain; display: block; }
.nnote { font-size: 12px; opacity: .6; line-height: 1.5; margin: 4px 0 6px; }
.nerr { font-size: 13px; color: #C4553F; min-height: 1em; margin: 2px 0; }
.ntoast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; z-index: 70; transition: .3s;
  background: #3A2C35; color: #FBF4E6; padding: 11px 18px; border-radius: 999px; font-size: 14px; max-width: calc(100vw - 32px); text-align: center;
}
.ntoast.show { opacity: 1; transform: translate(-50%, 0); }

/* 第一张纸条的印章 */
.nc .stamp { position: absolute; right: 6px; bottom: 18px; z-index: 2; font-style: normal; font-size: 10px; font-weight: 700; color: #C4553F;
  border: 1.5px solid #C4553F; border-radius: 4px; padding: 1px 5px; transform: rotate(-8deg); opacity: .85; background: rgba(255,255,255,.35); pointer-events: none; }
.nbig .nc .stamp { font-size: 13px; right: 12px; bottom: 26px; }
.langhint { position: fixed; top: max(10px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); z-index: 80; display: flex; align-items: center; gap: 6px;
  background: #3A2C35; color: #FBF4E6; text-decoration: none; font-size: 13px; padding: 7px 8px 7px 14px; border-radius: 999px; box-shadow: 0 6px 16px -8px rgba(0,0,0,.5); }
.langhint button { border: 0; background: rgba(255,255,255,.15); color: inherit; width: 22px; height: 22px; border-radius: 50%; font-size: 14px; line-height: 1; }
.tsbox { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; }
