/* ==========================================================================
   365weixinqun.com — 基础层
   重置 / 变量 / 浅色顶部导航 / 页脚 / 通用按钮 / 折叠 / 标签页
   各关键词页面的骨架、栅格与配色均在各自 CSS 中定义。
   ========================================================================== */

:root {
  --ink: #171814;
  --ink-2: #3a3c35;
  --muted: #6f7268;
  --line: rgba(23, 24, 20, .13);
  --line-strong: rgba(23, 24, 20, .26);
  --paper: #faf7f1;
  --paper-2: #f2ece0;
  --white: #ffffff;
  --night: #131410;
  --accent: #d9533a;
  --accent-deep: #b23a2a;
  --accent-soft: rgba(217, 83, 58, .1);
  --accent-line: rgba(217, 83, 58, .36);
  --sage: #5c7a63;
  --radius: 4px;
  --radius-lg: 12px;
  --shadow-s: 0 2px 10px rgba(23, 24, 20, .06);
  --shadow-m: 0 22px 58px rgba(23, 24, 20, .14);
  --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: 66px;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.8;
  -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, dt { margin: 0; }
ul, ol { padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }

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

/* ---------- 顶部导航（浅色） ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(250, 247, 241, .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 10px 26px rgba(23, 24, 20, .07); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  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: 8px;
  background: var(--ink);
  color: #f7f2e8;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .4px;
}

.brand-text {
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: .2px;
  white-space: nowrap;
  color: var(--ink);
}
.brand-text em {
  font-style: normal;
  color: #969080;
  margin-left: 8px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 1.1px;
  font-family: var(--mono);
}

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

.site-nav a {
  padding: 7px 8px;
  border-radius: 3px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
  transition: color .2s, background .2s, box-shadow .2s;
}
.site-nav a:hover { color: var(--accent-deep); background: var(--accent-soft); }
.site-nav a.is-active {
  color: var(--accent-deep);
  font-weight: 700;
  box-shadow: inset 0 -2px 0 var(--accent);
  border-radius: 3px 3px 0 0;
}

.btn-login {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 15px;
  border-radius: 3px;
  background: var(--accent);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .2px;
  transition: transform .2s, box-shadow .2s, background .2s;
  box-shadow: 0 6px 16px rgba(217, 83, 58, .2);
}
.btn-login:hover { transform: translateY(-2px); background: var(--accent-deep); box-shadow: 0 10px 22px rgba(217, 83, 58, .26); }

.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: 3px;
  background: var(--white);
}
.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: 3px;
  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: #fff;
  box-shadow: 0 12px 26px rgba(217, 83, 58, .22);
}
.btn-primary:hover { background: var(--accent-deep); box-shadow: 0 16px 32px rgba(217, 83, 58, .28); }

.btn-outline {
  background: transparent;
  color: inherit;
  border-color: currentColor;
  opacity: .88;
}
.btn-outline:hover { opacity: 1; }

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

.btn:focus-visible,
.site-nav a:focus-visible,
.btn-login:focus-visible,
.nav-toggle:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(217, 83, 58, .55);
  outline-offset: 3px;
}

.tg-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  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-deep); }
.crumb span { opacity: .55; }

/* ---------- 动效（无 JS 时内容默认可见） ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn:hover, .btn-login:hover { transform: none; }
  .marquee-track { animation: none !important; }
}

/* ---------- 折叠 / 标签页 ---------- */
.acc-list { border-top: 1px solid var(--line); }
.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: "+";
  flex: none;
  font-family: var(--mono);
  font-size: 20px;
  line-height: 1;
  color: var(--muted);
  transition: transform .2s, color .2s;
}
.acc-item.is-open .acc-trigger::after { transform: rotate(45deg); color: var(--accent-deep); }
.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: 3px;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  transition: background .2s, color .2s, border-color .2s;
}
.tab.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--night);
  color: #a3a296;
  padding: 58px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr) 1.15fr;
  gap: 30px;
}
.footer-brand .brand-text { color: #fff; }
.footer-brand .brand-mark { background: var(--accent); color: #fff; }
.footer-about {
  margin-top: 14px;
  font-size: 13.5px;
  line-height: 1.95;
  color: #85857a;
  max-width: 320px;
}
.footer-col h3 {
  font-size: 11.5px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: 1.5px;
  font-family: var(--mono);
  text-transform: uppercase;
}
.footer-col a {
  display: block;
  padding: 4px 0;
  font-size: 13.5px;
  color: #85857a;
  transition: color .2s;
}
.footer-col a:hover { color: #f0a895; }
.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: 999px;
  color: #fff;
  font-weight: 600;
  font-size: 13.5px;
  transition: border-color .2s, background .2s;
}
.footer-contact a:hover { border-color: #f0a895; background: rgba(240, 168, 149, .08); }
.footer-bottom {
  margin-top: 38px;
  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: #67675e;
}
.footer-bottom a { color: #8f8f84; }
.footer-bottom a:hover { color: #f0a895; }

/* ---------- 通用跑马灯 ---------- */
.marquee { overflow: hidden; }
.marquee-track {
  display: flex;
  gap: 34px;
  width: max-content;
  animation: marquee 34s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
  .site-nav a { padding: 7px 5px; font-size: 12px; }
  .brand-text { font-size: 15px; }
}

@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(23, 24, 20, .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; }
  .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; border-radius: 7px; font-size: 10px; }
  .btn-login { padding: 8px 12px; font-size: 12px; }
  .container { padding-inline: 18px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-about { max-width: none; }
  .btn { padding: 12px 20px; font-size: 14px; }
}
