/* ==========================================================================
   gt138.com.cn — 基础层（仅重置 / 变量 / 导航 / 页脚 / 通用按钮）
   各内页骨架布局全部写在各自的独立 CSS 文件中，互不复用。
   ========================================================================== */

:root {
  --ink: #0d1117;
  --ink-soft: #4a5568;
  --line: rgba(15, 23, 42, .12);
  --paper: #ffffff;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(15, 23, 42, .06);
  --shadow-md: 0 14px 40px rgba(15, 23, 42, .12);
  --font: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --container: 1180px;
  --header-h: 72px;
}

*,
*::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 { 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, .92);
  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 6px 24px rgba(15, 23, 42, .08); }

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

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

.brand-mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: linear-gradient(135deg, #d4af37, #f3d97b 45%, #b8860b);
  color: #1a1206;
  font-weight: 900;
  font-size: 19px;
  letter-spacing: -.5px;
  box-shadow: 0 6px 16px rgba(184, 134, 11, .3);
}

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

.brand-text em {
  font-style: normal;
  color: #b8860b;
  margin-left: 2px;
}

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

.site-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color .2s, background .2s;
  white-space: nowrap;
}

.site-nav a:hover { color: var(--ink); background: rgba(15, 23, 42, .06); }

.site-nav a.is-active {
  color: #8a6508;
  background: rgba(212, 175, 55, .16);
  font-weight: 700;
}

.btn-login {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #d4af37, #b8860b);
  color: #1a1206;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(184, 134, 11, .28);
  transition: transform .2s, box-shadow .2s;
}

.btn-login:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(184, 134, 11, .38); }

.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: 999px;
  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 #f0b429;
  outline-offset: 3px;
}

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

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

/* ---------- 页脚（全站统一） ---------- */
.site-footer {
  background: #0b0f16;
  color: #b7c0cd;
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(2, 1fr) 1.2fr;
  gap: 36px;
}

.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: #8b96a5;
  max-width: 300px;
}

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

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

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

.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: 999px;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  transition: border-color .2s, background .2s;
}

.footer-contact a:hover { border-color: #f3d97b; background: rgba(243, 217, 123, .08); }

.footer-bottom {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .09);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: #6f7a89;
}

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

@media (max-width: 940px) {
  .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 24px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px rgba(15, 23, 42, .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 14px; font-size: 15px; border-radius: 10px; }

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

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