/* ==========================================================================
   jisupk10.com.cn — 基础层
   重置 / 变量 / 顶部导航 / 页脚 / 通用按钮 / 通用交互组件
   各关键词内页拥有独立骨架 CSS，不共用同一套版式。
   ========================================================================== */

:root {
  --ink: #10141b;
  --ink-2: #343d4a;
  --muted: #6b7684;
  --line: rgba(16, 20, 27, .12);
  --paper: #ffffff;
  --shell: #f2f4f7;
  --night: #080b11;
  --accent: #10141b;
  --accent-2: #2c3542;
  --accent-soft: rgba(16, 20, 27, .07);
  --focus: #b9ff3d;
  --radius: 6px;
  --radius-lg: 14px;
  --shadow-s: 0 2px 8px rgba(16, 20, 27, .06);
  --shadow-m: 0 24px 64px rgba(16, 20, 27, .16);
  --font: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --container: 1180px;
  --header-h: 68px;
  --header-bg: rgba(255, 255, 255, .94);
}

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

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

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

img, svg { 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; }

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

.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;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.site-header.is-scrolled { box-shadow: 0 10px 30px rgba(8, 11, 17, .1); }

.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: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 5px;
  background: var(--ink);
  color: var(--focus);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .4px;
}

.brand-text {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .1px;
  white-space: nowrap;
}
.brand-text em {
  font-style: normal;
  color: var(--muted);
  margin-left: 6px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .8px;
  font-family: var(--mono);
}

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

.site-nav a {
  padding: 7px 10px;
  border-radius: 4px;
  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: var(--accent-soft); }
.site-nav a.is-active { color: var(--ink); font-weight: 700; box-shadow: inset 0 -2px 0 var(--accent); }

.btn-login {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 15px;
  border-radius: 4px;
  background: var(--accent);
  color: var(--paper);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .2px;
  transition: transform .2s, opacity .2s;
}
.btn-login:hover { transform: translateY(-2px); opacity: .9; }

.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: 4px;
  background: transparent;
}
.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 1px;
  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 24px;
  border: 1px solid transparent;
  border-radius: 4px;
  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-primary {
  background: var(--accent);
  color: var(--paper);
  box-shadow: 0 10px 24px rgba(8, 11, 17, .2);
}
.btn-primary:hover { box-shadow: 0 14px 30px rgba(8, 11, 17, .28); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: rgba(16, 20, 27, .25);
}
.btn-outline:hover { border-color: var(--ink); background: var(--accent-soft); }

.btn-room {
  cursor: default;
  user-select: all;
  background: transparent;
  color: inherit;
  border-color: currentColor;
  border-style: dashed;
  opacity: .94;
}
.btn-room:hover { transform: none; }
.btn-room b { color: inherit; letter-spacing: 1.5px; font-family: var(--mono); }

.btn:focus-visible,
.site-nav a:focus-visible,
.btn-login:focus-visible,
.nav-toggle:focus-visible,
a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.tg-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid rgba(16, 20, 27, .18);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  transition: border-color .2s, background .2s, transform .2s;
}
.tg-link:hover { border-color: #229ed9; background: rgba(34, 158, 217, .07); transform: translateY(-1px); }
.tg-link svg { width: 16px; height: 16px; flex: none; }

/* ---------- 面包屑 ---------- */
.crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--muted);
  font-family: var(--mono);
  letter-spacing: .3px;
}
.crumb a:hover { color: var(--accent); }
.crumb span { opacity: .55; }

/* ---------- 动效 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
}

/* ---------- 折叠 / 标签页（全站通用） ---------- */
.acc-item { border-bottom: 1px solid var(--line); }
.acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 2px;
  border: 0;
  background: none;
  text-align: left;
  font-size: 15.5px;
  font-weight: 700;
  color: inherit;
}
.acc-trigger::after {
  content: "+";
  font-family: var(--mono);
  font-size: 20px;
  line-height: 1;
  color: var(--muted);
  transition: transform .2s;
}
.acc-item.is-open .acc-trigger::after { transform: rotate(45deg); color: var(--accent); }
.acc-panel {
  display: none;
  padding: 0 2px 20px;
  font-size: 14.5px;
  color: var(--ink-2);
}
.acc-item.is-open .acc-panel { display: block; }

.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tab {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}
.tab.is-active { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--night);
  color: #98a1ad;
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.55fr repeat(3, 1fr) 1.1fr;
  gap: 30px;
}
.footer-brand .brand-text { color: #fff; }
.footer-brand .brand-mark { background: #fff; color: var(--night); }
.footer-about {
  margin-top: 14px;
  font-size: 13.5px;
  line-height: 1.9;
  color: #7c8795;
  max-width: 320px;
}
.footer-col h3 {
  font-size: 11.5px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: 1.4px;
  font-family: var(--mono);
  text-transform: uppercase;
}
.footer-col a {
  display: block;
  padding: 4px 0;
  font-size: 13.5px;
  color: #7c8795;
  transition: color .2s;
}
.footer-col a:hover { color: var(--focus); }
.footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding: 9px 15px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 4px;
  color: #fff;
  font-weight: 600;
  font-size: 13.5px;
  transition: border-color .2s, background .2s;
}
.footer-contact a:hover { border-color: var(--focus); background: rgba(185, 255, 61, .08); }
.footer-bottom {
  margin-top: 36px;
  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: #5f6977;
}
.footer-bottom a { color: #8b95a2; }
.footer-bottom a:hover { color: var(--focus); }

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
  .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: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px rgba(8, 11, 17, .16);
    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; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .header-inner { gap: 10px; }
  .brand-text { font-size: 14.5px; }
  .brand-text em { display: none; }
  .brand-mark { width: 34px; height: 34px; font-size: 10.5px; }
  .btn-login { padding: 8px 11px; font-size: 12px; }
  .container { padding-inline: 18px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-about { max-width: none; }
  .btn { padding: 12px 18px; font-size: 14px; }
}
