/* =====================================================================
   牛马新天地 · 带薪绿皮车
   ===================================================================== */
.room.is-train { --accent: #2F6B4F; }
.room-card-train .room-art { background: #F3EAD3; }

.scene-train .bg {
  background:
    linear-gradient(#5E4B3A 0 1.2%, transparent 1.2%),
    linear-gradient(transparent 38%, #2F6B4F 38% 44%, transparent 44%),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.03) 0 2px, transparent 2px 40px),
    linear-gradient(#F3EAD3 0 44%, #CFC4AE 44%);
}
.scene-train .floor {
  left: 0; right: 0; top: 44%; bottom: 0;
  background:
    linear-gradient(transparent 0 calc(50% - 30px), rgba(255, 255, 255, 0.25) calc(50% - 30px) calc(50% - 24px), transparent calc(50% - 24px)),
    repeating-linear-gradient(90deg, #8A9A86 0 80px, #839480 80px 160px);
}
.tr-rack { left: 2%; right: 2%; top: 2.2%; height: 2.6%; z-index: 4; border: 4px solid #6B5A4E; border-radius: 6px; background: repeating-linear-gradient(90deg, #A89A86 0 6px, transparent 6px 22px); pointer-events: none; }

/* 窗：每扇窗里四层风景 + 隧道 + 玻璃反光 */
.tr-win {
  margin-left: calc(var(--x, 0) * 1px); translate: -50% 0; z-index: 5; overflow: hidden; cursor: pointer; pointer-events: auto;
  border: 14px solid #E9DFC8; border-radius: 26px; outline: 4px solid #6B5A4E;
  box-shadow: inset 0 0 0 4px #6B5A4E, 0 10px 0 -2px rgba(0, 0, 0, 0.15);
}
.tr-l { position: absolute; inset: 0; display: block; background-repeat: repeat-x; pointer-events: none; }
.tr-far { background-size: 1400px 100%; }
.tr-mid { background-size: 900px 100%; }
.tr-near { background-size: 600px 100%; filter: blur(0.6px); }
.tr-glass { background: linear-gradient(115deg, rgba(255, 255, 255, 0.28) 0 18%, transparent 18% 32%, rgba(255, 255, 255, 0.12) 32% 38%, transparent 38%); }
.tr-tunnel { background: #0B0B10; opacity: 0; transition: opacity 0.6s ease; }
.tr-tunnel i { position: absolute; left: 0; top: 30%; width: 100%; height: 8px; background: repeating-linear-gradient(90deg, #FFD36E 0 30px, transparent 30px 260px); animation: tr-lamp 0.4s linear infinite; opacity: 0.8; }
@keyframes tr-lamp { to { background-position: -260px 0; } }
.tr-in-tunnel .tr-tunnel { opacity: 1; }
.tr-in-tunnel .bg, .tr-in-tunnel .floor { filter: brightness(0.72); }
.tr-night .bg, .tr-night .floor { filter: brightness(0.82) saturate(0.9); }
.tr-curtain { position: absolute; top: -6px; bottom: 30%; width: 18%; background: repeating-linear-gradient(90deg, #B8453A 0 8px, #9E382F 8px 14px); border: 2px solid #5E2A22; pointer-events: none; }
.tr-curtain.l { left: -4px; border-radius: 0 0 40% 0; }
.tr-curtain.r { right: -4px; border-radius: 0 0 0 40%; }
.tr-flash .tr-win { animation: tr-flash 0.4s ease; }
@keyframes tr-flash { 30% { filter: brightness(2.2); } }

.tr-led { left: 50%; top: 0.2%; width: 760px; margin-left: -380px; height: 34px; z-index: 6; overflow: hidden; border: 4px solid #2B2A33; border-radius: 8px; background: #0E0B08; pointer-events: none; }
.tr-led-in { position: absolute; top: 3px; left: 0; white-space: nowrap; color: #FF5A3C; font: 900 18px var(--mono); text-shadow: 0 0 6px #FF5A3C; animation: tr-marquee 26s linear infinite; padding-left: 100%; }
@keyframes tr-marquee { to { translate: -100% 0; } }
.tr-sign-l, .tr-sign-r { top: 39.5%; z-index: 6; padding: 2px 12px; border-radius: 6px; background: #F3EAD3; color: #2F6B4F; font-size: 16px; font-weight: 900; pointer-events: none; }
.tr-sign-l { left: 3%; }
.tr-sign-r { right: 3%; }

.tr-table { width: 150px; height: 60px; margin: -30px 0 0 -75px; border: 4px solid #5E4B3A; border-radius: 10px; background: linear-gradient(#E9DFC8, #D9CBAE); pointer-events: none; }
.tr-table::after { content: ""; position: absolute; left: 50%; top: 100%; width: 10px; height: 36px; margin-left: -5px; background: #5E4B3A; }
.tr-cup { position: absolute; left: 20px; top: 8px; width: 18px; height: 22px; border: 3px solid var(--ink); border-radius: 3px 3px 6px 6px; background: linear-gradient(#fff 30%, #C79A5A 30%); }

.tr-door { left: 50%; top: 96.4%; width: 340px; margin-left: -170px; padding: 3px 0; z-index: 3; border: 3px solid #5E4B3A; border-radius: 10px; background: #E9DFC8; text-align: center; pointer-events: none; }
.tr-door b { display: block; font-size: 15px; color: #2F6B4F; }
.tr-door span { font-size: 12px; font-weight: 800; color: var(--muted); }
.scene .ad-train { z-index: 7; }

/* 座位：蓝色高背硬座 + 白色头巾 */
.tr-seat { left: -36px; top: -88px; width: 72px; height: 100px; border: 3px solid var(--ink); border-radius: 16px 16px 8px 8px; background: radial-gradient(circle, rgba(0, 0, 0, 0.15) 0 2px, transparent 3px) 4px 4px / 12px 12px, #3D6FA8; }
.tr-seat > i { position: absolute; left: 10px; right: 10px; top: 6px; height: 22px; border: 2px solid #B9B2A3; border-radius: 4px; background: #F7F3E9; }
.scene-train .seat.is-open:hover .tr-seat { background-color: #5B8DEF; }
.scene-train .seat .leg, .scene-train .seat .arm { display: block; }
.scene-train .seat .occupant { --top: 74px; }
.scene-train .seat .av-body { top: -34px; height: 26px; border-radius: 14px 14px 12px 12px; }
.scene-train .seat .av-head { top: -64px; }
.scene-train .seat .arm { top: -32px; height: 18px; }
.scene-train .seat .leg { top: -10px; width: 20px; height: 12px; border-radius: 8px; transform: none; z-index: 2; }
.scene-train .seat .leg-l { left: -30px; }
.scene-train .seat .leg-r { left: 10px; }
/* 两个人隔着小桌子面对面，稍微侧一点 */
.scene-train .seat.side-l .av { rotate: 4deg; }
.scene-train .seat.side-r .av { rotate: -4deg; }
.tr-snack { left: 14px; top: -24px; font-size: 22px; font-style: normal; }
.side-l .tr-snack { left: 18px; }
.side-r .tr-snack { left: -40px; }
.tr-phones { display: none; left: -16px; top: -84px; font-size: 22px; font-style: normal; }
.has-phones .tr-phones { display: block; }
.has-phones .av-head { animation: tr-nod 0.9s ease-in-out infinite !important; }
@keyframes tr-nod { 50% { rotate: 6deg; } }
.tr-zz { display: none; left: 18px; top: -100px; font-size: 24px; font-style: normal; animation: zz 2s ease-in-out infinite; }
.scene-train .is-asleep .tr-zz { display: block; }
.scene-train .is-asleep .av { rotate: 14deg; translate: 4px 4px; }
.scene-train .is-asleep .av-face { background: linear-gradient(var(--ink), var(--ink)) 8% 50% / 7px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) 92% 50% / 7px 2px no-repeat; }

/* 推车 */
.tr-cart { position: absolute; top: 64%; width: 0; height: 0; pointer-events: auto; cursor: pointer; }
.tr-cart[hidden] { display: none; }
.tr-cart-host { position: absolute; left: 70px; top: 0; }
.cart-staff { scale: 1.05; }
.cart-staff .leg-l { animation: step-l 0.5s ease-in-out infinite; }
.cart-staff .leg-r { animation: step-r 0.5s ease-in-out infinite; }
.cart-staff .av-body, .cart-staff .leg, .cart-staff .arm { background: #2F6B4F; }
.cart-staff .arm-l { rotate: 60deg; }
.tr-cart-box { position: absolute; left: -60px; top: -86px; width: 110px; padding: 6px 4px; border: 4px solid var(--ink); border-radius: 10px; background: #D9D4C7; font-style: normal; font-size: 20px; line-height: 1.25; text-align: center; }
.tr-cart-box::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: -20px; height: 16px; background: radial-gradient(circle, #2B2A33 6px, transparent 7px) 0 50% / 50% 100% repeat-x; }
.tr-cart-say { position: absolute; left: 0; top: -150px; translate: -30% 0; padding: 4px 12px; border: 3px solid var(--ink); border-radius: 14px; background: #fff; font-size: 15px; font-weight: 900; white-space: nowrap; }

.room.is-train .dock .latte-slot.got { background: #DFF3E6; }
