/* ==================== Tailwind CSS 配置 ==================== */
@layer tailwind-base, semi, tailwind-components, tailwind-utils;

@layer tailwind-base {
  @tailwind base;
}

@layer tailwind-components {
  @tailwind components;
}

@layer tailwind-utils {
  @tailwind utilities;
}

/* ==================== 全局基础样式 ==================== */
:root {
  --sidebar-width: 180px;
  --sidebar-width-collapsed: 60px;
  --sidebar-current-width: var(--sidebar-width);
}

body.sidebar-collapsed {
  --sidebar-current-width: var(--sidebar-width-collapsed);
}

body {
  font-family: Lato, 'Helvetica Neue', Arial, Helvetica, 'Microsoft YaHei',
    sans-serif;
  color: var(--semi-color-text-0);
  background-color: var(--semi-color-bg-0);
}

.app-layout {
  height: 100vh;
  height: 100dvh;
}

.app-sider {
  height: calc(100vh - 64px);
  height: calc(100dvh - 64px);
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
    monospace;
}

/* ==================== 布局相关样式 ==================== */
.semi-layout::-webkit-scrollbar,
.semi-layout-content::-webkit-scrollbar,
.semi-sider::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.semi-layout,
.semi-layout-content,
.semi-sider {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ==================== 导航和侧边栏样式 ==================== */
.semi-navigation-item {
  margin-bottom: 4px !important;
  padding: 4px 12px !important;
}

.semi-navigation-sub-title {
  padding: 0 !important;
}

.semi-navigation-item-icon {
  justify-items: center;
  align-items: center;
}

.semi-navigation-item-icon-info {
  margin-right: 0;
}

.sidebar-nav .semi-navigation-item-text {
  flex: 1;
  min-width: 0;
}

.semi-navigation-item,
.semi-navigation-sub-title {
  height: 100% !important;
}

.semi-navigation-item-collapsed {
  height: 44px !important;
}

#root
  > section
  > header
  > section
  > div
  > div
  > div
  > div.semi-navigation-header-list-outer
  > div.semi-navigation-list-wrapper
  > ul
  > div
  > a
  > li
  > span {
  font-weight: 600 !important;
}

/* 自定义侧边栏样式 */
.sidebar-container {
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
  transition: width 0.3s ease;
  background: var(--semi-color-bg-0);
}

.sidebar-nav {
  flex: 1;
  width: 100%;
  background: var(--semi-color-bg-0);
  height: 100%;
  overflow-x: hidden;
  border-right: none;
  overflow-y: auto;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.sidebar-nav::-webkit-scrollbar {
  display: none;
}

/* 侧边栏导航项样式 */
.sidebar-nav-item {
  border-radius: 6px;
  margin: 3px 8px;
  transition: all 0.15s ease;
  padding: 8px 12px;
}

.sidebar-nav-item:hover {
  background-color: rgba(var(--semi-blue-0), 0.08);
  color: var(--semi-color-primary);
}

.sidebar-nav-item-selected {
  background-color: rgba(var(--semi-blue-0), 0.12);
  color: var(--semi-color-primary);
  font-weight: 500;
}

/* 图标容器样式 */
.sidebar-icon-container {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  transition: all 0.2s ease;
}

.sidebar-sub-icon-container {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  margin-left: 1px;
  transition: all 0.2s ease;
}

/* 分割线样式 */
.sidebar-divider {
  margin: 4px 8px;
  opacity: 0.15;
}

/* 分组标签样式 */
.sidebar-group-label {
  padding: 4px 15px 8px;
  color: var(--semi-color-text-2);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.8;
}

/* 底部折叠按钮 */
.sidebar-collapse-button {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px;
  margin-top: auto;
  cursor: pointer;
  background-color: var(--semi-color-bg-0);
  position: sticky;
  bottom: 0;
  z-index: 10;
  box-shadow: 0 -10px 10px -5px var(--semi-color-bg-0);
  backdrop-filter: blur(4px);
  border-top: 1px solid rgba(var(--semi-grey-0), 0.08);
}

.sidebar-collapse-button-inner {
  width: 28px;
  height: 28px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--semi-color-fill-0);
  transition: all 0.2s ease;
}

.sidebar-collapse-icon-container {
  display: inline-block;
  transition: transform 0.3s ease;
}

/* 侧边栏区域容器 */
.sidebar-section {
  padding-top: 12px;
}

@media (max-width: 767px) {
  .sidebar-container {
    background: var(--semi-color-bg-1);
    border-right: 1px solid var(--semi-color-border);
  }

  .sidebar-nav {
    background: var(--semi-color-bg-1);
  }

  .sidebar-collapse-button {
    background-color: var(--semi-color-bg-1);
    box-shadow: 0 -10px 10px -5px var(--semi-color-bg-1);
  }
}

/* ==================== 聊天界面样式 ==================== */
.semi-chat {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  height: 100%;
  max-width: 100% !important;
  width: 100% !important;
  overflow: hidden !important;
}

.semi-chat-chatBox {
  max-width: 100% !important;
  overflow: hidden !important;
}

.semi-chat-chatBox-wrap {
  max-width: 100% !important;
  overflow: hidden !important;
}

.semi-chat-chatBox-content {
  min-width: auto;
  word-break: break-word;
  max-width: 100% !important;
  overflow-wrap: break-word !important;
}

.semi-chat-content {
  max-width: 100% !important;
  overflow: hidden !important;
}

.semi-chat-list {
  max-width: 100% !important;
  overflow-x: hidden !important;
}

.semi-chat-container {
  overflow-x: hidden !important;
}

.semi-chat-chatBox-action {
  column-gap: 0 !important;
}

.semi-chat-inputBox-clearButton.semi-button .semi-icon {
  font-size: 20px !important;
}

/* 隐藏所有聊天相关区域的滚动条 */
.semi-chat::-webkit-scrollbar,
.semi-chat-chatBox::-webkit-scrollbar,
.semi-chat-chatBox-wrap::-webkit-scrollbar,
.semi-chat-chatBox-content::-webkit-scrollbar,
.semi-chat-content::-webkit-scrollbar,
.semi-chat-list::-webkit-scrollbar,
.semi-chat-container::-webkit-scrollbar {
  display: none;
}

.semi-chat,
.semi-chat-chatBox,
.semi-chat-chatBox-wrap,
.semi-chat-chatBox-content,
.semi-chat-content,
.semi-chat-list,
.semi-chat-container {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ==================== 组件特定样式 ==================== */
/* SelectableButtonGroup */
.sbg-button .semi-button-content {
  min-width: 0 !important;
}

.sbg-content {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  min-width: 0;
}

.sbg-ellipsis {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Tabs组件样式 */
.semi-tabs-content {
  padding: 0 !important;
  height: calc(100% - 40px) !important;
  flex: 1 !important;
}

.semi-tabs-content .semi-tabs-pane {
  height: 100% !important;
  overflow: hidden !important;
}

.semi-tabs-content .semi-tabs-pane > div {
  height: 100% !important;
}

/* 表格样式 */
.tableShow {
  display: revert;
}

.tableHiddle {
  display: none !important;
}

/* 页脚样式 */
.custom-footer {
  font-size: 1.1em;
}

/* 卡片内容容器通用样式 */
.card-content-container {
  position: relative;
}

.card-content-fade-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: linear-gradient(transparent, var(--semi-color-bg-1));
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* ==================== 调试面板特定样式 ==================== */
.debug-panel .semi-tabs {
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}

.debug-panel .semi-tabs-bar {
  flex-shrink: 0 !important;
}

.debug-panel .semi-tabs-content {
  flex: 1 !important;
  overflow: hidden !important;
}

/* ==================== 滚动条样式统一管理 ==================== */
/* 通用隐藏滚动条工具类 */
.scrollbar-hide {
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}

.scrollbar-hide::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
  /* Chrome, Safari, Opera */
}

/* 表格滚动条样式 */
.semi-table-body::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.semi-table-body::-webkit-scrollbar-thumb {
  background: rgba(var(--semi-grey-2), 0.3);
  border-radius: 2px;
}

.semi-table-body::-webkit-scrollbar-thumb:hover {
  background: rgba(var(--semi-grey-2), 0.5);
}

.semi-table-body::-webkit-scrollbar-track {
  background: transparent;
}

/* 侧边抽屉滚动条样式 */
.semi-sidesheet-body::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.semi-sidesheet-body::-webkit-scrollbar-thumb {
  background: rgba(var(--semi-grey-2), 0.3);
  border-radius: 2px;
}

.semi-sidesheet-body::-webkit-scrollbar-thumb:hover {
  background: rgba(var(--semi-grey-2), 0.5);
}

.semi-sidesheet-body::-webkit-scrollbar-track {
  background: transparent;
}

/* 隐藏内容区域滚动条 */
.pricing-scroll-hide,
.model-test-scroll,
.card-content-scroll,
.model-settings-scroll,
.thinking-content-scroll,
.custom-request-textarea .semi-input,
.custom-request-textarea textarea,
.notice-content-scroll {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.pricing-scroll-hide::-webkit-scrollbar,
.model-test-scroll::-webkit-scrollbar,
.card-content-scroll::-webkit-scrollbar,
.model-settings-scroll::-webkit-scrollbar,
.thinking-content-scroll::-webkit-scrollbar,
.custom-request-textarea .semi-input::-webkit-scrollbar,
.custom-request-textarea textarea::-webkit-scrollbar,
.notice-content-scroll::-webkit-scrollbar {
  display: none;
}

/* 图片列表滚动条样式 */
.image-list-scroll::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.image-list-scroll::-webkit-scrollbar-thumb {
  background: var(--semi-color-tertiary-light-default);
  border-radius: 3px;
}

.image-list-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--semi-color-tertiary);
}

.image-list-scroll::-webkit-scrollbar-track {
  background: transparent;
}

/* ==================== 同步倍率 - 渠道选择器 ==================== */

.components-transfer-source-item,
.components-transfer-selected-item {
  display: flex;
  align-items: center;
  padding: 8px;
}

.semi-transfer-left-list,
.semi-transfer-right-list {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.semi-transfer-left-list::-webkit-scrollbar,
.semi-transfer-right-list::-webkit-scrollbar {
  display: none;
}

.components-transfer-source-item .semi-checkbox,
.components-transfer-selected-item .semi-checkbox {
  display: flex;
  align-items: center;
  width: 100%;
}

.components-transfer-source-item .semi-avatar,
.components-transfer-selected-item .semi-avatar {
  margin-right: 12px;
  flex-shrink: 0;
}

.components-transfer-source-item .info,
.components-transfer-selected-item .info {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.components-transfer-source-item .name,
.components-transfer-selected-item .name {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.components-transfer-source-item .email,
.components-transfer-selected-item .email {
  font-size: 12px;
  color: var(--semi-color-text-2);
  display: flex;
  align-items: center;
}

.components-transfer-selected-item .semi-icon-close {
  margin-left: 8px;
  cursor: pointer;
  color: var(--semi-color-text-2);
}

.components-transfer-selected-item .semi-icon-close:hover {
  color: var(--semi-color-text-0);
}

/* ==================== 未读通知闪光效果 ==================== */
@keyframes sweep-shine {
  0% {
    background-position: 200% 0;
  }

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

.shine-text {
  background: linear-gradient(
    90deg,
    currentColor 0%,
    currentColor 40%,
    rgba(255, 255, 255, 0.9) 50%,
    currentColor 60%,
    currentColor 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: sweep-shine 4s linear infinite;
}

.dark .shine-text {
  background: linear-gradient(
    90deg,
    currentColor 0%,
    currentColor 40%,
    #facc15 50%,
    currentColor 60%,
    currentColor 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==================== ScrollList 定制样式 ==================== */
.semi-scrolllist,
.semi-scrolllist * {
  -ms-overflow-style: none;
  /* IE, Edge */
  scrollbar-width: none;
  /* Firefox */
  background: transparent !important;
}

.semi-scrolllist::-webkit-scrollbar,
.semi-scrolllist *::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}

.semi-scrolllist-body {
  padding: 1px !important;
}

.semi-scrolllist-list-outer {
  padding-right: 0 !important;
}

/* ==================== Banner 背景模糊球 ==================== */
.blur-ball {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: -1;
}

.blur-ball-indigo {
  background: #6366f1;
  /* indigo-500 */
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.5;
}

.blur-ball-teal {
  background: #14b8a6;
  /* teal-400 */
  top: 200px;
  left: 30%;
  opacity: 0.4;
}

/* 浅色主题下让模糊球更柔和 */
html:not(.dark) .blur-ball-indigo {
  opacity: 0.25;
}

html:not(.dark) .blur-ball-teal {
  opacity: 0.2;
}

/* ==================== 卡片马卡龙模糊球（类封装） ==================== */
/* 使用方式：给容器加上 with-pastel-balls 类即可，无需在 JSX 中插入额外节点 */
.with-pastel-balls {
  position: relative;
  overflow: hidden;
  /* 默认变量（明亮模式） */
  --pb1: #ffd1dc;
  /* 粉 */
  --pb2: #e5d4ff;
  /* 薰衣草 */
  --pb3: #d1fff6;
  /* 薄荷 */
  --pb4: #ffe5d9;
  /* 桃 */
  --pb-opacity: 0.55;
  --pb-blur: 60px;
}

.with-pastel-balls::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
      circle at -5% -10%,
      var(--pb1) 0%,
      transparent 60%
    ),
    radial-gradient(circle at 105% -10%, var(--pb2) 0%, transparent 55%),
    radial-gradient(circle at 5% 110%, var(--pb3) 0%, transparent 55%),
    radial-gradient(circle at 105% 110%, var(--pb4) 0%, transparent 50%);
  filter: blur(var(--pb-blur));
  opacity: var(--pb-opacity);
  transform: translateZ(0);
}

/* 暗黑模式下更柔和的色彩和透明度 */
html.dark .with-pastel-balls {
  /* 使用与明亮模式一致的“刚才那组”马卡龙色，但整体更柔和 */
  --pb1: #ffd1dc;
  /* 粉 */
  --pb2: #e5d4ff;
  /* 薰衣草 */
  --pb3: #d1fff6;
  /* 薄荷 */
  --pb4: #ffe5d9;
  /* 桃 */
  --pb-opacity: 0.36;
  --pb-blur: 65px;
}

/* 暗黑模式下用更柔和的混合模式避免突兀的高亮 */
html.dark .with-pastel-balls::before {
  mix-blend-mode: screen;
}

/* ==================== 表格卡片滚动设置 ==================== */
.table-scroll-card {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 110px);
  max-height: calc(100vh - 110px);
}

.table-scroll-card .semi-card-body {
  flex: 1 1 auto;
  overflow-y: auto;
}

.table-scroll-card .semi-card-body::-webkit-scrollbar {
  width: 6px;
}

.table-scroll-card .semi-card-body::-webkit-scrollbar-thumb {
  background: rgba(var(--semi-grey-2), 0.3);
  border-radius: 2px;
}

.table-scroll-card .semi-card-body::-webkit-scrollbar-thumb:hover {
  background: rgba(var(--semi-grey-2), 0.5);
}

.table-scroll-card .semi-card-body::-webkit-scrollbar-track {
  background: transparent;
}

@media (max-width: 767px) {
  .table-scroll-card {
    height: calc(100vh - 77px);
    max-height: calc(100vh - 77px);
  }
}

/* ==================== 模型定价页面布局 ==================== */
.pricing-layout {
  height: calc(100vh - 60px);
  overflow: hidden;
  margin-top: 60px;
}

.pricing-sidebar {
  width: clamp(280px, 24vw, 520px) !important;
  min-width: clamp(280px, 24vw, 520px) !important;
  max-width: clamp(280px, 24vw, 520px) !important;
  height: calc(100vh - 60px);
  background-color: var(--semi-color-bg-0);
  overflow: auto;
}

.pricing-content {
  height: calc(100vh - 60px);
  background-color: var(--semi-color-bg-0);
  display: flex;
  flex-direction: column;
}

.pricing-pagination-divider {
  border-color: var(--semi-color-border);
}

.pricing-content-mobile {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: auto;
}

.pricing-search-header {
  padding: 0.5rem;
  background-color: var(--semi-color-bg-0);
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 5;
}

.pricing-view-container {
  flex: 1;
  overflow: auto;
}

.pricing-view-container-mobile {
  flex: 1;
  overflow: auto;
  min-height: 0;
}

/* ==================== semi-ui 组件自定义样式 ==================== */
.semi-card-header,
.semi-card-body {
  padding: 10px !important;
}

/* ==================== 使用日志: channel affinity tag ==================== */
.semi-tag.channel-affinity-tag {
  border: 1px solid rgba(var(--semi-cyan-5), 0.35);
  background-color: rgba(var(--semi-cyan-5), 0.15);
  color: rgba(var(--semi-cyan-9), 1);
  cursor: help;
  transition:
    background-color 120ms ease,
    border-color 120ms ease,
    box-shadow 120ms ease;
}

.semi-tag.channel-affinity-tag:hover {
  background-color: rgba(var(--semi-cyan-5), 0.22);
  border-color: rgba(var(--semi-cyan-5), 0.6);
  box-shadow: 0 0 0 2px rgba(var(--semi-cyan-5), 0.18);
}

.semi-tag.channel-affinity-tag:active {
  background-color: rgba(var(--semi-cyan-5), 0.28);
}

.semi-tag.channel-affinity-tag .channel-affinity-tag-content {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* ==================== 自定义圆角样式 ==================== */
.semi-radio,
.semi-tagInput,
.semi-input-textarea-wrapper,
.semi-navigation-sub-title,
.semi-chat-inputBox-sendButton,
.semi-page-item,
.semi-navigation-item,
.semi-tag-closable,
.semi-input-wrapper,
.semi-tabs-tab-button,
.semi-select,
.semi-button,
.semi-datepicker-range-input {
  border-radius: 10px !important;
}

/* ==================== 首页 Snap 滚动样式 ==================== */
.home-snap-container {
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.home-snap-container::-webkit-scrollbar {
  width: 0;
  display: none;
}

.home-snap-section {
  min-height: 100vh;
  min-height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Hero Section 特殊处理 - 不强制全屏 */
.home-snap-section-hero {
  min-height: max(100vh, fit-content);
  min-height: max(100dvh, fit-content);
}

/* 模型广场 Section - 允许超出 */
.home-snap-section-pricing {
  min-height: 100vh;
  min-height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/* ==================== 首页 Hero Section 样式 ==================== */
.hero-gradient-bg {
  background: radial-gradient(
    ellipse 80% 50% at 50% -20%,
    rgba(99, 102, 241, 0.15),
    transparent 50%
  );
}

.hero-blur-ball-1 {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.45) 0%, transparent 70%);
  top: -96px;
  left: -128px;
  opacity: 0.35;
}

.hero-blur-ball-2 {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.4) 0%, transparent 70%);
  bottom: -80px;
  right: -96px;
  opacity: 0.28;
}

/* 浅色主题下降低透明度 */
html:not(.dark) .hero-blur-ball-1 {
  opacity: 0.2;
}

html:not(.dark) .hero-blur-ball-2 {
  opacity: 0.15;
}

/* ==================== 功能卡片样式 ==================== */
.feature-card-container {
  position: relative;
  max-width: 360px;
  margin: 0 auto;
}

.feature-card-container::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 32px;
  opacity: 0.5;
  filter: blur(48px);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.35), rgba(20, 184, 166, 0.25));
  z-index: 0;
}

.feature-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px;
  border-radius: 28px;
  border: 1px solid var(--semi-color-border);
  background-color: var(--semi-color-bg-0);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.feature-card-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 20px;
  border-radius: 16px;
  border: 1px solid var(--semi-color-border);
  background-color: var(--semi-color-bg-0);
  transition: all 0.3s ease;
  cursor: default;
}

.feature-card-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.12);
}

.feature-card-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background-color: rgba(99, 102, 241, 0.14);
  color: var(--semi-color-primary);
  transition: transform 0.3s ease;
}

.feature-card-item:hover .feature-card-icon {
  transform: scale(1.05);
}

/* ==================== 价值卡片样式 ==================== */
.value-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--semi-color-border);
  background-color: var(--semi-color-bg-0);
  transition: all 0.3s ease;
  overflow: hidden;
}

.value-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 100% at 50% 0%, rgba(99, 102, 241, 0.18), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 0;
}

.value-card::after {
  content: '';
  position: absolute;
  top: -40px;
  left: 32px;
  right: 32px;
  height: 112px;
  border-radius: 50%;
  background: linear-gradient(to bottom right, rgba(99, 102, 241, 0.25), transparent, transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 0;
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.value-card:hover::before,
.value-card:hover::after {
  opacity: 1;
}

.value-card-icon {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background-color: rgba(99, 102, 241, 0.16);
  color: var(--semi-color-primary);
  transition: all 0.3s ease;
}

.value-card:hover .value-card-icon {
  transform: scale(1.1) rotate(3deg);
}

.value-card-icon-blue {
  background-color: rgba(14, 165, 233, 0.16);
}

.value-card-icon-teal {
  background-color: rgba(20, 184, 166, 0.16);
}

.value-card-icon-purple {
  background-color: rgba(129, 140, 248, 0.18);
}

/* ==================== 工作流卡片样式 ==================== */
.workflow-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--semi-color-border);
  background-color: var(--semi-color-bg-0);
  transition: all 0.3s ease;
  overflow: hidden;
}

.workflow-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom, rgba(99, 102, 241, 0.45), rgba(20, 184, 166, 0.45), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.workflow-card:hover::before {
  opacity: 1;
}

.workflow-card:hover {
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.08);
}

.workflow-step-number {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--semi-color-text-2);
}

/* ==================== 伙伴 Logo 样式 ==================== */
.partner-logo-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 112px;
  height: 64px;
  border-radius: 16px;
  border: 1px solid var(--semi-color-border);
  background-color: var(--semi-color-bg-0);
  transition: all 0.3s ease;
  cursor: pointer;
}

.partner-logo:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

/* Logo 浮动动画 */
@keyframes partner-float {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-6px) scale(1.05);
  }
}

.partner-logo-animated {
  animation: partner-float 3s ease-in-out infinite;
}

/* 错开动画时间 */
.partner-logo:nth-child(1) { animation-delay: 0s; }
.partner-logo:nth-child(2) { animation-delay: 0.2s; }
.partner-logo:nth-child(3) { animation-delay: 0.4s; }
.partner-logo:nth-child(4) { animation-delay: 0.6s; }
.partner-logo:nth-child(5) { animation-delay: 0.8s; }
.partner-logo:nth-child(6) { animation-delay: 1s; }
.partner-logo:nth-child(7) { animation-delay: 1.2s; }
.partner-logo:nth-child(8) { animation-delay: 1.4s; }
.partner-logo:nth-child(9) { animation-delay: 1.6s; }
.partner-logo:nth-child(10) { animation-delay: 1.8s; }
.partner-logo:nth-child(11) { animation-delay: 2s; }
.partner-logo:nth-child(12) { animation-delay: 2.2s; }

.partner-logo:hover {
  animation-play-state: paused;
}

/* ==================== 统计数据卡片样式 ==================== */
.stat-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px dashed rgba(99, 102, 241, 0.25);
  background-color: rgba(99, 102, 241, 0.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.stat-card-value {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--semi-color-text-0);
  line-height: 1.2;
}

@media (min-width: 768px) {
  .stat-card-value {
    font-size: 1.875rem;
  }
}

.stat-card-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--semi-color-text-2);
}

/* ==================== CTA Section 样式 ==================== */
.cta-section {
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center top, rgba(99, 102, 241, 0.25), transparent 60%);
  opacity: 0.4;
  pointer-events: none;
}

.cta-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% -10%, rgba(20, 184, 166, 0.25), transparent 55%);
  pointer-events: none;
}

/* ==================== 标签样式 ==================== */
.hero-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 16px;
  border-radius: 9999px;
  border: 1px solid rgba(99, 102, 241, 0.35);
  background-color: rgba(99, 102, 241, 0.12);
  color: var(--semi-color-primary);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ==================== API URL 输入框样式 ==================== */
.api-url-card {
  max-width: 480px;
  padding: 16px;
  border-radius: 24px;
  border: 1px solid var(--semi-color-border);
  background-color: var(--semi-color-bg-0);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(8px);
}

@media (min-width: 768px) {
  .api-url-card {
    padding: 24px;
  }
}

/* ==================== 首页 Footer 样式 ==================== */
.home-footer {
  padding: 48px 24px;
  background-color: var(--semi-color-bg-0);
  border-top: 1px solid var(--semi-color-border);
}

@media (min-width: 768px) {
  .home-footer {
    padding: 64px 96px;
  }
}

.home-footer-link {
  color: var(--semi-color-text-1);
  font-size: 14px;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.home-footer-link:hover {
  color: var(--semi-color-primary);
}

/* ==================== 响应式调整 ==================== */
@media (max-width: 1023px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .feature-card-container {
    max-width: 100%;
  }
}

@media (max-width: 767px) {
  .home-snap-section {
    min-height: auto;
    padding: 80px 0;
  }

  .home-snap-section-hero {
    min-height: 100vh;
    min-height: 100dvh;
  }

  .partner-logo {
    width: 88px;
    height: 56px;
  }

  .partner-logo-container {
    gap: 12px;
  }
}

/* ==================== 工具链卡片 hover-glow 效果 ==================== */
.hover-glow-amber {
  position: relative;
  transition: all 0.5s ease;
}

.hover-glow-amber::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at center, rgba(251, 191, 36, 0.15), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.hover-glow-amber:hover::before {
  opacity: 1;
}

.hover-glow-amber:hover {
  box-shadow: 0 0 40px rgba(251, 191, 36, 0.2);
}

.hover-glow-blue {
  position: relative;
  transition: all 0.5s ease;
}

.hover-glow-blue::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at center, rgba(59, 130, 246, 0.15), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.hover-glow-blue:hover::before {
  opacity: 1;
}

.hover-glow-blue:hover {
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.2);
}

.hover-glow-purple {
  position: relative;
  transition: all 0.5s ease;
}

.hover-glow-purple::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at center, rgba(168, 85, 247, 0.15), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.hover-glow-purple:hover::before {
  opacity: 1;
}

.hover-glow-purple:hover {
  box-shadow: 0 0 40px rgba(168, 85, 247, 0.2);
}
