/* ==========================================================================
   mjkf.app — 基础层
   设计语言：服务总台 / 纸质档案 / 印章与编号
   仅包含：变量 / 重置 / 顶部导航 / 页脚 / 通用按钮 / 通用小组件
   七个关键词内页各有独立骨架，布局样式写在各自 CSS 中。
   ========================================================================== */

:root {
  --paper: #f7f3e9;
  --paper-2: #efe8d7;
  --cream: #fbf8f0;
  --ink: #17211c;
  --ink-2: #35433b;
  --muted: #6c766e;
  --line: #d9d1bd;
  --line-strong: #b8ae95;
  --green: #0d3b2e;
  --green-2: #155843;
  --green-3: #1f7a5c;
  --orange: #bf5424;
  --orange-2: #e07a3f;
  --orange-soft: #f4ddcc;
  --gold: #a97c22;
  --red: #a52a1f;
  --shadow-s: 3px 3px 0 rgba(23, 33, 28, .14);
  --shadow-m: 6px 6px 0 rgba(23, 33, 28, .12);
  --font-sans: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-serif: "Noto Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --container: 1180px;
  --header-h: 74px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

::selection { background: var(--orange); color: var(--cream); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--cream);
  font-size: 14px;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(247, 243, 233, .95);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--ink);
}

.site-header.is-scrolled { box-shadow: 0 10px 30px rgba(23, 33, 28, .1); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.brand-seal {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--green);
  color: var(--cream);
  border: 1px solid var(--ink);
  box-shadow: 2px 2px 0 var(--orange);
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 700;
  line-height: 1;
  transform: rotate(-2deg);
}

.brand-text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.15;
}

.brand-text small {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: .24em;
  color: var(--muted);
  margin-top: 3px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.site-nav a {
  position: relative;
  padding: 9px 11px;
  font-size: 14px;
  color: var(--ink-2);
  white-space: nowrap;
  transition: color .18s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 4px;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}

.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after,
.site-nav a.is-active::after { transform: scaleX(1); }
.site-nav a.is-active { color: var(--ink); font-weight: 700; }

.header-cta {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--ink);
  background: var(--cream);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 2px 2px 0 var(--ink);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.header-cta:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--ink);
  background: var(--orange-soft);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--ink);
  background: var(--cream);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 24px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

a.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

a.btn:active {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 var(--ink);
}

.btn-primary {
  background: var(--green);
  color: var(--cream);
}

.btn-primary:hover { background: var(--green-2); }

.btn-room {
  background: var(--orange-soft);
  cursor: default;
}

.btn-room .room-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
}

.btn-room .room-no {
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--red);
}

.btn-arrow {
  font-family: var(--font-mono);
  font-size: 17px;
  transition: transform .18s ease;
}

a.btn:hover .btn-arrow { transform: translateX(3px); }

/* ---------- 通用标题 ---------- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--orange);
}

.section-label::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--orange);
}

.section-title {
  margin-top: 12px;
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .01em;
}

.section-lead {
  margin-top: 12px;
  max-width: 680px;
  color: var(--muted);
  font-size: 15.5px;
}

/* ---------- 通用小组件 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid var(--line-strong);
  background: var(--cream);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--ink-2);
}

.tag-hot {
  border-color: var(--orange);
  background: var(--orange-soft);
  color: var(--red);
}

.dot-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-3);
  box-shadow: 0 0 0 0 rgba(31, 122, 92, .55);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(31, 122, 92, .5); }
  70% { box-shadow: 0 0 0 8px rgba(31, 122, 92, 0); }
  100% { box-shadow: 0 0 0 0 rgba(31, 122, 92, 0); }
}

/* 通用 FAQ（details） */
.faq-list {
  border-top: 1px solid var(--line-strong);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 2px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  flex: none;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 400;
  color: var(--green);
  transition: transform .2s ease, background .2s ease, color .2s ease;
}

.faq-list details[open] summary::after {
  content: "−";
  background: var(--green);
  border-color: var(--green);
  color: var(--cream);
}

.faq-list .faq-a {
  padding: 0 40px 20px 2px;
  color: var(--muted);
  font-size: 14.5px;
}

.faq-list .faq-a strong { color: var(--ink); }

/* 通用 CTA 条 */
.cta-strip {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--ink);
  background: var(--green);
  color: var(--cream);
  padding: 44px;
  box-shadow: var(--shadow-m);
}

.cta-strip::after {
  content: "988888";
  position: absolute;
  right: -10px;
  bottom: -34px;
  font-family: var(--font-mono);
  font-size: 120px;
  font-weight: 600;
  letter-spacing: -.02em;
  color: rgba(251, 248, 240, .07);
  pointer-events: none;
}

.cta-strip h2 {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.3;
}

.cta-strip p {
  margin-top: 10px;
  max-width: 560px;
  color: rgba(251, 248, 240, .78);
  font-size: 15px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.cta-strip .btn {
  border-color: var(--cream);
  box-shadow: 4px 4px 0 rgba(251, 248, 240, .28);
}

.cta-strip .btn-primary {
  background: var(--orange);
  color: var(--cream);
}

.cta-strip .btn-room {
  background: var(--cream);
  color: var(--ink);
}

.cta-strip .btn-room .room-no { color: var(--red); }

/* 通用相关入口 */
.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.related-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border: 1px solid var(--line-strong);
  background: var(--cream);
  font-size: 13.5px;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}

.related-links a::before {
  content: "→";
  font-family: var(--font-mono);
  color: var(--orange);
}

.related-links a:hover {
  border-color: var(--ink);
  background: var(--orange-soft);
  transform: translateY(-1px);
}

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: 90px;
  background: var(--ink);
  color: rgba(251, 248, 240, .76);
  border-top: 6px solid var(--orange);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.1fr;
  gap: 44px;
  padding-block: 56px 42px;
}

.footer-brand .brand-seal {
  background: var(--cream);
  color: var(--green);
  border-color: var(--cream);
  box-shadow: 2px 2px 0 var(--orange);
}

.footer-brand .brand-text { color: var(--cream); }
.footer-brand .brand-text small { color: rgba(251, 248, 240, .5); }

.footer-brand p {
  margin-top: 16px;
  max-width: 300px;
  font-size: 13.5px;
  line-height: 1.85;
  color: rgba(251, 248, 240, .62);
}

.footer-col h3 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--orange-2);
  margin-bottom: 16px;
}

.footer-col li { margin-bottom: 9px; }

.footer-col a,
.footer-col span {
  font-size: 13.5px;
  color: rgba(251, 248, 240, .72);
}

.footer-col a:hover { color: var(--cream); text-decoration: underline; text-underline-offset: 4px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-block: 18px 22px;
  border-top: 1px solid rgba(251, 248, 240, .14);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: rgba(251, 248, 240, .45);
}

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html.js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1120px) {
  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 24px 18px;
    background: var(--paper);
    border-bottom: 1px solid var(--ink);
    box-shadow: 0 18px 30px rgba(23, 33, 28, .12);
  }

  .site-nav.is-open { display: flex; }

  .site-nav a {
    padding: 12px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
  }

  .site-nav a::after { display: none; }
  .site-nav a.is-active { color: var(--orange); }

  .nav-toggle { display: flex; margin-left: 4px; }
  .header-cta { margin-left: auto; }

  .footer-top { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-col:last-child { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  :root { --header-h: 64px; }

  .container { padding-inline: 18px; }

  .brand-text { font-size: 16px; }
  .brand-seal { width: 36px; height: 36px; font-size: 18px; }
  .header-cta { display: none; }

  .btn { width: 100%; }

  .cta-strip { padding: 30px 22px; }
  .cta-strip::after { font-size: 76px; bottom: -18px; }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding-block: 42px 30px;
  }

  .footer-brand { grid-column: 1 / -1; }
  .footer-col:last-child { grid-column: 1 / -1; }

  .footer-bottom { flex-direction: column; }
}
