/* =========================================================
   css/components.css — 英雄区 / 角色卡 / 星座 / 页脚
   ========================================================= */

/* ================= HERO ================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: -8% -6%;
  z-index: 0;
  background-image: url("../assets/genshin/bg/hero.webp");
  background-size: cover;
  background-position: center 42%;
  animation: heroDrift 32s var(--ease-soft) infinite alternate;
  will-change: transform;
}
@keyframes heroDrift {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to   { transform: scale(1.09) translate3d(0, -1.6%, 0); }
}

/* 斜射光束 */
.hero__rays {
  position: absolute;
  inset: -30%;
  z-index: 1;
  pointer-events: none;
  background:
    conic-gradient(from 200deg at 50% 8%,
      transparent 0deg, rgba(255, 238, 196, 0.16) 8deg, transparent 16deg,
      transparent 26deg, rgba(255, 238, 196, 0.1) 34deg, transparent 42deg,
      transparent 58deg, rgba(190, 236, 255, 0.1) 66deg, transparent 74deg);
  mix-blend-mode: screen;
  opacity: 0.75;
  animation: rayTurn 44s linear infinite;
}
@keyframes rayTurn { to { transform: rotate(360deg); } }

.hero__vig {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 52% at 50% 44%, transparent 0%, rgba(5, 12, 21, 0.18) 62%, rgba(5, 12, 21, 0.72) 100%),
    linear-gradient(180deg, rgba(5, 12, 21, 0.78) 0%, rgba(5, 12, 21, 0.22) 16%, transparent 34%, transparent 58%, rgba(5, 12, 21, 0.94) 100%);
}

/* ---- 角色立绘 ---- */
.hero__char {
  position: absolute;
  z-index: 3;
  margin: 0;
  bottom: 0;
  pointer-events: none;
  will-change: transform;
  display: block;
}
/* 立绘按高度约束：全身像极瘦长，用宽度会撑爆 */
.hero__char--amy  { left:  clamp(-24px, 7vw, 150px); }
.hero__char--emy  { right: clamp(-40px, 5vw, 130px); }

.hero__portrait {
  position: relative;
  z-index: 2;
  height: clamp(380px, 70vh, 820px);
  width: auto;
  max-width: none;
  filter: drop-shadow(0 26px 46px rgba(4, 12, 22, 0.62));
  animation: floatY 7s var(--ease-soft) infinite;
}
.hero__char--emy .hero__portrait {
  height: clamp(310px, 56vh, 660px);
  animation-duration: 8.4s;
  animation-delay: -2s;
}

/* 角色身后的光晕 */
.hero__aura {
  position: absolute;
  left: 50%;
  top: 26%;
  width: 168%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle, var(--aura, rgba(255, 220, 190, 0.5)) 0%, transparent 64%);
  filter: blur(22px);
  opacity: 0.62;
  animation: auraPulse 6.5s var(--ease-soft) infinite;
}
.hero__char--amy { --aura: rgba(255, 206, 176, 0.55); }
.hero__char--emy { --aura: rgba(126, 190, 255, 0.55); }
@keyframes auraPulse {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(0.94); }
  50%      { opacity: 0.78; transform: translate(-50%, -50%) scale(1.07); }
}

/* 立绘脚下的光台 */
.hero__platform {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 1.5%;
  width: 128%;
  height: 62px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 236, 198, 0.5) 0%, rgba(240, 201, 135, 0.2) 42%, transparent 72%);
  filter: blur(9px);
  animation: platformGlow 5s var(--ease-soft) infinite;
}
@keyframes platformGlow {
  0%, 100% { opacity: 0.6; transform: translateX(-50%) scaleX(1); }
  50%      { opacity: 1;   transform: translateX(-50%) scaleX(1.08); }
}

/* ---- 中央标题 ---- */
.hero__title {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: 0 20px;
  margin-top: -4vh;
}
/* 标题背后的柔光暗底，保证亮天空下的可读性 */
.hero__title::before {
  content: "";
  position: absolute;
  inset: -14% -16%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse 48% 46% at 50% 50%,
    rgba(5, 12, 21, 0.62) 0%,
    rgba(5, 12, 21, 0.3) 48%,
    transparent 76%);
}
.hero__sigil {
  width: 42px; height: 42px;
  margin: 0 auto 22px;
  animation: floatY 5s var(--ease-soft) infinite;
}
.hero__sigil svg { width: 100%; height: 100%; fill: var(--gold-200); filter: drop-shadow(0 0 22px rgba(240, 201, 135, 0.9)) drop-shadow(0 2px 10px rgba(5,12,21,.9)); }

.hero__eyebrow {
  font-size: clamp(9px, 1.05vw, 11.5px);
  letter-spacing: 0.4em;
  text-indent: 0.4em;
  color: rgba(255, 238, 205, 0.94);
  margin-bottom: 18px;
  text-shadow: 0 2px 14px rgba(5, 12, 21, 0.95), 0 0 22px rgba(5, 12, 21, 0.8);
}

.hero__names {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2.4vw, 34px);
  font-family: var(--font-cn);
  font-weight: 400;
  line-height: 1.05;
}
.hero__cn {
  font-size: clamp(32px, 6.4vw, 86px);
  letter-spacing: 0.06em;
  background: linear-gradient(180deg, #fffaf0 0%, #ffeec9 30%, var(--gold-300) 58%, #b8802f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 8px 34px rgba(240, 201, 135, 0.4));
  animation: titleGlow 5.5s var(--ease-soft) infinite;
}
@keyframes titleGlow {
  0%, 100% { filter: drop-shadow(0 8px 30px rgba(240, 201, 135, 0.34)); }
  50%      { filter: drop-shadow(0 10px 44px rgba(255, 232, 180, 0.62)); }
}
.hero__amp { width: clamp(38px, 6.4vw, 78px); display: block; opacity: 1; }
.hero__amp-wave {
  width: 100%; height: auto;
  fill: none;
  stroke: var(--gold-200);
  stroke-width: 7;
  stroke-linecap: round;
  filter: drop-shadow(0 0 10px rgba(240, 201, 135, 0.85)) drop-shadow(0 2px 8px rgba(5,12,21,.9));
}
.hero__amp-star {
  display: none;
  width: 100%; height: auto;
  fill: var(--gold-200);
  filter: drop-shadow(0 0 12px rgba(240, 201, 135, 0.9)) drop-shadow(0 2px 8px rgba(5,12,21,.9));
}

.hero__en {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: clamp(14px, 1.9vw, 24px);
  letter-spacing: 0.52em;
  text-indent: 0.52em;
  color: #d6fbf5;
  opacity: 1;
  text-shadow: 0 2px 18px rgba(5, 12, 21, 0.98), 0 0 30px rgba(5, 12, 21, 0.85);
}
.hero__en i { font-style: italic; color: var(--gold-300); margin: 0 0.25em; }

.hero__tag {
  margin-top: 22px;
  font-family: var(--font-cn);
  font-size: clamp(13px, 1.5vw, 17px);
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  color: rgba(245, 240, 230, 0.94);
  text-shadow: 0 2px 16px rgba(5, 12, 21, 0.98), 0 0 26px rgba(5, 12, 21, 0.8);
}

/* ---- 向下滚动提示 ---- */
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 86px;
  z-index: 6;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0.72;
  transition: opacity var(--t-fast);
}
.hero__scroll:hover { opacity: 1; }
.hero__scroll-line {
  width: 1px; height: 52px;
  background: linear-gradient(180deg, transparent, var(--gold-300));
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: "";
  position: absolute;
  top: -50%; left: 0;
  width: 100%; height: 50%;
  background: var(--gold-200);
  animation: scrollFall 2.2s var(--ease-soft) infinite;
}
@keyframes scrollFall {
  0%   { top: -50%; opacity: 0; }
  35%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}
.hero__scroll-text {
  font-size: 9.5px;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  color: var(--gold-300);
}

/* ================= 角色卡 ================= */
.characters { overflow: hidden; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: clamp(24px, 3.4vw, 44px);
  max-width: var(--shell);
  margin: 0 auto;
}

.card {
  --c: var(--gold-300);
  --c-soft: var(--gold-200);
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 6px;
  overflow: hidden;
  isolation: isolate;
  transform-style: preserve-3d;
  transition: transform 0.55s var(--ease-out), box-shadow 0.55s var(--ease-out);
  box-shadow: 0 26px 64px rgba(3, 9, 17, 0.66);
  background: var(--ink-800);
}
.card--amy { --c: var(--amy); --c-soft: var(--amy-soft); }
.card--emy { --c: var(--emy); --c-soft: var(--emy-soft); }

.card:hover {
  box-shadow: 0 34px 88px rgba(3, 9, 17, 0.8), 0 0 0 1px rgba(240, 201, 135, 0.28);
}

.card__bg {
  position: absolute;
  inset: -6% 0;
  z-index: 0;
  overflow: hidden;
}
.card__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.3s var(--ease-out);
}
.card:hover .card__bg img { transform: scale(1.07); }

.card__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(5, 12, 21, 0.62) 0%, rgba(5, 12, 21, 0.08) 26%, rgba(5, 12, 21, 0.2) 52%, rgba(5, 12, 21, 0.9) 88%, rgba(5, 12, 21, 0.97) 100%),
    radial-gradient(ellipse 62% 42% at 50% 40%, transparent 20%, rgba(5, 12, 21, 0.5) 100%);
}

/* 金色菱形边框（提瓦特 UI 语汇） */
.card__frame {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  border: 1px solid rgba(240, 201, 135, 0.3);
  margin: 12px;
  border-radius: 2px;
  transition: border-color 0.5s;
}
.card:hover .card__frame { border-color: rgba(240, 201, 135, 0.62); }
.card__frame::before,
.card__frame::after {
  content: "";
  position: absolute;
  width: 26px; height: 26px;
  border: 1px solid var(--c);
  opacity: 0.85;
}
.card__frame::before {
  top: -1px; left: -1px;
  border-right: 0; border-bottom: 0;
  border-top-left-radius: 3px;
}
.card__frame::after {
  right: -1px; bottom: -1px;
  border-left: 0; border-top: 0;
  border-bottom-right-radius: 3px;
}

/* ---- 卡头 ---- */
.card__head {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 26px 28px 0;
}
.card__elem {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.13), rgba(0,0,0,0.42));
  border: 1px solid rgba(240, 201, 135, 0.4);
  box-shadow: inset 0 0 16px rgba(0,0,0,0.5), 0 0 18px rgba(0,0,0,0.4);
  flex: none;
}
.card__elem img { width: 27px; height: 27px; object-fit: contain; }
.card__elem--dendro img { filter: drop-shadow(0 0 7px rgba(165, 217, 74, 0.85)); }
.card__elem--hydro img { filter: drop-shadow(0 0 7px rgba(90, 169, 230, 0.85)); }

.card__id { flex: 1; min-width: 0; }
.card__en {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.42em;
  color: var(--c-soft);
  opacity: 0.9;
}
.card__cn {
  font-family: var(--font-cn);
  font-size: 30px;
  font-weight: 400;
  letter-spacing: 0.14em;
  margin-top: 2px;
  background: linear-gradient(180deg, #fffaf0, var(--gold-300));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.card__stars { display: flex; gap: 4px; flex: none; }
.card__stars i {
  width: 13px; height: 13px;
  background: var(--gold-300);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  filter: drop-shadow(0 0 6px rgba(240, 201, 135, 0.75));
  animation: starTwinkle 3.2s var(--ease-soft) infinite;
}
.card__stars i:nth-child(2) { animation-delay: 0.25s; }
.card__stars i:nth-child(3) { animation-delay: 0.5s; }
.card__stars i:nth-child(4) { animation-delay: 0.75s; }
.card__stars i:nth-child(5) { animation-delay: 1s; }
@keyframes starTwinkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(0.86); }
}

/* ---- 立绘 ---- */
.card__portrait {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 380px;
  padding: 22px 0 0;
}
.card--amy .card__portrait { min-height: 430px; }
.card__portrait img {
  position: relative;
  z-index: 2;
  height: clamp(330px, 38vw, 440px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 18px 34px rgba(3, 9, 17, 0.6));
  transition: transform 0.7s var(--ease-out);
}
.card--amy .card__portrait img { height: clamp(350px, 40vw, 470px); }
.card:hover .card__portrait img { transform: translateY(-8px) scale(1.025); }

.card__halo {
  position: absolute;
  left: 50%;
  bottom: 6%;
  width: 74%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, var(--c) 0%, transparent 63%);
  opacity: 0.3;
  filter: blur(34px);
  transition: opacity 0.6s var(--ease-out);
}
.card:hover .card__halo { opacity: 0.52; }

/* ---- 卡底 ---- */
.card__foot {
  position: relative;
  z-index: 3;
  margin-top: auto;          /* 两张卡的底部信息对齐 */
  padding: 4px 28px 28px;
}
.card__trait {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(240, 201, 135, 0.18);
}
.card__trait-cn {
  font-size: 10.5px;
  letter-spacing: 0.34em;
  color: var(--text-faint);
}
.card__trait-v {
  font-family: var(--font-cn);
  font-size: 25px;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  color: var(--c-soft);
  text-shadow: 0 0 22px color-mix(in srgb, var(--c) 55%, transparent);
}
.card__talents { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.card__talents li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  transition: color var(--t-fast), transform var(--t-fast);
}
.card__talents li:hover { color: var(--text); transform: translateX(3px); }
.talent__ico {
  width: 15px; height: 15px;
  flex: none;
  background: var(--gold-300);
  opacity: 0.78;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: contain; mask-size: contain;
}
.talent__ico[data-ico="brush"] {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 20c3 1 5 0 6-2l8-9-4-3-9 8c-2 1-3 3-2 6zM14 5l4 4'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 20c3 1 5 0 6-2l8-9-4-3-9 8c-2 1-3 3-2 6zM14 5l4 4'/%3E%3C/svg%3E");
}
.talent__ico[data-ico="leaf"] {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 4C9 4 4 9 4 16c0 2 1 4 1 4s2-6 8-8c-4 4-6 8-6 8 8 1 13-4 13-16z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 4C9 4 4 9 4 16c0 2 1 4 1 4s2-6 8-8c-4 4-6 8-6 8 8 1 13-4 13-16z'/%3E%3C/svg%3E");
}
.talent__ico[data-ico="book"] {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 5c4-1 6-1 9 1 3-2 5-2 9-1v14c-4-1-6-1-9 1-3-2-5-2-9-1zM12 6v14'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 5c4-1 6-1 9 1 3-2 5-2 9-1v14c-4-1-6-1-9 1-3-2-5-2-9-1zM12 6v14'/%3E%3C/svg%3E");
}
.talent__ico[data-ico="moon"] {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 14a8 8 0 11-10-10 7 7 0 0010 10z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 14a8 8 0 11-10-10 7 7 0 0010 10z'/%3E%3C/svg%3E");
}
.talent__ico[data-ico="star"] {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.6 7.4L22 12l-7.4 2.6L12 22l-2.6-7.4L2 12l7.4-2.6z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.6 7.4L22 12l-7.4 2.6L12 22l-2.6-7.4L2 12l7.4-2.6z'/%3E%3C/svg%3E");
}

/* ================= 羁绊 · 星座 ================= */
.bond {
  position: relative;
  overflow: hidden;
  text-align: center;
}
.bond__bg {
  position: absolute;
  inset: -10% 0;
  z-index: 0;
}
.bond__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.92; }
.bond__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, var(--ink-900) 0%, rgba(8, 16, 28, 0.58) 24%, rgba(8, 16, 28, 0.4) 58%, rgba(5, 12, 21, 0.88) 92%, var(--ink-900) 100%),
    radial-gradient(ellipse 70% 60% at 50% 48%, rgba(5, 12, 21, 0.08) 0%, rgba(5, 12, 21, 0.6) 100%);
}
.bond > *:not(.bond__bg):not(.bond__veil) { position: relative; z-index: 3; }

.constellation {
  position: relative;
  max-width: 1000px;
  margin: 0 auto clamp(44px, 6vw, 74px);
}
.constellation__svg { width: 100%; height: auto; overflow: visible; }

.constellation__dust circle { fill: var(--gold-200); opacity: 0.42; animation: nodePulse 4s var(--ease-soft) infinite; }
.constellation__dust circle:nth-child(even) { animation-delay: -2s; }

.constellation__lines path {
  fill: none;
  stroke: url(#cg);
  stroke-width: 1.4;
  stroke-linecap: round;
  opacity: 0.62;
  stroke-dasharray: 10 8;
  animation: dashFlow 3.4s linear infinite;
}
.constellation__lines path:nth-child(2) { animation-delay: -1.1s; opacity: 0.34; }
.constellation__lines path:nth-child(3) { animation-delay: -2.2s; opacity: 0.26; }
.constellation__lines path:nth-child(4) { animation-delay: -0.6s; opacity: 0.3; }
@keyframes dashFlow { to { stroke-dashoffset: -36; } }

.constellation__nodes circle {
  fill: var(--gold-200);
  filter: drop-shadow(0 0 8px rgba(240, 201, 135, 0.9));
  animation: nodePulse 3s var(--ease-soft) infinite;
  transform-box: fill-box;
  transform-origin: center;
}
.constellation__nodes circle.glow { fill: url(#nodeglow); filter: none; animation: none; }
.constellation__nodes circle:nth-child(even) { fill: var(--teal-200); animation-delay: -1.5s; }
@keyframes nodePulse {
  0%, 100% { opacity: 0.55; transform: scale(0.82); }
  50%      { opacity: 1;    transform: scale(1.22); }
}

.constellation__stars path {
  fill: var(--gold-100);
  filter: drop-shadow(0 0 12px rgba(240, 201, 135, 0.95));
  animation: pulseStar 4.4s var(--ease-soft) infinite;
  transform-box: fill-box;
  transform-origin: center;
}
.constellation__stars path:nth-child(2) { animation-delay: -2.2s; }

/* 标签直接写在 SVG 里，永远与节点对齐 */
.constellation__labels .clabel {
  font-family: var(--font-cn);
  font-size: 19px;
  letter-spacing: 0.28em;
  fill: var(--gold-200);
  stroke: rgba(5, 12, 21, 0.85);
  stroke-width: 4.5;
  paint-order: stroke fill;
  stroke-linejoin: round;
  opacity: 0.96;
  filter: drop-shadow(0 0 7px rgba(240, 201, 135, 0.5));
}
.constellation__labels .clabel--amy { fill: var(--amy-soft); filter: drop-shadow(0 0 7px rgba(242, 160, 160, 0.55)); }
.constellation__labels .clabel--emy { fill: var(--emy-soft); filter: drop-shadow(0 0 7px rgba(90, 169, 230, 0.55)); }

/* 印章 */
.bond__seal { display: flex; flex-direction: column; align-items: center; gap: clamp(30px, 5vw, 56px); }
.bond__elements {
  width: clamp(280px, 42vw, 520px);
  opacity: 0.5;
  filter: drop-shadow(0 0 14px rgba(240, 201, 135, 0.35));
  animation: elementsBreathe 7s var(--ease-soft) infinite;
}
@keyframes elementsBreathe {
  0%, 100% { opacity: 0.34; }
  50%      { opacity: 0.62; }
}
.seal {
  position: relative;
  width: clamp(190px, 24vw, 280px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.seal__star {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  fill: none;
  stroke: var(--gold-300);
  stroke-width: 0.9;
  opacity: 0.72;
  animation: spinSlow 46s linear infinite;
  filter: drop-shadow(0 0 18px rgba(240, 201, 135, 0.55));
}
.seal__inner { text-align: center; z-index: 2; }
.seal__zh {
  font-family: var(--font-cn);
  font-size: clamp(20px, 2.6vw, 30px);
  letter-spacing: 0.18em;
  text-indent: 0.18em;
  background: linear-gradient(180deg, #fffaf0, var(--gold-300));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.seal__en {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  color: var(--teal-200);
  opacity: 0.75;
}

/* ================= 页脚 ================= */
.footer {
  position: relative;
  z-index: 4;
  padding: clamp(70px, 9vw, 110px) var(--gutter) 46px;
  text-align: center;
  overflow: hidden;
}
/* 顶部用渐隐金线过渡，避免生硬接缝 */
.footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  z-index: 3;
  background: linear-gradient(90deg, transparent 6%, rgba(240, 201, 135, 0.38) 50%, transparent 94%);
}
.footer__bg {
  position: absolute;
  inset: 0;
  background-image: url("../assets/genshin/bg/shore.webp");
  background-size: cover;
  background-position: center;
  opacity: 0.55;
  filter: saturate(0.9);
}
.footer__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--ink-900) 0%, rgba(5, 12, 21, 0.55) 40%, rgba(5, 12, 21, 0.8) 100%);
}
.footer__inner { position: relative; z-index: 2; }
.footer__ornament { width: 34px; height: 34px; margin: 0 auto 22px; }
.footer__ornament svg { width: 100%; height: 100%; fill: var(--gold-300); opacity: 0.85; animation: pulseStar 4.5s var(--ease-soft) infinite; }
.footer__text {
  font-family: var(--font-cn);
  font-size: clamp(14px, 1.7vw, 19px);
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  color: var(--gold-200);
}
.footer__credit {
  margin-top: 14px;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--text-faint);
}
.footer__credit b { color: var(--gold-400); font-weight: 400; }
.footer__logo {
  width: 116px;
  margin: 26px auto 0;
  opacity: 0.36;
  filter: grayscale(1) brightness(2);
  transition: opacity var(--t-fast);
}
.footer__logo:hover { opacity: 0.7; }

/* ================= 响应式 ================= */
@media (max-width: 1080px) {
  .hero__char--amy { left: -10px; }
  .hero__char--emy { right: -24px; }
  .hero__portrait { height: clamp(340px, 64vh, 700px); }
  .hero__char--emy .hero__portrait { height: clamp(280px, 52vh, 580px); }
}

@media (max-width: 760px) {
  .hero {
    min-height: 100svh;
    align-content: start;
    padding-top: 8vh;
  }
  /* 标题在上方，两人立绘并排在底部，不再压住标题 */
  .hero__title { margin-top: 0; }
  .hero__names { flex-direction: column; gap: 4px; }
  .hero__cn { font-size: clamp(34px, 11vw, 56px); }
  .hero__amp { width: 30px; margin: 2px auto; }
  .hero__amp-wave { display: none; }
  .hero__amp-star { display: block; }
  .hero__en { font-size: 14px; letter-spacing: 0.4em; text-indent: 0.4em; margin-top: 10px; }
  .hero__tag { margin-top: 14px; font-size: 13px; }
  .hero__eyebrow { font-size: 8.5px; margin-bottom: 12px; }
  .hero__sigil { width: 32px; height: 32px; margin-bottom: 14px; }
  /* 移动端亮天空更靠上，暗底加重保证可读 */
  .hero__title::before {
    inset: -10% -8%;
    background: radial-gradient(ellipse 62% 60% at 50% 50%,
      rgba(5, 12, 21, 0.7) 0%,
      rgba(5, 12, 21, 0.36) 52%,
      transparent 78%);
  }

  .hero__char--amy {
    --px: 0px;
    left: 2%;
    right: auto;
    bottom: 0;
    z-index: 4;
  }
  .hero__char--amy .hero__portrait { height: 44vh; }
  .hero__char--emy {
    --px: 0px;
    right: 1%;
    left: auto;
    bottom: -1.5%;
    z-index: 3;
  }
  .hero__char--emy .hero__portrait { height: 36vh; }

  .hero__scroll { display: none; }
  .card__portrait { min-height: 300px; }
  .card--amy .card__portrait { min-height: 340px; }
  .constellation__labels .clabel { font-size: 22px; }
}
