/* ==========================================================================
   168kj.com.cn — 基础层
   只含：重置 / 变量 / 顶部导航 / 页脚 / 通用按钮
   9 个内页各自拥有独立骨架 CSS，互不共用。
   ========================================================================== */

:root {
  --ink: #0d1220;
  --ink-2: #33415c;
  --muted: #66748c;
  --line: rgba(13, 18, 32, .1);
  --paper: #ffffff;
  --brand: #4338ca;
  --brand-2: #6d28d9;
  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
  --shadow-s: 0 2px 10px rgba(13, 18, 32, .06);
  --shadow-m: 0 16px 44px rgba(13, 18, 32, .12);
  --font: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --serif: "Songti SC", "STSong", "SimSun", Georgia, serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --container: 1180px;
  --header-h: 68px;
}

*,
*::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, .93);
  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(13, 18, 32, .08); }

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

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

.brand-mark {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: linear-gradient(140deg, #6366f1, #4338ca 58%, #312e81);
  color: #eef2ff;
  font-family: Georgia, serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.3px;
  box-shadow: 0 6px 16px rgba(67, 56, 202, .28);
}

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

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

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

.site-nav a {
  padding: 7px 9px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
  transition: color .2s, background .2s;
}

.site-nav a:hover { color: var(--ink); background: rgba(67, 56, 202, .07); }

.site-nav a.is-active {
  color: var(--brand);
  background: rgba(67, 56, 202, .1);
  font-weight: 700;
}

.btn-login {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 17px;
  border-radius: 9px;
  background: linear-gradient(135deg, #6366f1, #4338ca);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(67, 56, 202, .26);
  transition: transform .2s, box-shadow .2s;
}

.btn-login:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(67, 56, 202, .34); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  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: 13px 26px;
  border: 1px solid transparent;
  border-radius: 11px;
  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 #818cf8;
  outline-offset: 3px;
}

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

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

/* ---------- 页脚 ---------- */
.site-footer {
  background: #0a0e1a;
  color: #a4b0c4;
  padding: 52px 0 24px;
}

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

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

.footer-about {
  margin-top: 13px;
  font-size: 13.5px;
  line-height: 1.85;
  color: #76839a;
  max-width: 300px;
}

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

.footer-col a {
  display: block;
  padding: 4px 0;
  font-size: 13.5px;
  color: #76839a;
  transition: color .2s;
}

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

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

.footer-contact a:hover { border-color: #a5b4fc; background: rgba(165, 180, 252, .08); }

.footer-bottom {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .09);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
  color: #5f6c80;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1240px) {
  .site-nav a { padding: 7px 7px; font-size: 12.5px; }
  .brand-text { font-size: 15.5px; }
}

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

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

  .site-nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .site-nav a { padding: 11px 12px; font-size: 15px; border-radius: 9px; }

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

@media (max-width: 640px) {
  .header-inner { gap: 10px; }
  .brand-text { font-size: 15px; }
  .brand-mark { width: 33px; height: 33px; font-size: 13px; }
  .btn-login { padding: 8px 12px; font-size: 12.5px; }
  .container { padding-inline: 18px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-about { max-width: none; }
}
