/**
 * ISCTF 2025 Home Page Styles for Pixo Theme
 * Custom glassmorphism design for the homepage
 */

.isctf-home-container {
  min-height: calc(100vh - 56px); /* 减去导航栏高度 */
  padding: 2rem 1rem;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  z-index: 1;
}

/* 毛玻璃卡片 */
.isctf-glass-card {
  width: 100%;
  max-width: 900px;
  background: rgba(255, 255, 255, 0.1);  /* 改为半透明深色 */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: fadeInUp 0.6s ease-out;
  margin: 0 auto;
}

/* Banner 区域 */
.isctf-banner {
  width: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
}

.isctf-banner img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 300px;
}

/* 内容区域 - 带滚动 */
.isctf-content {
  padding: 2rem 2.5rem;
  max-height: calc(100vh - 150px); /* 增加可视高度 */
  min-height: 500px; /* 设置最小高度 */
  overflow-y: auto;
  color: #ffffff;  /* 文字改为白色 */
  line-height: 1.8;
}

/* 自定义滚动条 */
.isctf-content::-webkit-scrollbar {
  width: 8px;
}

.isctf-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);  /* 半透明白色 */
  border-radius: 10px;
}

.isctf-content::-webkit-scrollbar-thumb {
  background: rgba(123, 156, 255, 0.5);  /* 半透明蓝色 */
  border-radius: 10px;
  transition: background 0.3s ease;
}

.isctf-content::-webkit-scrollbar-thumb:hover {
  background: rgba(123, 156, 255, 0.8);  /* 更亮的蓝色 */
}

/* 标题样式 */
.isctf-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;  /* 白色标题 */
  margin-bottom: 1.5rem;
  text-align: center;
  text-shadow: 0 0 10px rgba(102, 126, 234, 0.5);  /* 发光效果 */
  padding-bottom: 0.5rem;
  border-bottom: 3px solid rgba(102, 126, 234, 0.6);
}

.isctf-content h2 {
  font-size: 1.75rem;
  font-weight: 600;
  color: #e0e0e0;  /* 浅灰白色 */
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-left: 1rem;
  border-left: 4px solid rgba(102, 126, 234, 0.8);
}

.isctf-content h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #f0f0f0;  /* 白色 */
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
}

.isctf-content h3 a {
  color: #7b9cff;  /* 亮蓝色链接 */
  text-decoration: none;
  transition: color 0.3s ease;
}

.isctf-content h3 a:hover {
  color: #a0b9ff;  /* 更亮的蓝色 */
}

.isctf-content h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #e8e8e8;  /* 浅白色 */
  margin-top: 1.2rem;
  margin-bottom: 0.6rem;
}

/* 段落样式 */
.isctf-content p {
  margin-bottom: 1rem;
  color: #f5f5f5;  /* 白色 */
  text-align: justify;
}

/* 列表样式 */
.isctf-content ul {
  margin-bottom: 1rem;
  padding-left: 2rem;
}

.isctf-content ul li {
  margin-bottom: 0.5rem;
  color: #f0f0f0;  /* 白色 */
  position: relative;
}

.isctf-content ul li::marker {
  color: #7b9cff;  /* 亮蓝色 */
}

/* 嵌套列表 */
.isctf-content ul ul {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

/* 链接样式 */
.isctf-content a {
  color: #7b9cff;  /* 亮蓝色 */
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
}

.isctf-content a:hover {
  color: #a0b9ff;  /* 更亮的蓝色 */
  border-bottom-color: #a0b9ff;
}

/* Code 标签样式 */
.isctf-content code {
  background: rgba(123, 156, 255, 0.2);  /* 半透明蓝色背景 */
  color: #a0b9ff;  /* 亮蓝色文字 */
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  font-weight: 600;
}

/* Strong 标签样式 */
.isctf-content strong {
  color: #ffffff;  /* 白色 */
  font-weight: 700;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);  /* 轻微发光 */
}

/* Small 标签样式 */
.isctf-content small {
  color: #b0b0b0;  /* 浅灰色 */
  font-size: 0.85em;
}

/* 赞助商图片 */
.sponsor-image {
  text-align: center;
  margin: 1.5rem 0;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);  /* 轻微的白色背景 */
  border-radius: 10px;
}

.sponsor-image img {
  max-width: 25%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sponsor-image img:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* 注册按钮样式 */
.isctf-register-btn {
  padding: 15px 50px;
  font-size: 1.2rem;
  font-weight: bold;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 50px;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
  transition: all 0.3s ease;
  display: inline-block;
}

.isctf-register-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(102, 126, 234, 0.6);
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  color: #fff;
  text-decoration: none;
}

.isctf-register-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(102, 126, 234, 0.5);
}

/* 动画效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .isctf-home-container {
    padding: 1rem 0.5rem;
  }

  .isctf-glass-card {
    border-radius: 15px;
  }

  .isctf-banner img {
    max-height: 200px;
  }

  .isctf-content {
    padding: 1.5rem 1.5rem;
    max-height: calc(100vh - 200px - 56px - 3rem);
  }

  .isctf-content h1 {
    font-size: 2rem;
  }

  .isctf-content h2 {
    font-size: 1.5rem;
  }

  .isctf-content h3 {
    font-size: 1.25rem;
  }

  .isctf-content h4 {
    font-size: 1.1rem;
  }

  .isctf-content ul {
    padding-left: 1.5rem;
  }
}

@media (max-width: 480px) {
  .isctf-content {
    padding: 1rem 1rem;
  }

  .isctf-content h1 {
    font-size: 1.75rem;
  }

  .isctf-content h2 {
    font-size: 1.35rem;
  }

  .isctf-content ul {
    padding-left: 1.2rem;
  }
}

/* 打印样式 */
@media print {
  .isctf-glass-card {
    background: white;
    box-shadow: none;
    border: 1px solid #ddd;
  }

  .isctf-content {
    max-height: none;
    overflow: visible;
  }
}

/* 隐藏主题切换按钮 */
.theme-switch {
  display: none !important;
}
