* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  position: relative;
  overflow: hidden;
  color: #fff;
}

/* ---------- 天空 ---------- */
.sky {
  position: fixed; inset: 0;
  background: linear-gradient(90deg, #f5c06f 0%, #e8935a 30%, #a98fb8 62%, #4c6f9c 100%);
  z-index: -2;
}
.sea-sky {
  position: fixed; inset: 0;
  background: linear-gradient(#33557e 0%, #1d3a5c 45%, #122c47 100%);
  z-index: -2;
}
.sea-sky::before {
  content: "";
  position: absolute;
  top: 8%; right: 12%;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #f4ecd2;
  box-shadow: 0 0 40px 14px rgba(244, 236, 210, 0.25);
}

/* ---------- 门牌 ---------- */
.gate, .room {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: 24px;
}

.sign h1 {
  font-size: clamp(26px, 6vw, 44px);
  letter-spacing: 0.18em;
  font-weight: 600;
  text-shadow: 0 2px 18px rgba(60, 30, 10, 0.35);
}
.sign .sub {
  margin-top: 10px;
  font-size: 14px;
  letter-spacing: 0.35em;
  opacity: 0.9;
}

.hello {
  margin: 26px 0 30px;
  font-size: 15px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
}

/* ---------- 两扇门 ---------- */
.doors {
  display: flex; gap: 18px;
  flex-wrap: wrap; justify-content: center;
}
.door {
  display: flex; flex-direction: column;
  gap: 6px;
  width: 190px;
  padding: 20px 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
  text-decoration: none; color: #fff;
  transition: transform 0.25s ease, background 0.25s ease;
}
.door:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.26);
}
.door-name {
  font-size: 13px; letter-spacing: 0.2em;
  opacity: 0.85;
}
.door-who {
  font-size: 19px; font-weight: 600;
}
.door-note {
  margin-top: 4px;
  font-size: 12px;
  opacity: 0.8;
}

/* ---------- 房间页 ---------- */
.room h1 {
  font-size: clamp(24px, 5.5vw, 38px);
  letter-spacing: 0.15em;
  margin-bottom: 22px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
}
.room-line {
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.06em;
}
.room-line.soft {
  margin-top: 14px;
  font-size: 13px;
  opacity: 0.7;
}
.back, .chat-link {
  margin-top: 26px;
  padding: 10px 22px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff; text-decoration: none;
  font-size: 14px; letter-spacing: 0.1em;
}
.chat-link { margin-top: 12px; }
.back:hover, .chat-link:hover {
  background: rgba(255, 255, 255, 0.28);
}

footer {
  position: fixed; left: 0; right: 0; bottom: 46px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.75);
  z-index: 2;
}

/* ---------- 草地 ---------- */
.grass {
  position: fixed; left: 0; right: 0; bottom: 0; height: 130px;
  background: linear-gradient(#4c8f46 0%, #2f5f2c 60%, #1f421d 100%);
  z-index: 2;
}
/* 草叶单独一层，会随风晃 */
.grass::before {
  content: "";
  position: absolute;
  left: -30px; right: -30px; top: -46px; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='120'%20height='60'%20viewBox='0%200%20120%2060'%3E%3Cg%20stroke='%233f7d3a'%20stroke-width='3'%20fill='none'%20stroke-linecap='round'%3E%3Cpath%20d='M15%2060%20C%2012%2044,%208%2040,%205%2026'/%3E%3Cpath%20d='M22%2060%20C%2020%2040,%2024%2032,%2030%2018'/%3E%3Cpath%20d='M30%2060%20C%2032%2042,%2028%2036,%2034%2022'/%3E%3Cpath%20d='M70%2060%20C%2068%2044,%2064%2038,%2061%2024'/%3E%3Cpath%20d='M78%2060%20C%2076%2042,%2080%2034,%2086%2020'/%3E%3Cpath%20d='M86%2060%20C%2088%2044,%2084%2038,%2090%2026'/%3E%3C/g%3E%3C/svg%3E") repeat-x bottom;
  background-size: 150px 80px;
  transform-origin: bottom center;
  animation: sway 3.2s ease-in-out infinite alternate;
}
@keyframes sway {
  from { transform: rotate(-2.4deg) translateX(-4px); }
  to   { transform: rotate(2.4deg) translateX(4px); }
}

/* ---------- 海浪 ---------- */
.waves {
  position: fixed; left: 0; right: 0; bottom: 0; height: 150px;
  z-index: 2;
  overflow: hidden;
}
.waves::before, .waves::after {
  content: "";
  position: absolute;
  left: -10%; width: 120%;
  border-radius: 44%;
  background: rgba(96, 165, 205, 0.5);
}
.waves::before {
  height: 90px; bottom: -45px;
  animation: roll 7s linear infinite;
}
.waves::after {
  height: 110px; bottom: -55px;
  background: rgba(52, 110, 150, 0.65);
  animation: roll 11s linear infinite reverse;
}
@keyframes roll {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
