

/* ===============================
   Wdev – custom styles and micro animations
   Safe to use with Tailwind
   =============================== */
html, body { overflow-x: hidden; }
.hero-bg { overflow: hidden; }  /* 只对 hero 区做裁切更稳妥 */
/* 定义从左边淡入的动画 */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 通用 class，添加到要动画的元素上 */
.fade-in-left {
  opacity: 0; /* 初始隐藏 */
  animation: fadeInLeft 1s ease forwards;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stat-item {
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
}
/* 外观和状态颜色 */
#accordion .accordion-item { background:#fff; }
#accordion .accordion-item .num { color:#2563eb; min-width:2.5rem; text-align:left; }
#accordion .accordion-item.open { background:#2563eb; color:#fff; box-shadow:0 10px 24px rgba(37,99,235,.25); }
#accordion .accordion-item.open .num { color:#fff; }

/* 内容收起展开动画 只会有一个打开所以用 max-height 过渡最稳 */
#accordion .accordion-content {
  max-height:0;
  overflow:hidden;
  opacity:0;
  transition:max-height .35s ease, opacity .25s ease;
}
#accordion .accordion-item.open .accordion-content {
  max-height:320px;   /* 足够容纳内容 可按需调大 */
  opacity:1;
}

/* 可点击态 */
#accordion .accordion-header { cursor:pointer; width:100%; }
/* 内容区域初始状态 */
#accordion .accordion-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    max-height 0.45s ease,
    opacity 0.35s ease,
    transform 0.35s ease;
}

/* 打开时 */
#accordion .accordion-item.open .accordion-content {
  max-height: 500px;   /* 足够容纳内容的值，可以调大 */
  opacity: 1;
  transform: translateY(0);
}
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in-left {
  opacity: 0; /* 初始隐藏 */
  transform: translateX(-50px);
}

.fade-in-left.show {
  animation: fadeInLeft 1s ease forwards;
}
.accordion-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-6px);
  transition: max-height 0.4s ease, opacity 0.35s ease, transform 0.35s ease;
}

/* 展开状态：柔和下滑 */
.accordion-item.open .accordion-content {
  max-height: 500px;   /* 根据内容高度调整，设大一点保证能容纳内容 */
  opacity: 1;
  transform: translateY(0);
}
.accordion-item {
  overflow: hidden;
  transition: all 0.4s ease;
  border-radius: 0.5rem; /* 保持圆角 */
}

/* 默认关闭状态 */
.accordion-item:not(.open) {
  max-height: 89px; /* 只显示 header 的高度，可调 */
}

/* 打开状态 */
.accordion-item.open {
  max-height: 300px; /* 足够显示内容的高度，可调 */
  box-shadow: 0 10px 24px rgba(0,0,0,0.1);
}

/* Design tokens */
:root{
  --brand-blue:#3b82f6;
  --dark-1:#0b1e32;
  --dark-2:#102a43;
  --ink-1:#0f172a;
  --muted:#64748b;
  --card:#ffffff;
  --ring:#93c5fd;
}
.hero-bg {
  background-color: #102a43;
  background-image: linear-gradient(160deg, #102a43 0%, #243b55 100%);
}
/* Smooth base transitions */
a, button, .btn, .card, .group img, .faq-question i{
  transition: all .25s ease;
}
.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
}
.accent-blue{
    color: #3b82f6;
}
/* 通用 hover 上浮 */
.hover-lift {
  display: inline-block;
  transition: transform 0.25s ease;
}

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

/* Hero decorative glow */
.hero-bg{
  position: relative;
  isolation: isolate;
}
.hero-bg::before{
  content:"";
  position: absolute;
  inset:-10% -20% auto -20%;
  height: 140%;
  background:
    radial-gradient(40rem 20rem at 80% 20%, rgba(59,130,246,.25), transparent 60%),
    radial-gradient(30rem 18rem at 10% 60%, rgba(14,165,233,.18), transparent 65%);
  filter: blur(12px);
  animation: heroFloat 12s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}
.hero-bg > *{ position: relative; z-index: 1; }

@keyframes heroFloat{
  0%   { transform: translateY(0) scale(1); opacity:.9; }
  100% { transform: translateY(-12px) scale(1.03); opacity:1; }
}

/* Header – subtle shadow when sticky area is present */
header.sticky{
  backdrop-filter: saturate(140%) blur(4px);
}

/* Buttons hover lift */

a.bg-blue-600:hover,
button.bg-blue-600:hover{
  transform: translateY(-2px);
}

/* Stats icons gentle bobbing */
section.bg-light-gray .p-6 i{
  display: inline-block;
}
section.bg-light-gray .p-6 i {
  display: inline-block;
}

/* Hover 时才触发一次动画 */
section.bg-light-gray .p-6 i:hover {
  animation: bob 1s ease-in-out 1;
}
.bg-dark-blue {
  background-color: #102a43;
}
/* 定义动画 */
@keyframes bob {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

/* Cards hover */
.group:hover{
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(2,6,23,.10);
}
.group:hover img{
  transform: scale(1.05);
}

.footer-link {
  color: orange;           /* 默认橘色 */
  text-decoration: none;   /* 去掉下划线 */
  transition: color 0.3s ease; /* 平滑过渡 */
}

.footer-link:hover {
  color: #fff;             /* hover 时变白色 */
}


/* Pricing section */
[aria-label="POPULAR"], .absolute.bg-blue-600{
  animation: pulseBand 2.2s ease-in-out infinite;
}
@keyframes pulseBand{
  0%  { transform: translate(-50%, -50%) scale(1); opacity:1; }
  50% { transform: translate(-50%, -50%) scale(1.06); opacity:.9; }
  100%{ transform: translate(-50%, -50%) scale(1); opacity:1; }
}

/* Pricing cards hover */
section .border.rounded-lg:hover,
section .border-2.rounded-lg:hover{
  transform: translateY(-6px);
  box-shadow: 0 28px 50px rgba(2,6,23,.12);
}

/* Testimonial quote badge bob */
.bg-dark-blue .absolute.bg-blue-600{
  animation: badgeBob 3.5s ease-in-out infinite;
}
@keyframes badgeBob{
  0%,100%{ transform: translate(0,0); }
  50%    { transform: translate(0,-8px); }
}

/* FAQ accordion – icon rotation and answer reveal feel */
.faq-question i{
  transition: transform .3s ease;
}
.faq-question:hover{ color: var(--brand-blue); }

/* For nicer reveal when JS toggles .hidden:
   we fade in the block on first paint */
.faq-answer{
  animation: answerAppear .28s ease both;
}
@keyframes answerAppear{
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Form – nice focus rings */
input[type="text"],
input[type="email"],
textarea{
  outline: none;
  box-shadow: 0 0 0 0 rgba(147,197,253,0);
}
input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus{
  box-shadow: 0 0 0 3px var(--ring);
}

/* Footer socials */
footer a:hover{
  transform: translateY(-2px);
}

/* Utilities you can sprinkle in HTML if needed */
.reveal-up{ opacity:0; transform: translateY(12px); transition: all .5s ease; }
.reveal-up.is-inview{ opacity:1; transform: translateY(0); }

/* Motion safety */
@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; }
}
