/* 小屏延用可独立换行的导航和入口。 */
.entry-stage {
  max-width: 1500px;
  margin-inline: auto;
  padding-inline: 28px;
}

@media (max-width: 650px) {
  .entry-stage {
    padding: 18px 15px 0;
  }

  .page-wrap {
    padding-top: 0;
  }
}

@media (min-width: 1101px) {
  /* 参考截图截取了原图 x=104 至 x=1620。所有画面切片共用这把尺子。 */
  body {
    container-type: inline-size;
    --art-unit: calc(100cqw / 1516);
    --art-width: calc(1672 * var(--art-unit));
    --art-left: calc(-104 * var(--art-unit));
    --paper-color: #f8f1e3;
  }

  .site-header {
    background: var(--paper-color);
    border: 0;
    box-shadow: none;
  }

  .nav-wrap {
    max-width: none;
    height: calc(74 * var(--art-unit));
    min-height: 0;
    padding: 0 calc(16 * var(--art-unit)) 0 0;
    gap: calc(16 * var(--art-unit));
    flex-wrap: nowrap;
  }

  /* 原图中的站名和朱砂印记，整个区域链接到现站首页。 */
  .brand {
    flex: 0 0 calc(360 * var(--art-unit));
    align-self: stretch;
    background: url('concept.webp') var(--art-left) 0 / var(--art-width) auto no-repeat;
  }

  .brand > span {
    display: none;
  }

  .nav-wrap nav {
    flex: 1;
    margin: 0;
    gap: calc(20 * var(--art-unit));
    justify-content: space-between;
    font-size: clamp(13px, calc(17 * var(--art-unit)), 24px);
  }

  .nav-wrap nav a {
    padding: 6px 0;
  }

  .nav-wrap nav .current {
    flex: 0 0 calc(95 * var(--art-unit));
    height: calc(44 * var(--art-unit));
    padding: 0;
    font-size: 0;
    background: url('concept.webp') calc(-491 * var(--art-unit)) calc(-10 * var(--art-unit)) / var(--art-width) auto no-repeat;
  }

  .nav-wrap nav .current::before {
    content: none;
  }

  .top-search {
    width: calc(200 * var(--art-unit));
    height: calc(34 * var(--art-unit));
    margin-inline-start: calc(8 * var(--art-unit));
    border: 1px solid #81968a;
    background: transparent;
  }

  .top-search button {
    order: -1;
    padding: 0 6px 0 0;
  }

  .top-search input, .group {
    font-size: clamp(11px, calc(14 * var(--art-unit)), 18px);
  }

  .group {
    border: 1px solid #c7aa8e;
    border-radius: 24px;
    padding: calc(7 * var(--art-unit)) calc(11 * var(--art-unit));
  }

  .hero {
    aspect-ratio: auto;
    height: calc(456 * var(--art-unit));
  }

  .hero-art {
    max-width: none;
    width: var(--art-width);
    left: var(--art-left);
    top: calc(-74 * var(--art-unit));
  }

  /* 点击区按原图按钮的左边界和尺寸定位，和画面一起缩放。 */
  .hero-clicks a {
    top: calc(326 * var(--art-unit));
    height: calc(64 * var(--art-unit));
  }

  .hero-clicks a:nth-child(1) { left: calc(359 * var(--art-unit)); width: calc(238 * var(--art-unit)); }
  .hero-clicks a:nth-child(2) { left: calc(618 * var(--art-unit)); width: calc(254 * var(--art-unit)); }
  .hero-clicks a:nth-child(3) { left: calc(894 * var(--art-unit)); width: calc(239 * var(--art-unit)); }

  .entry-stage {
    position: relative;
    max-width: none;
    height: calc(141 * var(--art-unit));
    padding: 0;
    overflow: hidden;
    background: var(--paper-color);
  }

  /* 保留画面边缘和金框，用留白覆盖中间的示例入口文字。 */
  .entry-stage::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('concept.webp') var(--art-left) calc(-530 * var(--art-unit)) / var(--art-width) auto no-repeat;
    mask: linear-gradient(#000 0 12%, transparent 12% 62%, #000 62% 100%),
      linear-gradient(90deg, transparent 0 96.3%, #000 96.3% 100%),
      linear-gradient(#000, #000) left bottom / 3.4% 55% no-repeat;
    pointer-events: none;
  }

  .entry-strip {
    background: none;
    box-shadow: none;
    border: 0;
    padding: calc(17 * var(--art-unit)) calc(51 * var(--art-unit)) 0 calc(38 * var(--art-unit));
    margin: 0;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .entry-strip::before, .entry-strip::after { content: none; }

  .entry-strip a {
    justify-content: flex-start;
    gap: calc(13 * var(--art-unit));
    padding: 0 calc(12 * var(--art-unit));
    border-color: #cfb38b;
  }

  .entry-icon {
    width: calc(62 * var(--art-unit));
    height: calc(62 * var(--art-unit));
    box-shadow: none;
    background: url('concept.webp') calc(var(--icon-x) * var(--art-unit)) calc(-548 * var(--art-unit)) / var(--art-width) auto no-repeat;
  }

  .entry-strip a:nth-child(1) .entry-icon { --icon-x: -441; }
  .entry-strip a:nth-child(2) .entry-icon { --icon-x: -1024; }
  .entry-strip a:nth-child(3) .entry-icon { --icon-x: -159; }
  .entry-strip a:nth-child(4) .entry-icon { --icon-x: -733; }
  .entry-strip a:nth-child(5) .entry-icon { --icon-x: -1313; }

  .entry-icon svg { display: none; }
  .entry-strip a:hover .entry-icon { background-color: transparent; filter: saturate(1.15); }

  .entry-strip strong { font-size: clamp(14px, calc(20 * var(--art-unit)), 28px); }
  .entry-strip small { font-size: clamp(10px, calc(13 * var(--art-unit)), 18px); }
}
