/* 扩展的CSS变量 */
:root {
  --primary: 243 75% 59%;
  --primary-foreground: 0 0% 100%;
  --secondary: 0 0% 100%;
  --secondary-foreground: 217 33% 17%;
  --secondary-border: 220 13% 91%;
  --accent: 220 14% 96%;
  --accent-foreground: 217 33% 17%;
  --hover: 243 75% 65%;
  --destructive: 0 84% 60%;
  --destructive-foreground: 0 0% 100%;
  --input: 0 0% 100%;
  --input-border: 220 13% 91%;
  --ring: 243 75% 59%;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-card: 0 4px 24px 0 rgb(0 0 0 / 0.1);
  --gradient-glow: linear-gradient(90deg, transparent, hsl(243 75% 59% / 0.3), transparent);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --radius: 0.75rem;
}

/* 新增的网格布局 */
.md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.gap-6 { gap: 1.5rem; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.space-x-4 > * + * { margin-left: 1rem; }

/* 新增的定位和尺寸 */
.left-1\/2 { left: 50%; }
.bottom-4 { bottom: 1rem; }
.inset-x-0 { left: 0; right: 0; }
.top-2 { top: 0.5rem; }
.top-1\/2 { top: 50%; }
.bottom-2 { bottom: 0.5rem; }
.w-12 { width: 3rem; }
.w-2\/5 { width: 40%; }
.w-1\/2 { width: 50%; }
.h-12 { height: 3rem; }
.h-32 { height: 8rem; }
.h-10 { height: 2.5rem; }
.h-1\/2 { height: 50%; }
.max-w-2xl { max-width: 42rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-50 { max-width: 50%; }
.aspect-16-9 { aspect-ratio: 16/9; }
.aspect-16-10 { aspect-ratio: 16/10; }

/* 新增的间距 */
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-3_75 { padding-top: 0.9375rem; padding-bottom: 0.9375rem; }
.py-12_5 { padding-top: 3.125rem; padding-bottom: 3.125rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-1 { margin-bottom: 0.25rem; }
.m-4 { margin: 1rem; }
.ml-4 { margin-left: 1rem; }
.mr-4 { margin-right: 1rem; }

/* 新增的文字样式 */
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.text-center { text-align: center; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 新增的颜色 */
.text-brand-primary { color: hsl(var(--brand-primary)); }
.text-blue-700 { color: rgb(29 78 216); }
.text-green-700 { color: rgb(21 128 61); }
.text-purple-700 { color: rgb(126 34 206); }
.text-orange-700 { color: rgb(194 65 12); }
.text-pink-700 { color: rgb(190 24 93); }
.text-cyan-700 { color: rgb(14 116 144); }
.border-grey-700 { border-color: rgba(132, 128, 189, 0.7); }
.bg-background { background-color: hsl(var(--background)); }
.bg-white { background-color: white; }
.bg-brand-primary { background-color: hsl(var(--brand-primary)); }
.bg-muted { background-color: hsl(var(--muted)); }
.bg-muted-50 { background-color: hsl(var(--muted) / 0.5); }
.bg-button-dark { background-color: #120C37; }
.bg-blue-100 { background-color: rgb(219 234 254); }
.bg-green-100 { background-color: rgb(220 252 231); }
.bg-purple-100 { background-color: rgb(243 232 255); }
.bg-orange-100 { background-color: rgb(255 237 213); }
.bg-pink-100 { background-color: rgb(252 231 243); }
.bg-cyan-100 { background-color: rgb(207 250 254); }
.opacity-50 { opacity: 0.5; }
/* 新增的渐变 */
.bg-gradient-to-t { background-image: linear-gradient(to top, var(--tw-gradient-stops)); }
.from-black-40 { --tw-gradient-from: rgba(0,0,0,0.4); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent); }

/* 新增的边框和颜色 */
.border-blue-200 { border-color: rgb(191 219 254); }
.border-green-200 { border-color: rgb(187 247 208); }
.border-purple-200 { border-color: rgb(233 213 255); }
.border-orange-200 { border-color: rgb(254 215 170); }
.border-pink-200 { border-color: rgb(251 207 232); }
.border-cyan-200 { border-color: rgb(165 243 252); }
.border-grey-200 { border-color: rgba(53, 71, 90, 0.2); }

.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-2_5 { border-radius: 0.625rem; }
.rounded-full { border-radius: 50%; }

/* 新增的阴影 */
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05); }

/* 新增的过渡和变换 */
.transition-colors { transition: color, background-color, border-color; }
.duration-500 { transition-duration: 500ms; }
.ease-in-out { transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
.transform { transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); }
.-translate-x-1\/2 { --tw-translate-x: -50%; }
.translate-y-2 { --tw-translate-y: 0.5rem; }
.hover\:translate-y-0:hover { --tw-translate-y: 0px; }
.hover\:bg-muted-50:hover { background-color: hsl(var(--muted) / 0.5); }
.group:hover .group-hover\:opacity-100 { opacity: 1; }
.group:hover .group-hover\:translate-y-0 { --tw-translate-y: 0px; }

/* 新增的工具类 */
.cursor-pointer { cursor: pointer; }
.flex-1 { flex: 1 1 0%; }

/* 像素装饰效果 */
.pixel-decoration { position: relative; }
.pixel-decoration::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
radial-gradient(circle at 20% 50%, hsl(243 75% 59% / 0.1) 2px, transparent 2px),
radial-gradient(circle at 80% 20%, hsl(243 75% 59% / 0.05) 1px, transparent 1px),
radial-gradient(circle at 40% 80%, hsl(243 75% 59% / 0.08) 1.5px, transparent 1.5px);
  background-size: 50px 50px, 30px 30px, 40px 40px;
  pointer-events: none;
}

/* 案例卡片样式 */
.case-card-wrapper {
  background: linear-gradient(180deg, rgba(154,139,255,0) 30%, rgba(82,100,154,0.1));
  border-radius: 12px;
  box-shadow: 0 0 36px 0 rgba(24,29,112,0.06);
  flex-shrink: 0;
  height: 240px;
  overflow: hidden;
  padding: 1.5px;
  position: relative;
  width: 100%;
}
.case-card-wrapper::before {
  content: "";
  display: block;
  left: 50%;
  padding-bottom: 200%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 200%;
  z-index: 0;
}
.case-card-wrapper:hover { background: #fff; }
.case-card-wrapper:hover::before {
  animation: rotate-border 8s linear infinite;
  background: conic-gradient(
from 180deg at 50% 50%,
#9a8bff 0deg,
#ffac8b 45deg,
transparent 90deg,
transparent 180deg,
#9a8bff 180deg,
#ffac8b 225deg,
transparent 270deg
  );
  z-index: 0;
}
.case-flex {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  height: 100%;
}
.case-card {
  border-radius: 11.25px;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  background: white;
  height: 100%;
  z-index: 1;
  display: flex;
  flex-direction: column;
  text-decoration: none; 
}
.case-card-image {
  box-shadow: 0 -2.7px 16.2px 0 rgba(56,49,80,0.12);
  position: relative;
  transform-origin: right bottom;
  transition: transform 0.3s ease;
  object-position: top;
}
.case-card-wrapper:hover .case-card-image {
  transform: rotate(-10deg) translateX(24px);
}

/* 功能标签样式 */
.feature-tab { transition: var(--transition-smooth); }
.feature-tab.active { background-color: hsl(var(--background)); }
.feature-tab.active .flex > div:first-child {
  background-color: hsl(var(--brand-primary));
  color: white;
}
.feature-tab.active h3 { color: hsl(var(--brand-primary)); }
.feature-tab:not(.active) .flex > div:first-child {
  background-color: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
}
.feature-tab:not(.active) h3 { color: hsl(var(--foreground)); }

/* 新增的动画关键帧 */
@keyframes rotate-border {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 响应式设计更新 */
@media (max-width: 992px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(1, 1fr); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(1, 1fr); }
  .case-card-wrapper { height: 380px; }
  .case-flex {
    flex-direction: column;
  }
  .w-1\/2 {
    width: 100%;
    height: 50%;
  }
  .w-2\/5 {
    width: 90%;
  }
  .m-4 {
    margin: 5%;
  }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }

}

/* 按钮样式 */
.case-button {
border: none;
outline: none;
text-decoration: none; /* 移除下划线 */
gap: 0.5rem !important;
display: flex !important; /* 确保flex布局正常工作 */}
.case-button:focus { outline: none; box-shadow: none; }
.case-button:hover {
text-decoration: none; /* 悬停时也不显示下划线 */
}
/* 专门的图片容器类 */
.image-container-29-20 {
  width: 100%;
  aspect-ratio: 29/20;
  height: auto !important;
}
/* 60%高度的遮罩效果 */
.mask-60 {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
}

/* FAQ 手风琴样式 */
.faq-item {
margin-bottom: 1rem;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.faq-item:last-child {
margin-bottom: 0;
}

.faq-content {
position: relative;
background: white;
border-radius: 0.75rem;
transition: all 0.3s ease;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
overflow: hidden;

}

.faq-content:hover {
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.faq-item.active .faq-content {
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.faq-question {
position: relative;
cursor: pointer;
user-select: none;
border: none;
outline: none;
align-items: center;
gap: 1rem;
padding: 1rem 1.5rem;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
font-weight: 600;
font-size: 1.125rem;
line-height: 1.5;
color: hsl(var(--foreground));
background: transparent;
transition: all 0.1s ease;
width: 100%;
display: flex;
}


.faq-question:hover {
background-color: hsl(var(--muted) / 0.2);
}

.faq-item.active .faq-question {
background-color: hsl(var(--muted) / 0.1);
}

.faq-icon {
transition: transform 0.1s ease;
box-sizing: content-box;
flex-shrink: 0;
width: 1.25rem;
height: 1.25rem;
min-width: 1.25rem;
min-height: 1.25rem;
display: inline-flex;
align-items: center;
justify-content: center;
color: hsl(var(--muted-foreground));
}

.faq-item.active .faq-icon {
transform: rotate(180deg);
color: hsl(var(--foreground));
}

/* 确保SVG图标与文本行高对齐 */
.faq-question span {
flex: 1;
line-height: 1.5;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
text-align: left;
}

.faq-answer {
transition: max-height 0.15s ease, padding 0.15s ease;
overflow: hidden;
max-height: 0;
padding: 0 1.5rem;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
font-size: 1.125rem;
}

.faq-item.active .faq-answer {
max-height: 500px;
padding: 2rem 1.5rem 2rem 1.5rem;
}

/* FAQ 内容样式 */
.faq-answer ol, .faq-answer ul {
margin-top: 0.75rem;
margin-bottom: 0.75rem;
padding-left: 1rem;
}

.faq-answer li {
margin-bottom: 0.5rem;
line-height: 1.6;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.faq-answer li:last-child {
margin-bottom: 0;
}

.faq-answer strong {
color: hsl(var(--foreground));
font-weight: 600;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.faq-answer p {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
line-height: 1.6;
margin-bottom: 0.75rem;
}

.faq-answer p:last-child {
margin-bottom: 0.75rem;
}