/* =========================================================
   CQ游艺 · 官方信息站  —  /assets/site.css
   深靛蓝底 / 电光青强调 / 暖橙行动色
   ========================================================= */

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

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

body, h1, h2, h3, h4, h5, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }

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

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

button, input, select, textarea { font: inherit; color: inherit; }

button { background: none; border: 0; padding: 0; cursor: pointer; }

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

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

/* ---------- 2. Tokens ---------- */
:root {
  --bg-900: #0B1030;
  --bg-800: #141B47;
  --bg-700: #2B3568;
  --cyan: #35E0D8;
  --cyan-soft: #A7F3EF;
  --orange: #FF7A2F;
  --gold: #FFC46B;
  --white: #F2F6FF;
  --slate: #8C96C4;
  --deep-teal: #0F2A52;

  --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system,
    "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono",
    Menlo, Consolas, "Liberation Mono", monospace;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --shell-max: 1240px;
  --gutter: clamp(18px, 4vw, 44px);
  --section-y: clamp(56px, 9vw, 132px);

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

  --glow-idle: 0 0 0 1px rgba(53, 224, 216, .10), 0 30px 70px -52px rgba(0, 0, 0, .95);
  --glow-active: 0 0 0 1px rgba(53, 224, 216, .30), 0 0 8px rgba(53, 224, 216, .18),
    0 34px 80px -52px rgba(0, 0, 0, .98);
}

/* ---------- 3. Base ---------- */
body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: clamp(15px, .42vw + 13.6px, 17px);
  line-height: 1.8;
  letter-spacing: .005em;
  color: var(--white);
  background-color: var(--bg-900);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* 背景：缓慢漂移的径向光晕 */
body::before {
  content: "";
  position: fixed;
  inset: -12%;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(46% 40% at 10% 6%, rgba(53, 224, 216, .16), transparent 62%),
    radial-gradient(42% 38% at 90% 20%, rgba(255, 122, 47, .12), transparent 66%),
    radial-gradient(70% 55% at 50% 112%, rgba(15, 42, 82, .92), transparent 72%),
    linear-gradient(180deg, #0B1030 0%, #0d1440 52%, #0B1030 100%);
  animation: cq-drift 24s ease-in-out infinite alternate;
}

/* 背景：横向扫描线质感 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .5;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(242, 246, 255, .03) 0 1px,
    transparent 1px 3px
  );
}

@keyframes cq-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-2%, 1.6%, 0) scale(1.05); }
}

h1, h2, h3, h4 {
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.16;
  color: var(--white);
}

h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
h3 { font-size: clamp(1.14rem, 1.8vw, 1.5rem); }
h4 { font-size: clamp(1rem, 1.3vw, 1.16rem); }

p { color: rgba(242, 246, 255, .78); }

::selection {
  background: rgba(53, 224, 216, .3);
  color: #04121C;
}

/* ---------- 4. Skip link ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 50%;
  z-index: 300;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  background: var(--cyan);
  color: #04121C;
  font-weight: 800;
  font-size: .88rem;
  letter-spacing: .02em;
  transform: translate(-50%, -220%);
  transition: transform .2s var(--ease);
}

.skip-link:focus {
  transform: translate(-50%, 0);
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

/* ---------- 5. Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  padding: clamp(10px, 1.6vw, 20px) var(--gutter);
  pointer-events: none;
}

.header-shell {
  pointer-events: auto;
  max-width: var(--shell-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.8vw, 24px);
  padding: 10px 14px 10px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(140, 150, 196, .22);
  background: linear-gradient(120deg, rgba(20, 27, 71, .94), rgba(11, 16, 48, .88));
  box-shadow: var(--glow-idle);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: padding .24s var(--ease), box-shadow .24s var(--ease),
    border-color .24s var(--ease), border-radius .24s var(--ease);
}

.site-header[data-scrolled] .header-shell {
  padding-top: 6px;
  padding-bottom: 6px;
  border-color: rgba(53, 224, 216, .28);
  box-shadow: 0 0 0 1px rgba(53, 224, 216, .22), 0 26px 70px -34px rgba(0, 0, 0, .96);
}

/* 品牌 */
.brand {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 4px 2px;
  border-radius: var(--radius-pill);
}

.brand-dot {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(53, 224, 216, .14), 0 0 16px rgba(53, 224, 216, .85);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.08;
}

.brand-mark {
  font-size: clamp(1rem, 1.4vw, 1.16rem);
  font-weight: 900;
  letter-spacing: -.02em;
  color: var(--white);
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .16em;
  color: var(--slate);
}

/* 移动端折叠按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 9px 15px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(140, 150, 196, .3);
  background: rgba(53, 224, 216, .09);
  color: var(--white);
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .04em;
  transition: border-color .18s var(--ease), background .18s var(--ease);
}

.nav-toggle:hover { border-color: rgba(53, 224, 216, .6); background: rgba(53, 224, 216, .16); }

.nav-toggle-bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 16px;
}

.nav-toggle-bars i {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(1) { transform: translateY(6px) 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(-6px) rotate(-45deg); }

.nav-toggle-label { line-height: 1; }

/* 导航 */
.site-nav { margin-left: auto; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-item { display: block; }

.nav-link {
  display: block;
  padding: 9px 15px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: .91rem;
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
  color: var(--slate);
  transition: color .18s var(--ease), background .18s var(--ease),
    border-color .18s var(--ease);
}

.nav-link:hover {
  color: var(--cyan-soft);
  background: rgba(53, 224, 216, .09);
}

.nav-link[aria-current="page"] {
  color: var(--cyan);
  background: rgba(53, 224, 216, .12);
  border-color: rgba(53, 224, 216, .55);
  box-shadow: inset 0 0 14px -2px rgba(53, 224, 216, .45);
}

/* 胶囊右端 CTA */
.header-cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: .88rem;
  font-weight: 800;
  letter-spacing: .01em;
  color: #21100 2;
  color: #211002;
  background: linear-gradient(135deg, var(--orange), var(--gold));
  box-shadow: 0 12px 30px -16px rgba(255, 122, 47, .95);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}

.header-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 38px -16px rgba(255, 196, 107, .95);
}

/* ---------- 6. Layout ---------- */
.site-main {
  display: block;
  padding-top: clamp(96px, 14vh, 148px);
}

.page-wrap {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: var(--section-y);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 62ch;
  margin-bottom: clamp(24px, 3.4vw, 46px);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cyan);
}

.anchor-code {
  font-family: var(--font-mono);
  font-size: .82rem;
  letter-spacing: .1em;
  color: var(--gold);
}

.mono {
  font-family: var(--font-mono);
  font-size: 1.1em;
  letter-spacing: .02em;
}

.lead {
  font-size: clamp(1.02rem, 1.5vw, 1.22rem);
  line-height: 1.78;
  color: var(--cyan-soft);
  max-width: 58ch;
}

.prose { max-width: 68ch; }

.prose p { margin-bottom: 1.1em; }

.prose p:last-child { margin-bottom: 0; }

.prose strong { color: var(--white); font-weight: 800; }

.prose h3 { margin: 1.7em 0 .55em; }

.prose a {
  color: var(--cyan);
  border-bottom: 1px solid rgba(53, 224, 216, .45);
}

.split-75 {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(22px, 3.4vw, 58px);
  align-items: start;
}

.split-75--offset > :first-child { margin-top: -48px; }

.split-75--offset > :last-child { margin-top: 24px; }

.stack {
  display: grid;
  gap: clamp(16px, 2.2vw, 30px);
}

/* ---------- 7. Building blocks ---------- */
.panel {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(140, 150, 196, .16);
  background: linear-gradient(160deg, rgba(20, 27, 71, .86), rgba(11, 16, 48, .74));
  padding: clamp(20px, 2.6vw, 34px);
  box-shadow: var(--glow-idle);
  transition: box-shadow .24s var(--ease), border-color .24s var(--ease),
    transform .24s var(--ease);
}

.panel:hover {
  border-color: rgba(53, 224, 216, .34);
  box-shadow: var(--glow-active);
}

.panel--soft {
  border-color: rgba(140, 150, 196, .12);
  background: linear-gradient(160deg, rgba(43, 53, 104, .52), rgba(15, 42, 82, .46));
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(53, 224, 216, .3);
  background: rgba(53, 224, 216, .1);
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  line-height: 1.6;
  color: var(--cyan-soft);
}

.tag--new {
  color: #2A0F02;
  font-weight: 700;
  border-color: transparent;
  background: linear-gradient(135deg, var(--orange), var(--gold));
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: .94rem;
  font-weight: 800;
  letter-spacing: .01em;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease),
    border-color .18s var(--ease), color .18s var(--ease), background .18s var(--ease);
}

.btn--primary {
  color: #211002;
  background: linear-gradient(135deg, var(--orange), var(--gold));
  box-shadow: 0 16px 34px -18px rgba(255, 122, 47, .95);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px -18px rgba(255, 196, 107, .95);
}

.btn--ghost {
  color: var(--cyan-soft);
  border-color: rgba(53, 224, 216, .45);
  background: rgba(53, 224, 216, .06);
}

.btn--ghost:hover {
  color: var(--cyan);
  border-color: rgba(53, 224, 216, .85);
  background: rgba(53, 224, 216, .14);
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .08em;
  color: var(--slate);
}

.breadcrumb li { display: inline-flex; align-items: center; gap: 10px; }

.breadcrumb li + li::before {
  content: "/";
  color: rgba(140, 150, 196, .5);
}

.breadcrumb a { color: var(--slate); }

.breadcrumb a:hover { color: var(--cyan); }

.breadcrumb [aria-current="page"] { color: var(--cyan-soft); }

/* 图片容器 */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(140, 150, 196, .2);
  background:
    linear-gradient(150deg, rgba(53, 224, 216, .18), rgba(15, 42, 82, .72) 48%, rgba(255, 122, 47, .14));
  box-shadow: 0 0 0 1px rgba(53, 224, 216, .08), 0 40px 90px -62px rgba(0, 0, 0, .96);
}

.media-frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .55;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(11, 16, 48, .3) 0 1px,
    transparent 1px 4px
  );
}

.media-frame--wide { aspect-ratio: 21 / 9; }

.media-frame--tall { aspect-ratio: 4 / 5; }

.media-frame--tilt {
  transform: rotate(-1.4deg);
  transition: transform .3s var(--ease);
}

.media-frame--tilt:hover { transform: rotate(0deg); }

/* ---------- 8. Reveal ---------- */
[data-js] .reveal {
  opacity: 0;
  transform: translateY(12px);
}

[data-js] .reveal[data-visible] {
  opacity: 1;
  transform: none;
  transition: opacity .24s var(--ease), transform .24s var(--ease);
}

/* ---------- 9. Footer ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: clamp(72px, 12vw, 160px);
  padding: clamp(48px, 7vw, 88px) 0 clamp(26px, 4vw, 42px);
  border-top: 1px solid rgba(140, 150, 196, .18);
  background: linear-gradient(
    180deg,
    rgba(15, 42, 82, 0) 0%,
    rgba(15, 42, 82, .5) 24%,
    rgba(11, 16, 48, .94) 100%
  );
}

.footer-inner {
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(220px, 5fr) minmax(0, 12fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}

.footer-brand-mark {
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-weight: 900;
  letter-spacing: -.02em;
  color: var(--white);
  margin-bottom: 8px;
}

.footer-brand-sub {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .14em;
  color: var(--cyan);
  margin-bottom: 18px;
}

.footer-note {
  max-width: 34ch;
  font-size: .87rem;
  line-height: 1.78;
  color: var(--slate);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 36px);
}

.footer-col { min-width: 0; }

.footer-title {
  margin-bottom: 14px;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cyan);
}

.footer-title a {
  color: inherit;
  border-bottom: 1px solid transparent;
  transition: border-color .18s var(--ease);
}

.footer-title a:hover { border-bottom-color: rgba(53, 224, 216, .7); }

.footer-list {
  display: grid;
  gap: 9px;
}

.footer-list li {
  font-size: .87rem;
  line-height: 1.6;
  color: var(--slate);
}

.footer-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 44px);
  margin-top: clamp(34px, 5vw, 56px);
  padding-top: clamp(22px, 3vw, 32px);
  border-top: 1px solid rgba(140, 150, 196, .16);
}

.footer-contact {
  display: grid;
  gap: 6px;
  font-size: .85rem;
  line-height: 1.7;
  color: var(--slate);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: flex-end;
}

.footer-legal a {
  font-size: .85rem;
  color: var(--white);
  border-bottom: 1px solid rgba(53, 224, 216, .4);
  padding-bottom: 2px;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}

.footer-legal a:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.footer-record {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: .71rem;
  letter-spacing: .08em;
  color: var(--slate);
}

/* ---------- 10. Responsive ---------- */
@media (max-width: 1080px) {
  .header-shell {
    flex-wrap: wrap;
    border-radius: 26px;
  }

  .nav-toggle { display: inline-flex; }

  .site-nav {
    order: 3;
    flex: 1 1 100%;
    margin-left: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height .3s var(--ease), opacity .22s var(--ease),
      margin-top .3s var(--ease);
  }

  .site-nav[data-open] {
    max-height: 560px;
    opacity: 1;
    margin-top: 10px;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .nav-link {
    padding: 12px 16px;
    font-size: 1rem;
    text-align: left;
  }

  .header-cta {
    display: none;
    order: 4;
    flex: 1 1 100%;
    margin-top: 10px;
    padding: 13px 18px;
  }

  .site-nav[data-open] ~ .header-cta { display: flex; }
}

@media (max-width: 980px) {
  .split-75 { grid-template-columns: 1fr; }

  .split-75--offset > :first-child,
  .split-75--offset > :last-child { margin-top: 0; }

  .footer-top { grid-template-columns: 1fr; }

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

  .footer-bottom { grid-template-columns: 1fr; }

  .footer-legal { justify-content: flex-start; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }

  .brand-sub { display: none; }

  .media-frame--tilt { transform: none; }
}

/* ---------- 11. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  body::before { animation: none; }

  [data-js] .reveal {
    opacity: 1;
    transform: none;
  }
}
