/* 10-second official-site opening animation for index.html */
.site-intro {
  --intro-red: var(--primary, #981b38);
  --intro-red-deep: var(--primary-deep, #5f0f22);
  --intro-gold: var(--accent, #cfa246);
  --intro-gold-light: var(--accent-light, #f2d889);
  --intro-ink: var(--text, #241714);
  --intro-paper: var(--surface, #fffdf7);
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--intro-ink);
  background:
    radial-gradient(circle at 18% 18%, rgba(207, 162, 70, 0.28), transparent 22rem),
    radial-gradient(circle at 78% 16%, rgba(152, 27, 56, 0.22), transparent 28rem),
    radial-gradient(circle at 50% 112%, rgba(207, 162, 70, 0.22), transparent 30rem),
    linear-gradient(145deg, #fffdf7 0%, #fbf5ea 46%, #f4e5cf 100%);
  pointer-events: auto;
  animation: gqcc-intro-shell 10s linear forwards;
}

html.site-intro-running,
body.site-intro-active {
  overflow: hidden;
}

.site-intro.is-leaving {
  animation: gqcc-intro-leave 0.72s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.site-intro::before,
.site-intro::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.site-intro::before {
  background:
    linear-gradient(rgba(152, 27, 56, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(152, 27, 56, 0.04) 1px, transparent 1px),
    linear-gradient(45deg, transparent 0 48%, rgba(207, 162, 70, 0.08) 49% 51%, transparent 52% 100%);
  background-size: 54px 54px, 54px 54px, 140px 140px;
  opacity: 0;
  transform: scale(1.04);
  animation: gqcc-intro-grid 10s ease-in-out forwards;
}

.site-intro::after {
  background:
    radial-gradient(circle at 50% 50%, transparent 0 22%, rgba(255, 253, 247, 0.4) 23% 42%, transparent 43%),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.48), transparent);
  mix-blend-mode: screen;
  opacity: 0;
  transform: translateX(-32%);
  animation: gqcc-intro-sheen 10s ease-in-out forwards;
}

.site-intro-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.64;
}

.intro-aura {
  position: absolute;
  width: min(74vw, 760px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 253, 247, 0.86) 0 25%, rgba(207, 162, 70, 0.2) 26% 28%, transparent 29% 100%),
    conic-gradient(from 10deg, transparent 0 7%, rgba(207, 162, 70, 0.34) 8% 12%, transparent 13% 24%, rgba(152, 27, 56, 0.28) 25% 31%, transparent 32% 100%);
  filter: blur(0.2px) drop-shadow(0 30px 80px rgba(95, 15, 34, 0.1));
  opacity: 0;
  transform: scale(0.72) rotate(-16deg);
  animation: gqcc-intro-aura 10s cubic-bezier(0.2, 0.72, 0.18, 1) forwards;
}

.intro-orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  border: 1px solid rgba(207, 162, 70, 0.32);
  transform: translate(-50%, -50%);
  opacity: 0;
  animation: gqcc-intro-orbit 10s ease-in-out forwards;
}

.intro-orbit-1 {
  width: min(82vw, 860px);
  aspect-ratio: 1;
  border-top-color: rgba(152, 27, 56, 0.5);
}

.intro-orbit-2 {
  width: min(61vw, 620px);
  aspect-ratio: 1;
  border-right-color: rgba(207, 162, 70, 0.7);
  animation-delay: 0.18s;
}

.intro-orbit-3 {
  width: min(43vw, 420px);
  aspect-ratio: 1;
  border-bottom-color: rgba(152, 27, 56, 0.42);
  animation-delay: 0.34s;
}

.site-intro-stage {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  width: min(92vw, 960px);
  padding: clamp(1.4rem, 3vw, 2.5rem);
  text-align: center;
}

.intro-logo-wrap {
  position: relative;
  width: clamp(126px, 18vw, 196px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(18px) scale(0.72);
  animation: gqcc-intro-logo 10s cubic-bezier(0.2, 0.72, 0.18, 1) forwards;
}

.intro-logo-wrap::before,
.intro-logo-wrap::after {
  content: "";
  position: absolute;
  inset: -16%;
  border-radius: 50%;
  pointer-events: none;
}

.intro-logo-wrap::before {
  border: 1px solid rgba(207, 162, 70, 0.55);
  box-shadow:
    0 0 0 12px rgba(255, 253, 247, 0.62),
    0 0 38px rgba(207, 162, 70, 0.34),
    inset 0 0 34px rgba(152, 27, 56, 0.08);
  animation: gqcc-intro-pulse 2.8s ease-in-out 0.8s infinite;
}

.intro-logo-wrap::after {
  background: conic-gradient(from 180deg, transparent 0 18%, rgba(207, 162, 70, 0.78) 20% 23%, transparent 24% 44%, rgba(152, 27, 56, 0.68) 45% 48%, transparent 49% 100%);
  mask: radial-gradient(circle, transparent 0 61%, #000 62% 66%, transparent 67% 100%);
  animation: gqcc-intro-spin 7.4s linear 0.4s infinite;
}

.intro-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 16px 28px rgba(95, 15, 34, 0.15));
  transform: scale(0.9);
  animation: gqcc-intro-logo-image 10s cubic-bezier(0.2, 0.72, 0.18, 1) forwards;
}

.intro-kicker {
  margin: clamp(1.1rem, 2vw, 1.35rem) 0 0;
  color: var(--intro-red-deep);
  font-size: clamp(0.75rem, 1.5vw, 0.98rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(12px);
  animation: gqcc-intro-rise-soft 10s ease forwards;
}

.intro-title {
  margin: 0.35rem 0 0;
  font-family: var(--font-serif, serif);
  color: var(--intro-red-deep);
  font-size: clamp(2.6rem, 8vw, 5.6rem);
  line-height: 1.03;
  letter-spacing: 0.08em;
  text-shadow: 0 10px 34px rgba(95, 15, 34, 0.12);
  opacity: 0;
  transform: translateY(18px) scale(0.94);
  animation: gqcc-intro-title 10s cubic-bezier(0.2, 0.72, 0.18, 1) forwards;
}

.intro-title span {
  display: inline-block;
  background: linear-gradient(90deg, var(--intro-red-deep), var(--intro-red), #b77c28, var(--intro-red-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.intro-subtitle {
  display: block;
  margin-top: 0.75rem;
  font-family: var(--font-sans, sans-serif);
  color: rgba(77, 52, 45, 0.9);
  font-size: clamp(1rem, 2vw, 1.38rem);
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.12em;
  opacity: 0;
  transform: translateY(12px);
  animation: gqcc-intro-subtitle 10s ease forwards;
}

.intro-values {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-top: clamp(1.35rem, 2.8vw, 1.9rem);
  min-height: 2.65rem;
}

.intro-values span,
.intro-modules span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(207, 162, 70, 0.38);
  background: rgba(255, 253, 247, 0.76);
  box-shadow: 0 12px 28px rgba(95, 15, 34, 0.08);
  color: var(--intro-red-deep);
  backdrop-filter: blur(12px);
}

.intro-values span {
  min-width: 7.2em;
  padding: 0.55rem 0.92rem;
  border-radius: 999px;
  font-size: clamp(0.88rem, 1.55vw, 1.05rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  opacity: 0;
  transform: translateY(18px) scale(0.92);
  animation: gqcc-intro-value 10s cubic-bezier(0.2, 0.72, 0.18, 1) forwards;
}

.intro-values span:nth-child(1) { animation-delay: 0s; }
.intro-values span:nth-child(2) { animation-delay: 0.22s; }
.intro-values span:nth-child(3) { animation-delay: 0.44s; }
.intro-values span:nth-child(4) { animation-delay: 0.66s; }

.intro-modules {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.72rem;
  width: min(100%, 820px);
  margin-top: clamp(1.15rem, 2.6vw, 1.75rem);
}

.intro-modules span {
  min-height: 3.15rem;
  padding: 0.6rem 0.62rem;
  border-radius: 14px;
  font-size: clamp(0.78rem, 1.25vw, 0.95rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  opacity: 0;
  transform: translateY(24px) rotateX(12deg);
  animation: gqcc-intro-module 10s cubic-bezier(0.2, 0.72, 0.18, 1) forwards;
}

.intro-modules span:nth-child(1) { animation-delay: 0s; }
.intro-modules span:nth-child(2) { animation-delay: 0.1s; }
.intro-modules span:nth-child(3) { animation-delay: 0.2s; }
.intro-modules span:nth-child(4) { animation-delay: 0.3s; }
.intro-modules span:nth-child(5) { animation-delay: 0.4s; }
.intro-modules span:nth-child(6) { animation-delay: 0.5s; }

.intro-mission {
  margin: clamp(1.15rem, 2.2vw, 1.65rem) 0 0;
  color: rgba(77, 52, 45, 0.86);
  font-size: clamp(0.9rem, 1.6vw, 1.1rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  opacity: 0;
  transform: translateY(16px);
  animation: gqcc-intro-mission 10s ease forwards;
}

.intro-enter {
  position: absolute;
  left: 50%;
  bottom: clamp(2rem, 5vh, 3.8rem);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: rgba(95, 15, 34, 0.86);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  transform: translateX(-50%);
  opacity: 1;
}

.intro-enter:focus-visible {
  outline: 2px solid rgba(152, 27, 56, 0.7);
  outline-offset: 8px;
}

.intro-enter::before,
.intro-enter::after {
  content: "";
  width: 2.4rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(207, 162, 70, 0.72));
}

.intro-enter::after {
  background: linear-gradient(90deg, rgba(207, 162, 70, 0.72), transparent);
}

.intro-progress {
  position: absolute;
  left: clamp(1.25rem, 4vw, 3rem);
  right: clamp(1.25rem, 4vw, 3rem);
  bottom: clamp(1rem, 2.8vh, 1.5rem);
  z-index: 3;
  height: 3px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(95, 15, 34, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 253, 247, 0.64);
}

.intro-progress span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--intro-red), var(--intro-gold), var(--intro-gold-light));
  box-shadow: 0 0 18px rgba(207, 162, 70, 0.45);
  animation: gqcc-intro-progress 10s linear forwards;
}


/* 开场动画期间，暂停/不启动首页首屏原本的 Logo 描边与背景动画；开场结束后再从 0 秒开始播放，避免被开场层盖住。 */
html.site-intro-running .home-cover::before,
html.site-intro-running body::after,
html.site-intro-running .hero-logo-draw::before,
html.site-intro-running .hero-logo-draw::after,
html.site-intro-running .hero-logo-draw-image,
html.site-intro-running .logo-burst-line,
html.site-intro-running .logo-draw-line {
  animation: none !important;
}

@keyframes gqcc-intro-shell {
  0%, 90% { opacity: 1; visibility: visible; }
  96% { opacity: 1; visibility: visible; }
  100% { opacity: 0; visibility: hidden; pointer-events: none; }
}

@keyframes gqcc-intro-leave {
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}

@keyframes gqcc-intro-grid {
  0% { opacity: 0; transform: scale(1.08) translateY(16px); }
  10%, 88% { opacity: 1; }
  100% { opacity: 0; transform: scale(1) translateY(-10px); }
}

@keyframes gqcc-intro-sheen {
  0%, 18% { opacity: 0; transform: translateX(-46%); }
  36% { opacity: 0.62; transform: translateX(20%); }
  56%, 78% { opacity: 0; transform: translateX(44%); }
  92% { opacity: 0.38; transform: translateX(4%); }
  100% { opacity: 0; transform: translateX(28%); }
}

@keyframes gqcc-intro-aura {
  0% { opacity: 0; transform: scale(0.7) rotate(-18deg); }
  12%, 84% { opacity: 0.9; }
  52% { transform: scale(0.98) rotate(10deg); }
  88% { opacity: 0.88; transform: scale(1.08) rotate(18deg); }
  100% { opacity: 0; transform: scale(1.18) rotate(28deg); }
}

@keyframes gqcc-intro-orbit {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.68) rotate(-18deg); }
  14%, 82% { opacity: 0.78; }
  72% { transform: translate(-50%, -50%) scale(1.02) rotate(22deg); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.18) rotate(42deg); }
}

@keyframes gqcc-intro-logo {
  0% { opacity: 0; transform: translateY(18px) scale(0.72); }
  10% { opacity: 1; transform: translateY(0) scale(1.02); }
  20%, 82% { opacity: 1; transform: translateY(0) scale(1); }
  91% { opacity: 1; transform: translateY(-8px) scale(0.84); }
  100% { opacity: 0; transform: translateY(-18px) scale(0.7); }
}

@keyframes gqcc-intro-logo-image {
  0% { opacity: 0; transform: scale(0.82); clip-path: circle(0% at 50% 50%); }
  14% { opacity: 1; transform: scale(1); clip-path: circle(52% at 50% 50%); }
  80% { opacity: 1; transform: scale(1); }
  96% { opacity: 0.28; transform: scale(0.86); }
  100% { opacity: 0; transform: scale(0.78); }
}

@keyframes gqcc-intro-pulse {
  0%, 100% { transform: scale(1); opacity: 0.72; }
  50% { transform: scale(1.06); opacity: 1; }
}

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

@keyframes gqcc-intro-rise-soft {
  0%, 12% { opacity: 0; transform: translateY(12px); }
  20%, 80% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-10px); }
}

@keyframes gqcc-intro-title {
  0%, 18% { opacity: 0; transform: translateY(18px) scale(0.94); filter: blur(5px); }
  28%, 82% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
  92% { opacity: 1; transform: translateY(-8px) scale(0.96); }
  100% { opacity: 0; transform: translateY(-18px) scale(0.9); }
}

@keyframes gqcc-intro-subtitle {
  0%, 28% { opacity: 0; transform: translateY(12px); }
  38%, 82% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-12px); }
}

@keyframes gqcc-intro-value {
  0%, 32% { opacity: 0; transform: translateY(18px) scale(0.92); }
  42%, 74% { opacity: 1; transform: translateY(0) scale(1); }
  84%, 100% { opacity: 0; transform: translateY(-14px) scale(0.96); }
}

@keyframes gqcc-intro-module {
  0%, 54% { opacity: 0; transform: translateY(24px) rotateX(12deg); }
  64%, 86% { opacity: 1; transform: translateY(0) rotateX(0); }
  100% { opacity: 0; transform: translateY(-16px) rotateX(0); }
}

@keyframes gqcc-intro-mission {
  0%, 68% { opacity: 0; transform: translateY(16px); }
  78%, 90% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-14px); }
}

@keyframes gqcc-intro-progress {
  to { width: 100%; }
}

@media (max-width: 760px) {
  .site-intro-stage {
    width: min(94vw, 540px);
    padding-inline: 1rem;
  }

  .intro-title {
    letter-spacing: 0.04em;
  }

  .intro-subtitle,
  .intro-mission,
  .intro-kicker {
    letter-spacing: 0.06em;
  }

  .intro-values {
    gap: 0.5rem;
  }

  .intro-values span {
    min-width: calc(50% - 0.5rem);
    padding: 0.5rem 0.55rem;
  }

  .intro-modules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 420px);
    gap: 0.55rem;
  }

  .intro-modules span {
    min-height: 2.7rem;
    border-radius: 12px;
  }

  .intro-enter {
    bottom: 3.2rem;
    width: max-content;
    font-size: 0.78rem;
  }
}

@media (max-width: 420px) {
  .intro-logo-wrap {
    width: 112px;
  }

  .intro-title {
    font-size: clamp(2.25rem, 16vw, 3.15rem);
  }

  .intro-values span {
    font-size: 0.82rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-intro,
  .site-intro *,
  .site-intro::before,
  .site-intro::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .site-intro {
    animation: gqcc-intro-shell 10s linear forwards !important;
  }

  .intro-progress span {
    animation: gqcc-intro-progress 10s linear forwards !important;
  }
}
