/* ============================================================
   7娱乐中心 · 共享样式表 /assets/site.css
   赛博娱乐 / 目录型内容地图 / 粗野主义框景
   ============================================================ */

/* ---------- 1. 设计变量 ---------- */
:root {
  --ink: #07070C;
  --ink-2: #11121F;
  --ink-3: #23243A;
  --violet: #8B4DFF;
  --violet-deep: #2B1A8C;
  --lime: #C8FF3D;
  --orange: #FF8A3D;
  --cyan: #2FE6D6;
  --paper: #F6F6FA;
  --muted: #A7A7C4;
  --line: rgba(167, 167, 196, 0.26);
  --line-soft: rgba(167, 167, 196, 0.14);

  --edge: 3px;
  --radius: 4px;
  --shadow-hard: 10px 10px 0 0 rgba(139, 77, 255, 0.28);
  --shadow-hard-sm: 6px 6px 0 0 rgba(139, 77, 255, 0.32);

  --font-sans: "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Archivo Black", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --shell-max: 1440px;
  --gutter: clamp(20px, 5vw, 72px);
  --ticker-h: 32px;
  --bar-h: 84px;
  --ease-out: cubic-bezier(0.22, 0.9, 0.28, 1);
}

/* ---------- 2. 重置 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background-color: var(--ink);
  background-image:
    repeating-linear-gradient(0deg, rgba(246, 246, 250, 0.028) 0 1px, transparent 1px 96px),
    repeating-linear-gradient(90deg, rgba(246, 246, 250, 0.028) 0 1px, transparent 1px 96px);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.6em;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: var(--paper);
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration: none; }

ul, ol { margin: 0; padding: 0; list-style: none; }

img, svg, video { display: block; max-width: 100%; }

button { font: inherit; color: inherit; background: none; border: 0; padding: 0; }

code, kbd, samp, time { font-family: var(--font-mono); font-size: 0.92em; }

strong, b { font-weight: 700; color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

::selection { background: var(--lime); color: var(--ink); }

#main-content { scroll-margin-top: calc(var(--bar-h) + 28px); }

/* ---------- 3. 布局骨架 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}

.prose {
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.75;
  color: var(--paper);
}
.prose h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-top: 2em; }
.prose h3 { font-size: clamp(1.15rem, 1.7vw, 1.4rem); margin-top: 1.6em; }
.prose ul { list-style: none; margin: 0 0 1.4em; }
.prose ul li { position: relative; padding-left: 22px; margin-bottom: 0.5em; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 10px;
  height: 3px;
  background: var(--violet);
}
.prose a { color: var(--lime); border-bottom: 2px solid rgba(200, 255, 61, 0.4); }
.prose a:hover { border-bottom-color: var(--lime); }

.visually-hidden {
  position: absolute !important;
  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;
}

/* ---------- 4. 页头 ---------- */
.skip-link {
  position: fixed;
  left: 16px;
  top: -120px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--lime);
  color: var(--ink);
  font-weight: 800;
  font-size: 15px;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus { top: 10px; }

.site-header {
  position: sticky;
  top: calc(var(--ticker-h) * -1);
  z-index: 80;
}

/* 更新信息带 */
.ticker-strip {
  height: var(--ticker-h);
  display: flex;
  align-items: center;
  background: var(--ink-2);
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--muted);
}
.ticker-strip__viewport { width: 100%; overflow: hidden; }
.ticker-strip__flow {
  display: flex;
  width: max-content;
  animation: ticker-flow 72s linear infinite;
}
.ticker-strip__list {
  display: flex;
  align-items: center;
  gap: 44px;
  padding-inline: 24px;
  white-space: nowrap;
}
.ticker-strip__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1;
}
.ticker-strip__list li::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  background: var(--violet);
}
.ticker-strip__list li:nth-child(2n)::before { background: var(--lime); }
.ticker-strip__list li:nth-child(3n)::before { background: var(--orange); }

@keyframes ticker-flow {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* 导航条 */
.header-bar {
  position: relative;
  background: transparent;
  transition: background-color 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out);
}
.site-header.is-stuck .header-bar {
  background: var(--ink-2);
  box-shadow: 0 3px 0 0 var(--ink-3);
}

.header-bar__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 34px);
  min-height: var(--bar-h);
  padding-block: 10px;
}

/* 品牌 */
.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--paper);
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 3px solid var(--violet);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--violet-deep), var(--ink));
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--lime);
  box-shadow: 4px 4px 0 0 rgba(200, 255, 61, 0.16);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0.01em;
  color: var(--paper);
}
.brand__sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.brand--footer .brand__name { font-size: 21px; }

/* 状态条 */
.header-status {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding-left: clamp(12px, 1.6vw, 26px);
  border-left: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.header-status__dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(200, 255, 61, 0.16);
  animation: pulse-dot 2.6s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.32; }
}
.header-status__page {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--cyan);
  white-space: nowrap;
}
.header-status__text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 导航 */
.site-nav { flex: 0 0 auto; }
.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(4px, 1.1vw, 18px);
}
.site-nav__link {
  position: relative;
  display: inline-block;
  padding: 8px 2px;
  font-size: 15px;
  font-weight: 600;
  color: var(--paper);
  transition: color 0.18s var(--ease-out);
}
.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 3px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.24s var(--ease-out);
}
.site-nav__link:hover { color: var(--lime); }
.site-nav__link:hover::after { transform: scaleX(1); }
.site-nav__link[aria-current="page"] { color: var(--lime); }
.site-nav__link[aria-current="page"]::after { transform: scaleX(1); }

.header-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 3px solid var(--ink-3);
  border-radius: var(--radius);
  background: var(--ink-3);
  color: var(--paper);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.18s var(--ease-out), color 0.18s var(--ease-out);
}
.nav-toggle__icon { display: grid; gap: 4px; width: 18px; }
.nav-toggle__icon i {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s var(--ease-out), opacity 0.2s var(--ease-out);
}
.nav-toggle__label { line-height: 1; }
.nav-toggle[aria-expanded="true"] { border-color: var(--lime); color: var(--lime); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* 滚动进度条 */
.scroll-meter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--ink-3);
  overflow: hidden;
}
.scroll-meter__fill {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--violet), var(--cyan), var(--lime));
}

/* ---------- 5. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(64px, 9vw, 132px);
  background: var(--ink);
  border-top: 3px solid var(--violet);
  color: var(--paper);
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(112deg, transparent 40%, rgba(139, 77, 255, 0.16) 40%, rgba(139, 77, 255, 0.16) 50%, transparent 50%),
    linear-gradient(112deg, transparent 62%, rgba(47, 230, 214, 0.09) 62%, rgba(47, 230, 214, 0.09) 68%, transparent 68%),
    repeating-linear-gradient(90deg, rgba(246, 246, 250, 0.035) 0 1px, transparent 1px 72px);
  pointer-events: none;
}
.footer-main {
  position: relative;
  z-index: 1;
  padding-block: clamp(44px, 5.5vw, 76px) clamp(34px, 4vw, 58px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
  gap: clamp(24px, 3.6vw, 56px);
}
.footer-col { min-width: 0; }
.footer-col--brand { max-width: 36ch; }

.footer-note {
  margin: 18px 0 12px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--muted);
}
.footer-icp {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.footer-title {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-links li + li { margin-top: 10px; }
.footer-links a {
  font-size: 15px;
  font-weight: 600;
  color: var(--paper);
  transition: color 0.16s var(--ease-out);
}
.footer-links a:hover { color: var(--lime); }
.footer-links--plain li {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.footer-contact li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  font-size: 14px;
  line-height: 1.6;
}
.footer-contact li + li { margin-top: 12px; }
.footer-contact__k {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--cyan);
  padding-top: 3px;
}
.footer-contact a { color: var(--paper); border-bottom: 2px solid rgba(200, 255, 61, 0.35); }
.footer-contact a:hover { color: var(--lime); border-bottom-color: var(--lime); }

.footer-legal {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  background: var(--ink-2);
}
.footer-legal__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 26px;
  padding-block: 18px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
}
.footer-legal__item { white-space: nowrap; }
.footer-legal__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-left: auto;
}
.footer-legal__nav a {
  color: var(--muted);
  transition: color 0.16s var(--ease-out);
}
.footer-legal__nav a:hover { color: var(--lime); }

/* ---------- 6. 通用组件 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 3px solid var(--lime);
  border-radius: var(--radius);
  background: var(--lime);
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: var(--shadow-hard-sm);
  transition: transform 0.16s var(--ease-out), box-shadow 0.16s var(--ease-out),
              background-color 0.16s var(--ease-out), color 0.16s var(--ease-out);
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 9px 9px 0 0 rgba(139, 77, 255, 0.55); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 0 rgba(139, 77, 255, 0.45); }
.btn--ghost {
  background: transparent;
  color: var(--lime);
  border-color: var(--lime);
  box-shadow: 6px 6px 0 0 rgba(139, 77, 255, 0.26);
}
.btn--ghost:hover { background: var(--lime); color: var(--ink); }
.btn--sm { padding: 9px 16px; font-size: 14px; }

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 15px;
  border: 2px solid var(--muted);
  border-radius: 999px;
  background: transparent;
  color: var(--paper);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
  transition: background-color 0.12s var(--ease-out), border-color 0.12s var(--ease-out),
              color 0.12s var(--ease-out);
}
.tag-pill:hover { border-color: var(--lime); color: var(--lime); }
.tag-pill--tier1 { border-color: var(--orange); }
.tag-pill[aria-pressed="true"],
.tag-pill.is-active {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
}

.panel {
  position: relative;
  padding: clamp(20px, 2.6vw, 32px);
  background: var(--ink-2);
  border: 3px solid var(--ink-3);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
}
.panel--accent { border-color: var(--violet); }
.panel--flat { box-shadow: none; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--violet);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  background: var(--lime);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  margin-bottom: 32px;
  border-bottom: 3px solid var(--ink-3);
}
.section-head__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.section-head__meta {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.rule-scale {
  position: relative;
  height: 3px;
  margin-block: clamp(28px, 4vw, 48px);
  background: var(--ink-3);
}
.rule-scale::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(90deg, var(--muted) 0 1px, transparent 1px 32px);
  opacity: 0.55;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-block: 18px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--lime); }
.breadcrumb li { display: flex; align-items: center; gap: 10px; }
.breadcrumb li + li::before { content: "/"; color: var(--ink-3); }

/* 图片框容器 */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  border: 3px solid var(--ink-3);
  border-radius: var(--radius);
  background-color: var(--ink-3);
  background-image:
    linear-gradient(135deg, rgba(43, 26, 140, 0.6), rgba(7, 7, 12, 0.92)),
    repeating-linear-gradient(135deg, rgba(246, 246, 250, 0.05) 0 2px, transparent 2px 9px);
  box-shadow: var(--shadow-hard);
}
.media-frame img,
.media-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(0deg, rgba(7, 7, 12, 0.16) 0 1px, transparent 1px 4px);
  pointer-events: none;
}
.media-frame--wide { aspect-ratio: 16 / 9; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--accent { border-color: var(--violet); }
.media-frame--flat { box-shadow: none; }

/* 返回顶部 */
.to-top {
  position: fixed;
  right: clamp(16px, 3vw, 40px);
  bottom: clamp(16px, 3vw, 40px);
  z-index: 90;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  background: var(--lime);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 0 rgba(139, 77, 255, 0.6);
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.24s var(--ease-out), transform 0.24s var(--ease-out),
              visibility 0.24s linear;
}
.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.to-top:hover { transform: translateY(-3px); }

/* ---------- 7. 响应式 ---------- */
@media (max-width: 1180px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; }
  .footer-col--brand { grid-column: 1 / -1; max-width: none; }
}

@media (max-width: 1080px) {
  .header-status { display: none; }
  .site-nav__list { gap: 4px; }
  .site-nav__link { font-size: 14px; }
}

@media (max-width: 900px) {
  :root { --bar-h: 72px; }

  body { font-size: 16px; }

  .grid-12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

  .header-bar__inner { gap: 12px; }
  .header-actions .btn { display: none; }
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    max-height: calc(100vh - var(--bar-h) - var(--ticker-h));
    overflow-y: auto;
    padding: 6px var(--gutter) 22px;
    background: var(--ink-2);
    border-top: 3px solid var(--violet);
    border-bottom: 3px solid var(--ink-3);
  }
  .site-nav[data-open] { display: block; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav__item { border-bottom: 1px solid var(--line-soft); }
  .site-nav__item:last-child { border-bottom: 0; }
  .site-nav__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    font-size: 17px;
  }
  .site-nav__link::after { display: none; }
  .site-nav__link[aria-current="page"] { padding-left: 14px; box-shadow: inset 3px 0 0 0 var(--lime); }

  .site-footer { margin-top: clamp(56px, 12vw, 86px); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
  .footer-legal__nav { margin-left: 0; }
}

@media (max-width: 620px) {
  :root { --ticker-h: 30px; }

  .grid-12 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand__mark { width: 38px; height: 38px; font-size: 15px; }
  .brand__name { font-size: 17px; }
  .brand--footer .brand__name { font-size: 19px; }
  .ticker-strip__list { gap: 28px; padding-inline: 16px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-legal__inner { font-size: 11.5px; gap: 8px 16px; }
  .to-top { width: 46px; height: 46px; font-size: 18px; }
}

/* ---------- 8. 降低动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .ticker-strip__flow { animation: none; }
  .header-status__dot { animation: none; }
  .btn:hover,
  .to-top:hover,
  .to-top.is-visible { transform: none; }
}
