/* ============================================================
   /assets/site.css — 乐鱼赛场 共享层
   reset / tokens / 中文排版 / header / footer / 通用组件
   ============================================================ */

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

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

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

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

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

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

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

:root {
  /* 色彩 */
  --ink: #061A2E;
  --deep: #0B2A4A;
  --coral: #FF6B4A;
  --amber: #FFA36B;
  --sky: #63C5EA;
  --paper: #F5EFE4;
  --cream: #FFF9F0;
  --char: #101820;
  --flag-red: #D64545;
  --flag-yellow: #F2C14E;
  --teal: #2E8B7A;

  --line: rgba(11, 42, 74, 0.14);
  --line-soft: rgba(245, 239, 228, 0.16);

  /* 字体 */
  --font-display: "Bebas Neue", Impact, "Haettenschweiler", "Arial Narrow",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: "Source Han Sans SC", "Noto Sans SC", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular,
    Menlo, Consolas, "Courier New", monospace;

  /* 度量 */
  --shell: 1200px;
  --gutter: 24px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* 形状 */
  --cut-btn: polygon(0 0, 100% 0, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  --cut-card: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
  --cut-mark: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
}

body {
  background-color: var(--paper);
  color: var(--char);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
}

p { text-wrap: pretty; }

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

:where(a, button, [tabindex]):focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
  border-radius: 1px;
}

#main-content,
.ly-section { scroll-margin-top: 120px; }

/* ---------- 容器与网格 ---------- */

.ly-shell {
  width: min(var(--shell), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

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

.ly-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 28px;
  margin-bottom: clamp(24px, 3vw, 42px);
}

.ly-section__title {
  font-size: clamp(30px, 4.4vw, 50px);
  letter-spacing: -0.015em;
}

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

.ly-grid--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ly-grid--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ly-span-full { grid-column: 1 / -1; }

/* ---------- 跳转链接 ---------- */

.ly-skip {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  padding: 11px 20px;
  background-color: var(--coral);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  clip-path: var(--cut-btn);
  transform: translateY(-180%);
  transition: transform 0.2s var(--ease);
}

.ly-skip:focus { transform: translateY(0); outline: none; }
.ly-skip:focus-visible { box-shadow: inset 0 0 0 3px var(--ink); }

/* ============================================================
   HEADER
   ============================================================ */

.ly-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--deep);
}

/* 上层：品牌说明带 */
.ly-topline {
  background-color: var(--ink);
  color: rgba(245, 239, 228, 0.66);
  max-height: 56px;
  overflow: hidden;
  box-shadow: inset 0 -1px 0 rgba(245, 239, 228, 0.08);
  transition: max-height 0.34s var(--ease), opacity 0.22s linear;
}

.ly-header.is-condensed .ly-topline {
  max-height: 0;
  opacity: 0;
}

.ly-topline__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 56px;
  font-size: 12.5px;
  letter-spacing: 0.02em;
}

.ly-topline__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.ly-topline__name {
  color: var(--cream);
  font-weight: 800;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.ly-topline__slash {
  flex: 0 0 auto;
  width: 2px;
  height: 13px;
  background-color: var(--coral);
  transform: skewX(-22deg);
}

.ly-topline__tag {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ly-topline__meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 0 0 auto;
}

.ly-topline__hours {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(99, 197, 234, 0.9);
}

.ly-topline__link {
  position: relative;
  color: rgba(245, 239, 228, 0.82);
  font-weight: 700;
  padding-bottom: 2px;
  transition: color 0.18s var(--ease);
}

.ly-topline__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s var(--ease);
}

.ly-topline__link:hover { color: var(--coral); }
.ly-topline__link:hover::after { transform: scaleX(1); }

/* 下层：导航带 */
.ly-navbar {
  position: relative;
  background-color: var(--deep);
}

.ly-navbar::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 3px;
  background-image: linear-gradient(
    90deg,
    var(--coral) 0 20%,
    var(--amber) 20% 33%,
    var(--sky) 33% 44%,
    transparent 44% 100%
  );
  pointer-events: none;
}

.ly-navbar__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 68px;
  padding-block: 10px;
  transition: min-height 0.3s var(--ease);
}

.ly-header.is-condensed .ly-navbar__inner { min-height: 56px; }

/* 品牌 */
.ly-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
}

.ly-brand__mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background-color: var(--coral);
  color: var(--ink);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  clip-path: var(--cut-mark);
}

.ly-brand__mark > span { transform: translateY(-1px); }

.ly-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.ly-brand__cn {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 19px;
  letter-spacing: 0.07em;
  color: var(--cream);
}

.ly-brand__en {
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.32em;
  color: var(--sky);
}

/* 主导航 */
.ly-nav {
  margin-left: auto;
  width: auto;
}

.ly-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  counter-reset: lynav;
}

.ly-nav__item { counter-increment: lynav; }

.ly-nav__link {
  position: relative;
  display: inline-block;
  padding: 9px 13px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(245, 239, 228, 0.76);
  white-space: nowrap;
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease);
}

.ly-nav__link::before {
  content: "0" counter(lynav);
  display: inline-block;
  margin-right: 6px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: rgba(99, 197, 234, 0.62);
  vertical-align: 2px;
}

.ly-nav__link::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 3px;
  height: 3px;
  background-color: var(--coral);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.24s var(--ease);
}

.ly-nav__link:hover,
.ly-nav__link:focus-visible { color: var(--cream); }
.ly-nav__link:hover::after { transform: scaleX(1); }

.ly-nav__link[aria-current="page"] {
  color: var(--cream);
  background-color: rgba(255, 107, 74, 0.13);
}

.ly-nav__link[aria-current="page"]::before { color: var(--coral); }

.ly-nav__link[aria-current="page"]::after {
  transform: scaleX(1);
  background-color: var(--cream);
}

/* 移动端尾部动作区 */
.ly-nav__foot { display: none; }

.ly-nav__footlink {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 10px;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--cream);
  border: 1px solid rgba(245, 239, 228, 0.26);
  clip-path: var(--cut-btn);
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease),
    border-color 0.18s var(--ease);
}

.ly-nav__footlink:hover,
.ly-nav__footlink:focus-visible {
  background-color: var(--coral);
  border-color: var(--coral);
  color: var(--ink);
}

/* 主行动 */
.ly-cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background-color: var(--coral);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.05em;
  clip-path: var(--cut-btn);
  transition: background-color 0.18s var(--ease), transform 0.18s var(--ease);
}

.ly-cta::after { content: "→"; font-family: var(--font-mono); }
.ly-cta:hover { background-color: var(--amber); transform: translateX(2px); }
.ly-cta:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--ink); }

/* 菜单按钮 */
.ly-navtoggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  margin-left: auto;
  color: var(--cream);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border: 1px solid rgba(245, 239, 228, 0.28);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 11px), calc(100% - 11px) 100%, 0 100%);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.ly-navtoggle__bars {
  display: grid;
  gap: 4px;
  width: 18px;
}

.ly-navtoggle__bars span {
  display: block;
  height: 2px;
  background-color: currentColor;
  transition: transform 0.24s var(--ease), opacity 0.16s linear;
}

.ly-navtoggle[aria-expanded="true"] {
  color: var(--coral);
  border-color: var(--coral);
}

.ly-navtoggle[aria-expanded="true"] .ly-navtoggle__bars span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.ly-navtoggle[aria-expanded="true"] .ly-navtoggle__bars span:nth-child(2) {
  opacity: 0;
}

.ly-navtoggle[aria-expanded="true"] .ly-navtoggle__bars span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* 阅读进度 */
.ly-progress {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 3px;
  background-color: rgba(245, 239, 228, 0.1);
  pointer-events: none;
}

.ly-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(90deg, var(--sky), var(--coral));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.1s linear;
}

/* ---------- 头部响应式 ---------- */

@media (max-width: 1120px) and (min-width: 961px) {
  .ly-nav__link { padding: 9px 8px; font-size: 13.5px; }
  .ly-nav__link::before { margin-right: 4px; }
  .ly-nav__link::after { left: 8px; right: 8px; }
  .ly-cta { padding: 11px 14px; font-size: 13px; }
  .ly-brand__en { display: none; }
}

@media (max-width: 960px) {
  :root { --gutter: 16px; }

  .ly-topline { max-height: 46px; }
  .ly-topline__inner { min-height: 46px; }
  .ly-topline__tag,
  .ly-topline__slash,
  .ly-topline__hours { display: none; }

  .ly-navbar__inner { min-height: 62px; gap: 12px; }
  .ly-cta { display: none; }
  .ly-navtoggle { display: inline-flex; }
  html:not(.ly-motion) .ly-navtoggle { display: none; }

  .ly-brand__cn { font-size: 17px; }
  .ly-brand__en { letter-spacing: 0.22em; }

  /* 无脚本兜底：导航直接铺开 */
  html:not(.ly-motion) .ly-nav {
    flex: 1 1 auto;
    margin-left: 8px;
  }

  html:not(.ly-motion) .ly-nav__list {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0;
  }

  /* 折叠面板 */
  html.ly-motion .ly-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    margin-left: 0;
    width: 100%;
    padding: 10px 16px 20px;
    background-color: var(--deep);
    border-top: 1px solid rgba(245, 239, 228, 0.12);
    box-shadow: 0 22px 44px rgba(6, 26, 46, 0.45);
    max-height: calc(100vh - 90px);
    overflow-y: auto;
  }

  html.ly-motion .ly-nav[data-open] {
    display: block;
    animation: ly-drop 0.22s var(--ease);
  }

  html.ly-motion .ly-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  html.ly-motion .ly-nav__item {
    border-bottom: 1px solid rgba(245, 239, 228, 0.1);
  }

  html.ly-motion .ly-nav__link {
    display: block;
    padding: 14px 8px;
    font-size: 16px;
  }

  html.ly-motion .ly-nav__link::after { display: none; }

  html.ly-motion .ly-nav__link[aria-current="page"] {
    background-color: rgba(255, 107, 74, 0.14);
    box-shadow: inset 3px 0 0 var(--coral);
    padding-left: 14px;
  }

  html.ly-motion .ly-nav__foot {
    display: flex;
    gap: 10px;
    margin-top: 16px;
  }
}

@keyframes ly-drop {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 420px) {
  .ly-topline__name { font-size: 12px; letter-spacing: 0.08em; }
  .ly-topline__link { font-size: 12px; }
  .ly-brand__mark { width: 34px; height: 34px; font-size: 13px; }
}

/* ============================================================
   FOOTER
   ============================================================ */

.ly-footer {
  position: relative;
  background-color: var(--ink);
  color: rgba(245, 239, 228, 0.7);
  overflow: hidden;
}

.ly-footer__flags {
  display: flex;
  height: 6px;
}

.ly-footer__flag { display: block; height: 100%; }
.ly-footer__flag--red { flex: 1.8; background-color: var(--flag-red); }
.ly-footer__flag--yellow { flex: 1; background-color: var(--flag-yellow); }
.ly-footer__flag--green { flex: 0.7; background-color: var(--teal); }
.ly-footer__flag--sky { flex: 1.1; background-color: var(--sky); }
.ly-footer__flag--coral { flex: 2.4; background-color: var(--coral); }

.ly-footer__grid {
  display: grid;
  grid-template-columns:
    minmax(0, 1.4fr)
    minmax(0, 0.7fr)
    minmax(0, 0.7fr)
    minmax(0, 1.1fr);
  gap: 44px 36px;
  padding-block: 64px 48px;
}

.ly-footer__brand { max-width: 380px; }

.ly-brand--footer .ly-brand__mark {
  background-color: var(--coral);
  color: var(--ink);
}

.ly-brand--footer .ly-brand__cn { font-size: 20px; }

.ly-footer__summary {
  margin-top: 20px;
  font-size: 14.5px;
  line-height: 1.8;
  color: rgba(245, 239, 228, 0.66);
}

.ly-footer__note {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: rgba(99, 197, 234, 0.85);
}

.ly-footer__coltitle {
  position: relative;
  margin-bottom: 18px;
  padding-left: 12px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2em;
  line-height: 1.4;
  color: var(--cream);
}

.ly-footer__coltitle::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 15px;
  background-color: var(--coral);
  transform: translateY(-50%) skewY(-14deg);
}

.ly-footer__list { display: grid; gap: 11px; }

.ly-footer__link {
  position: relative;
  display: inline-block;
  font-size: 14px;
  color: rgba(245, 239, 228, 0.68);
  transition: color 0.18s var(--ease), padding-left 0.2s var(--ease);
}

.ly-footer__link::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  width: 6px;
  height: 2px;
  background-color: var(--coral);
  transform: translateY(-50%) skewX(-24deg);
  opacity: 0;
  transition: opacity 0.18s var(--ease);
}

.ly-footer__link:hover,
.ly-footer__link:focus-visible {
  color: var(--cream);
  padding-left: 4px;
}

.ly-footer__link:hover::before { opacity: 1; }

.ly-footer__key {
  display: block;
  margin-bottom: 3px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(99, 197, 234, 0.7);
}

.ly-footer__val {
  display: block;
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(245, 239, 228, 0.78);
  overflow-wrap: anywhere;
}

.ly-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
  padding-block: 20px;
  border-top: 1px solid rgba(245, 239, 228, 0.12);
  font-size: 12.5px;
  color: rgba(245, 239, 228, 0.52);
}

.ly-footer__copy {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.ly-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.ly-footer__legalLink {
  position: relative;
  padding-bottom: 3px;
  transition: color 0.18s var(--ease);
}

.ly-footer__legalLink::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s var(--ease);
}

.ly-footer__legalLink:hover { color: var(--cream); }
.ly-footer__legalLink:hover::after { transform: scaleX(1); }

.ly-footer__icp {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: rgba(245, 239, 228, 0.42);
}

.ly-totop {
  display: inline-flex;
  align-items: center;
  padding: 7px 13px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--cream);
  border: 1px solid rgba(245, 239, 228, 0.26);
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease),
    border-color 0.18s var(--ease);
}

.ly-totop:hover,
.ly-totop:focus-visible {
  background-color: var(--coral);
  border-color: var(--coral);
  color: var(--ink);
}

.ly-footer__giant {
  padding-inline: var(--gutter);
  margin-top: -6px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(52px, 14vw, 200px);
  line-height: 0.78;
  letter-spacing: -0.02em;
  text-align: right;
  white-space: nowrap;
  color: rgba(245, 239, 228, 0.07);
  user-select: none;
  pointer-events: none;
}

@media (max-width: 1040px) {
  .ly-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 28px;
    padding-block: 48px 36px;
  }
  .ly-footer__brand {
    grid-column: 1 / -1;
    max-width: none;
  }
}

@media (max-width: 620px) {
  .ly-footer__grid { grid-template-columns: 1fr; }
  .ly-footer__brand { grid-column: auto; }
  .ly-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .ly-footer__icp { margin-left: 0; }
  .ly-footer__giant { text-align: left; }
}

/* ============================================================
   通用组件
   ============================================================ */

/* 按钮 */
.ly-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.03em;
  border: 1px solid transparent;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease),
    border-color 0.18s var(--ease), transform 0.18s var(--ease);
}

.ly-btn--primary {
  background-color: var(--coral);
  color: var(--ink);
  clip-path: var(--cut-btn);
}

.ly-btn--primary:hover { background-color: var(--amber); transform: translateX(2px); }
.ly-btn--primary:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--ink); }

.ly-btn--ghost {
  border-color: rgba(11, 42, 74, 0.28);
  color: var(--deep);
}

.ly-btn--ghost:hover {
  border-color: var(--coral);
  color: var(--coral);
}

.ly-btn--light {
  background-color: var(--cream);
  color: var(--deep);
  clip-path: var(--cut-btn);
}

.ly-btn--light:hover { background-color: var(--sky); color: var(--ink); }
.ly-btn--light:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--deep); }

/* 眉标 */
.ly-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--coral);
}

.ly-eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background-color: currentColor;
  transform: skewX(-24deg);
}

/* 面包屑 */
.ly-crumb { font-size: 12.5px; color: rgba(16, 24, 32, 0.6); }

.ly-crumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.ly-crumb li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ly-crumb li + li::before {
  content: "/";
  color: rgba(16, 24, 32, 0.28);
}

.ly-crumb a {
  color: var(--deep);
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}

.ly-crumb a:hover { border-bottom-color: var(--coral); color: var(--coral); }

.ly-crumb [aria-current="page"] {
  color: rgba(16, 24, 32, 0.82);
  font-weight: 600;
}

/* 正文长文 */
.ly-prose {
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.9;
  color: var(--char);
}

.ly-prose > * + * { margin-top: 1.05em; }

.ly-prose h2 {
  margin-top: 1.9em;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.12;
}

.ly-prose h3 {
  margin-top: 1.6em;
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.4;
}

.ly-prose ul,
.ly-prose ol {
  padding-left: 1.25em;
  list-style: disc;
}

.ly-prose ol { list-style: decimal; }
.ly-prose li + li { margin-top: 0.45em; }

.ly-prose a {
  color: var(--deep);
  border-bottom: 2px solid var(--coral);
  transition: color 0.18s var(--ease);
}

.ly-prose a:hover { color: var(--coral); }

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

.ly-prose blockquote {
  border-left: 3px solid var(--coral);
  padding: 6px 0 6px 18px;
  color: var(--deep);
}

/* 卡片 */
.ly-card {
  position: relative;
  padding: 24px;
  background-color: var(--cream);
  border: 1px solid var(--line);
}

.ly-card--cut { clip-path: var(--cut-card); }

.ly-card--dark {
  background-color: var(--deep);
  border-color: rgba(245, 239, 228, 0.14);
  color: rgba(245, 239, 228, 0.78);
}

.ly-card--dark .ly-card__title { color: var(--cream); }

.ly-card__title {
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.ly-card__meta {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--coral);
}

/* 标签 */
.ly-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.5;
  background-color: rgba(11, 42, 74, 0.08);
  color: var(--deep);
}

.ly-tag--red { background-color: rgba(214, 69, 69, 0.14); color: #9E2C2C; }
.ly-tag--yellow { background-color: rgba(242, 193, 78, 0.28); color: #74530A; }
.ly-tag--green { background-color: rgba(46, 139, 122, 0.16); color: #1E6659; }
.ly-tag--sky { background-color: rgba(99, 197, 234, 0.22); color: #14566F; }
.ly-tag--coral { background-color: rgba(255, 107, 74, 0.18); color: #A93A1E; }

/* 图片容器（页面阶段放置 img 或占位） */
.ly-media {
  position: relative;
  overflow: hidden;
  background-image: linear-gradient(135deg, var(--deep) 0%, var(--ink) 58%, #12395F 100%);
  clip-path: var(--cut-card);
}

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

.ly-media__frame { aspect-ratio: 16 / 10; }
.ly-media__frame--tall { aspect-ratio: 4 / 5; }
.ly-media__frame--wide { aspect-ratio: 21 / 9; }

.ly-media__ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 12px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(245, 239, 228, 0.5);
  background-image: repeating-linear-gradient(
    135deg,
    rgba(99, 197, 234, 0.1) 0 2px,
    transparent 2px 14px
  );
}

.ly-media__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  max-width: 100%;
  padding: 10px 16px;
  background-color: rgba(6, 26, 46, 0.74);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  line-height: 1.5;
}

/* 数据排版 */
.ly-mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.ly-data {
  font-family: var(--font-mono);
  font-size: 1.05em;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--coral);
}

/* 经幡分隔条 */
.ly-divider {
  height: 4px;
  background-image: linear-gradient(
    90deg,
    var(--flag-red) 0 20%,
    var(--flag-yellow) 20% 40%,
    var(--teal) 40% 60%,
    var(--sky) 60% 80%,
    var(--coral) 80% 100%
  );
}

/* ---------- 显现协议 ---------- */

html.ly-motion [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

html.ly-motion [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 响应式：通用组件 ---------- */

@media (max-width: 900px) {
  .ly-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
  .ly-grid--cols-2,
  .ly-grid--cols-3 { grid-template-columns: 1fr; }
  .ly-card { padding: 20px; }
  .ly-prose { font-size: 16.5px; }
}

@media (max-width: 600px) {
  .ly-grid { grid-template-columns: 1fr; }
  .ly-section__head { margin-bottom: 22px; }
  .ly-btn { padding: 13px 20px; font-size: 14px; }
  .ly-media__frame { aspect-ratio: 4 / 3; }
  .ly-media__frame--wide { aspect-ratio: 16 / 9; }
}

/* ---------- 降低动效 ---------- */

@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.ly-motion [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .ly-cta:hover,
  .ly-btn--primary:hover { transform: none; }
}
