/* 引入外部字体和图标库 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css');
@import url('https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/styles/atom-one-dark.min.css');

/* 自定义工具类 */
.content-auto {
  content-visibility: auto;
}
.text-shadow {
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.text-gradient {
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.transition-navbar {
  transition: all 0.3s ease-in-out;
}
.scale-hover {
  transition: transform 0.3s ease;
}
.scale-hover:hover {
  transform: scale(1.05);
}
.card-hover {
  transition: all 0.3s ease;
}
.card-hover:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.animate-float {
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}
.animate-fade-in {
  animation: fadeIn 0.8s ease-in forwards;
  opacity: 0;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.progress-bar {
  height: 6px;
  background: linear-gradient(90deg, #165DFF 0%, #36CFC9 100%);
  border-radius: 3px;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1s ease-in-out;
}
.progress-bar.animate {
  transform: scaleX(1);
}

/* 代码展示区域样式 */
.code-container {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  min-height: 400px;
}
.code-container:hover {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}
.code-header {
  background-color: #2D2D2D;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #3E3E3E;
}
.code-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #D4D4D4;
  font-weight: 500;
}
.code-language {
  font-size: 0.875rem;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.1);
}
.code-actions {
  display: flex;
  gap: 0.5rem;
}
.code-action-btn {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #D4D4D4;
  transition: all 0.2s ease;
}
.code-action-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
}

/* 英雄区代码显示样式 */
.code-tabs {
  margin-top: 8px;
}

/* 代码高亮颜色 */
.text-gray-300 code .keyword {
  color: #569cd6;
}
.text-gray-300 code .string {
  color: #ce9178;
}
.text-gray-300 code .comment {
  color: #6a9955;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .code-container {
    min-height: 300px;
  }
  .text-gray-300 {
    font-size: 12px;
  }
}
.code-content {
  background-color: #1E1E1E;
  position: relative;
}
.code-lines {
  position: absolute;
  left: 0;
  top: 0;
  padding: 1rem;
  padding-right: 0.75rem;
  text-align: right;
  color: #606060;
  font-family: 'Fira Code', monospace;
  font-size: 0.875rem;
  user-select: none;
}
.code-text {
  padding: 1rem;
  padding-left: 3.5rem;
  font-family: 'Fira Code', monospace;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #D4D4D4;
  overflow-x: auto;
}

/* 代码标签样式 */
.code-tab {
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
  font-weight: 500;
}
.code-tab.active {
  border-bottom-color: #165DFF;
  color: #165DFF;
}
.code-output {
  background-color: white;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.output-header {
  padding: 0.75rem 1.5rem;
  background-color: #f7f7f7;
  border-bottom: 1px solid #eee;
  font-weight: 500;
  color: #333;
}
.output-content {
  padding: 1.5rem;
}

/* 全屏英雄区样式 */
.hero-fullscreen {
  min-height: 100vh;
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* 优化的滚动指示器样式 */
.scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  opacity: 0.8;
  transition: all 0.3s ease;
  z-index: 10;
}
.scroll-indicator:hover {
  opacity: 1;
  transform: translateX(-50%) translateY(-5px);
}
.scroll-indicator .scroll-text {
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-weight: 500;
  background: rgba(0, 0, 0, 0.2);
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.scroll-indicator .scroll-icon {
  width: 2.5rem;
  height: 4rem;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 30px;
  position: relative;
}
.scroll-indicator .scroll-icon::after {
  content: '';
  position: absolute;
  top: 0.8rem;
  left: 50%;
  transform: translateX(-50%);
  width: 0.4rem;
  height: 0.4rem;
  background: white;
  border-radius: 50%;
  animation: scrollDown 2s infinite;
}
@keyframes scrollDown {
  0% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateX(-50%) translateY(2rem);
    opacity: 0;
  }
}

/* 视频音量控制按钮 */
.volume-control {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}
.volume-control:hover {
  background: rgba(0, 0, 0, 0.5);
  transform: scale(1.1);
}

/* 企业标志滚动动画 */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}
.animate-scroll {
  animation: scroll 40s linear infinite;
}
.brands-scroll:hover {
  animation-play-state: paused; /* 鼠标悬停时暂停滚动 */
}