@layer utilities {
  .content-auto {
    content-visibility: auto;
  }

  .glass {
    @apply bg-white/10 backdrop-blur-lg border border-white/20 shadow-lg;
  }

  .glass-dark {
    @apply bg-dark/70 backdrop-blur-lg border border-dark/30 shadow-lg;
  }

  .text-gradient {
    @apply bg-clip-text text-transparent bg-gradient-to-r from-primary to-secondary;
  }

  .bg-grid {
    background-image: radial-gradient(
      rgba(14, 110, 182, 0.1) 1px,
      transparent 1px
    );
    background-size: 30px 30px;
  }

  .animate-float {
    animation: float 6s ease-in-out infinite;
  }

  @keyframes float {
    0% {
      transform: translateY(0px);
    }

    50% {
      transform: translateY(-20px);
    }

    100% {
      transform: translateY(0px);
    }
  }

  .animate-pulse-slow {
    animation: pulse 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  }

  .counter {
    transition: all 0.1s ease-out;
  }
}

.hero-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  background: linear-gradient(135deg, #0e6eb6 0%, #1e3a8a 100%);
}

/* ========== 轮播区域 ========== */
.carousel-section {
  margin-top: 50vh;
  padding: 80px 0px;
  width: 100vw;
  height: 40vh;
  display: flex;
  justify-content: center;
}

.carousel-container1 {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  transition: transform 2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 所有卡片统一基础样式 */
.carousel-container1 > div[class^="card-"] {
  /* width: 350px; */
  width: calc(100% / 4);
  padding: 30px;
  background: #ffffff;
  border-radius: 16px;
  text-align: center;
  /* 启用 transition，但由 JS 控制时机 */
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  backface-visibility: hidden;
}

.card-title {
  font-size: 1.4rem;
  margin-bottom: 16px;
  color: #2d3748;
  font-weight: 700;
}

.card-desc {
  color: #4a5568;
  line-height: 1.6;
  font-size: 0.95rem;
}

.carousel-indicators {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.indicator-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #aaa;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

.indicator-dot.active {
  background: #0e6eb6;
}

@media (max-width: 768px) {
  .carousel-section {
    margin-top: 30vh;
    padding: 60px 15px;
  }
  .carousel-container1 {
    height: 350px;
    gap: 20px;
  }
  .carousel-container1 > div[class^="card-"] {
    width: 220px;
    padding: 20px;
  }
  .card-title {
    font-size: 1.2rem;
  }
}

/* 粒子球容器 */
/* .particle-sphere-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
} */

#particleCanvas {
  display: block;
}

/* 文本内容 */
.hero-content {
  position: absolute;
  text-align: center;
  top: 29vh;
  max-width: 900px;
  padding: 0 20px;
  z-index: 1;
}

.hero-content h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
  background: linear-gradient(45deg, #0e6eb6, #f19601, #0e6eb6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 400% 400%;
  animation: gradient 15s ease infinite;
  text-shadow: 0 0 30px rgba(14, 110, 182, 0.5);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #b0b0d0;
  line-height: 1.6;
}

.hero-button {
  margin-top: 10px;
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(45deg, #0e6eb6, #f19601);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(14, 110, 182, 0.3);
  position: relative;
  overflow: hidden;
}

.hero-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(14, 110, 182, 0.5);
}

.hero-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.hero-button:hover::before {
  left: 100%;
}

/* 装饰光晕 */
.glow-effect {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.3;
  z-index: -1;
}

.glow-1 {
  width: 500px;
  height: 500px;
  background: #0e6eb6;
  top: 10%;
  left: 10%;
  animation: glowPulse 8s ease-in-out infinite;
}

.glow-2 {
  width: 600px;
  height: 600px;
  background: #f19601;
  bottom: 10%;
  right: 10%;
  animation: glowPulse 10s ease-in-out infinite reverse;
}

@keyframes glowPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.3;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.5;
  }
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* 滚动提示 */
.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: #b0b0d0;
  font-size: 0.9rem;
  animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-hint::after {
  content: "\2193";
  display: block;
  margin-top: 5px;
  font-size: 1.5rem;
}

@keyframes scrollBounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0) translateX(-50%);
  }

  40% {
    transform: translateY(-20px) translateX(-50%);
  }

  60% {
    transform: translateY(-10px) translateX(-50%);
  }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero-button {
    padding: 10px 25px;
    font-size: 0.9rem;
  }

  .glow-1,
  .glow-2 {
    width: 300px;
    height: 300px;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 0.9rem;
  }
}

@layer utilities {
  .bg-gradient-tech {
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f0ff 100%);
  }

  .vertical-gradient {
    background: linear-gradient(180deg, #165dff 0%, #69b1ff 100%);
  }

  .triple-number-container {
    width: 72px;
    height: 180px;
    overflow: hidden;
    position: relative;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.85);
    box-shadow:
      0 5px 18px rgba(0, 0, 0, 0.08),
      inset 0 0 0 1px rgba(22, 93, 255, 0.1);
  }

  .triple-number-track {
    position: absolute;
    width: 100%;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
  }

  .number-item {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "JetBrains Mono", monospace;
    font-size: 24px;
    transition: all 0.4s ease;
  }

  .blur-top {
    filter: blur(2px);
    opacity: 0.6;
    transform: scale(0.8);
  }

  .blur-bottom {
    filter: blur(2px);
    opacity: 0.6;
    transform: scale(0.8);
  }

  .current-number {
    transform: scale(1.56);
    font-weight: bold;
    color: #0e42d2;
    text-shadow: 0 0 8px rgba(22, 93, 255, 0.3);
  }

  .number-mask {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.9) 0%,
      rgba(255, 255, 255, 0) 30%,
      rgba(255, 255, 255, 0) 70%,
      rgba(255, 255, 255, 0.9) 100%
    );
    z-index: 10;
  }

  .center-guide {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(22, 93, 255, 0.12);
    transform: translateY(-50%);
    z-index: 5;
  }

  /* 强制每页为不可收缩固定高度（避免第4/5页“丢失”） */
  .page-fixed {
    flex: 0 0 500px;
    /* 不收缩，不放大，固定高度 */
    height: 500px;
  }

  /* 平滑过渡类 */
  .transition-scroll {
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform;
  }
}

.vendor-list {
  /* 1. 核心改动：启用 Flex 布局，并允许子元素自动换行 */
  display: flex;
  flex-wrap: wrap;

  /* 2. 确保父元素（例如 body, main, 或其他容器） */
  /* 已经设置了合理的宽度限制，例如 width: 100% 或 max-width */

  /* (可选) 控制主轴上的对齐方式，例如居中对齐 */
  justify-content: center;

  /* (可选) 为每个 span 之间添加一些垂直间距，避免换行后文字紧贴 */
  gap: 5px 10px;
  /* 垂直间距 5px, 水平间距 10px */

  /* 移除之前在 .vendor-list span 中设置的 margin-right，
       或者保持它并移除 last-child 的设置，使用 gap 更简洁 */

  /* 其他保持不变的样式 */
  padding: 10px;
  width: 100%;
  /* 假设你希望它占据父容器的全部宽度 */
}

/* ⚠️ 注意：如果使用了 gap 属性，可以精简 span 元素的样式 */
.vendor-list span {
  /* 保持 font-size 的设置，或使用你 HTML 中内联的样式 */
  /* 保持 white-space: nowrap; 确保单个 span 内部不换行 */
  white-space: nowrap;

  /* 如果使用了 .vendor-list 中的 gap 属性，下面的 margin 就不需要了 */
  /* margin-right: 10px; */
}

.sectionContainer {
  max-width: 1200px;
  margin: 0 auto;
}

/* 标题区域 */
.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: #165dff;
  margin-bottom: 10px;
}

.section-subtitle {
  text-align: center;
  color: #64748b;
  margin-bottom: 40px;
  font-size: 1.1rem;
}

/* AI功能标签 */
.ai-tabs {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.ai-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: #f0f4f8;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  color: #4a5568;
  font-weight: 500;
  border: 1px solid transparent;
}

.ai-tab:hover {
  background: #e2e8f0;
  transform: translateY(-2px);
}

.ai-tab.active {
  background: #2563eb;
  color: white;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.ai-tab-icon {
  width: 20px;
  height: 20px;
  background: #3b82f6;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: white;
  font-weight: bold;
}

.ai-tab.active .ai-tab-icon {
  background: white;
  color: #2563eb;
}

/* 内容区域通用样式 */
.content-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: start;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 左侧数据面板通用 */
.data-panel {
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  border: 1px solid #f1f5f9;
}

.panel-header {
  display: flex;
  padding: 16px 20px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  align-items: center;
}

.window-dots {
  display: flex;
  gap: 8px;
}

.window-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.window-dot.red {
  background: #ef4444;
}

.window-dot.yellow {
  background: #f59e0b;
}

.window-dot.green {
  background: #10b981;
}

.panel-title {
  margin-left: 12px;
  font-size: 0.9rem;
  color: #64748b;
  font-weight: 600;
}

.panel-content {
  padding: 24px;
}

/* 右侧信息区域通用 */
.info-section {
  padding-top: 10px;
}

.info-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.4;
  margin-bottom: 24px;
}

.info-list {
  list-style: none;
  margin-bottom: 32px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 1rem;
  color: #4a5568;
  line-height: 1.6;
}

.info-item::before {
  content: "✓";
  width: 20px;
  height: 20px;
  background: #dbeafe;
  color: #2563eb;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* 数据统计 */
.stats-row {
  display: flex;
  gap: 30px;
  margin-bottom: 32px;
  padding: 20px;
  background: #f8fafc;
  border-radius: 16px;
}

.stat-item {
  flex: 1;
  text-align: center;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.stat-arrow {
  font-size: 1.2rem;
}

.stat-arrow.up {
  color: #ef4444;
}

.stat-arrow.down {
  color: #22c55e;
}

.stat-label {
  font-size: 0.875rem;
  color: #64748b;
  margin-top: 4px;
}

/* 按钮组 */
.button-group {
  display: flex;
  gap: 16px;
  /* width: 300px; */
  justify-content: center;
}

.btn {
  padding: 14px 32px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
}

.btn-primary {
  background: #2563eb;
  color: white;
}

.btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
  background: white;
  color: #4a5568;
  border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

/* --- 特定板块样式 --- */

/* 1. 陪练特有样式 */
.team-section {
  flex: 0 0 200px;
}

.section-label {
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 16px;
  font-weight: 500;
}

.team-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.team-member {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.member-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  font-weight: 600;
}

.member-info {
  flex: 1;
}

.member-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 4px;
}

.member-score {
  display: flex;
  align-items: center;
  gap: 8px;
}

.score-bar {
  flex: 1;
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
}

.score-fill {
  height: 100%;
  background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
  border-radius: 3px;
}

.score-text {
  font-size: 0.75rem;
  color: #64748b;
  min-width: 40px;
}

.radar-container {
  position: relative;
  width: 280px;
  height: 280px;
  margin: 0 auto 20px;
}

.radar-chart {
  width: 100%;
  height: 100%;
}

.radar-label {
  position: absolute;
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 500;
}

.radar-label.top {
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
}

.radar-label.right {
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
}

.radar-label.bottom {
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
}

.radar-label.left {
  left: -5px;
  top: 50%;
  transform: translateY(-50%);
}

.training-section {
  margin-top: 24px;
  padding: 20px;
  background: #f8fafc;
  border-radius: 12px;
}

.training-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 16px;
}

.training-cards {
  display: flex;
  gap: 16px;
}

.training-card {
  flex: 1;
  padding: 16px;
  background: white;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.training-tag {
  display: inline-block;
  padding: 4px 12px;
  background: #dbeafe;
  color: #2563eb;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.training-tag.green {
  background: #d1fae5;
  color: #059669;
}

.training-course {
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 4px;
}

.training-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e293b;
}

/* 2. 评估特有样式 (质检列表) */
.quality-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quality-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  transition: all 0.2s;
}

.quality-item:hover {
  border-color: #cbd5e1;
  background: #fff;
}

.q-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.q-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-pass {
  background: #22c55e;
}

.status-warn {
  background: #f59e0b;
}

.status-fail {
  background: #ef4444;
}

.q-text {
  font-size: 0.9rem;
  font-weight: 500;
  color: #1e293b;
}

.q-score {
  font-weight: 700;
  font-size: 1.1rem;
}

.score-good {
  color: #22c55e;
}

.score-bad {
  color: #ef4444;
}

/* 3. 部署特有样式 (流程图) */
.deploy-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.deploy-step {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: #f8fafc;
  border-radius: 12px;
  border-left: 4px solid #2563eb;
}

.step-num {
  width: 32px;
  height: 32px;
  background: #2563eb;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
}

.step-content h4 {
  font-size: 1rem;
  color: #1e293b;
  margin-bottom: 4px;
}

.step-content p {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.5;
}

/* 隐藏/显示控制 */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Grid fix for active tab */
.tab-content.active .content-wrapper {
  display: grid;
}

/* 响应式 */
@media (max-width: 1024px) {
  .content-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .ai-tabs {
    gap: 10px;
  }

  .ai-tab {
    padding: 10px 18px;
    font-size: 0.875rem;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 1.75rem;
  }

  .panel-content {
    flex-direction: column;
  }

  .team-section {
    flex: 1;
    width: 100%;
  }

  .radar-container {
    width: 240px;
    height: 240px;
  }

  .training-cards {
    flex-direction: column;
  }

  解决方案 .stats-row {
    gap: 20px;
  }

  .button-group {
    flex-direction: column;
  }
}
