/* 每次打开页面的入场 */

.page-intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #061a3d;
  color: #fff;
  transition: transform 0.7s cubic-bezier(0.76, 0, 0.24, 1), opacity 0.5s ease;
}

.page-intro.is-done {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.page-intro-brand {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.4rem);
  letter-spacing: 0.18em;
  animation: introPop 0.7s cubic-bezier(0.22, 1.4, 0.36, 1) both;
}

.page-intro-bar {
  width: 160px;
  height: 3px;
  margin-top: 22px;
  background: rgba(255, 255, 255, 0.15);
  overflow: hidden;
}

.page-intro-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #3b7dd8, #fff);
  animation: introBar 0.8s ease 0.15s forwards;
}

body:not(.is-ready) .hero-brand,
body:not(.is-ready) .hero-bar,
body:not(.is-ready) .hero-support,
body:not(.is-ready) .hero-actions,
body:not(.is-ready) .quick-item {
  animation: none !important;
}

body.is-ready .quick-item {
  animation: riseIn 0.7s var(--ease, ease) both;
}

body.is-ready .quick-item:nth-child(1) { animation-delay: 0.05s; }
body.is-ready .quick-item:nth-child(2) { animation-delay: 0.12s; }
body.is-ready .quick-item:nth-child(3) { animation-delay: 0.19s; }
body.is-ready .quick-item:nth-child(4) { animation-delay: 0.26s; }

body.is-ready .site-header {
  animation: headerIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes introPop {
  from { opacity: 0; transform: scale(0.86) translateY(16px); }
  to { opacity: 1; transform: none; }
}

@keyframes introBar {
  to { width: 100%; }
}

@keyframes headerIn {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: none; }
}

/* 交互动效：悬停、点击、切换更有弹性 */

:root {
  --spring: cubic-bezier(0.22, 1.4, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

.btn,
.nav a,
.product-tab,
.quick-item,
.pillar,
.solution-item,
.cap-item,
.case-nav button,
.tags span {
  transition:
    transform 0.35s var(--spring),
    background 0.25s ease,
    color 0.25s ease,
    box-shadow 0.35s ease,
    border-color 0.25s ease;
}

.btn {
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 28px rgba(11, 61, 145, 0.22);
}

.btn:active {
  transform: translateY(1px) scale(0.97);
}

.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transform: scale(0);
  animation: ripple 0.6s ease-out;
  pointer-events: none;
}

.nav a:hover {
  transform: translateY(-2px);
}

.nav-cta:hover {
  transform: translateY(-2px) scale(1.04);
}

.quick-item strong,
.cap-item h3,
.pillar h3,
.solution-item h3 {
  transition: transform 0.35s var(--spring), color 0.25s;
}

.quick-item:hover {
  transform: translateY(-4px);
}

.quick-item:hover strong,
.cap-item:hover h3,
.pillar:hover h3,
.solution-item:hover h3 {
  transform: translateX(6px);
}

.pillar:hover,
.solution-item:hover,
.cap-item:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: 0 18px 40px rgba(11, 61, 145, 0.14);
}

.solution-item:hover .tags span {
  transform: translateY(-3px);
}

.solution-item:hover .tags span:nth-child(2) { transition-delay: 0.05s; }
.solution-item:hover .tags span:nth-child(3) { transition-delay: 0.1s; }

.product-tab:hover {
  transform: translateY(-3px);
}

.product-tab.is-active {
  animation: tabPop 0.4s var(--spring);
}

.product-panel.is-active {
  animation: panelIn 0.5s var(--ease-out);
}

.product-panel.is-active .point-list li {
  animation: itemIn 0.45s var(--ease-out) both;
}

.product-panel.is-active .point-list li:nth-child(1) { animation-delay: 0.05s; }
.product-panel.is-active .point-list li:nth-child(2) { animation-delay: 0.12s; }
.product-panel.is-active .point-list li:nth-child(3) { animation-delay: 0.19s; }
.product-panel.is-active .point-list li:nth-child(4) { animation-delay: 0.26s; }

.product-visual {
  transition: transform 0.45s var(--spring);
}

.product-panel.is-active .product-visual {
  animation: visualPop 0.6s var(--spring);
}

.case-nav button:hover {
  color: #fff;
}

.case-detail.is-leave {
  animation: caseOut 0.22s ease forwards;
}

.case-detail.is-enter {
  animation: caseIn 0.45s var(--spring);
}

.case-detail.is-enter .case-metrics span {
  animation: metricPop 0.4s var(--spring) both;
}

.case-detail.is-enter .case-metrics span:nth-child(2) { animation-delay: 0.08s; }
.case-detail.is-enter .case-metrics span:nth-child(3) { animation-delay: 0.16s; }

.hero-scroll {
  animation: floatY 1.6s ease-in-out infinite;
}

.tilt {
  transform-style: flat;
}

@keyframes ripple {
  to { transform: scale(4); opacity: 0; }
}

@keyframes tabPop {
  0% { transform: scale(0.92); }
  60% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

@keyframes panelIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

@keyframes itemIn {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: none; }
}

@keyframes visualPop {
  from { opacity: 0; transform: translateX(24px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

@keyframes caseOut {
  to { opacity: 0; transform: translateY(10px); }
}

@keyframes caseIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@keyframes metricPop {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes floatY {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 10px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .hero-brand,
  .hero-bar,
  .hero-support,
  .hero-actions,
  .quick-item,
  .reveal,
  .pillar,
  .solution-item {
    opacity: 1 !important;
    transform: none !important;
  }
}
