/* ==========================================================================
   房间管理988888 内页骨架：中式门牌风 · 居中印章 Hero + 门牌照 + 房间导航目录 + 进门三步
   ========================================================================== */

:root {
  --rm-crimson: #9a3412;
  --rm-crimson-dk: #7c2d12;
  --rm-gold: #fbbf24;
  --rm-amber: #d97706;
  --rm-paper: #fdf6f0;
  --rm-ink: #3f2212;
  --rm-muted: #6b5544;
  --rm-line: #f0d8c4;
  --rm-serif: Georgia, "Noto Serif SC", "Songti SC", "STSong", serif;
}

body.rm-page {
  background: var(--rm-paper);
  color: var(--rm-ink);
}

.rm-page .brand-mark {
  background: linear-gradient(140deg, var(--rm-amber), var(--rm-crimson));
  color: #fff7ed;
  box-shadow: 0 6px 16px rgba(154, 52, 18, .32);
}
.rm-page .brand-text em { color: var(--rm-crimson); }
.rm-page .site-nav a.is-active { color: var(--rm-crimson); }
.rm-page .site-nav a::after { background: var(--rm-amber); }
.rm-page .btn-login {
  background: linear-gradient(135deg, var(--rm-amber), var(--rm-crimson));
  box-shadow: 0 8px 20px rgba(154, 52, 18, .3);
}
.rm-page .btn-login:hover { box-shadow: 0 12px 26px rgba(154, 52, 18, .4); }
.rm-page .footer-contact a:hover { border-color: var(--rm-gold); background: rgba(251, 191, 36, .08); }
.rm-page .footer-col a:hover { color: var(--rm-gold); }

/* ---------------- Hero：居中印章 ---------------- */
.rm-hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 70px;
  text-align: center;
  background:
    radial-gradient(680px 420px at 50% -10%, rgba(251, 191, 36, .22), transparent 62%),
    radial-gradient(560px 400px at 0% 100%, rgba(154, 52, 18, .08), transparent 70%),
    linear-gradient(180deg, #fffaf5, var(--rm-paper));
}

.rm-hero::before,
.rm-hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rm-amber), transparent);
  opacity: .5;
}

.rm-hero::before { top: 26px; }
.rm-hero::after { bottom: 26px; }

.rm-seal {
  display: inline-grid;
  place-items: center;
  width: 96px; height: 96px;
  margin-bottom: 26px;
  border: 3px solid var(--rm-crimson);
  border-radius: 14px;
  color: var(--rm-crimson);
  font-family: var(--rm-serif);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 4px;
  line-height: 1.5;
  box-shadow: inset 0 0 0 4px var(--rm-paper), inset 0 0 0 6px rgba(154, 52, 18, .35);
  transform: rotate(-3deg);
}

.rm-seal span { writing-mode: vertical-rl; }

.rm-hero h1 {
  font-family: var(--rm-serif);
  font-size: clamp(34px, 4.8vw, 56px);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.rm-hero h1 .no {
  color: var(--rm-crimson);
  font-family: Georgia, var(--rm-serif);
  letter-spacing: 4px;
}

.rm-hero .sub {
  display: inline-block;
  max-width: 640px;
  margin: 0 auto;
  font-size: 16.5px;
  line-height: 1.95;
  color: var(--rm-muted);
}

.rm-hero .sub strong { color: var(--rm-ink); }

.rm-hero .actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}

.rm-page .btn-primary {
  background: linear-gradient(135deg, var(--rm-amber), var(--rm-crimson));
  color: #fff;
  box-shadow: 0 10px 26px rgba(154, 52, 18, .32);
}

.rm-page .btn-primary:hover { box-shadow: 0 14px 32px rgba(154, 52, 18, .42); }

.rm-page .btn-room {
  background: #fff;
  border-color: var(--rm-line);
  color: var(--rm-crimson);
}

/* 门牌照视觉 */
.rm-plaque-visual {
  position: relative;
  max-width: 460px;
  margin: 48px auto 0;
}

.rm-plaque-visual img {
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-m);
}

.rm-plaque-visual::before {
  content: "";
  position: absolute;
  inset: 16px -14px -14px 40px;
  border-radius: var(--radius-l);
  border: 2px solid rgba(217, 119, 6, .3);
  z-index: -1;
}

/* ---------------- 房间导航目录（深红） ---------------- */
.rm-catalog {
  background: linear-gradient(160deg, var(--rm-crimson-dk), var(--rm-crimson) 70%, #b45309 140%);
  color: #fdf6f0;
  padding: 74px 0 80px;
}

.rm-catalog-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}

.rm-catalog h2 {
  font-family: var(--rm-serif);
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
}

.rm-catalog .intro {
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.95;
  color: rgba(253, 246, 240, .78);
}

.rm-catalog .intro strong { color: #fde68a; }

.rm-dir {
  display: grid;
  gap: 14px;
}

.rm-dir a {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  border-radius: var(--radius-m);
  background: rgba(255, 247, 237, .06);
  border: 1px solid rgba(253, 230, 138, .22);
  transition: all .22s;
}

.rm-dir a:hover {
  background: rgba(253, 230, 138, .14);
  border-color: rgba(253, 230, 138, .5);
  transform: translateX(6px);
}

.rm-dir .no {
  flex: none;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(253, 230, 138, .16);
  border: 1px solid rgba(253, 230, 138, .35);
  color: var(--rm-gold);
  font-family: Georgia, serif;
  font-size: 17px;
  font-weight: 700;
}

.rm-dir h3 { font-size: 16.5px; font-weight: 700; color: #fff; margin-bottom: 4px; }

.rm-dir p { font-size: 13.5px; color: rgba(253, 246, 240, .66); }

.rm-dir .go {
  margin-left: auto;
  color: var(--rm-gold);
  font-size: 18px;
  font-weight: 700;
}

/* ---------------- 进门三步 ---------------- */
.rm-section { padding: 84px 0 0; }

.rm-head {
  max-width: 560px;
  margin-bottom: 44px;
}

.rm-head .k {
  display: inline-block;
  font-family: var(--rm-serif);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--rm-amber);
  margin-bottom: 14px;
}

.rm-head h2 {
  font-family: var(--rm-serif);
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 700;
  letter-spacing: .5px;
}

.rm-head p { margin-top: 12px; color: var(--rm-muted); font-size: 15.5px; line-height: 1.8; }

.rm-steps {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 22px;
  margin-bottom: 70px;
}

.rm-step {
  position: relative;
  padding: 30px 26px 28px;
  border-radius: var(--radius-m);
  background: #fff;
  border: 1px solid var(--rm-line);
  box-shadow: var(--shadow-s);
}

.rm-step::before {
  content: attr(data-no);
  position: absolute;
  top: -16px;
  left: 24px;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--rm-crimson);
  color: var(--rm-gold);
  font-family: Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(154, 52, 18, .3);
}

.rm-step h3 { font-size: 17.5px; font-weight: 800; margin: 10px 0 8px; }

.rm-step p { font-size: 14px; line-height: 1.75; color: var(--rm-muted); }

.rm-step .tip {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #fdf2e4;
  color: var(--rm-crimson);
  font-size: 13px;
  line-height: 1.6;
}

/* ---------------- 规则 + 开放时间侧栏 ---------------- */
.rm-rule {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 26px;
  margin-bottom: 70px;
}

.rm-rule-list {
  padding: 30px;
  border-radius: var(--radius-m);
  background: #fff;
  border: 1px solid var(--rm-line);
  box-shadow: var(--shadow-s);
}

.rm-rule-list h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--rm-line);
}

.rm-rule-list li {
  position: relative;
  padding: 9px 0 9px 26px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--rm-ink);
}

.rm-rule-list li::before {
  content: "※";
  position: absolute;
  left: 0;
  color: var(--rm-amber);
}

.rm-time-card {
  padding: 30px;
  border-radius: var(--radius-m);
  background: linear-gradient(160deg, var(--rm-crimson), var(--rm-crimson-dk));
  color: #fff;
  box-shadow: var(--shadow-m);
}

.rm-time-card h3 {
  font-family: var(--rm-serif);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.rm-time-card .now {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(253, 230, 138, .14);
  border: 1px solid rgba(253, 230, 138, .3);
  margin-bottom: 18px;
}

.rm-time-card .now i {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, .25);
}

.rm-time-card .now b { font-size: 16px; }

.rm-time-card .now span { display: block; font-size: 12.5px; color: rgba(253, 246, 240, .7); }

.rm-time-card ul li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(253, 246, 240, .12);
  font-size: 14px;
}

.rm-time-card ul li:last-child { border-bottom: 0; }

.rm-time-card ul li span { color: rgba(253, 246, 240, .66); }

.rm-time-card ul li b { color: var(--rm-gold); font-family: Georgia, serif; }

/* ---------------- 排查折叠 ---------------- */
.rm-faq { margin-bottom: 70px; }

.rm-faq .faq-acc { display: grid; gap: 12px; }

.rm-faq .acc-item {
  background: #fff;
  border: 1px solid var(--rm-line);
  border-radius: var(--radius-m);
  overflow: hidden;
}

.rm-faq .acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: transparent;
  border: 0;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--rm-ink);
  text-align: left;
}

.rm-faq .acc-trigger .sign {
  flex: none;
  width: 26px; height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(217, 119, 6, .14);
  position: relative;
}

.rm-faq .acc-trigger .sign::before,
.rm-faq .acc-trigger .sign::after {
  content: "";
  position: absolute;
  background: var(--rm-amber);
  border-radius: 2px;
  transition: transform .25s;
}

.rm-faq .acc-trigger .sign::before { width: 12px; height: 2px; }
.rm-faq .acc-trigger .sign::after { width: 2px; height: 12px; }

.rm-faq .acc-item.is-open .sign::after { transform: rotate(90deg); opacity: 0; }

.rm-faq .acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s ease;
}

.rm-faq .acc-item.is-open .acc-panel { grid-template-rows: 1fr; }

.rm-faq .acc-panel > div { overflow: hidden; }

.rm-faq .acc-panel p { padding: 0 24px 20px; font-size: 14.5px; line-height: 1.85; color: var(--rm-muted); }

.rm-faq .acc-panel a { color: var(--rm-crimson); font-weight: 600; }

/* ---------------- 相关 ---------------- */
.rm-related {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.rm-related a {
  display: block;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--rm-line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-s);
  transition: transform .22s, box-shadow .22s;
}

.rm-related a:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(154, 52, 18, .16);
  border-color: var(--rm-gold);
}

.rm-related strong { display: block; font-size: 15.5px; font-weight: 800; margin-bottom: 5px; }

.rm-related span { font-size: 13.5px; color: var(--rm-muted); }

/* ---------------- 动画 ---------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease;
}

[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 980px) {
  .rm-catalog-grid { grid-template-columns: 1fr; gap: 32px; }
  .rm-steps { grid-template-columns: 1fr; }
  .rm-rule { grid-template-columns: 1fr; }
  .rm-related { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .rm-hero { padding: 64px 0 48px; }
  .rm-hero h1 { font-size: 32px; }
  .rm-seal { width: 80px; height: 80px; font-size: 13px; }
  .rm-dir .go { display: none; }
}
