/* ==========================================================================
   SIDE PANEL — 左：舰体展示（当前为抽象占位，未来接真实飞船作品图）
   目标：博物馆展柜感 —— 大图、柔光、编号标识，而非商品卡片。
   ========================================================================== */

.ship {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-self: center;
}

.ship__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: clamp(300px, 52vh, 510px);
  overflow: hidden;
  border: var(--hair) solid var(--line);
  background:
    radial-gradient(
      ellipse at 50% 62%,
      rgba(38, 66, 100, 0.5),
      transparent 66%
    ),
    linear-gradient(170deg, rgba(12, 19, 30, 0.9), rgba(5, 8, 13, 0.98));
}

/* 展柜内的柔光与地平线 */
.ship__frame::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 38%;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(127, 178, 217, 0.07) 62%,
    rgba(127, 178, 217, 0.02)
  );
  pointer-events: none;
}

.ship__art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  padding: 0;
  border: 0;
  background: none;
  text-align: inherit;
  cursor: pointer;
  transition: opacity 0.55s var(--ease-out), transform 1.2s var(--ease-out);
}

.ship__art svg {
  width: 100%;
  height: 100%;
  display: block;
}

.ship__frame:hover .ship__art {
  transform: scale(1.02);
}

/* 展柜上的编号水印 */
.ship__stamp {
  color: rgba(233, 239, 247, 0.78);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.75);
  position: absolute;
  top: 10px;
  left: 11px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.24em;
  color: var(--ink-3);
  z-index: 2;
}

.ship__placeholder {
  position: absolute;
  bottom: 10px;
  right: 11px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  color: var(--ink-3);
  opacity: 0.75;
}

.ship__caption {
  margin-top: 13px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ship__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 2px;
}

.ship__name {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--ink-0);
  font-weight: 300;
}

.ship__sub {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.ship__code {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--ink-3);
  white-space: nowrap;
}

.ship__switch {
  display: flex;
  align-items: center;
  gap: 7px;
}

.ship__switch button {
  width: 22px;
  height: 2px;
  padding: 0;
  background: var(--ink-3);
  opacity: 0.5;
  transition: opacity 0.3s var(--ease-out), background-color 0.3s var(--ease-out),
    box-shadow 0.3s var(--ease-out);
}

.ship__switch button:hover {
  opacity: 0.85;
}

.ship__switch button.is-active {
  background: var(--accent);
  opacity: 1;
  box-shadow: 0 0 10px rgba(127, 178, 217, 0.7);
}

.ship__switch .mono {
  margin-left: 6px;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--ink-3);
}

.ship__note {
  margin-top: 14px;
  padding-top: 11px;
  border-top: var(--hair) solid var(--line);
  font-size: 11.5px;
  line-height: 1.8;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}


/* 真实作品封面：竖幅画框里居中裁切 */
.ship__art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.ship__placeholder--real {
  right: 8px;
  bottom: 7px;
  left: auto;
  padding: 3px 8px 3px 22px;
  background: linear-gradient(90deg, transparent, rgba(6, 10, 16, 0.72) 34%);
  color: color-mix(in srgb, var(--accent) 78%, white);
  font-size: 8.5px;
  letter-spacing: 0.22em;
}


/* 真实作品模式：竖幅画框 + 模糊同图铺底，图片完整显示 */
.ship--photo .ship__frame {
  border: 0;
  background: #070b12;
  box-shadow:
    inset 0 0 0 1px rgba(146, 178, 219, 0.1),
    inset 0 1px 0 rgba(233, 239, 247, 0.06),
    0 26px 70px -34px rgba(0, 0, 0, 0.95);
}
/* 四角细刻度，替代硬边框 */
.ship--photo .ship__frame::marker {
  content: none;
}
.ship--photo .ship__art {
  position: relative;
  overflow: hidden;
}
.ship__bg { display: none; }
.ship--photo .ship__art img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 46%;
}
.ship--photo .ship__frame::after {
  opacity: 0.35;
}
.ship--photo .ship__frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 7, 12, 0.55), transparent 28%, transparent 72%, rgba(4, 7, 12, 0.7));
  pointer-events: none;
  z-index: 1;
}


/* 四角刻度（真实作品模式） */
.ship__corners {
  position: absolute;
  inset: 12px;
  pointer-events: none;
  z-index: 2;
}
.ship__corners::before,
.ship__corners::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(146, 178, 219, 0.3);
}
.ship__corners::before {
  right: 0;
  top: 0;
  border-left: 0;
  border-bottom: 0;
}
.ship__corners::after {
  left: 0;
  bottom: 0;
  border-right: 0;
  border-top: 0;
}

/* 左右翻页：默认隐形，鼠标移到展柜上才出现 */
.ship__nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 30px;
  height: 44px;
  margin-top: -22px;
  padding: 0 0 2px;
  border: 1px solid rgba(146, 178, 219, 0.22);
  background: rgba(8, 12, 19, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--ink-1);
  font-family: var(--font-num);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s var(--ease-out), border-color 0.28s var(--ease-out),
    color 0.28s var(--ease-out), background 0.28s var(--ease-out);
}
.ship__nav--prev {
  left: 6px;
}
.ship__nav--next {
  right: 6px;
}
.ship:hover .ship__nav,
.ship:focus-within .ship__nav {
  opacity: 1;
  pointer-events: auto;
}
.ship__nav:hover {
  border-color: rgba(138, 189, 228, 0.5);
  background: rgba(16, 26, 40, 0.9);
  color: var(--ink-0);
}
@media (hover: none) {
  .ship__nav {
    opacity: 0.45;
    pointer-events: auto;
  }
}
