/* 基础样式 */
body {
  position: relative;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  margin: 0;
  padding: 0;
  color: white;
  opacity: 0;
  transition: opacity 1s ease;
}

/* 背景样式 */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-image: url('img/bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
  opacity: 0.9;
  filter: brightness(0.8);
}

body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(29, 33, 41, 0.92) 0%, rgba(75, 85, 99, 0.92) 100%);
  z-index: -2;
}

/* 页面标题样式 */
header {
  position: relative;
  z-index: 10;
  padding: 2rem 0;
  text-align: center;
}

.title-gradient {
  background: linear-gradient(to right, var(--accent-primary, #8B5CF6), var(--accent-secondary, #EC4899));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

/* 应用卡片基础样式 */
.app-card {
  --accent: #8B5CF6; /* 默认紫色 */
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur-md;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* 顶部颜色条 */
.app-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--accent);
  transition: transform 0.5s ease;
  transform: scaleX(0);
  transform-origin: left center;
}

/* 卡片悬停效果 */
.app-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.app-card:hover::before {
  transform: scaleX(1);
}

/* 卡片头部样式 - 名称区域背景和动态效果 */
.app-card-header {
  padding: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  /* 名称区域背景色 - 使用主题色的渐变效果 */
  background: linear-gradient(90deg, 
    color-mix(in srgb, var(--accent) 20%, transparent) 0%, 
    color-mix(in srgb, var(--accent) 5%, transparent) 70%, 
    transparent 100%);
  /* 添加背景动态效果 */
  transition: background 0.5s ease;
}

/* 卡片悬停时增强名称区域背景效果 */
.app-card:hover .app-card-header {
  background: linear-gradient(90deg, 
    color-mix(in srgb, var(--accent) 25%, transparent) 0%, 
    color-mix(in srgb, var(--accent) 10%, transparent) 70%, 
    transparent 100%);
}

/* 图标容器样式 */
.icon-container {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: color-mix(in srgb, var(--accent) 20%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.app-card:hover .icon-container {
  transform: scale(1.1);
  background-color: color-mix(in srgb, var(--accent) 30%, transparent);
}

/* 应用图标样式 */
.app-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

/* 应用名称样式 */
.app-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: white;
  margin: 0;
  /* 名称文字动态效果 */
  transition: transform 0.3s ease, color 0.3s ease;
}

.app-card:hover .app-name {
  transform: translateX(5px);
  color: var(--accent);
}

/* 卡片内容区域 */
.app-card-body {
  padding: 1.25rem;
}

/* 描述文本样式 */
.app-description {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* 下载按钮样式 */
.download-btn {
  background-color: color-mix(in srgb, var(--accent) 20%, transparent);
  border: none;
  border-radius: 8px;
  color: white;
  padding: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* 按钮悬停效果 */
.download-btn:hover {
  background-color: color-mix(in srgb, var(--accent) 30%, transparent);
  transform: translateY(-2px);
}

/* 按钮点击效果 */
.download-btn:active {
  transform: scale(0.95);
}

/* 按钮图标样式 */
.download-btn i {
  margin-right: 0.5rem;
  font-size: 1.25rem;
  transition: transform 0.3s ease;
}

.download-btn:hover i {
  transform: rotate(15deg) scale(1.1);
}

/* 操作指引样式 */
.guide-section {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1.5rem;
  transition: background-color 0.3s ease;
}

.app-card:hover .guide-section {
  background-color: rgba(255, 255, 255, 0.08);
}

.guide-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.guide-list {
  padding-left: 1.5rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

.guide-list li {
  margin-bottom: 0.5rem;
}

.guide-list li:last-child {
  margin-bottom: 0;
}

/* 说明区域样式 */
.info-section {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 2rem;
  transition: background-color 0.3s ease;
}

.info-section:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

.info-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: white;
}

.info-list {
  padding-left: 1.5rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.info-list li {
  margin-bottom: 1rem;
}

.info-list li:last-child {
  margin-bottom: 0;
}

/* 成功提示样式 */
#success-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: color-mix(in srgb, var(--toast-color, #10B981) 90%, transparent);
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  z-index: 1000;
  display: flex;
  align-items: center;
}

#success-toast i {
  margin-right: 0.5rem;
}

/* 容器样式 */
.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* 网格布局 */
.app-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .app-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .app-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 平滑滚动 */
html {
  scroll-behavior: smooth;
}

/* 按钮内部光效动画 */
.download-btn::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 3s infinite;
}

@keyframes shine {
  0% {
    transform: rotate(30deg) translate(-100%, -100%);
  }
  100% {
    transform: rotate(30deg) translate(100%, 100%);
  }
}

/* 移动端响应式调整 */
@media (max-width: 768px) {
  .app-card-header, .app-card-body {
    padding: 1rem;
  }
  
  .download-btn {
    padding: 0.65rem;
    font-size: 0.875rem;
  }
  
  .app-description {
    font-size: 0.875rem;
  }
  
  header {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
}
/* 在现有样式中添加以下内容 */
.card-header-gradient {
  background: linear-gradient(90deg, 
    color-mix(in srgb, var(--accent) 20%, transparent) 0%, 
    color-mix(in srgb, var(--accent) 5%, transparent) 70%, 
    transparent 100%);
}

/* 其他原有样式保持不变... */