/* fleet.css — 首页 02 作品展厅
   结构：展厅头 → 精选展品（大幅）→ 分类展带 → 进入完整档案
   小屏用 padding-top 撑比例，不用 aspect-ratio，旧 WebView 也能显示。 */

.fleet {
  position: relative;
  padding: clamp(54px, 8.5vh, 104px) var(--gutter) clamp(48px, 7vh, 88px);
  border-top: var(--hair) solid var(--line);
}

.fleet::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 420px;
  background: radial-gradient(120% 100% at 50% 0%, rgba(127, 178, 217, 0.08), transparent 62%);
  pointer-events: none;
}

.show {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(30px, 4.4vh, 54px);
}

/* ---------------- 展厅头 ---------------- */

.show__head {
  display: flex;
  align-items: center;
  align-items: flex-end;
  gap: clamp(16px, 2.2vw, 30px);
  flex-wrap: wrap;
}

.show__no {
  font-family: var(--font-num);
  font-size: clamp(44px, 4.6vw, 78px);
  font-weight: 300;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-hi);
  flex: 0 0 auto;
}

.show__title-block {
  min-width: 0;
  flex: 1 1 320px;
}

.show__title {
  font-size: clamp(24px, 2.6vw, 38px);
  font-weight: 300;
  letter-spacing: 0.14em;
  color: var(--ink-0);
  line-height: 1.1;
}

.show__sub {
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.8;
  letter-spacing: 0.05em;
  color: var(--ink-2);
}

.show__sub a {
  color: var(--accent);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 38%, transparent);
}

.show__stats {
  display: flex;
  align-items: flex-end;
  gap: clamp(18px, 2.4vw, 34px);
  padding-bottom: 6px;
}

.show__stat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1;
}

.show__stat .show__stat-num,
.show__stat b.show__stat-num {
  display: grid;
  place-items: center;
  width: clamp(58px, 5.2vw, 74px);
  height: clamp(58px, 5.2vw, 74px);
  border: 1px solid rgba(232, 88, 42, 0.55);
  border-radius: 50%;
  font-family: var(--font-num);
  font-size: clamp(22px, 2.3vw, 30px);
  font-weight: 300;
  line-height: 1;
  color: var(--orange);
  letter-spacing: 0.01em;
  box-shadow: 0 0 32px -16px rgba(232, 88, 42, 0.8);
}

.show__stat i {
  margin-top: 6px;
  font-style: normal;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: var(--ink-3);
}

.show__stat--sub b {
  font-size: clamp(18px, 1.9vw, 26px);
  color: var(--ink-2);
}

/* ---------------- 精选展品 ---------------- */

.featured-work {
  position: relative;
  display: block;
  overflow: hidden;
  color: var(--ink-0);
  isolation: isolate;
}

.featured-work__frame {
  display: block;
  position: relative;
  width: 100%;
  padding-top: 42%;
  background: linear-gradient(180deg, rgba(16, 26, 40, 0.9), rgba(8, 12, 20, 0.9));
}

.featured-work__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 1.1s var(--ease-out), filter 1.1s var(--ease-out);
  filter: saturate(0.94) brightness(0.92);
}

.featured-work::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(5, 9, 15, 0.92) 0%,
    rgba(5, 9, 15, 0.62) 34%,
    rgba(5, 9, 15, 0.18) 62%,
    rgba(5, 9, 15, 0.06) 100%
  );
  pointer-events: none;
}

.featured-work:hover .featured-work__frame img {
  transform: scale(1.04);
  filter: saturate(1) brightness(1);
}

.featured-work__no {
  position: absolute;
  left: clamp(16px, 3vw, 42px);
  top: clamp(10px, 2vh, 26px);
  font-family: var(--font-num);
  font-size: clamp(52px, 8vw, 130px);
  font-weight: 200;
  line-height: 1;
  letter-spacing: 0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(233, 239, 247, 0.26);
  z-index: 2;
  pointer-events: none;
}

.featured-work__cap {
  position: absolute;
  left: clamp(16px, 3vw, 42px);
  right: clamp(16px, 3vw, 42px);
  bottom: clamp(18px, 3.4vh, 40px);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: min(760px, 72%);
}

.featured-work__k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.26em;
  color: var(--brass);
}

.featured-work__title {
  font-size: clamp(22px, 3.2vw, 46px);
  font-weight: 300;
  line-height: 1.22;
  letter-spacing: 0.02em;
  text-wrap: balance;
}

.featured-work__desc {
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--ink-1);
  max-width: 56ch;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-work__go {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--ink-0);
}

.featured-work__go i {
  font-style: normal;
  display: inline-block;
  transition: transform 0.4s var(--ease-out);
}

.featured-work:hover .featured-work__go i {
  transform: translateX(5px);
}

/* ---------------- 分类展带 ---------------- */

.show__rails {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3.4vh, 40px);
}

.rail__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 10px;
  border-bottom: var(--hair) solid var(--line);
  margin-bottom: 14px;
}

.rail__title {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--ink-0);
}

.rail__count {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--ink-3);
}

.rail__all {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--ink-2);
  transition: color 0.3s var(--ease-out);
}

.rail__all:hover {
  color: var(--accent);
}

.rail__track {
  --rail-gap: clamp(10px, 1.3vw, 18px);
  display: grid;
  grid-auto-flow: column;
  /* 每条展带固定 6 格宽，件数少的分类也不会被放大 */
  grid-auto-columns: calc((100% - 5 * var(--rail-gap)) / 6);
  gap: var(--rail-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 4px;
}

.rail__track::-webkit-scrollbar {
  height: 2px;
}

.rail__track::-webkit-scrollbar-thumb {
  background: var(--line-mid);
}

.tile {
  display: block;
  min-width: 0;
  scroll-snap-align: start;
  color: inherit;
}

.tile__frame {
  position: relative;
  display: block;
  width: 100%;
  padding-top: 68%;
  overflow: hidden;
  background-color: rgba(19, 30, 45, 0.75);
  background-position: 50% 45%;
  background-size: cover;
  background-repeat: no-repeat;
  transition: transform 0.9s var(--ease-out);
}

.tile:hover .tile__frame {
  transform: scale(1.015);
}

.tile__no {
  display: block;
  margin-top: 9px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--ink-3);
}

.tile__name {
  margin-top: 4px;
  font-size: 12.5px;
  line-height: 1.5;
  letter-spacing: 0.03em;
  color: var(--ink-1);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------------- 进入完整档案 ---------------- */

.show__more {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: clamp(12px, 2vw, 26px);
  padding: clamp(18px, 2.6vh, 28px) 0 4px;
  border-top: var(--hair) solid var(--line);
  color: var(--ink-1);
  transition: color 0.35s var(--ease-out);
}

.show__more:hover {
  color: var(--ink-0);
}

.show__more-k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.26em;
  color: var(--brass);
}

.show__more-title {
  font-size: 17px;
  letter-spacing: 0.16em;
}

.show__more-n {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--ink-3);
}

.show__more-n i {
  font-style: normal;
  display: inline-block;
  transition: transform 0.4s var(--ease-out);
}

.show__more:hover .show__more-n i {
  transform: translateX(5px);
}

.show__empty {
  padding: 60px 0;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
}

/* ---------------- 响应式 ---------------- */

@media (max-width: 1180px) {
  .featured-work__frame {
    padding-top: 52%;
  }
}

@media (max-width: 900px) {
  .fleet {
    padding-top: 46px;
  }
  .show__head {
    gap: 12px;
    align-items: flex-start;
  }
  .rail__track {
    --rail-gap: 10px;
  }
  .show__no {
    font-size: 40px;
  }
  .show__title {
    font-size: 24px;
  }
  .show__stats {
    gap: 14px;
  }
  .show__stat b {
    font-size: 24px;
  }
  .featured-work__frame {
    padding-top: 78%;
  }
  .featured-work__cap {
    max-width: none;
  }
  .featured-work__title {
    font-size: 19px;
  }
  .featured-work__desc {
    display: none;
  }
  .featured-work__no {
    font-size: 56px;
  }
  .rail__track {
    display: flex;
    gap: 10px;
    overflow-x: auto;
  }
  .rail__track .tile {
    flex: 0 0 66%;
  }
  .tile__frame {
    padding-top: 72%;
  }
  .show__more {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .show__more-n {
    white-space: normal;
  }
}

/* 展厅头右侧：作品数 + 已建造舰船数 */
.show__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
}

.show__meta em {
  font-style: normal;
  font-family: var(--font-cn);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--orange);
  text-transform: none;
}
