/* ============================================================
   components.css · 跨页组件
   导航 / 品牌 / 陪玩卡片 / 页脚 / 手机 Tab / 悬浮客服 / 客服弹窗 / 海报弹窗
   ============================================================ */

/* ==================== 导航 ==================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease), -webkit-backdrop-filter var(--dur-base), backdrop-filter var(--dur-base);
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(11, 7, 9, .72);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line-soft);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 40px);
}

.nav-links a {
  position: relative;
  font-size: 14px;
  color: var(--txt-mid);
  letter-spacing: .1em;
  padding: 6px 0;
  transition: color var(--dur-base);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--grad-text);
  transition: width var(--dur-base) var(--ease), left var(--dur-base) var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--txt);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
  left: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-live {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  color: var(--txt-low);
  letter-spacing: .08em;
}

.nav-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px 0 12px;
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  background: rgba(11, 7, 9, .4);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--txt-mid);
  font-size: 13px;
  transition: color var(--dur-base), border-color var(--dur-base);
}

.nav-back:hover {
  color: var(--txt);
  border-color: var(--line-strong);
}

.nav-back .ico {
  font-size: 16px;
}

/* ==================== 品牌 ==================== */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  position: relative;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--grad-rouge);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  line-height: 1;
  box-shadow: 0 6px 22px -6px rgba(226, 87, 122, .75), inset 0 1px 0 rgba(255, 255, 255, .3);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(233, 203, 160, .4);
}

.brand-cn {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 21px;
  letter-spacing: .14em;
  color: var(--txt);
}

.brand-en {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 500;
  font-size: 17px;
  color: var(--champagne);
  margin-left: -4px;
}

/* ==================== 陪玩卡片 ==================== */
.tcard {
  position: relative;
  cursor: pointer;
  border-radius: var(--r-lg);
  isolation: isolate;
}

.tcard-media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--night-3);
  box-shadow: var(--shadow-card);
  transform: translateZ(0);
}

.tcard-media::before {
  /* 柔光描边 */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  border: 1px solid rgba(247, 225, 215, .1);
  pointer-events: none;
  transition: border-color var(--dur-base);
}

.tcard-media::after {
  /* 底部暗场托字 + 暖光 */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(11, 7, 9, .28) 0%, rgba(11, 7, 9, 0) 22%, rgba(11, 7, 9, 0) 46%, rgba(20, 6, 12, .72) 78%, rgba(11, 7, 9, .96) 100%);
  pointer-events: none;
}

.tcard-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  transition: transform 1.2s var(--ease-slow), filter 1.2s var(--ease-slow);
  filter: saturate(1.02) contrast(1.02);
}

.tcard-status {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 12px 0 11px;
  border-radius: var(--r-full);
  background: rgba(11, 7, 9, .5);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(247, 225, 215, .14);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--txt);
}

.tcard-status.is-off {
  color: var(--txt-low);
}

.tcard-no {
  position: absolute;
  top: 12px;
  right: 16px;
  z-index: 4;
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 20px;
  color: rgba(247, 237, 232, .7);
  text-shadow: 0 2px 12px rgba(0, 0, 0, .5);
}

.tcard-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  padding: 18px 18px 18px;
}

.tcard-name {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .45);
}

.tcard-name span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tcard-name small {
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 400;
  color: var(--champagne);
  letter-spacing: .08em;
  white-space: nowrap;
}

.tcard-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--rouge-hi);
}

.tcard-meta::before {
  content: "";
  width: 14px;
  height: 1px;
  background: currentColor;
}

.tcard-bio {
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--txt-mid);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: pre-line;
  max-height: 0;
  opacity: 0;
  transition: max-height .6s var(--ease-slow), opacity .5s var(--ease);
}

.tcard-book {
  position: absolute;
  right: 14px;
  bottom: 18px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 16px;
  border-radius: var(--r-full);
  background: var(--grad-rouge);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .08em;
  box-shadow: 0 10px 26px -8px rgba(226, 87, 122, .8);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
}

.tcard-book .ico {
  font-size: 13px;
}

@media (hover: hover) {
  .tcard:hover .tcard-media img {
    transform: scale(1.06);
    filter: saturate(1.12) contrast(1.04) brightness(1.04);
  }

  .tcard:hover .tcard-media {
    box-shadow: var(--shadow-card), 0 0 0 1px rgba(240, 124, 151, .4), 0 30px 70px -30px rgba(226, 87, 122, .55);
  }

  .tcard:hover .tcard-media::before {
    border-color: rgba(240, 124, 151, .45);
  }

  .tcard:hover .tcard-bio {
    max-height: 3.4em;
    opacity: 1;
  }

  .tcard:hover .tcard-book {
    opacity: 1;
    transform: none;
  }

  .tcard:hover .tcard-body {
    padding-right: 96px;
  }
}

@media (hover: none) {
  .tcard-book {
    opacity: 1;
    transform: none;
    width: 34px;
    padding: 0;
    font-size: 0;
    gap: 0;
  }

  .tcard-book .ico {
    font-size: 15px;
  }

  .tcard-body {
    padding-right: 58px;
  }
}

@media (max-width: 760px) {
  .tcard,
  .tcard-media {
    border-radius: var(--r-md);
  }

  .tcard-status {
    top: 10px;
    left: 10px;
    height: 24px;
    padding: 0 9px;
    font-size: 10.5px;
    gap: 6px;
  }

  .tcard-no {
    top: 8px;
    right: 12px;
    font-size: 16px;
  }

  .tcard-body {
    padding: 12px 50px 12px 12px;
  }

  .tcard-name {
    font-size: 18px;
    gap: 6px;
  }

  .tcard-name small {
    display: none;
  }

  .tcard-meta {
    font-size: 11px;
    margin-top: 3px;
  }

  .tcard-book {
    right: 10px;
    bottom: 12px;
    width: 32px;
    height: 32px;
  }
}

/* ==================== 页脚 ==================== */
.footer {
  position: relative;
  overflow: hidden;
  padding: 90px 0 40px;
  border-top: 1px solid var(--line-soft);
  background: radial-gradient(60% 80% at 80% 100%, rgba(168, 38, 74, .16), transparent 70%), var(--night);
}

.footer-top {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-slogan {
  margin-top: 22px;
  max-width: 30em;
  color: var(--txt-low);
  font-size: 13.5px;
  line-height: 1.9;
}

.footer h4 {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 500;
  font-size: 18px;
  color: var(--champagne);
  margin-bottom: 18px;
}

.footer-links li+li {
  margin-top: 10px;
}

.footer-links a,
.footer-links button {
  font-size: 14px;
  color: var(--txt-mid);
  transition: color var(--dur-base);
}

.footer-links a:hover,
.footer-links button:hover {
  color: var(--rouge-hi);
}

.footer-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  color: var(--txt-faint);
  font-size: 12px;
  letter-spacing: .04em;
}

.footer-word {
  position: absolute;
  right: -2vw;
  bottom: -5vw;
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(120px, 22vw, 340px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(240, 124, 151, .12);
  pointer-events: none;
  user-select: none;
}

@media (max-width: 760px) {
  .footer {
    padding: 64px 0 28px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 36px 20px;
  }

  .footer-brand-col {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    margin-top: 44px;
  }
}

/* ==================== 手机底部 Tab ==================== */
.tabbar {
  display: none;
}

@media (max-width: 760px) {
  body.has-tabbar {
    padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  }

  .tabbar {
    display: block;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    z-index: 1000;
    height: var(--tabbar-h);
    border-radius: 22px;
    background: rgba(22, 13, 17, .78);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid rgba(247, 225, 215, .1);
    box-shadow: 0 20px 50px -18px rgba(0, 0, 0, .9);
  }

  body.has-tabbar {
    padding-bottom: calc(var(--tabbar-h) + 20px + env(safe-area-inset-bottom));
  }

  .tabbar-inner {
    height: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
  }

  .tabbar a,
  .tabbar button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 100%;
    font-size: 10.5px;
    letter-spacing: .06em;
    color: var(--txt-low);
    transition: color var(--dur-base);
  }

  .tabbar .ico {
    font-size: 21px;
  }

  .tabbar a.active {
    color: var(--txt);
  }

  .tabbar a.active .ico {
    color: var(--rouge-hi);
  }

  .tabbar .tab-cta {
    color: #fff;
  }

  .tabbar .tab-cta span {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-top: -26px;
    border-radius: 50%;
    background: var(--grad-rouge);
    box-shadow: 0 10px 28px -6px rgba(226, 87, 122, .85), 0 0 0 5px rgba(11, 7, 9, .9);
    animation: cta-breathe 2.8s var(--ease) infinite;
  }

  .tabbar .tab-cta .ico {
    font-size: 22px;
  }

  .tabbar .tab-cta b {
    font-weight: 500;
    color: var(--rouge-hi);
  }
}

@keyframes cta-breathe {

  0%,
  100% {
    box-shadow: 0 10px 28px -6px rgba(226, 87, 122, .85), 0 0 0 5px rgba(11, 7, 9, .9);
  }

  50% {
    box-shadow: 0 10px 38px -2px rgba(240, 124, 151, 1), 0 0 0 5px rgba(11, 7, 9, .9);
  }
}

/* ==================== 悬浮客服（PC） ==================== */
.fab-kefu {
  position: fixed;
  right: 28px;
  bottom: 32px;
  z-index: 900;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 24px 0 8px;
  border-radius: var(--r-full);
  background: rgba(22, 13, 17, .78);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(240, 124, 151, .35);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .9), 0 0 40px -12px rgba(226, 87, 122, .5);
  color: var(--txt);
  font-size: 13.5px;
  letter-spacing: .06em;
  transition: transform var(--dur-base) var(--ease), border-color var(--dur-base);
}

.fab-kefu:hover {
  transform: translateY(-3px);
  border-color: rgba(240, 124, 151, .7);
}

.fab-kefu i {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--grad-rouge);
  font-size: 18px;
}

@media (max-width: 760px) {
  .fab-kefu {
    display: none;
  }
}

/* ==================== 跑马灯 ==================== */
.marquee {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 22px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 46s linear infinite;
}

.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(18px, 2.4vw, 28px);
  color: var(--txt-mid);
  white-space: nowrap;
}

.marquee-track span em {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 500;
  color: var(--champagne);
  font-size: 1.05em;
}

.marquee-track span i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rouge);
  box-shadow: 0 0 12px var(--rouge);
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ==================== 客服弹窗 ==================== */
.kefu-overlay,
.share-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(6, 3, 5, .72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity .3s var(--ease);
}

.kefu-overlay.is-open,
.share-overlay.is-open {
  opacity: 1;
}

.kefu-card {
  position: relative;
  width: 100%;
  max-width: 380px;
  padding: 40px 30px 28px;
  text-align: center;
  border-radius: var(--r-xl);
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(226, 87, 122, .3), rgba(226, 87, 122, 0) 62%),
    radial-gradient(80% 50% at 50% 100%, rgba(233, 203, 160, .08), transparent 70%),
    #150c10;
  border: 1px solid rgba(247, 225, 215, .12);
  box-shadow: var(--shadow-float), 0 0 80px -30px rgba(226, 87, 122, .6);
  transform: translateY(24px) scale(.96);
  transition: transform .45s var(--ease-slow);
}

.kefu-overlay.is-open .kefu-card {
  transform: none;
}

.kefu-close,
.share-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--txt-mid);
  background: rgba(247, 225, 215, .06);
  border: 1px solid var(--line);
  transition: color var(--dur-base), background var(--dur-base);
}

.kefu-close:hover,
.share-close:hover {
  color: #fff;
  background: rgba(226, 87, 122, .25);
}

.kefu-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--grad-rouge);
  box-shadow: 0 12px 36px -8px rgba(226, 87, 122, .8), 0 0 0 6px rgba(226, 87, 122, .12);
}

.kefu-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.35;
  color: #fff;
}

.kefu-subtitle {
  margin-top: 8px;
  color: var(--txt-low);
  font-size: 13px;
}

.kefu-qr-wrap {
  position: relative;
  width: 212px;
  margin: 24px auto 0;
  padding: 12px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(233, 203, 160, .5), 0 0 0 7px rgba(233, 203, 160, .1), 0 20px 50px -20px rgba(226, 87, 122, .7);
  overflow: hidden;
}

.kefu-qr-wrap img {
  width: 100%;
  border-radius: 10px;
}

.kefu-scanline {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 12px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(226, 87, 122, .9), transparent);
  box-shadow: 0 0 14px rgba(226, 87, 122, .9);
  animation: scan 2.6s var(--ease) infinite;
  pointer-events: none;
}

@keyframes scan {
  0% {
    transform: translateY(0);
    opacity: 0;
  }

  15% {
    opacity: 1;
  }

  85% {
    opacity: 1;
  }

  100% {
    transform: translateY(186px);
    opacity: 0;
  }
}

.kefu-online {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 20px;
  font-size: 12.5px;
  color: var(--online);
  letter-spacing: .08em;
}

.kefu-hint {
  margin-top: 10px;
  color: var(--txt-mid);
  font-size: 13.5px;
  line-height: 1.8;
}

.kefu-hint b {
  color: var(--rouge-hi);
  font-weight: 600;
}

.kefu-copy {
  margin-top: 18px;
}

/* ==================== 海报弹窗 ==================== */
.share-panel {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  display: flex;
  flex-direction: column;
  border-radius: var(--r-xl);
  background: radial-gradient(120% 50% at 50% 0%, rgba(226, 87, 122, .18), transparent 60%), #150c10;
  border: 1px solid rgba(247, 225, 215, .12);
  box-shadow: var(--shadow-float);
  overflow: hidden;
  transform: translateY(24px) scale(.97);
  transition: transform .45s var(--ease-slow);
}

.share-overlay.is-open .share-panel {
  transform: none;
}

.share-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  flex-shrink: 0;
}

.share-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: .16em;
}

.share-close {
  top: 14px;
}

.share-body {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  overflow: auto;
}

.share-poster-img {
  width: 100%;
  max-height: calc(100dvh - 200px);
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(233, 203, 160, .2);
}

.share-loading,
.share-error {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--txt-low);
  font-size: 13.5px;
  text-align: center;
}

.share-error span {
  font-size: 12px;
  color: var(--txt-faint);
}

.share-spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid rgba(240, 124, 151, .2);
  border-top-color: var(--rouge-hi);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.share-foot {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 18px 22px 22px;
}

.share-tip {
  font-size: 13px;
  color: var(--txt-mid);
}

.share-tip b {
  color: var(--rouge-hi);
  font-weight: 600;
}

@media (max-width: 760px) {

  .kefu-overlay,
  .share-overlay {
    padding: 14px;
  }

  .kefu-card {
    padding: 36px 22px 24px;
    border-radius: var(--r-lg);
  }

  .kefu-qr-wrap {
    width: 196px;
  }

  .share-panel {
    border-radius: var(--r-lg);
  }

  .share-head {
    height: 56px;
  }

  .share-close {
    top: 10px;
  }

  .share-body {
    padding: 0 14px;
  }

  .share-poster-img {
    max-height: calc(100dvh - 170px);
  }
}
