/* Tailwind配置 */
@layer utilities {
  .content-auto {
    content-visibility: auto;
  }
  .text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
  }
  .bg-glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  .grid-pattern {
    background-image: radial-gradient(rgba(147, 51, 234, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
  }
  .animate-float {
    animation: float 6s ease-in-out infinite;
  }
  .animate-float-delay {
    animation: float 6s ease-in-out 2s infinite;
  }
  @keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
  }
  .product-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }
  .product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(147, 51, 234, 0.1), 0 10px 10px -5px rgba(147, 51, 234, 0.04);
  }
  .gradient-border {
    position: relative;
    border-radius: 0.75rem;
    z-index: 0;
  }
  .gradient-border::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 0.85rem;
    background: linear-gradient(135deg, #9333ea, #3b82f6, #ec4899);
    z-index: -1;
    animation: rotate 6s linear infinite;
  }
  @keyframes rotate {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
  }
  .feature-icon {
    transition: all 0.3s ease;
  }
  .feature-card:hover .feature-icon {
    transform: scale(1.1);
    color: #ec4899;
  }
  /* 扫光效果 */
  .shine-effect {
    position: relative;
    overflow: hidden;
  }
  .shine-effect::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
      to right,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.3) 50%,
      rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    animation: shine 6s infinite;
  }
  @keyframes shine {
    0% {
      transform: translateX(-100%) rotate(30deg);
    }
    100% {
      transform: translateX(100%) rotate(30deg);
    }
  }
  /* 模态框样式 */
  .modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  .modal-backdrop.active {
    opacity: 1;
    visibility: visible;
  }
  .modal-content {
    background-color: #1e293b;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s ease;
  }
  .modal-backdrop.active .modal-content {
    transform: scale(1);
  }
  .close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
  }
  /* 应用场景卡片动画 */
  .scenario-card {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }
  .scenario-card.left {
    transform: translateX(-50px);
  }
  .scenario-card.right {
    transform: translateX(50px);
  }
  .scenario-card.visible {
    opacity: 1;
    transform: translateX(0);
  }
  
  /* 3D价格方案样式 - 全端适用 */
  .pricing-3d-container {
    perspective: 1000px;
    position: relative;
    height: 550px;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
  }
  
  .pricing-3d-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }
  
  .pricing-3d-card {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 80%;
    max-width: 320px;
    transform-origin: center;
    backface-visibility: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
  }
  
  /* 3D布局 - 三个卡片的位置 */
  .pricing-3d-card.prev {
    transform: translate(-140%, -50%) rotateY(25deg) scale(0.85);
    z-index: 10;
    opacity: 0.8;
  }
  
  .pricing-3d-card.current {
    transform: translate(-50%, -50%) rotateY(0) scale(1);
    z-index: 30;
    box-shadow: 0 20px 40px rgba(147, 51, 234, 0.3);
  }
  
  .pricing-3d-card.next {
    transform: translate(40%, -50%) rotateY(-25deg) scale(0.85);
    z-index: 20;
    opacity: 0.8;
  }
  
  /* 最受欢迎标签 - 优化显示 */
  .popular-badge {
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #9333ea;
    color: white;
    font-size: 12px;
    padding: 2px 12px;
    border-radius: 20px;
    white-space: nowrap;
    z-index: 40;
  }
  
  /* 滑动控制按钮 */
  .pricing-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 40;
    padding: 0 10px;
  }
  
  .pricing-nav button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
  }
  
  .pricing-nav button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
  }
  
  /* 指示器 */
  .pricing-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
  }
  
  .pricing-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
  }
  
  .pricing-indicator.active {
    background: #9333ea;
    width: 24px;
    border-radius: 4px;
  }
  
  /* 视频播放器样式 */
  .video-container {
    position: relative;
    width: 100%;
    overflow: hidden;
  }
  
  .video-player {
    width: 100%;
    height: auto;
    display: block;
  }
  
  .video-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 10;
  }
  
  .sound-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.6);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
  }
  
  .sound-toggle:hover {
    background-color: rgba(147, 51, 234, 0.8);
    transform: scale(1.1);
  }
  
  /* 适配大屏幕 */
  @media (min-width: 1024px) {
    .pricing-3d-container {
      height: 600px;
    }
    
    .pricing-3d-card {
      max-width: 360px;
    }
    
    .pricing-3d-card.prev {
      transform: translate(-160%, -50%) rotateY(30deg) scale(0.85);
    }
    
    .pricing-3d-card.next {
      transform: translate(60%, -50%) rotateY(-30deg) scale(0.85);
    }
  }
}
