/* ==========================================================================
   site.css · 水果666游戏机 官方中文站 · 共享外壳与基础组件
   视觉语言：街机厅夜场 × 水果糖纸拼贴 · 细边界 · 像素描边 · 四色霓虹
   ========================================================================== */

/* ---------- 1. 设计令牌 ---------- */
:root {
  --ink: #0B1026;
  --ink-2: #13182E;
  --ink-3: #2A3352;
  --paper: #FFF7E8;
  --paper-2: #F3E7D3;
  --orange: #FF6A1A;
  --lime: #A8FF3E;
  --cherry: #FF3355;
  --grape: #8B5CFF;
  --yellow: #FFD23F;
  --fix: #35C7FF;

  --line: rgba(255, 247, 232, 0.13);
  --line-strong: rgba(255, 247, 232, 0.3);
  --muted: rgba(255, 247, 232, 0.64);
  --muted-dim: rgba(255, 247, 232, 0.42);

  --wrap: 1240px;
  --gutter: clamp(18px, 4vw, 40px);
  --gap: clamp(16px, 2vw, 24px);
  --radius: 8px;

  --font-display: "Archivo Black", "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, "Courier New", monospace;
}

/* ---------- 2. 重置与中文排版 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.05vw, 1.0625rem);
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.012em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.005em;
}
h1 { font-size: clamp(2.6rem, 6vw, 5.4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 3rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.5rem); }

p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, picture, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
strong, b { font-weight: 700; }
:focus-visible { outline: 2px solid var(--fix); outline-offset: 3px; border-radius: 3px; }
::selection { background: var(--lime); color: var(--ink); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- 3. 布局容器 ---------- */
.container {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.grid { display: grid; gap: var(--gap); }
.grid--12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }

/* ---------- 4. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  transform: translateY(-180%);
  padding: 0.65em 1em;
  background: var(--lime);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: 4px;
  transition: transform 0.18s ease;
}
.skip-link:focus-visible { transform: translateY(0); }

/* ---------- 5. 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
  background:
    repeating-linear-gradient(180deg, rgba(255, 247, 232, 0.03) 0 1px, transparent 1px 4px),
    linear-gradient(180deg, #0d132c 0%, #0B1026 78%);
}
.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 2;
  background: linear-gradient(90deg, var(--orange) 0%, var(--yellow) 30%, var(--lime) 58%, var(--grape) 100%);
}

.site-header__top { padding-block: 10px; }

.header-top__inner {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 28px);
  min-height: 56px;
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
.brand__mark {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 3px;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  transform: rotate(-5deg);
}
.brand__pip {
  display: block;
  border-radius: 2px;
  background: var(--orange);
}
.brand__pip:nth-child(1) { background: var(--orange); }
.brand__pip:nth-child(2) { background: var(--lime); }
.brand__pip:nth-child(3) { background: var(--cherry); }
.brand__pip:nth-child(4) { background: var(--grape); }
.brand__text { display: flex; flex-direction: column; line-height: 1.18; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.06rem;
  letter-spacing: 0.02em;
  color: var(--paper);
}
.brand__sub {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--muted-dim);
  text-transform: uppercase;
}

/* 品牌短句 */
.header-statement {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--muted-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-left: 1px solid var(--line);
  padding-left: 18px;
}

/* 右侧工具区 */
.header-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex: 0 0 auto;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.45em 0.75em;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 247, 232, 0.03);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  white-space: nowrap;
}
.meta-chip__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 rgba(168, 255, 62, 0.55);
  animation: pip-pulse 2.6s ease-out infinite;
}
@keyframes pip-pulse {
  0% { box-shadow: 0 0 0 0 rgba(168, 255, 62, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(168, 255, 62, 0); }
  100% { box-shadow: 0 0 0 0 rgba(168, 255, 62, 0); }
}

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.72em 1.1em;
  border: 1px solid transparent;
  border-radius: 5px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.1;
  white-space: nowrap;
  transition: transform 0.14s ease, box-shadow 0.14s ease,
              background-color 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}
.btn--sm { font-size: 0.82rem; padding: 0.62em 0.9em; }
.btn--primary {
  background: var(--orange);
  color: var(--ink-2);
  box-shadow: 3px 3px 0 rgba(255, 210, 63, 0.5);
}
.btn--primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 rgba(255, 210, 63, 0.62);
  background: #ff7a33;
}
.btn--primary:active {
  transform: translate(0, 0);
  box-shadow: 2px 2px 0 rgba(255, 210, 63, 0.5);
}
.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--paper);
}
.btn--ghost:hover { border-color: var(--lime); color: var(--lime); }

.header-cta { flex: 0 0 auto; }

/* ---------- 7. 移动导航按钮 ---------- */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 0.55em 0.8em;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  color: var(--paper);
  flex: 0 0 auto;
  transition: border-color 0.14s ease, color 0.14s ease;
}
.nav-toggle:hover { border-color: var(--lime); color: var(--lime); }
.nav-toggle__bars { display: grid; gap: 3px; width: 16px; }
.nav-toggle__bars span {
  display: block;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle__label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.site-header[data-open] .nav-toggle__bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.site-header[data-open] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.site-header[data-open] .nav-toggle__bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ---------- 8. 栏目轨道导航 ---------- */
.site-header__rail {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(19, 24, 46, 0.86), rgba(11, 16, 38, 0.94));
}
.nav { display: flex; align-items: stretch; }
.nav__list {
  display: flex;
  align-items: stretch;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.nav__list::-webkit-scrollbar { display: none; }
.nav__item { display: flex; }
.nav__link {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 13px 15px;
  border-bottom: 2px solid transparent;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.14s ease, background-color 0.14s ease, border-color 0.14s ease;
}
.nav__link:hover { color: var(--paper); background: rgba(255, 247, 232, 0.05); }
.nav__link[aria-current="page"] {
  color: var(--paper);
  border-bottom-color: var(--orange);
  background: linear-gradient(180deg, rgba(255, 106, 26, 0.02), rgba(255, 106, 26, 0.16));
}
.nav__idx {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--muted-dim);
}
.nav__link[aria-current="page"] .nav__idx { color: var(--yellow); }

/* ---------- 9. 顶部阅读进度 ---------- */
.read-progress { height: 2px; background: rgba(255, 247, 232, 0.07); }
.read-progress__bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--orange), var(--yellow) 45%, var(--lime));
  transition: width 0.08s linear;
}

/* ---------- 10. 页脚 ---------- */
.site-footer {
  background: linear-gradient(180deg, var(--ink-2) 0%, var(--ink) 100%);
  border-top: 1px solid var(--line);
  color: var(--paper);
}
.footer__strip {
  height: 6px;
  background: linear-gradient(
    90deg,
    var(--orange) 0%, var(--orange) 25%,
    var(--lime) 25%, var(--lime) 50%,
    var(--cherry) 50%, var(--cherry) 75%,
    var(--grape) 75%, var(--grape) 100%
  );
}
.footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(30px, 5vw, 56px);
  padding-block: clamp(40px, 6vw, 68px);
}
.footer__brand .brand { margin-bottom: 16px; }
.brand--footer .brand__name { font-size: 1.15rem; }
.brand--footer .brand__mark { width: 30px; height: 30px; }
.footer__summary {
  max-width: 34ch;
  font-size: 0.92rem;
  line-height: 1.85;
  color: var(--muted);
}
.footer__hours {
  margin-top: 14px;
  padding-left: 10px;
  border-left: 2px solid var(--lime);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--muted-dim);
}

.footer__cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 4vw, 40px);
}
.footer__col { min-width: 0; }
.footer__title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.7rem;
  font-style: normal;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-dim);
}
.footer__title::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 1px;
  background: var(--orange);
  vertical-align: baseline;
}
.footer__col:nth-child(2) .footer__title::before { background: var(--lime); }
.footer__col:nth-child(3) .footer__title::before { background: var(--grape); }

.footer__list { display: grid; gap: 9px; }
.footer__link {
  display: inline-block;
  padding-block: 2px;
  font-size: 0.92rem;
  color: var(--muted);
  transition: color 0.14s ease, transform 0.14s ease;
}
.footer__link:hover { color: var(--paper); transform: translateX(3px); }

.footer__col--contact .footer__list { gap: 13px; }
.footer__contact-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--muted);
}
.footer__contact-label {
  flex: 0 0 auto;
  min-width: 3.8em;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-dim);
}
.footer__contact-value {
  color: var(--paper);
  word-break: break-all;
}

.copy-btn {
  flex: 0 0 auto;
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--muted-dim);
  transition: color 0.14s ease, background-color 0.14s ease, border-color 0.14s ease;
}
.copy-btn:hover { color: var(--ink-2); background: var(--lime); border-color: var(--lime); }
.copy-btn[data-copied] { color: var(--ink-2); background: var(--lime); border-color: var(--lime); }

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 26px;
  padding-block: 16px 24px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--muted-dim);
}
.footer__copy { color: var(--muted-dim); }
.footer__copy::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--lime);
  vertical-align: middle;
}
.footer__icp { color: var(--muted-dim); }

/* ---------- 11. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45em;
  padding-block: 18px 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--muted-dim);
}
.breadcrumb a {
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color 0.14s ease, border-color 0.14s ease;
}
.breadcrumb a:hover { color: var(--lime); border-bottom-color: var(--lime); }
.breadcrumb__sep { color: rgba(255, 247, 232, 0.22); }
.breadcrumb [aria-current="page"] { color: var(--paper); }

/* ---------- 12. 文本工具与章节 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--yellow);
}
.eyebrow::before {
  content: "";
  flex: 0 0 auto;
  width: 20px;
  height: 2px;
  background: currentColor;
}
.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}
.section-head {
  max-width: 64ch;
  margin-bottom: clamp(22px, 3vw, 38px);
}
.section-head .eyebrow { margin-bottom: 14px; }
.lede {
  max-width: 62ch;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.8;
  color: var(--muted);
}

/* ---------- 13. 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.28em 0.6em;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  line-height: 1.4;
  color: var(--muted);
  white-space: nowrap;
}
.tag--orange { background: var(--orange); border-color: var(--orange); color: var(--ink-2); }
.tag--lime { background: var(--lime); border-color: var(--lime); color: var(--ink-2); }
.tag--cherry { background: var(--cherry); border-color: var(--cherry); color: var(--paper); }
.tag--grape { background: var(--grape); border-color: var(--grape); color: var(--paper); }
.tag--yellow { background: var(--yellow); border-color: var(--yellow); color: var(--ink-2); }

/* ---------- 14. 米白资料面板 ---------- */
.panel {
  padding: clamp(18px, 2.6vw, 32px);
  border: 1px solid rgba(19, 24, 46, 0.14);
  border-radius: var(--radius);
  background: var(--paper-2);
  color: var(--ink-2);
  box-shadow: 0 20px 44px -34px rgba(0, 0, 0, 0.9);
}
.panel a {
  color: #5b2ee0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- 15. 图片容器基础 ---------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: radial-gradient(120% 120% at 20% 10%, #1a2244 0%, #0B1026 62%);
  aspect-ratio: 16 / 10;
}
.media-frame > img,
.media-frame > picture > img,
.media-frame > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(11, 16, 38, 0.22) 0 1px, transparent 1px 4px);
  opacity: 0.55;
  mix-blend-mode: multiply;
}
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--cut { clip-path: polygon(0 0, 100% 3%, 100% 100%, 0 97%); }
.media-frame__ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 247, 232, 0.28);
}
.media-frame__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.7em 1em;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: var(--paper);
  background: linear-gradient(180deg, transparent, rgba(11, 16, 38, 0.88));
}

/* ---------- 16. 滚动显现 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal[data-in] { opacity: 1; transform: none; }

/* ---------- 17. 响应式 ---------- */
@media (min-width: 620px) {
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .footer__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
}
@media (min-width: 1000px) {
  .footer__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1080px) {
  .header-statement { display: none; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-header__rail { display: none; }
  .site-header[data-open] .site-header__rail { display: block; }
  .site-header[data-open] { box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.92); }
  .nav__list {
    flex-direction: column;
    gap: 0;
    overflow: visible;
    padding-block: 4px 10px;
  }
  .nav__link {
    justify-content: space-between;
    width: 100%;
    padding: 14px 6px;
    border-bottom: 1px solid var(--line);
    border-left: 2px solid transparent;
  }
  .nav__link[aria-current="page"] {
    border-bottom-color: var(--line);
    border-left-color: var(--orange);
    background: linear-gradient(90deg, rgba(255, 106, 26, 0.18), transparent);
  }
  .grid--12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .meta-chip { display: none; }
  .header-top__inner { min-height: 50px; gap: 10px; }
  .brand__mark { width: 24px; height: 24px; }
  .brand__name { font-size: 0.98rem; }
  .brand__sub { font-size: 0.56rem; letter-spacing: 0.1em; }
  .btn--sm { font-size: 0.76rem; padding: 0.55em 0.75em; }
  .grid--12 { grid-template-columns: minmax(0, 1fr); }
  .footer__legal { font-size: 0.66rem; }
}

/* ---------- 18. 减少动态偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .meta-chip__dot { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
