body { background: #6e1512; }

/* =====================================================================
   home.css —— 数字展厅首页（参照 tenyes.xp.yn.cn/pc 实现方式重写）
   ---------------------------------------------------------------------
   关键变化：改用专业设计的高精度位图素材，替代此前的纯 CSS 绘制
     · MainImage.png   金色三维展台（含光柱、同心刻度环）
     · Element-one.png 六边形 + 悬浮立体底座 + 光柱（7 个复用）
     · Flag.png        高清国徽
     · HeadTitle.png   顶部标题装饰带
   ===================================================================== */

body:has(.home-stage) .site-main { min-height: 0; padding-bottom: 0; }
main.site-main:has(.home-stage) ~ footer.site-footer { display: none !important; }

.home-stage {
  position: relative;
  z-index: 5;
  width: 100%;
  height: calc(100vh - var(--header-h));
  min-height: 520px;
  overflow: hidden;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.home-stage.is-grabbing { cursor: grabbing; }

/* ---------------------------------------------------------------------
   顶部标题栏
   --------------------------------------------------------------------- */
.showcase-title {
  position: absolute;
  left: 50%;
  top: 1.4%;
  transform: translateX(-50%);
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(76%, 1240px);
  height: clamp(64px, 8.2vh, 104px);
  background: url('../assets/HeadTitle.7feeb4c1.png') center top / 100% auto no-repeat;
  pointer-events: none;
}
.showcase-title h1 {
  margin: 0;
  padding-bottom: 18px;
  font-family: "SimHei", "Microsoft YaHei", sans-serif;
  font-size: clamp(26px, 2.5vw, 42px);
  font-weight: 700;
  letter-spacing: .16em;
  color: #fff;
  text-shadow:
    0 0 18px rgba(255, 190, 120, .9),
    0 0 42px rgba(255, 130, 70, .6),
    0 3px 10px rgba(70, 8, 6, .9);
  white-space: nowrap;
}

/* ---------------------------------------------------------------------
   中心展台（MainImage 素材）
   --------------------------------------------------------------------- */
.podium-core {
  position: absolute;
  left: 50%;
  top: var(--stage-center-y, 50%);
  transform: translate(-50%, -50%);
  width: var(--podium-w, 720px);
  aspect-ratio: 2400 / 1128;
  z-index: 8;
  pointer-events: none;
}
.podium-core img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 40px rgba(255, 170, 90, .45));
}

/* 国徽：展台正上方 */
.emblem-core {
  position: absolute;
  left: 50%;
  top: var(--stage-center-y, 50%);
  transform: translate(-50%, -122%);
  width: var(--emblem-w, 210px);
  z-index: 12;
  pointer-events: none;
  animation: emblem-float 6s ease-in-out infinite;
}
.emblem-core img {
  width: 100%;
  display: block;
  filter:
    drop-shadow(0 10px 26px rgba(60, 8, 6, .78))
    drop-shadow(0 0 34px rgba(255, 190, 110, .55));
}
@keyframes emblem-float {
  0%, 100% { transform: translate(-50%, -122%); }
  50%      { transform: translate(-50%, -125.5%); }
}

/* ---------------------------------------------------------------------
   六边形入口（Element-one 素材）
   --------------------------------------------------------------------- */
.ring-item {
  position: absolute;
  left: 50%;
  top: var(--stage-center-y, 50%);
  width: var(--hex-w, 180px);
  aspect-ratio: 764 / 988;
  margin-left: calc(var(--hex-w, 180px) / -2);
  margin-top: calc(var(--hex-w, 180px) * 988 / 764 / -2);
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  z-index: 10;
  transform: translate(var(--tx, 0px), var(--ty, 0px)) scale(var(--sc, 1));
  transition: transform .34s cubic-bezier(.2, .8, .3, 1), filter .28s ease;
  will-change: transform;
  transform-origin: center center;
}
.ring-item .hex-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 8px 20px rgba(40, 6, 4, .5));
  transition: filter .28s ease;
}
.ring-item:hover,
.ring-item:focus-visible {
  transform: translate(var(--tx, 0px), calc(var(--ty, 0px) - 10px)) scale(calc(var(--sc, 1) * 1.05));
  z-index: 30;
}
.ring-item:hover .hex-img,
.ring-item:focus-visible .hex-img {
  filter: drop-shadow(0 10px 26px rgba(40, 6, 4, .55))
          drop-shadow(0 0 26px rgba(255, 170, 90, .85));
}
.ring-item:focus-visible { outline: 0; }

.ring-item .hex-label {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 44%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 9%;
  font-family: "SimHei", "Microsoft YaHei", sans-serif;
  font-size: calc(var(--hex-w, 180px) * 0.145);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: .05em;
  color: #fff;
  text-align: center;
  text-shadow:
    0 0 10px rgba(255, 220, 170, .95),
    0 2px 6px rgba(120, 20, 8, .95),
    0 0 20px rgba(255, 140, 60, .85);
  pointer-events: none;
}

.ring-item .hex-count {
  position: absolute;
  right: 22%;
  top: 1%;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border: 1px solid rgba(255, 240, 205, .95);
  border-radius: 11px;
  background: linear-gradient(180deg, #fff3d2, #e6b45c);
  color: #6d1a0c;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 0 12px rgba(255, 200, 130, .8);
  pointer-events: none;
}

.ring-item .hex-plate {
  position: absolute;
  left: 50%;
  bottom: 2%;
  transform: translateX(-50%);
  min-width: 84px;
  padding: 2px 10px;
  color: #ffe6bc;
  font-family: "SimHei", "Microsoft YaHei", sans-serif;
  font-size: calc(var(--hex-w, 180px) * 0.082);
  letter-spacing: .12em;
  text-align: center;
  white-space: nowrap;
  text-shadow: 0 0 12px rgba(255, 170, 90, .95), 0 2px 5px rgba(60, 8, 6, .95);
  pointer-events: none;
  transition: color .2s ease;
}
.ring-item:hover .hex-plate { color: #fff; }

.ring-item.is-primary { z-index: 11; }
.ring-item.is-primary .hex-label { font-size: calc(var(--hex-w, 180px) * 0.162); }

/* ---------------------------------------------------------------------
   左右箭头
   --------------------------------------------------------------------- */
.ring-arrow {
  position: absolute;
  top: var(--stage-center-y, 50%);
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 220, 170, .55);
  border-radius: 50%;
  background: rgba(74, 12, 9, .5);
  backdrop-filter: blur(3px);
  color: #ffe6bc;
  font-size: 24px;
  line-height: 1;
  z-index: 35;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}
.ring-arrow:hover {
  border-color: #fff3d8;
  background: rgba(170, 34, 22, .85);
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 0 20px rgba(255, 170, 90, .6);
}
.ring-arrow:active { transform: translateY(-50%) scale(.95); }
.ring-arrow:focus-visible { outline: 3px solid #ffe9c4; outline-offset: 3px; }
.ring-arrow.prev { left: 2.2%; }
.ring-arrow.next { right: 2.2%; }

/* ---------------------------------------------------------------------
   底部标语
   --------------------------------------------------------------------- */
.deco-slogan {
  position: absolute;
  left: 50%;
  bottom: 3%;
  transform: translateX(-50%);
  z-index: 25;
  color: rgba(255, 232, 186, .92);
  font-family: "SimSun", "Songti SC", serif;
  font-size: 16px;
  letter-spacing: 9px;
  white-space: nowrap;
  text-shadow: 0 0 18px rgba(255, 170, 100, .7), 0 2px 6px rgba(50, 6, 4, .85);
  pointer-events: none;
}

.home-hint {
  position: absolute;
  left: 50%;
  bottom: 0.6%;
  transform: translateX(-50%);
  color: rgba(232, 207, 168, .5);
  font-size: 12px;
  letter-spacing: 1px;
  white-space: nowrap;
  z-index: 25;
  pointer-events: none;
}
.home-hint em { font-style: normal; color: rgba(255, 226, 175, .8); }

/* ---------------------------------------------------------------------
   窄屏降级
   --------------------------------------------------------------------- */
@media (max-width: 1000px), (max-height: 600px) {
  .home-stage {
    height: auto;
    min-height: 0;
    overflow: visible;
    cursor: auto;
    padding: 96px 0 40px;
  }
  .podium-core, .emblem-core, .ring-arrow { display: none; }
  .ring {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    padding: 0 16px;
  }
  .ring-item {
    position: static;
    transform: none !important;
    width: 100%;
    max-width: 150px;
    margin: 0;
    justify-self: center;
  }
  .ring-item .hex-label { font-size: 18px; }
  .ring-item .hex-plate { font-size: 12px; }
  .deco-slogan { position: static; transform: none; text-align: center; margin-top: 20px; font-size: 14px; letter-spacing: 4px; }
  .home-hint { position: static; transform: none; text-align: center; margin-top: 8px; }
}
@media (max-width: 720px) {
  .ring { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .ring-item, .emblem-core { transition: none; animation: none; }
}

/* 位于最前方槽位的入口：层级最高、光晕最强 */
.ring-item.is-front {
  z-index: 14;
}
.ring-item.is-front .hex-img {
  filter: drop-shadow(0 10px 26px rgba(40, 6, 4, .55))
          drop-shadow(0 0 30px rgba(255, 180, 100, .75));
}
.ring-item.is-front .hex-label {
  text-shadow:
    0 0 12px rgba(255, 230, 190, 1),
    0 2px 6px rgba(120, 20, 8, .95),
    0 0 26px rgba(255, 150, 70, .9);
}
.ring-item.is-primary.is-front .hex-img {
  filter: drop-shadow(0 12px 30px rgba(40, 6, 4, .6))
          drop-shadow(0 0 40px rgba(255, 190, 110, .9));
}


/* =====================================================================
   视觉纵深：让红旗背景与前台内容产生层次关系
   ===================================================================== */

/* 1. 中心光域：标题与国徽区域压亮，形成视觉焦点 */
.home-stage::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 42%;
  width: 76vw;
  height: 76vh;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center,
    rgba(255, 232, 185, .30) 0%,
    rgba(255, 205, 145, .16) 34%,
    rgba(255, 180, 110, 0) 70%);
  pointer-events: none;
  z-index: 0;
  animation: focus-breathe 7s ease-in-out infinite;
}
@keyframes focus-breathe {
  0%, 100% { opacity: .78; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1;   transform: translate(-50%, -50%) scale(1.05); }
}

/* 2. 标题：金色描边 + 外发光，从背景中「立起来」 */
.showcase-title h1 {
  text-shadow:
    0 0 18px rgba(255, 205, 120, .55),
    0 2px 0 rgba(120, 20, 14, .5),
    0 8px 26px rgba(80, 10, 8, .55);
}

/* 3. 七个入口：卡片化浮起，悬停更明显 */
.ring-item {
  filter: drop-shadow(0 10px 24px rgba(90, 14, 10, .45));
  transition: filter .28s ease, transform .28s ease;
}
.ring-item:hover {
  filter: drop-shadow(0 16px 34px rgba(90, 14, 10, .6))
          drop-shadow(0 0 20px rgba(255, 200, 110, .5));
}

/* 4. 中央展台：加一层倒影光晕，与红旗旗面呼应 */
.podium-core::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -14%;
  width: 150%;
  height: 34%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center,
    rgba(255, 210, 140, .30) 0%,
    rgba(255, 160, 80, .12) 42%,
    rgba(200, 40, 24, 0) 74%);
  pointer-events: none;
  z-index: -1;
  animation: podium-glow 5.5s ease-in-out infinite;
}
@keyframes podium-glow {
  0%, 100% { opacity: .7; transform: translateX(-50%) scaleX(1); }
  50%      { opacity: 1;  transform: translateX(-50%) scaleX(1.08); }
}

/* 5. 左右切换箭头：玻璃拟态，浮在红旗之上 */
.nav-arrow, .ring-nav, [data-ring-prev], [data-ring-next] {
  backdrop-filter: blur(6px);
  background: rgba(120, 20, 16, .34);
  border: 1px solid rgba(255, 214, 150, .45);
  box-shadow: 0 6px 22px rgba(70, 10, 8, .42), inset 0 0 18px rgba(255, 200, 130, .16);
  transition: background-color .22s ease, border-color .22s ease, transform .22s ease;
}
.nav-arrow:hover, .ring-nav:hover, [data-ring-prev]:hover, [data-ring-next]:hover {
  background: rgba(160, 36, 28, .58);
  border-color: rgba(255, 230, 180, .8);
  transform: scale(1.06);
}

/* 6. 底部不做整块压暗，保持红旗完整铺满 */

@media (prefers-reduced-motion: reduce) {
  .home-stage::before,
  .podium-core::after,
  .flag-canvas { animation: none !important; }
}
