/* =========================================================
   app-jyou.com.cn — 共享样式表 /assets/site.css
   深海夜蓝底 · 霓虹青结构 · 荧光绿行动 · 活力橙节点
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background-color: #050B1A;
  background-image:
    radial-gradient(1200px 640px at 82% -12%, rgba(34, 224, 255, 0.13), transparent 62%),
    radial-gradient(900px 520px at 4% 8%, rgba(18, 58, 107, 0.55), transparent 68%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: #E8F1FF;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.85;
  font-weight: 400;
  overflow-x: hidden;
}

:root {
  --navy-900: #050B1A;
  --navy-700: #0A1A33;
  --trench-500: #123A6B;
  --cyan-400: #22E0FF;
  --green-400: #7BFF3C;
  --orange-500: #FF7A2F;
  --white-100: #E8F1FF;
  --mist-400: #9FB6D4;
  --paper-000: #F4F8FF;
  --steel-600: #2A4A75;

  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Roboto Mono", "Courier New", monospace;

  --fs-12: 0.75rem;
  --fs-14: 0.875rem;
  --fs-16: 1rem;
  --fs-18: 1.125rem;
  --fs-24: 1.5rem;
  --fs-32: 2rem;
  --fs-48: 3rem;
  --fs-72: 4.5rem;
  --fs-96: 6rem;

  --shell: 1240px;
  --gutter: clamp(18px, 4vw, 56px);
  --header-h: 76px;

  --line: 1px solid var(--steel-600);
  --shadow-hard: 6px 6px 0 rgba(0, 0, 0, 0.55);
  --glow-cyan: 0 0 0 1px rgba(34, 224, 255, 0.35), 0 0 22px rgba(34, 224, 255, 0.18);
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan-400); text-decoration: none; }
button { font-family: inherit; }

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

::selection { background: var(--cyan-400); color: var(--navy-900); }

/* ---------- 壳与分区 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(48px, 7vw, 96px); }
.section--tight { padding-block: clamp(28px, 4vw, 52px); }

.flow > * + * { margin-top: clamp(14px, 1.8vw, 26px); }

.prose {
  max-width: 70ch;
  font-size: 17px;
  line-height: 1.85;
  color: var(--white-100);
}
.prose p { margin: 0; }
.prose h2, .prose h3 { line-height: 1.25; margin: 0; }

.label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan-400);
}

.heading-xl {
  display: inline-block;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1.02;
  transform: skewX(-6deg);
  transform-origin: left bottom;
  margin: 0;
  color: var(--white-100);
}

/* ---------- 框景与展签 ---------- */
.corner-frame { position: relative; }
.corner-frame::before,
.corner-frame::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid var(--cyan-400);
  pointer-events: none;
  z-index: 2;
}
.corner-frame::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.corner-frame::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.panel {
  background: var(--navy-700);
  border: var(--line);
  padding: clamp(18px, 2.4vw, 28px);
}

.panel--paper {
  background: var(--paper-000);
  border-color: var(--paper-000);
  color: var(--navy-900);
}
.panel--paper .label { color: var(--trench-500); }

.panel--hard { box-shadow: var(--shadow-hard); }

.stat {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--cyan-400);
  line-height: 1;
}
.stat--xl { font-size: clamp(2.5rem, 6vw, 4rem); }

/* ---------- 按钮与链接 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid var(--cyan-400);
  background: transparent;
  color: var(--cyan-400);
  font-size: var(--fs-16);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 4px 4px 0 rgba(34, 224, 255, 0.22);
  transition: background-color 0.18s ease, color 0.18s ease,
              transform 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover, .btn:focus-visible {
  background: var(--cyan-400);
  color: var(--navy-900);
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 rgba(34, 224, 255, 0.4);
}

.btn--solid {
  background: var(--green-400);
  border-color: var(--green-400);
  color: var(--navy-900);
  box-shadow: 4px 4px 0 rgba(123, 255, 60, 0.25);
}
.btn--solid:hover, .btn--solid:focus-visible {
  background: var(--green-400);
  border-color: var(--green-400);
  color: var(--navy-900);
  box-shadow: 1px 1px 0 rgba(123, 255, 60, 0.45);
}

.btn__arrow { display: inline-block; transition: transform 0.18s ease; }
.btn:hover .btn__arrow { transform: translateX(4px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--steel-600);
  color: var(--white-100);
  font-weight: 600;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.link-arrow::after { content: "→"; transition: transform 0.18s ease; }
.link-arrow:hover, .link-arrow:focus-visible {
  color: var(--cyan-400);
  border-bottom-color: var(--cyan-400);
}
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- 面包屑 ---------- */
.crumbs { font-size: var(--fs-14); color: var(--mist-400); }
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--steel-600); }
.crumbs a {
  color: var(--mist-400);
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.crumbs a:hover, .crumbs a:focus-visible { color: var(--cyan-400); border-bottom-color: var(--cyan-400); }

/* ---------- 栅格 ---------- */
.grid { display: grid; gap: clamp(16px, 2.4vw, 32px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- 图片容器基座 ---------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  border: var(--line);
  background-image: linear-gradient(135deg, var(--navy-700) 0%, var(--trench-500) 100%);
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.06) contrast(1.06);
}
.media-frame--wide { aspect-ratio: 16 / 9; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--banner { aspect-ratio: 21 / 9; }

.media-frame--shade::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(180deg, rgba(5, 11, 26, 0) 38%, rgba(5, 11, 26, 0.82) 100%);
  pointer-events: none;
}

/* ---------- 跳过链接 ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--green-400);
  color: var(--navy-900);
  font-weight: 700;
  padding: 10px 18px;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--navy-900);
  border-bottom: 1px solid var(--steel-600);
}

.header-bar {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  min-height: var(--header-h);
  transition: min-height 0.2s ease;
}
.site-header.is-scrolled .header-bar { min-height: 62px; }

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  color: var(--white-100);
  text-decoration: none;
  flex: 0 0 auto;
}
.brand-chip {
  display: inline-block;
  font-size: var(--fs-24);
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1.15;
  padding: 2px 9px 3px;
  background: var(--cyan-400);
  color: var(--navy-900);
  transform: skewX(-6deg);
}
.brand-name {
  font-size: var(--fs-18);
  font-weight: 800;
  letter-spacing: 0.02em;
}
.brand-season {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--mist-400);
  border: 1px solid var(--steel-600);
  padding: 3px 8px;
  white-space: nowrap;
}

/* 主导航 */
.primary-nav { margin-left: auto; }
.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 26px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-list a {
  position: relative;
  display: inline-block;
  padding: 6px 2px;
  color: var(--mist-400);
  font-size: var(--fs-14);
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.18s ease;
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--cyan-400);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s ease, background-color 0.22s ease;
}
.nav-list a:hover, .nav-list a:focus-visible { color: var(--white-100); }
.nav-list a:hover::after, .nav-list a:focus-visible::after { transform: scaleX(1); }
.nav-list a[aria-current="page"] { color: var(--cyan-400); }
.nav-list a[aria-current="page"]::after { transform: scaleX(1); background: var(--green-400); }

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding: 9px 13px;
  background: transparent;
  border: 1px solid var(--steel-600);
  color: var(--white-100);
  font-size: var(--fs-14);
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}
.nav-toggle:hover { border-color: var(--cyan-400); color: var(--cyan-400); }
.nav-toggle-bars { display: inline-flex; flex-direction: column; gap: 4px; width: 18px; }
.nav-toggle-bars i {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] { border-color: var(--green-400); color: var(--green-400); }
.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); }

/* 滚动进度线（由 JS 注入到页头） */
.scroll-meter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  pointer-events: none;
  z-index: 6;
}
.scroll-meter__bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background-image: linear-gradient(90deg, var(--cyan-400) 0%, var(--green-400) 70%, var(--orange-500) 100%);
}

/* ---------- SQS 悬浮控件 ---------- */
.sqs-dock {
  position: fixed;
  right: clamp(12px, 3vw, 28px);
  bottom: clamp(12px, 3vw, 28px);
  z-index: 90;
}
.sqs-trigger {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 10px 14px;
  background: var(--navy-700);
  border: 1px solid var(--cyan-400);
  color: var(--cyan-400);
  font-family: var(--font-mono);
  font-size: var(--fs-14);
  font-weight: 700;
  letter-spacing: 0.14em;
  cursor: pointer;
  box-shadow: 4px 4px 0 rgba(34, 224, 255, 0.25);
  transition: background-color 0.18s ease, color 0.18s ease,
              transform 0.18s ease, box-shadow 0.18s ease;
}
.sqs-trigger:hover, .sqs-trigger:focus-visible {
  background: var(--cyan-400);
  color: var(--navy-900);
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 rgba(34, 224, 255, 0.45);
}
.sqs-key { font-size: var(--fs-16); }
.sqs-unit { font-size: 11px; letter-spacing: 0.18em; }

.sqs-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  width: min(300px, calc(100vw - 40px));
  padding: 18px;
  background: var(--navy-700);
  border: 1px solid var(--steel-600);
  box-shadow: var(--shadow-hard);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s linear;
}
.sqs-dock[data-open="true"] .sqs-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.sqs-dock[data-open="true"] .sqs-trigger {
  background: var(--cyan-400);
  color: var(--navy-900);
}
.sqs-title {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan-400);
}
.sqs-text {
  margin: 0 0 14px;
  font-size: var(--fs-14);
  line-height: 1.7;
  color: var(--mist-400);
}
.sqs-links { margin: 0; padding: 0; list-style: none; }
.sqs-links li + li { margin-top: 6px; }
.sqs-links a {
  display: block;
  padding: 8px 0 8px 12px;
  border-left: 2px solid var(--steel-600);
  color: var(--white-100);
  font-size: var(--fs-14);
  font-weight: 600;
  transition: border-color 0.18s ease, color 0.18s ease, padding-left 0.18s ease;
}
.sqs-links a:hover, .sqs-links a:focus-visible {
  border-left-color: var(--green-400);
  color: var(--cyan-400);
  padding-left: 16px;
}

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: clamp(48px, 8vw, 104px);
  background: var(--navy-700);
  border-top: 1px solid var(--steel-600);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(250px, 1.7fr) repeat(3, minmax(140px, 1fr));
  gap: clamp(24px, 3vw, 48px);
  padding-block: clamp(40px, 6vw, 72px) clamp(28px, 4vw, 48px);
}

.footer-block--brand { max-width: 38ch; }

.brand--footer { margin-bottom: 14px; }

.footer-copy {
  margin: 0 0 12px;
  font-size: var(--fs-16);
  line-height: 1.8;
  color: var(--mist-400);
}
.footer-stamp {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.12em;
  color: var(--trench-500);
  filter: brightness(1.9);
}

.footer-heading {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan-400);
}

.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li + li { margin-top: 8px; }
.footer-links a {
  display: inline-block;
  color: var(--mist-400);
  font-size: var(--fs-14);
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.footer-links a:hover, .footer-links a:focus-visible {
  color: var(--cyan-400);
  border-bottom-color: var(--cyan-400);
  transform: translateX(3px);
}

.footer-address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: var(--fs-14);
  color: var(--mist-400);
  line-height: 1.7;
}
.footer-note { color: var(--trench-500); filter: brightness(1.7); }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
  padding-block: 18px 22px;
  border-top: 1px solid var(--steel-600);
}
.footer-icp {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.06em;
  color: var(--mist-400);
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-legal a {
  color: var(--mist-400);
  font-size: var(--fs-14);
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.footer-legal a:hover, .footer-legal a:focus-visible {
  color: var(--green-400);
  border-bottom-color: var(--green-400);
}

/* 页脚压底比分条 */
.score-strip {
  background: var(--navy-900);
  border-top: 1px solid var(--steel-600);
  overflow: hidden;
}
.score-strip__inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 40px);
  min-height: 52px;
  flex-wrap: wrap;
}
.score-strip__cell {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--trench-500);
  filter: brightness(1.8);
  white-space: nowrap;
}
.score-strip__cell--num {
  font-size: var(--fs-24);
  font-weight: 700;
  color: var(--cyan-400);
  filter: none;
  letter-spacing: 0.02em;
}
.score-strip__cell--live {
  color: var(--orange-500);
  filter: none;
  padding-left: 14px;
  border-left: 2px solid var(--orange-500);
}

/* ---------- 滚动显现（JS 开启后生效） ---------- */
html.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
}
html.reveal-ready [data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1120px) {
  .nav-toggle { display: inline-flex; }

  .primary-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    margin-left: 0;
    margin-top: var(--header-h);
    padding: 20px var(--gutter) 30px;
    background: var(--navy-700);
    border-bottom: 1px solid var(--steel-600);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s linear;
  }
  .primary-nav[data-open="true"] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list li + li { border-top: 1px solid rgba(42, 74, 117, 0.6); }
  .nav-list a {
    display: block;
    padding: 14px 0;
    font-size: var(--fs-18);
    font-weight: 700;
    color: var(--white-100);
  }
  .nav-list a::after { display: none; }
  .nav-list a[aria-current="page"] { color: var(--green-400); }
  .nav-list a[aria-current="page"]::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 2px;
    margin-right: 10px;
    vertical-align: middle;
    background: var(--green-400);
  }

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

@media (max-width: 860px) {
  .brand-season { display: none; }
  .grid--2, .grid--3 { grid-template-columns: minmax(0, 1fr); }
  .heading-xl { font-size: clamp(2.2rem, 9vw, 3.4rem); }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .header-bar { min-height: 66px; gap: 10px; }
  .brand-chip { font-size: var(--fs-18); }
  .brand-name { font-size: var(--fs-16); }
  .nav-toggle-label { display: none; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-base { flex-direction: column; align-items: flex-start; }
  .sqs-dock { right: 12px; bottom: 12px; }
  .sqs-trigger { padding: 9px 12px; }
  .score-strip__inner { min-height: 46px; gap: 14px; }
}

/* ---------- 可访问性偏好 ---------- */
@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;
    scroll-behavior: auto !important;
  }
  html.reveal-ready [data-reveal] { opacity: 1; transform: none; }
}
