/* 霓虹终端皮肤 · 近黑底 + 紫品红辉光 + 玻璃拟态 */
:root {
  --ink: #0d0d0d;
  --violet: #8000ff;
  --magenta: #ff00ff;
  --paper: #ece6f7;
  --dim: #b3a3ce;
  --line: rgba(128, 0, 255, 0.32);
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Courier New", monospace;
  --sans: "Noto Naskh Arabic", "Noto Sans Arabic", system-ui, -apple-system, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--ink);
  background-image:
    radial-gradient(circle at 12% -6%, rgba(128, 0, 255, 0.26), transparent 52%),
    radial-gradient(circle at 88% 4%, rgba(255, 0, 255, 0.16), transparent 48%);
  background-repeat: no-repeat;
  color: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.78;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: screen;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.05) 0 1px,
    transparent 1px 3px
  );
}

body.menu-open { overflow: hidden; }

img { max-width: 100%; }

a { color: #dcb8ff; text-underline-offset: 3px; }
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--magenta);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 14px;
  top: -72px;
  z-index: 400;
  padding: 11px 18px;
  border-radius: 8px;
  background: var(--violet);
  color: #fff;
  text-decoration: none;
  font-size: 0.92rem;
  transition: top 0.2s ease;
}
.skip:focus { top: 12px; }

/* ——— 页头：品牌行 + 菜单行 ——— */
.mast {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(11, 9, 16, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.brandline,
.menurow,
.prime {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.brandline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.mark-img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--magenta);
}
.mark-txt {
  font-size: 1.04rem;
  text-shadow: 0 0 12px rgba(128, 0, 255, 0.95), 0 0 26px rgba(255, 0, 255, 0.4);
}

.chip {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  padding: 4px 9px;
  border: 1px solid rgba(255, 0, 255, 0.45);
  border-radius: 4px;
  color: #ffb6ff;
  text-shadow: 0 0 10px rgba(255, 0, 255, 0.8);
  white-space: nowrap;
}

.menurow {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 12px;
}

.burger {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 8px 15px;
  background: rgba(128, 0, 255, 0.14);
  border: 1px solid rgba(255, 0, 255, 0.48);
  border-radius: 7px;
  color: #fff;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  cursor: pointer;
  text-shadow: 0 0 10px rgba(255, 0, 255, 0.7);
}
.burger:hover { background: rgba(255, 0, 255, 0.18); }
.burger-bar {
  display: block;
  width: 15px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
}
body.menu-open .burger {
  background: var(--magenta);
  border-color: var(--magenta);
  color: #14001a;
  text-shadow: none;
}

.hud {
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 0, 255, 0.8), rgba(128, 0, 255, 0.2), transparent);
}

/* 无脚本兜底：导航直接横排铺在页头 */
.prime { padding-bottom: 12px; }
.prime ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0 18px;
  margin: 0;
  padding: 0;
  counter-reset: navi;
}
.prime a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--dim);
  text-decoration: none;
  font-size: 0.94rem;
}
.prime a:hover { color: #fff; }

/* 有脚本：全屏遮罩终端菜单 */
html.js .prime {
  position: fixed;
  inset: 0;
  max-width: none;
  margin: 0;
  display: none;
  place-items: center;
  padding: 96px 24px 40px;
  overflow: auto;
  z-index: 55;
  background: rgba(8, 6, 13, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
html.js .menu-open .prime { display: grid; }
html.js .prime ol {
  display: grid;
  gap: 4px;
  width: min(560px, 100%);
  padding: 0;
}
html.js .prime li {
  display: flex;
  align-items: center;
  gap: 16px;
  counter-increment: navi;
  border-bottom: 1px solid rgba(128, 0, 255, 0.24);
}
html.js .prime li::before {
  content: "0" counter(navi);
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  color: var(--magenta);
  text-shadow: 0 0 10px rgba(255, 0, 255, 0.8);
}
html.js .prime a {
  flex: 1 1 auto;
  min-height: 52px;
  font-size: 1.14rem;
  color: #f2eaff;
  border-bottom: 0;
}
html.js .prime a:hover,
html.js .prime a:focus-visible {
  color: #fff;
  text-shadow: 0 0 16px rgba(255, 0, 255, 0.9);
}

/* ——— 主体栅格 ——— */
main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 264px;
  align-items: start;
  gap: 34px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 38px 20px 76px;
}

section { min-width: 0; counter-reset: seg; }

section article {
  position: relative;
  scroll-margin-top: 128px;
}

section article:not(.veil) {
  counter-increment: seg;
  margin: 0 0 26px;
  padding: 26px 24px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(155deg, rgba(128, 0, 255, 0.13), rgba(255, 255, 255, 0.032));
  backdrop-filter: blur(11px);
  -webkit-backdrop-filter: blur(11px);
  box-shadow: 0 0 0 1px rgba(255, 0, 255, 0.06) inset, 0 14px 40px -28px rgba(128, 0, 255, 0.9);
}

section article:not(.veil)::before {
  content: "0" counter(seg);
  display: block;
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  color: rgba(255, 0, 255, 0.8);
  text-shadow: 0 0 12px rgba(255, 0, 255, 0.7);
}

/* ——— 首屏 ——— */
.veil {
  position: relative;
  display: grid;
  place-items: center;
  min-height: calc(100svh - 128px);
  margin-bottom: 26px;
  padding: 40px 0;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid rgba(255, 0, 255, 0.22);
}

.clash { position: absolute; inset: 0; z-index: 0; }
.clash::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 13, 13, 0.45), rgba(13, 13, 13, 0.88));
}

.pane {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 0, 255, 0.42);
  border-radius: 10px;
  box-shadow: 0 0 46px rgba(128, 0, 255, 0.45);
  opacity: 0.72;
}
.pane img { display: block; width: 100%; height: 100%; object-fit: cover; filter: contrast(1.12) saturate(0.9); }
.pane-1 { width: 45%; height: 54%; left: -4%; top: 7%; transform: rotate(-3deg); }
.pane-2 { width: 39%; height: 44%; right: -3%; bottom: 6%; transform: rotate(2.4deg); }

.veil-copy {
  position: relative;
  z-index: 2;
  width: min(660px, 100%);
  padding: 26px 22px;
  text-align: center;
  border-radius: 10px;
  border: 1px solid rgba(128, 0, 255, 0.28);
  background: rgba(12, 9, 18, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

h1 {
  margin: 0 0 14px;
  font-size: clamp(1.9rem, 5.6vw, 3rem);
  line-height: 1.32;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 0 0 18px rgba(255, 0, 255, 0.6), 0 0 48px rgba(128, 0, 255, 0.55);
  animation: jitter 7s steps(1) infinite;
}

@keyframes jitter {
  0%, 91%, 100% { transform: none; }
  92% { transform: skewX(-1.5deg) translateX(-2px); }
  94% { transform: skewX(1.1deg) translateX(2px); }
  96% { transform: skewX(-0.5deg); }
}

.lede {
  margin: 0;
  color: var(--dim);
  font-size: 0.98rem;
  line-height: 1.75;
}

/* ——— 正文排版 ——— */
h2 {
  margin: 0 0 14px;
  padding-left: 14px;
  border-left: 3px solid var(--magenta);
  font-size: 1.32rem;
  line-height: 1.45;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 0 0 14px rgba(255, 0, 255, 0.42);
}

h3 {
  margin: 22px 0 10px;
  font-size: 1.1rem;
  line-height: 1.5;
  color: #f4ecff;
}

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

ul, ol { margin: 0 0 1em; padding-left: 1.35em; }
li { margin: 0 0 0.4em; }

section a { text-decoration-color: rgba(255, 0, 255, 0.55); }
section a:hover { color: #fff; text-shadow: 0 0 12px rgba(255, 0, 255, 0.6); }

sub, sup { font-size: 0.75em; }

/* ——— 右侧栏 ——— */
.rail {
  position: sticky;
  top: 132px;
  padding: 20px 18px 16px;
  border: 1px solid rgba(255, 0, 255, 0.3);
  border-radius: 10px;
  background: linear-gradient(160deg, rgba(255, 0, 255, 0.09), rgba(255, 255, 255, 0.035));
  backdrop-filter: blur(11px);
  -webkit-backdrop-filter: blur(11px);
}

.rail h2 { font-size: 1rem; border-left-color: var(--violet); margin-bottom: 8px; }

.subtitle {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  color: rgba(255, 182, 255, 0.85);
}

.rail-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.rail-list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 5px 0;
  border-bottom: 1px dashed rgba(128, 0, 255, 0.24);
  color: var(--dim);
  text-decoration: none;
  font-size: 0.95rem;
}
.rail-list li:last-child a { border-bottom: 0; }
.rail-list a:hover { color: #fff; }

/* ——— 页脚 ——— */
.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 24px;
  padding: 24px 20px 34px;
  border-top: 1px solid var(--line);
  background: rgba(9, 7, 14, 0.92);
}

.mark-foot { min-height: 40px; }
.mark-foot .mark-txt { font-size: 0.95rem; }

.foot-nav ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 16px;
  margin: 0;
  padding: 0;
}
.foot-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--dim);
  text-decoration: none;
  font-size: 0.9rem;
}
.foot-nav a:hover { color: #fff; }

.copy {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: rgba(179, 163, 206, 0.8);
}

/* ——— 滚动入场 ——— */
html.js section article,
html.js .rail {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.2, 0.7, 0.3, 1);
}
html.js section article.in,
html.js .rail.in { opacity: 1; transform: none; }

/* ——— 窄屏 ——— */
@media (max-width: 880px) {
  main {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    padding: 26px 16px 58px;
  }
  .veil { min-height: 76svh; margin-bottom: 22px; }
  .veil-copy { padding: 22px 16px; }
  .pane-1 { width: 60%; height: 42%; left: -7%; top: 4%; }
  .pane-2 { width: 52%; height: 36%; right: -6%; bottom: 4%; }
  .rail { position: static; }
  section article:not(.veil) { padding: 22px 17px 16px; }
  section article { scroll-margin-top: 118px; }
  .brandline, .menurow, .prime { padding-left: 15px; padding-right: 15px; }
  .foot { gap: 6px 18px; }
}

@media (max-width: 420px) {
  body { font-size: 16.5px; }
  .chip { display: none; }
  .foot-nav ol { gap: 0 12px; }
}

@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;
  }
  html.js section article,
  html.js .rail { opacity: 1; transform: none; }
}

button[aria-expanded]{min-width:44px;min-height:44px}
