/* ==========================================================================
   60cp.cn — 基础层
   仅包含：重置 / 变量 / 顶部导航 / 页脚 / 通用按钮
   各内页骨架布局分别写在独立 CSS 中，互不共用。
   ========================================================================== */

:root {
  --ink: #101418;
  --ink-2: #33414f;
  --muted: #64748b;
  --line: rgba(16, 20, 24, .1);
  --paper: #ffffff;
  --accent: #0e7490;
  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
  --shadow-s: 0 2px 10px rgba(16, 20, 24, .06);
  --shadow-m: 0 16px 44px rgba(16, 20, 24, .12);
  --font: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --container: 1160px;
  --header-h: 70px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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 { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.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;
}

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header.is-scrolled { box-shadow: 0 8px 28px rgba(16, 20, 24, .08); }

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

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

.brand-mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: linear-gradient(140deg, #0f766e, #0e7490 55%, #155e75);
  color: #e6fffb;
  font-family: Georgia, serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.5px;
  box-shadow: 0 6px 16px rgba(14, 116, 144, .28);
}

.brand-text {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .3px;
  white-space: nowrap;
}

.brand-text em {
  font-style: normal;
  color: var(--accent);
  margin-left: 2px;
}

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

.site-nav a {
  position: relative;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
  transition: color .2s;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .24s 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(--accent); font-weight: 700; }

.btn-login {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0f766e, #0e7490);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(14, 116, 144, .26);
  transition: transform .2s, box-shadow .2s;
}

.btn-login:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(14, 116, 144, .34); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

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

.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: 8px;
  padding: 14px 28px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s, border-color .2s;
}

.btn:hover { transform: translateY(-2px); }

.btn:focus-visible,
.site-nav a:focus-visible,
.btn-login:focus-visible,
.nav-toggle:focus-visible {
  outline: 3px solid #38bdf8;
  outline-offset: 3px;
}

/* 房间号按钮：无链接，用 span 渲染 */
.btn-room {
  cursor: default;
  user-select: all;
}

.btn-room:hover { transform: none; }

/* ---------- 页脚 ---------- */
.site-footer {
  background: #0b1216;
  color: #aab7c2;
  padding: 54px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(2, 1fr) 1.15fr;
  gap: 34px;
}

.footer-brand .brand-text { color: #fff; }
.footer-brand .brand-mark { box-shadow: none; }

.footer-about {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.85;
  color: #7d8b98;
  max-width: 310px;
}

.footer-col h3 {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  letter-spacing: 1px;
}

.footer-col a {
  display: block;
  padding: 5px 0;
  font-size: 14px;
  color: #7d8b98;
  transition: color .2s;
}

.footer-col a:hover { color: #5eead4; }

.footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 10px;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  transition: border-color .2s, background .2s;
}

.footer-contact a:hover { border-color: #5eead4; background: rgba(94, 234, 212, .08); }

.footer-bottom {
  margin-top: 38px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .09);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: #64727e;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .site-nav a { padding: 8px 9px; font-size: 13px; }
}

@media (max-width: 960px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px 24px 22px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px rgba(16, 20, 24, .14);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform .22s ease, opacity .22s ease, visibility .22s;
  }

  .site-nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .site-nav a { padding: 12px 12px; font-size: 15px; }
  .site-nav a::after { left: 12px; right: auto; width: 22px; bottom: 6px; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .header-inner { gap: 10px; }
  .brand-text { font-size: 15.5px; }
  .brand-mark { width: 34px; height: 34px; font-size: 14px; }
  .btn-login { padding: 9px 13px; font-size: 13px; }
  .container { padding-inline: 18px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-about { max-width: none; }
}
