/* ===== 乐鱼看台 · 共享样式 /assets/site.css ===== */

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

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

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

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

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

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

a { color: inherit; }

p { text-wrap: pretty; }

/* 变量 */
:root {
  --deep: #061A2B;
  --night: #0C2C46;
  --line: #1F4257;
  --mist: #C9D6E0;
  --paper: #EAF2F7;
  --cyan: #35F0D0;
  --coral: #FF6B4A;
  --violet: #8A6BFF;
  --wine: #6E2338;
  --ink: #0A1B26;

  --text-strong: #EDF5FA;
  --text-mute: #8FA6B6;
  --text-soft: #B9CAD6;

  --sans: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;

  --gutter: clamp(18px, 4vw, 56px);
  --maxw: 1280px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* 基础 */
body {
  background-color: var(--deep);
  color: var(--mist);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (min-width: 768px) {
  body { font-size: 17px; }
}

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

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

/* 跳转链接 */
.ly-skip {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  display: inline-block;
  padding: 10px 18px;
  background: var(--cyan);
  color: var(--ink);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-decoration: none;
  transform: translateY(-130%);
  transition: transform 0.2s var(--ease);
}

.ly-skip:focus-visible {
  transform: translateY(0);
}

/* 布局 */
.ly-container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.ly-section {
  padding-block: clamp(44px, 7vw, 96px);
}

.ly-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 2.4vw, 32px);
}

@media (min-width: 680px) {
  .ly-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 820px) {
  .ly-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ly-grid--asym { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}

/* 排版 */
.ly-display {
  font-weight: 200;
  font-size: clamp(56px, 9vw, 140px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--text-strong);
}

.ly-h {
  font-weight: 800;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text-strong);
}

.ly-mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  font-weight: 400;
}

.ly-label {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--text-mute);
}

/* 按钮 */
.ly-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.ly-btn--solid {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #04141F;
}

.ly-btn--solid:hover,
.ly-btn--solid:focus-visible {
  background: #7CFBE6;
  border-color: #7CFBE6;
  transform: translateY(-1px);
}

.ly-btn--line {
  background: transparent;
  border-color: var(--line);
  color: var(--mist);
}

.ly-btn--line:hover,
.ly-btn--line:focus-visible {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(53, 240, 208, 0.08);
}

/* 标签牌 */
.ly-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.4;
  color: var(--mist);
  white-space: nowrap;
}

.ly-tag--cyan {
  color: var(--cyan);
  border-color: rgba(53, 240, 208, 0.45);
  background: rgba(53, 240, 208, 0.08);
}

.ly-tag--coral {
  color: var(--coral);
  border-color: rgba(255, 107, 74, 0.45);
  background: rgba(255, 107, 74, 0.08);
}

.ly-tag--violet {
  color: #C6B7FF;
  border-color: rgba(138, 107, 255, 0.5);
  background: rgba(138, 107, 255, 0.14);
}

.ly-tag--wine {
  color: #F3D6DE;
  border-color: rgba(110, 35, 56, 0.9);
  background: var(--wine);
}

/* 展览标签牌 */
.ly-plate {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  gap: 4px 14px;
  padding: 14px 0 16px;
  border-top: 1px solid var(--line);
}

.ly-plate__no {
  grid-row: span 2;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--coral);
}

.ly-plate__kind {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--text-mute);
}

.ly-plate__sum {
  grid-column: 2;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-soft);
}

/* 面包屑 */
.ly-crumbs {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #7E96A8;
}

.ly-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 0;
}

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

.ly-crumbs li + li::before {
  content: "/";
  color: var(--line);
}

.ly-crumbs a {
  text-decoration: none;
  color: var(--text-mute);
  transition: color 0.2s var(--ease);
}

.ly-crumbs a:hover,
.ly-crumbs a:focus-visible {
  color: var(--cyan);
}

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

/* 图片容器基础规则 */
.ly-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 2px;
  background-color: var(--night);
  background-image:
    linear-gradient(135deg, rgba(31, 66, 87, 0.55), transparent 65%),
    repeating-linear-gradient(90deg, rgba(31, 66, 87, 0.4) 0 1px, transparent 1px 44px);
}

.ly-media--wide { aspect-ratio: 16 / 9; }
.ly-media--tall { aspect-ratio: 3 / 4; }

.ly-media__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
}

.ly-media::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 34%;
  height: 1px;
  background: var(--cyan);
  opacity: 0.55;
  transform: rotate(-9deg);
  transform-origin: 100% 100%;
}

/* 分隔线 */
.ly-rule {
  width: 100%;
  height: 1px;
  border: 0;
  background: var(--line);
}

.ly-rule--accent {
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--violet) 55%, transparent);
}

/* 滚动进度 */
.ly-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 60;
  pointer-events: none;
  background: rgba(31, 66, 87, 0.5);
}

.ly-progress__bar {
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan), var(--coral));
  transition: transform 0.12s linear;
}

/* ===== 页头 ===== */
.ly-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--deep);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.24s var(--ease), box-shadow 0.24s var(--ease);
}

.ly-header[data-stuck="true"] {
  background: rgba(6, 26, 43, 0.96);
  box-shadow: 0 1px 0 rgba(31, 66, 87, 0.9), 0 12px 28px rgba(3, 12, 20, 0.45);
}

.ly-header__meta {
  display: none;
  border-bottom: 1px solid var(--line);
  background-image: linear-gradient(90deg, rgba(12, 44, 70, 0.95), rgba(6, 26, 43, 0.35));
}

@media (min-width: 720px) {
  .ly-header__meta { display: block; }
}

.ly-header__meta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 34px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
}

.ly-header__hint {
  color: #7E96A8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 959px) {
  .ly-header__hint { display: none; }
}

.ly-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-inline-start: auto;
  color: var(--mist);
  white-space: nowrap;
}

.ly-status__dot {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(53, 240, 208, 0.16);
}

.ly-header__inner {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 28px);
  min-height: 70px;
}

/* 品牌 */
.ly-brand {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: none;
  padding-block: 8px;
  text-decoration: none;
}

.ly-brand__mark {
  font-weight: 800;
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: 0.04em;
  color: #F2F7FA;
  transition: color 0.2s var(--ease);
}

.ly-brand:hover .ly-brand__mark,
.ly-brand:focus-visible .ly-brand__mark {
  color: var(--cyan);
}

.ly-brand__sub {
  font-family: var(--mono);
  font-size: 9.5px;
  line-height: 1;
  letter-spacing: 0.18em;
  color: var(--coral);
}

/* 导航 */
.ly-nav {
  margin-inline-start: auto;
}

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

.ly-nav__link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 12px 12px;
  font-weight: 800;
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--mist);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.ly-nav__link::before {
  content: attr(data-index);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--coral);
  opacity: 0.9;
}

.ly-nav__link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 6px;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.24s var(--ease);
}

.ly-nav__link:hover,
.ly-nav__link:focus-visible {
  color: var(--cyan);
  background: rgba(53, 240, 208, 0.07);
}

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

.ly-nav__link[aria-current="page"] {
  color: var(--cyan);
  background: rgba(53, 240, 208, 0.06);
}

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

.ly-nav__link[aria-current="page"]::after {
  height: 2px;
  transform: scaleX(1);
}

/* 页头 CTA */
.ly-header__cta {
  flex: none;
  font-size: 13px;
  padding: 9px 14px;
}

/* 移动按钮 */
.ly-nav-toggle {
  display: none;
  flex: none;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--mist);
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.ly-nav-toggle:hover,
.ly-nav-toggle:focus-visible {
  color: var(--cyan);
  border-color: var(--cyan);
}

.ly-nav-toggle__bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 16px;
}

.ly-nav-toggle__bar {
  display: block;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transform-origin: 50% 50%;
  transition: transform 0.24s var(--ease), opacity 0.16s linear;
}

.ly-nav-toggle__text {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.ly-nav-toggle[aria-expanded="true"] .ly-nav-toggle__bar:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

.ly-nav-toggle[aria-expanded="true"] .ly-nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.ly-nav-toggle[aria-expanded="true"] .ly-nav-toggle__bar:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

/* 平板收紧 */
@media (max-width: 1079px) and (min-width: 860px) {
  .ly-nav__link { padding: 12px 9px; font-size: 14px; gap: 5px; }
  .ly-nav__link::after { left: 9px; right: 9px; }
  .ly-brand__mark { font-size: 18px; }
  .ly-header__cta { font-size: 12px; padding: 8px 11px; }
}

/* 移动导航 */
@media (max-width: 859px) {
  .ly-header__inner {
    min-height: 62px;
    gap: 10px;
  }

  .ly-brand__mark { font-size: 18px; }

  .ly-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-inline-start: 0;
    padding: 10px var(--gutter) 22px;
    background: var(--night);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 22px 40px rgba(3, 12, 20, 0.55);
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease),
      visibility 0.22s linear;
  }

  .ly-nav[data-open="true"] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

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

  .ly-nav__item { display: block; }

  .ly-nav__link {
    display: flex;
    width: 100%;
    padding: 15px 4px;
    font-size: 16px;
    border-bottom: 1px solid var(--line);
  }

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

  .ly-nav__link[aria-current="page"] {
    padding-inline-start: 12px;
    border-left: 2px solid var(--cyan);
    background: rgba(53, 240, 208, 0.08);
  }

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

  .ly-header__cta {
    margin-inline-start: auto;
    font-size: 12px;
    letter-spacing: 0;
    padding: 8px 12px;
  }
}

@media (max-width: 419px) {
  .ly-header__cta { display: none; }
  .ly-nav-toggle { margin-inline-start: auto; }
  .ly-nav-toggle__text { display: none; }
  .ly-brand__sub { font-size: 8.5px; letter-spacing: 0.14em; }
}

/* ===== 页脚 ===== */
.ly-footer {
  position: relative;
  background: var(--night);
  border-top: 1px solid var(--line);
  color: var(--mist);
}

.ly-footer__edge {
  height: 6px;
  background-image: linear-gradient(
    90deg,
    var(--cyan) 0 16%,
    var(--coral) 16% 32%,
    var(--violet) 32% 45%,
    var(--line) 45% 100%
  );
  clip-path: polygon(0 0, 100% 0, 100% 55%, 0 100%);
}

.ly-footer__inner {
  padding-block: clamp(36px, 6vw, 72px) clamp(22px, 3vw, 34px);
}

.ly-footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 56px);
}

@media (min-width: 900px) {
  .ly-footer__top {
    grid-template-columns: minmax(240px, 5fr) minmax(0, 7fr);
    align-items: start;
  }
}

.ly-footer__brand { min-width: 0; }

.ly-footer__wordmark {
  font-weight: 200;
  font-size: clamp(38px, 7vw, 80px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.ly-footer__sub {
  margin-top: 14px;
  color: var(--coral);
  letter-spacing: 0.18em;
  font-size: 11px;
}

.ly-footer__fact {
  margin-top: 16px;
  max-width: 36ch;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-mute);
}

.ly-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: clamp(20px, 3vw, 36px);
}

.ly-footer__col { min-width: 0; }

.ly-footer__col-title {
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--cyan);
}

.ly-footer__list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.ly-footer__link {
  display: inline-block;
  font-weight: 800;
  font-size: 15px;
  line-height: 1.5;
  text-decoration: none;
  color: var(--mist);
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}

.ly-footer__link:hover,
.ly-footer__link:focus-visible {
  color: var(--cyan);
}

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

.ly-footer__contact {
  display: grid;
  gap: 18px;
  margin-top: clamp(28px, 4vw, 48px);
  padding-top: clamp(20px, 3vw, 28px);
  border-top: 1px solid var(--line);
}

@media (min-width: 760px) {
  .ly-footer__contact {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }
}

.ly-footer__contact-title {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--text-mute);
}

.ly-footer__facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px 32px;
  margin-top: 14px;
}

@media (min-width: 660px) {
  .ly-footer__facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.ly-footer__fact-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-soft);
}

.ly-footer__value {
  color: #DCE7EE;
  overflow-wrap: anywhere;
}

.ly-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  align-self: start;
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--mist);
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease),
    background-color 0.2s var(--ease);
}

.ly-copy:hover,
.ly-copy:focus-visible {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(53, 240, 208, 0.08);
}

.ly-copy[data-copied="true"] {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(53, 240, 208, 0.12);
}

.ly-copy[data-copied="false"] {
  color: var(--coral);
  border-color: var(--coral);
  background: rgba(255, 107, 74, 0.1);
}

.ly-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: clamp(22px, 3vw, 34px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.7;
  color: #7E96A8;
}

.ly-footer__legal-note { max-width: 64ch; }

.ly-footer__legal .ly-mono {
  font-size: 11px;
  letter-spacing: 0.1em;
}

/* 减弱动效 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .ly-progress__bar { transition: none; }
}
