/* ==========================================================================
   微乐游戏官网 · 共享外壳样式 /assets/site.css
   深夜机房 × 街边棋牌室：深青底、暖橙光、冰蓝线、琥珀礼包
   ========================================================================== */

/* ---------- 1. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  min-height: 100%;
  background-color: var(--ink);
  background-image:
    radial-gradient(1100px 560px at 82% -14%, rgba(232, 114, 44, .17), transparent 62%),
    radial-gradient(880px 520px at 2% 6%, rgba(127, 212, 232, .10), transparent 64%),
    repeating-linear-gradient(180deg, rgba(44, 79, 82, .28) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(90deg, rgba(44, 79, 82, .20) 0 1px, transparent 1px 64px),
    linear-gradient(180deg, #0B2426 0%, #0A2123 58%, #08191A 100%);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: .01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
table { border-collapse: collapse; }

::selection { background: rgba(232, 114, 44, .38); color: #fff; }

/* ---------- 2. CSS 变量 ---------- */
:root {
  --ink: #0B2426;
  --ink-deep: #08191A;
  --panel: #14383B;
  --panel-soft: rgba(20, 56, 59, .62);
  --orange: #E8722C;
  --ice: #7FD4E8;
  --amber: #FFB020;
  --cfg-high: #4B6B7A;
  --cfg-mid: #6E8C99;
  --cfg-low: #A7BEC6;
  --paper: #F5EFE6;
  --muted: #9FB3B4;
  --line: #2C4F52;
  --green: #59C08D;

  --wrap: 1200px;
  --radius: 14px;
  --radius-s: 10px;
  --header-h: 68px;

  --font-display: "HarmonyOS Sans SC", "PingFang SC", "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-body: "PingFang SC", "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 3. 中文排版 ---------- */
h1, h2, h3, h4, h5 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 87.5%;
  line-height: 1.22;
  letter-spacing: .01em;
  color: var(--paper);
}

h1 { font-size: clamp(2rem, 5.2vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.375rem); }
h4 { font-size: 1.0625rem; }

.prose { font-size: 16px; line-height: 1.85; color: var(--paper); max-width: 68ch; }
.prose p + p { margin-top: 1.2em; }
.prose h2 { margin-top: 2.2em; margin-bottom: .7em; }
.prose h3 { margin-top: 1.8em; margin-bottom: .55em; }
.prose ul { margin: 1.1em 0; padding-left: 1.1em; list-style: none; }
.prose ul li { position: relative; padding-left: 1em; margin-bottom: .5em; }
.prose ul li::before {
  content: ""; position: absolute; left: 0; top: .82em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--orange);
}
.prose strong { color: var(--ice); font-weight: 700; }

.mono, .num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--orange);
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px; background: currentColor; display: inline-block;
}

.annotation {
  display: inline-block;
  font-size: 12.5px; line-height: 1.7;
  color: var(--muted);
  background: rgba(8, 25, 26, .72);
  border-left: 2px solid var(--line);
  padding: 7px 12px;
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
}

.divider { height: 1px; background: var(--line); border: 0; margin: 40px 0; }

/* ---------- 4. 焦点与可达性 ---------- */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 18px;
  top: -72px;
  z-index: 99;
  padding: 10px 20px;
  border-radius: 0 0 10px 10px;
  background: var(--amber);
  color: #1A0F02;
  font-size: 14px;
  font-weight: 700;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; }

/* ---------- 5. 头部 ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 80;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .28s var(--ease), border-color .28s var(--ease), box-shadow .28s var(--ease);
}
.site-header[data-state="solid"] {
  background: rgba(11, 36, 38, .93);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom-color: var(--line);
  box-shadow: 0 22px 50px -42px #000;
}

.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 12px 20px;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  flex: 0 0 auto;
}
.brand__mark {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 9px;
  font-family: var(--font-display);
  font-weight: 900; font-size: 18px;
  color: #180B03;
  background: linear-gradient(140deg, var(--amber), var(--orange));
  box-shadow: 0 10px 26px -14px rgba(232, 114, 44, .95);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 800; font-size: 16px; letter-spacing: .06em;
  color: var(--paper);
}
.brand__sub {
  font-size: 11px; letter-spacing: .1em; color: var(--muted);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(20, 56, 59, .78);
  color: var(--paper);
  font-size: 13px;
  letter-spacing: .1em;
}
.nav-toggle__bars { display: inline-flex; flex-direction: column; gap: 4px; width: 18px; }
.nav-toggle__bars i {
  display: block; height: 1.5px; border-radius: 2px;
  background: currentColor;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] { border-color: rgba(255, 176, 32, .6); color: var(--amber); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.site-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-list__item { display: block; }
.nav-link {
  display: inline-block;
  padding: 9px 13px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
  transition: color .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease);
}
.nav-link:hover { color: var(--paper); background: rgba(127, 212, 232, .08); }
.nav-link[aria-current="page"] {
  color: var(--paper);
  background: rgba(232, 114, 44, .17);
  box-shadow: inset 0 0 0 1px rgba(232, 114, 44, .38);
}

.cta-amber {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  color: #1A0F02;
  background: linear-gradient(135deg, var(--amber), #FF8A1E);
  box-shadow: 0 12px 30px -18px rgba(255, 176, 32, .95);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), filter .18s var(--ease);
}
.cta-amber:hover {
  transform: translateY(-1px);
  filter: saturate(112%);
  box-shadow: 0 18px 38px -16px rgba(255, 176, 32, .9);
}
.cta-amber:active { transform: translateY(0); }

.header-progress {
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--orange), var(--amber) 48%, var(--ice));
}

/* ---------- 6. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: 88px;
  padding: 62px 0 28px;
  background: var(--ink-deep);
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), rgba(127, 212, 232, .5) 55%, rgba(127, 212, 232, 0));
}

.footer-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 46px 32px;
}

.footer-col { min-width: 0; }
.footer-col--brand { padding-right: 12px; }

.footer-brand {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 21px;
  letter-spacing: .06em;
  color: var(--paper);
  margin-bottom: 14px;
}
.footer-line { font-size: 14px; line-height: 1.8; max-width: 34ch; }
.footer-icp {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--cfg-mid);
}

.footer-title {
  font-size: 13px;
  letter-spacing: .2em;
  color: var(--ice);
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-list { display: grid; gap: 9px; font-size: 14px; }
.footer-list a {
  display: inline-block;
  color: var(--muted);
  transition: color .2s var(--ease), transform .2s var(--ease);
}
.footer-list a:hover { color: var(--paper); transform: translateX(3px); }

.footer-list--contact { gap: 12px; }
.footer-list--contact li { display: grid; gap: 2px; }
.footer-key { font-size: 11.5px; letter-spacing: .16em; color: var(--cfg-mid); }
.footer-value {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--paper);
  word-break: break-word;
}
.footer-value--text { font-family: var(--font-body); line-height: 1.7; }

.footer-tip {
  margin-top: 16px;
  padding-left: 11px;
  border-left: 2px solid rgba(255, 176, 32, .68);
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 34ch;
}

.footer-bottom {
  margin-top: 50px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  font-size: 13px;
}
.footer-copy { font-family: var(--font-mono); font-size: 12.5px; color: var(--cfg-mid); }
.footer-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.footer-legal a { color: var(--muted); border-bottom: 1px solid transparent; transition: color .2s var(--ease), border-color .2s var(--ease); }
.footer-legal a:hover { color: var(--paper); border-bottom-color: var(--orange); }
.dot { color: #3C5F62; }

/* ---------- 7. 布局容器 ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.section { padding: 76px 0; }
.section--tight { padding: 44px 0; }

.page-top { padding-top: 104px; }

.grid { display: grid; gap: 28px; }
.grid--7-3 { grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); }

/* ---------- 8. 标题 / 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.breadcrumb a { color: var(--muted); transition: color .2s var(--ease); }
.breadcrumb a:hover { color: var(--ice); }
.breadcrumb__sep { color: #3C5F62; }
.breadcrumb [aria-current="page"] { color: var(--paper); }

/* ---------- 9. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .04em;
  transition: transform .18s var(--ease), background-color .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease), color .18s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary {
  background: linear-gradient(135deg, var(--orange), #D25E1E);
  color: #1A0F02;
  box-shadow: 0 14px 32px -20px rgba(232, 114, 44, .95);
}
.btn--ghost {
  border-color: var(--line);
  color: var(--paper);
  background: rgba(20, 56, 59, .55);
}
.btn--ghost:hover { border-color: rgba(127, 212, 232, .55); color: var(--ice); }

/* ---------- 10. 状态标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  white-space: nowrap;
}
.tag::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: 0 0 auto;
}
.tag--stable { color: var(--green); border-color: rgba(89, 192, 141, .42); background: rgba(89, 192, 141, .09); }
.tag--cfg-a { color: #C2D6DE; border-color: var(--cfg-high); background: rgba(75, 107, 122, .22); }
.tag--cfg-b { color: #CFE0E6; border-color: var(--cfg-mid); background: rgba(110, 140, 153, .18); }
.tag--cfg-c { color: #DCE8EC; border-color: var(--cfg-low); background: rgba(167, 190, 198, .14); }
.tag--amber { color: var(--amber); border-color: rgba(255, 176, 32, .5); background: rgba(255, 176, 32, .1); }

/* ---------- 11. 面板 ---------- */
.panel {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.panel__title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--ice);
  margin-bottom: 14px;
}
.panel--amber {
  border-color: rgba(255, 176, 32, .45);
  background: linear-gradient(150deg, rgba(255, 176, 32, .10), rgba(20, 56, 59, .7));
  box-shadow: 0 22px 60px -42px rgba(255, 176, 32, .95);
  transition: box-shadow .24s var(--ease);
}
.panel--amber:hover { box-shadow: 0 26px 68px -38px rgba(255, 176, 32, 1); }

/* ---------- 12. 表格 ---------- */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(20, 56, 59, .5);
}
table.data { width: 100%; min-width: 680px; font-size: 14px; }
table.data th,
table.data td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
table.data thead th {
  background: rgba(8, 25, 26, .92);
  color: var(--ice);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  white-space: nowrap;
}
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover td { background: rgba(127, 212, 232, .05); }
table.data th:first-child,
table.data td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: #103032;
}
table.data thead th:first-child { background: #0A2224; }

/* ---------- 13. 图片容器 ---------- */
.figure { display: block; }
.figure__frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    radial-gradient(420px 220px at 78% 0%, rgba(232, 114, 44, .18), transparent 70%),
    linear-gradient(150deg, #14383B, #0B2426);
  aspect-ratio: 16 / 9;
}
.figure__frame img { width: 100%; height: 100%; object-fit: cover; }
.figure__frame--wide { aspect-ratio: 21 / 9; }
.figure__frame--phone { aspect-ratio: 9 / 19.5; max-width: 300px; margin-inline: auto; }
.figure__frame--map { aspect-ratio: 4 / 3; }
.figure__frame--texture {
  aspect-ratio: 5 / 2;
  background:
    repeating-linear-gradient(115deg, rgba(127, 212, 232, .10) 0 2px, transparent 2px 9px),
    linear-gradient(160deg, #14383B, #0B2426);
}
.figure__caption {
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- 14. 分段切换器 ---------- */
.switcher {
  position: relative;
  display: inline-flex;
  padding: 5px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(20, 56, 59, .82);
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.switcher::-webkit-scrollbar { display: none; }
.switcher__list { display: flex; gap: 4px; }
.switcher__btn {
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
  transition: color .18s var(--ease), background-color .18s var(--ease), box-shadow .18s var(--ease);
}
.switcher__btn:hover { color: var(--paper); }
.switcher__btn[aria-selected="true"] {
  color: #1A0F02;
  font-weight: 700;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 10px 24px -16px rgba(255, 176, 32, .95);
}
.switcher__panel { padding-top: 24px; }
.switcher__panel[hidden] { display: none; }

/* ---------- 15. 折叠板 ---------- */
.fold {
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: rgba(20, 56, 59, .55);
  padding: 0 20px;
  transition: border-color .2s var(--ease);
}
.fold + .fold { margin-top: 12px; }
.fold[open] { border-color: rgba(127, 212, 232, .35); }
.fold summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 0;
  cursor: pointer;
  font-weight: 700;
  color: var(--paper);
  list-style: none;
}
.fold summary::-webkit-details-marker { display: none; }
.fold summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--ice);
  transition: transform .2s var(--ease);
}
.fold[open] summary::after { content: "–"; }
.fold__body { padding: 0 0 18px; font-size: 15px; line-height: 1.8; color: var(--muted); }

/* ---------- 16. 显现与计数 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
[data-reveal][data-visible] { opacity: 1; transform: none; }

/* ---------- 17. 响应式 ---------- */
@media (max-width: 1120px) {
  .nav-link { padding: 9px 10px; font-size: 13.5px; }
  .brand__sub { display: none; }
  .cta-amber { padding: 10px 16px; font-size: 13.5px; }
}

@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 28px; }
}

@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; gap: 10px; padding: 10px 18px; }
  .brand { order: 1; margin-right: 0; }
  .nav-toggle { display: inline-flex; order: 2; margin-left: auto; }
  .cta-amber { order: 3; }
  .site-nav {
    order: 4;
    flex-basis: 100%;
    margin-left: 0;
    display: none;
    border-top: 1px solid var(--line);
    margin-top: 4px;
  }
  .site-nav[data-open] { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 0 8px; }
  .nav-link { display: block; padding: 13px 14px; border-radius: var(--radius-s); font-size: 15px; }
  .nav-link[aria-current="page"] { box-shadow: inset 2px 0 0 var(--orange); }
  .site-header[data-state="solid"] .site-nav,
  .site-header:not([data-state]) .site-nav { background: transparent; }

  .grid--7-3,
  .grid--2 { grid-template-columns: minmax(0, 1fr); }
  .section { padding: 58px 0; }
  .page-top { padding-top: 96px; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .wrap, .header-inner, .footer-inner { padding-left: 16px; padding-right: 16px; }
  .section { padding: 48px 0; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .site-footer { padding: 48px 0 24px; margin-top: 64px; }
  .footer-bottom { margin-top: 36px; }
  .panel { padding: 20px; }
  .card-grid { grid-template-columns: minmax(0, 1fr); }
  .figure__frame--phone { max-width: 240px; }
}

/* ---------- 18. 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .btn:hover, .cta-amber:hover { transform: none; }
}
