/* =========================================================
   league-guide-wanmei.com.cn — 共享样式 /assets/site.css
   骨架：左侧固定命令轨道 + 右侧内容区
   ========================================================= */

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, h5, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video, picture { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
:where(h1, h2, h3, h4) { line-height: 1.14; letter-spacing: -0.012em; }

/* ---------- tokens ---------- */
:root {
  --ink: #060A12;
  --ink-2: #0B1220;
  --panel: #121C2E;
  --panel-2: #182642;
  --cyan: #2DE2FF;
  --violet: #8A5CFF;
  --red: #FF3B4E;
  --yellow: #FFD23F;
  --text: #EDF4FF;
  --muted: #A9B8CF;
  --line: #2A3A55;

  --rail-w: 248px;
  --gut: clamp(18px, 4vw, 56px);
  --stack: clamp(24px, 3.4vw, 52px);

  --ease: 160ms cubic-bezier(.22,.68,.32,1);
  --ease-slow: 260ms cubic-bezier(.22,.68,.32,1);

  --font-sans: "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-narrow: "Arial Narrow", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  --font-serif: "Songti SC", "Source Han Serif SC", "Noto Serif CJK SC", Georgia, "Times New Roman", serif;
}

/* ---------- base ---------- */
html, body { min-height: 100%; }
body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.72;
  letter-spacing: 0.012em;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(45, 226, 255, .3); color: #FFFFFF; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* ---------- skip link ---------- */
.skip-link {
  position: absolute;
  top: -120px;
  left: 12px;
  z-index: 999;
  padding: 10px 18px;
  background: var(--cyan);
  color: #04101A;
  font-weight: 800;
  font-size: .875rem;
  text-decoration: none;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
  transition: top var(--ease);
}
.skip-link:focus { top: 12px; }

/* =========================================================
   命令轨道 (header)
   ========================================================= */
.site-rail {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 12px 16px;
  background: rgba(6, 10, 18, .95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
}

/* 阅读进度线 */
.rail__progress {
  position: fixed;
  inset-block-start: 0;
  inset-inline-start: 0;
  width: 100%;
  height: 2px;
  z-index: 90;
  pointer-events: none;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 120ms linear;
}

/* 品牌铭牌 */
.rail__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-inline-end: auto;
  text-decoration: none;
  color: var(--text);
}
.rail__mark {
  position: relative;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  background: linear-gradient(148deg, var(--cyan) 0%, var(--violet) 100%);
  clip-path: polygon(0 0, 100% 0, 100% 62%, 62% 100%, 0 100%);
}
.rail__mark::after {
  content: "";
  position: absolute;
  inset: 7px;
  background: var(--ink);
  clip-path: polygon(0 0, 100% 0, 100% 58%, 58% 100%, 0 100%);
}
.rail__names { display: flex; flex-direction: column; line-height: 1.1; }
.rail__title {
  font-family: var(--font-narrow);
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: 0.03em;
  color: var(--text);
}
.rail__sub {
  margin-top: 3px;
  font-size: .625rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  color: var(--cyan);
}

/* 移动端开关 */
.rail__toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  background: rgba(45, 226, 255, .05);
  color: var(--text);
  font-size: .75rem;
  letter-spacing: 0.16em;
  transition: border-color var(--ease), background-color var(--ease), color var(--ease);
}
.rail__toggle:hover,
.rail__toggle[aria-expanded="true"] { border-color: var(--cyan); background: rgba(45, 226, 255, .12); }
.rail__toggle-icon {
  display: block;
  width: 18px;
  height: 14px;
  background:
    linear-gradient(var(--cyan), var(--cyan)) 0 0 / 100% 2px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) 0 6px / 100% 2px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) 0 12px / 68% 2px no-repeat;
  transition: transform var(--ease), opacity var(--ease);
}
.site-rail[data-open] .rail__toggle-icon { transform: rotate(90deg); opacity: .75; }
.rail__toggle-text { font-weight: 600; }

/* 导航 */
.rail__nav { display: none; flex: 1 0 100%; }
.rail__nav[data-open] {
  display: block;
  padding-block: 12px 8px;
  border-top: 1px solid var(--line);
}
.rail__list { display: grid; gap: 2px; }
.rail__item { min-width: 0; }
.rail__link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 12px;
  color: var(--muted);
  text-decoration: none;
  font-size: .9375rem;
  border-inline-start: 2px solid transparent;
  transition: color var(--ease), background-color var(--ease), border-color var(--ease);
}
.rail__idx {
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: 0.06em;
  color: var(--line);
  transition: color var(--ease);
}
.rail__label { min-width: 0; }
.rail__link:hover {
  color: var(--text);
  background: rgba(45, 226, 255, .08);
  border-inline-start-color: rgba(45, 226, 255, .5);
}
.rail__link:hover .rail__idx { color: var(--cyan); }
.rail__link[aria-current="page"] {
  color: var(--text);
  font-weight: 700;
  background: linear-gradient(90deg, rgba(45, 226, 255, .18), rgba(45, 226, 255, .02) 68%, transparent);
  border-inline-start-color: var(--cyan);
}
.rail__link[aria-current="page"] .rail__idx { color: var(--cyan); }

/* 栏目状态 */
.rail__status {
  display: none;
  flex: 1 0 100%;
  gap: 8px;
  margin: 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
}
.site-rail[data-open] .rail__status { display: grid; }
.rail__status-item {
  display: flex;
  align-items: baseline;
  gap: 9px;
  font-size: .6875rem;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.rail__status-item::before {
  content: "";
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  background: var(--cyan);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

/* CTA */
.rail__cta {
  display: none;
  flex: 1 0 100%;
  justify-content: center;
  align-items: center;
  padding: 12px 16px;
  background: linear-gradient(92deg, var(--cyan) 0%, #7FF0FF 100%);
  color: #04101A;
  font-weight: 800;
  font-size: .875rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
  transition: filter var(--ease), transform var(--ease);
}
.site-rail[data-open] .rail__cta { display: inline-flex; }
.rail__cta:hover { filter: brightness(1.07); transform: translateY(-1px); }

/* 回到顶部 */
.rail__top {
  display: none;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: .6875rem;
  letter-spacing: 0.14em;
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--ease-slow), color var(--ease), border-color var(--ease);
}
.rail__top[data-visible] { visibility: visible; opacity: 1; }
.rail__top:hover { color: var(--text); border-color: var(--cyan); }
.rail__top-icon {
  width: 8px;
  height: 8px;
  background: var(--cyan);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

/* ---------- 桌面端：固定左轨 ---------- */
@media (min-width: 1024px) {
  body { padding-inline-start: var(--rail-w); }

  .site-rail {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--rail-w);
    flex-wrap: nowrap;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 24px 20px 18px;
    border-bottom: 0;
    border-right: 1px solid var(--line);
    background: linear-gradient(180deg, #0C1424 0%, #080E1A 56%, #060A12 100%);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .rail__progress { width: var(--rail-w); }

  .rail__logo { margin: 0 0 24px; }
  .rail__toggle { display: none; }

  .rail__nav {
    display: block;
    flex: 0 0 auto;
    padding-top: 16px;
    border-top: 1px solid var(--line);
  }
  .rail__nav[data-open] { border-top-color: var(--line); }

  .rail__status { display: grid; flex: 0 0 auto; margin-top: 20px; }
  .rail__cta { display: inline-flex; flex: 0 0 auto; margin-top: auto; }
  .rail__top { display: inline-flex; flex: 0 0 auto; margin-top: 10px; }
}

/* =========================================================
   页脚
   ========================================================= */
.site-foot {
  border-top: 1px solid var(--line);
  padding: clamp(30px, 4.5vw, 58px) var(--gut) 22px;
  color: var(--muted);
  background:
    radial-gradient(760px 260px at 6% 0%, rgba(138, 92, 255, .16), transparent 70%),
    radial-gradient(620px 240px at 94% 8%, rgba(45, 226, 255, .10), transparent 70%),
    linear-gradient(180deg, #0A1220 0%, #060A12 72%);
}
.foot__inner { width: 100%; max-width: 1180px; margin-inline: auto; }
.foot__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, .82fr)) minmax(0, 1.15fr);
  gap: clamp(24px, 3.6vw, 46px);
  padding-bottom: clamp(24px, 3vw, 40px);
  border-bottom: 1px solid var(--line);
}
.foot__brand { min-width: 0; }
.foot__name {
  font-family: var(--font-narrow);
  font-weight: 800;
  font-size: clamp(1.0625rem, 1.8vw, 1.3rem);
  letter-spacing: 0.03em;
  color: var(--text);
}
.foot__desc {
  margin-top: 12px;
  max-width: 34ch;
  font-size: .875rem;
  line-height: 1.78;
  color: var(--muted);
}
.foot__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.foot__tag {
  padding: 4px 9px;
  border: 1px solid var(--line);
  font-size: .6875rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.foot__col { min-width: 0; }
.foot__col-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 15px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--text);
}
.foot__col-title::before {
  content: "";
  width: 14px;
  height: 2px;
  background: var(--cyan);
  flex: 0 0 auto;
}
.foot__list { display: grid; gap: 9px; }
.foot__link {
  display: inline-block;
  font-size: .875rem;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--ease), transform var(--ease);
}
.foot__link:hover { color: var(--cyan); transform: translateX(2px); }
.foot__contact { min-width: 0; }
.foot__dl { display: grid; gap: 12px; }
.foot__dt {
  font-size: .625rem;
  letter-spacing: 0.18em;
  color: var(--line);
}
.foot__dd {
  margin: 0;
  font-size: .84375rem;
  line-height: 1.6;
  color: var(--text);
}
.foot__mono {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}
.foot__note {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(42, 58, 85, .7);
  font-size: .6875rem;
  line-height: 1.7;
  color: var(--muted);
}
.foot__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 18px;
}
.foot__legal {
  font-size: .6875rem;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.foot__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.foot__meta-link {
  font-size: .6875rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--ease);
}
.foot__meta-link:hover { color: var(--cyan); }

@media (max-width: 1100px) {
  .foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot__brand { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .foot__grid { grid-template-columns: minmax(0, 1fr); }
  .foot__base { flex-direction: column; align-items: flex-start; }
}

/* =========================================================
   通用容器与内容组件
   ========================================================= */
.wrap {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: var(--gut);
}
.section { padding-block: var(--stack); }
.section + .section { border-top: 1px solid rgba(42, 58, 85, .6); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--cyan);
}
.eyebrow::before {
  content: "";
  width: 16px;
  height: 2px;
  background: currentColor;
  flex: 0 0 auto;
}
.display {
  font-family: var(--font-narrow);
  font-weight: 800;
  font-size: clamp(2rem, 5.2vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--text);
}
.measure { max-width: 62ch; color: var(--muted); }
.measure > p + p { margin-top: 1em; }
.mono { font-family: var(--font-mono); letter-spacing: -0.01em; }
.serif-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.0625rem, 1.9vw, 1.375rem);
  line-height: 1.8;
  color: var(--text);
  border-inline-start: 2px solid var(--violet);
  padding-inline-start: 18px;
}
.rule {
  height: 1px;
  border: 0;
  margin-block: var(--stack);
  background: linear-gradient(90deg, var(--cyan), rgba(138, 92, 255, .45) 38%, transparent 78%);
}

/* 面包屑 */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  font-size: .6875rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.crumbs__item { display: inline-flex; align-items: center; gap: 8px; }
.crumbs__item + .crumbs__item::before { content: "/"; color: var(--line); }
.crumbs a { color: var(--cyan); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* 面板与切角 */
.panel { background: var(--panel); }
.cut {
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}

/* 语义标签 */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  background: rgba(45, 226, 255, .12);
  color: var(--cyan);
}
.tag--red { background: rgba(255, 59, 78, .16); color: var(--red); }
.tag--yellow { background: rgba(255, 210, 63, .16); color: var(--yellow); }

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 20px;
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color var(--ease), color var(--ease), border-color var(--ease), transform var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--cyan); color: #04101A; }
.btn--primary:hover { background: #7FF0FF; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn--violet { background: var(--violet); color: #FFFFFF; }
.btn--violet:hover { background: #9C74FF; }
.btn--red { background: var(--red); color: #FFFFFF; }
.btn--red:hover { background: #FF5A6A; }

/* 图片容器基础 */
.media {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, #0B1220 0%, #121C2E 58%, #0A1020 100%);
  isolation: isolate;
}
.media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 10, 18, 0) 42%, rgba(6, 10, 18, .82) 100%);
}
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .5;
  background: repeating-linear-gradient(135deg, rgba(45, 226, 255, .07) 0 1px, transparent 1px 14px);
}
.media > img,
.media > picture > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.06) saturate(1.05);
}
.media--wide { aspect-ratio: 16 / 9; }
.media--tall { aspect-ratio: 4 / 5; }
.media--band { aspect-ratio: 21 / 9; }

/* 渐显钩子 */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 340ms var(--ease-slow), transform 340ms var(--ease-slow);
}
.js [data-reveal="in"] { opacity: 1; transform: none; }

/* ---------- 平板微调 ---------- */
@media (min-width: 768px) and (max-width: 1023px) {
  .site-rail { padding: 14px 22px; }
  .rail__nav[data-open] { padding-block: 14px 10px; }
  .rail__list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 10px; }
  .site-rail[data-open] .rail__cta { flex: 0 0 auto; align-self: flex-start; min-width: 180px; }
}

/* ---------- 减少动态效果 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .rail__progress { transition: none; }
}
