/* 以近黑色承接开场，蓝紫光仅落在作品图所处的空间。 */
#home {
  border-color: #202734;
  background:
    radial-gradient(ellipse at 74% 66%, #1e29443b, transparent 46%),
    radial-gradient(ellipse at 89% 31%, #18275054, transparent 51%),
    #060810;
}

/* 留出宽幅主图，让两栏在同一水平中线对齐。 */
#home .hero-inner {
  display: grid;
  grid-template-columns: minmax(0, .76fr) minmax(0, 1.44fr);
  align-items: center;
  gap: clamp(20px, 3.2vw, 58px);
  min-height: 0;
  padding-block: clamp(28px, 3.5vw, 61px) clamp(28px, 3vw, 49px);
}

/* 身份和下载作为一组排版，与右侧作品的翻页操作区分。 */
#home .hero-copy {min-width: 0; align-self: center;}
#home .hero-copy h1 {margin: 0 0 clamp(20px, 1.8vw, 32px); font-size: clamp(68px, 7.4vw, 127px);}
#home .home-title-line {display: block; width: fit-content;}
#home .home-title-line:first-child {color: #f3f5fc;}
#home .hero-copy h1 em span {color: #af9cff;}
#home .hero-actions {margin-top: clamp(24px, 2.45vw, 40px);}
#home .hero-downloads {gap: 9px 18px;}
#home .pdf-link {color: #b6bed2; text-decoration-color: #7a849a;}
#home .pdf-link:hover {color: #f0eaff; text-decoration-color: currentColor;}

/* 作品舞台不设四边框，透明原图和极弱的点阵相接。 */
#home .home-feature {
  position: relative;
  isolation: isolate;
  align-self: center;
  display: block;
  width: 100%;
  min-width: 0;
  height: auto;
  min-height: 0;
  margin: 0;
}
#home .home-feature::before {
  inset: -2% -2% 13%;
  background: radial-gradient(circle, #949cdd48 .65px, transparent .85px);
  background-size: 15px 15px;
  mask-image: radial-gradient(ellipse at 53% 54%, #000 4%, transparent 68%);
}

/* 整幅图和题名共用分类链接，指针倾斜仅发生在作品本身。 */
#home .art-board {
  position: relative;
  display: block;
  place-items: normal;
  inset: auto;
  transform: none;
  will-change: auto;
  text-decoration: none;
  border-radius: 2px;
}
#home .art-board::before {
  inset: auto 13% 13%;
  height: 13%;
  background: radial-gradient(ellipse, #587ad628, transparent 70%);
  pointer-events: none;
}
#home .hero-stack {
  width: 100%;
  height: auto;
  aspect-ratio: 1.6;
  animation: none;
  transform: perspective(1050px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .36s ease-out;
}
#home .hero-art {
  object-fit: contain;
  transform: scale(1.075);
  transform-origin: 50% 63%;
}

/* 题签与翻页控制共享底线，右侧留出可独立操作的按钮。 */
#home .home-feature-copy {
  display: grid;
  width: 100%;
  justify-items: start;
  align-content: center;
  gap: 5px;
  min-height: 83px;
  padding: 13px 172px 0 0;
  border-top: 1px solid #b7c8ec36;
  color: #f1f3fc;
}
#home .home-feature-copy small {color: #acb7d1; font-size: 12px; line-height: 1.2; font-weight: 450; letter-spacing: .12em;}
#home .home-feature-copy strong {font-size: clamp(18px, 1.7vw, 28px); line-height: 1.33; font-weight: 620; overflow-wrap: anywhere;}
#home .home-feature-copy strong::after {content: "↗"; display: inline-block; margin-left: .5em; color: #9faccb; font-size: .73em; vertical-align: .12em;}
#home .art-board:hover .home-feature-copy strong::after {color: #d6cbff;}
#home .showcase-control {position: absolute; inset: auto 0 12px auto; gap: clamp(9px, 1.5vw, 22px);}
#home .slide-index {gap: 7px; color: #939bb2; font-size: 11px;}
#home #slide-current {color: #dadff2;}
#home .index-line {width: 21px; background: #5a6783;}
#home .step-pair {gap: 7px;}
#home .step-pair button {width: 44px; height: 44px; color: #e2e8fa; border-color: #7e8faa75; background: #101725;}
#home .step-pair button:hover {border-color: #a4acdc; background: #222b40;}
#home .step-pair .ic {width: 17px; height: 17px;}

/* 开场结束后，两行标题才从各自的起始位置显现。 */
@media (prefers-reduced-motion: no-preference) {
  html[data-entry] #home .home-title-line {opacity: 0; transform: translateY(.13em);}
  html:not([data-entry]) #home .home-title-line {
    animation: home-title-arrive .66s cubic-bezier(.22, .74, .18, 1) both;
  }
  html:not([data-entry]) #home .home-title-line:nth-child(2) {animation-delay: .08s;}
}
@keyframes home-title-arrive {
  from {opacity: 0; transform: translateY(.13em);}
  to {opacity: 1; transform: translateY(0);}
}

/* 平板收紧字幅和题签，主图仍占较宽的一栏。 */
@media (min-width: 701px) and (max-width: 1000px) {
  #home .hero-inner {grid-template-columns: minmax(0, .79fr) minmax(0, 1.31fr); gap: 18px; padding-block: 35px 28px;}
  #home .hero-copy h1 {font-size: clamp(62px, 7.55vw, 82px);}
  #home .hero-actions {margin-top: 22px;}
  #home .hero-stack {aspect-ratio: 1.47;}
  #home .home-feature-copy {min-height: 76px; padding-right: 148px;}
  #home .index-line {width: 13px;}
  #home .showcase-control {bottom: 10px; gap: 8px;}
  #home .step-pair {gap: 5px;}
}

/* 手机将整幅精选作品移到身份下方，下载与翻页均可单独点按。 */
@media (max-width: 700px) {
  #home .hero-inner {grid-template-columns: minmax(0, 1fr); gap: 20px; padding-block: 30px 21px;}
  #home .hero-copy h1 {font-size: clamp(62px, 13.2vw, 86px); margin-bottom: 15px;}
  #home .identity-line {font-size: 15px;}
  #home .hero-actions {margin-top: 15px;}
  #home .hero-downloads {column-gap: 13px;}
  #home .hero-stack {aspect-ratio: 1.49;}
  #home .home-feature-copy {min-height: 70px; padding: 11px 132px 0 0; gap: 3px;}
  #home .home-feature-copy small {font-size: 11px;}
  #home .home-feature-copy strong {font-size: 18px;}
  #home .showcase-control {bottom: 8px; gap: 7px;}
  #home .slide-index {gap: 4px; font-size: 10px;}
  #home .index-line {width: 8px;}
  #home .step-pair {gap: 3px;}
}

/* 减少动态时保留同样的作品尺寸与切换状态。 */
@media (prefers-reduced-motion: reduce) {
  #home .hero-art {transition: none;}
  #home .hero-stack {transform: none; transition: none;}
}
