:root {
  /* 更新配色方案 - 使用更柔和的粉紫色调 */
  --primary: #FF9EB5;
  --secondary: #A18CD1;
  --accent: #FBC2EB;
  
  /* 背景和卡片 */
  --bg-overlay: rgba(255, 255, 255, 0.7);
  --card-bg: rgba(255, 255, 255, 0.85);
  
  /* 文字颜色 */
  --text-primary: #363A3F;
  --text-secondary: #666F75;
  
  /* 阴影效果 */
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 6px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  
  /* 圆角 */
  --radius-sm: 12px;
  --radius-lg: 24px;
  
  /* 动画时间 */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans SC', sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
}

/* 背景样式 */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  background: url("https://t.alcy.cc/ysz") center/cover no-repeat fixed;
  opacity: 0.95;  /* 增加背景图片的透明度 */
}

body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.5),  /* 降低白色遮罩的透明度 */
    rgba(251, 194, 235, 0.3)   /* 降低粉色遮罩的透明度 */
  );
  backdrop-filter: blur(5px);   /* 减小模糊程度 */
}

/* 加载动画 */
.loading {
  position: fixed;
  width: 100%;
  height: 100%;
  background: var(--bg-main);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loading-anime {
  text-align: center;
}

/* 页面容器 */
.page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
  z-index: 1;
}

/* 头部样式 */
.header {
  text-align: center;
  padding: 3rem 0;
}

.logo-container {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 3rem;
  background: rgba(255, 255, 255, 0.8);  /* 调整Logo容器透明度 */
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  animation: fadeInDown 0.8s ease-out;
}

.logo-image {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.logo-text h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

.subtitle {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* 通知横幅 */
.notice-banner {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-sm);
  margin: 2rem 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  animation: float 3s ease-in-out infinite;
}

.notice-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0)
  );
  transform: translateX(-100%);
  animation: shine 3s infinite;
}

.highlight {
  color: white;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* 卡片网格 */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* 卡片样式 */
.card {
  background: rgba(255, 255, 255, 0.7);  /* 调整卡片透明度 */
  backdrop-filter: blur(8px);  /* 卡片背景模糊程度 */
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover::after {
  opacity: 1;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.card-header h2 {
  font-size: 1.25rem;
  color: var(--text-primary);
}

/* 链接项基础样式 */
.link-item, .download-item, .tutorial-item, .community-item {
    display: flex;
    align-items: center;  /* 垂直居中 */
    gap: 12px;           /* 使用gap替代margin-right */
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.5);
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-primary);
    margin-bottom: 8px;
    position: relative;   /* 为hover效果添加定位上下文 */
}

.link-item:hover, .download-item:hover, .tutorial-item:hover, .community-item:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: translateX(4px);
}

/* 动画 */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .page-container {
    padding: 1rem;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
  }
  
  .logo-container {
    padding: 1rem 1.5rem;
  }
  
  .notice-banner {
    margin: 1rem 0;
  }
}

/* 樱花动画容器 */
.sakura-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* 图标包装器 */
.icon-wrapper {
    display: flex;       /* 改为flex */
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px;     /* 确保最小宽度 */
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 2px 8px rgba(255, 158, 181, 0.2);
    flex-shrink: 0;      /* 防止压缩 */
}

/* 页面加载动画 */
.loaded {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 暗色模式 */
.dark-mode {
  --bg-primary: #1a1a1a;
  --bg-secondary: #2d2d2d;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
}

/* 卡片悬浮效果优化 */
.card__item {
  position: relative;
  overflow: hidden;
}

.card__item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.card__item:hover::after {
  opacity: 0.1;
}

.card__content {
  position: relative;
  z-index: 1;
}

/* 添加可爱的动画 */
@keyframes sparkle {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.8; }
}

/* 添加可爱的装饰元素 */
.card::before {
  content: '';
  position: absolute;
  top: -10px;
  right: -10px;
  width: 30px;
  height: 30px;
  background: url('../image/cute-star.svg') no-repeat center;
  background-size: contain;
  opacity: 0.5;
}

/* Logo动画 */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* 滚动条美化 */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--primary), var(--secondary));
  border-radius: 4px;
}

.loading.hide {
  display: none;
}

/* 新增动画效果 */
@keyframes shine {
  0% { transform: translateX(-100%); }
  20% { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}

/* 图标样式 */
.icon {
    width: 20px;
    height: 20px;
    display: block;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 20px;
}

/* 链接文本样式 */
.link-item span,
.tutorial-item span,
.community-item span {
    font-weight: 500;
    line-height: 1.2;    /* 调整行高 */
}

/* 下载项特殊样式 */
.download-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.platform-name {
    font-weight: 500;
    line-height: 1.2;
}

.version {
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 8px;
    border-radius: 1rem;
    display: inline-block;  /* 确保版本号正确显示 */
}

/* 移除重复的样式 */
.card-icon, .link-icon, .platform-icon, .tutorial-icon, .qq-icon {
    /* 移除这些样式，因为已经被icon-wrapper和icon类替代 */
}

/* 移除多余的margin */
.icon-wrapper {
    margin-right: 0;  /* 移除margin，使用父元素的gap代替 */
}