/* 重置样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 全局隐藏滚动条但保留滚动功能 */
html, body {
  overflow: hidden;
  height: 100vh;
  width: 100vw;
}

/* 针对备案号和版权信息的样式 */
.icp-info {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  margin: 0;
  padding: 0;
  text-align: center;
  line-height: 1.4;
}

/* 确保版权文本和备案号链接样式一致 */
.icp-info span,
.icp-info a {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  text-decoration: none;
  display: inline;
  margin: 0;
}

/* 保持备案号链接的悬停效果 */
.icp-info a:hover {
  color: var(--accent-color);
  text-decoration: none;
}

/* 根变量定义 - 黑色主题 */
:root {
  /* 颜色变量 - 黑色主题 */
  --primary-color: #ffffff;
  --secondary-color: #cccccc;
  --accent-color: #00aaff;
  --background-color: #121212;
  --surface-color: rgba(255, 255, 255, 0.05);
  --text-color: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --border-color: rgba(255, 255, 255, 0.1);

  /* 阴影变量 - 柔和阴影 */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);

  /* 间距变量 */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2.5rem;
  --spacing-xl: 4rem;
  --spacing-2xl: 6rem;

  /* 圆角变量 */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 50%;

  /* 字体变量 */
  --font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-size-sm: 0.875rem;
  --font-size-md: 1rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.75rem;
  --font-size-2xl: 2.5rem;
  --font-size-3xl: 3rem;

  /* 过渡变量 */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* Vno Jekyll 风格基础样式 */
body.vno-style {
  font-family: var(--font-family);
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* 背景层 - 枫叶效果带模糊 */
.background-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://picsum.photos/id/1015/1920/1080');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  filter: brightness(0.6) blur(4px);
  z-index: -1;
  transform: scale(1.02); /* 轻微放大以避免边缘空白 */
}

/* 背景叠加层 - 增强层次感 */
.background-layer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(18, 18, 18, 0.9), rgba(30, 30, 30, 0.8));
  z-index: -1;
}

/* 内容层 */
.content-layer {
  position: relative;
  z-index: 1;
  height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-lg) var(--spacing-md);
  backdrop-filter: blur(1px); /* 轻微模糊增强融合感 */
  overflow: hidden;
}

/* 站点头部 */
.site-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
  animation: fadeIn 1s ease-out;
}

/* 头像 */
.avatar {
  width: 120px;
  height: 120px;
  margin: 0 auto var(--spacing-md);
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--primary-color);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal);
}

.avatar:hover {
  transform: scale(1.05);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 站点标题 */
.site-title {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  margin-bottom: var(--spacing-xs);
  letter-spacing: -0.5px;
  color: var(--primary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); /* 添加文本阴影增强可读性 */
}

/* 站点描述 */
.site-description {
  font-size: var(--font-size-md);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
  font-weight: 300;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3); /* 添加文本阴影增强可读性 */
}

/* 站点按钮 */
.site-buttons {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
  flex-wrap: wrap;
}

/* 按钮样式 */
.button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--primary-color);
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition: all var(--transition-normal);
  font-size: var(--font-size-md);
  backdrop-filter: blur(5px);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.button:hover {
  background-color: var(--primary-color);
  color: var(--background-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.button.secondary {
  background-color: transparent;
  border-color: var(--border-color);
  color: var(--primary-color);
}

.button.secondary:hover {
  background-color: transparent;
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
}

/* 站点主内容 */
.site-main {
  width: 100%;
  max-width: 800px;
}

/* 菜单容器 */
.menu-container {
  width: 100%;
  padding: var(--spacing-md) 0;
}

/* 菜单项目容器 */
.menu-items {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--spacing-sm);
  width: 100%;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  max-width: 600px; /* 控制整体宽度 */
}

/* 菜单项样式 */
.menu-item {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--primary-color);
  padding: 0.75rem 1.5rem; /* 与之前按钮保持一致 */
  border-radius: var(--radius-sm);
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  transition: all var(--transition-normal);
  border: 1px solid var(--border-color);
  min-width: auto; /* 不再限制最小宽度，让内容自适应 */
  justify-content: center;
  animation: fadeInUp 0.8s ease-out;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  flex: 1;
  max-width: 150px;
}

/* 菜单项悬停增强效果 */
.menu-item::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
  transform: scale(0);
  transition: transform var(--transition-normal);
  z-index: 0;
}

.menu-item:hover::before {
  transform: scale(1);
}

.menu-item:hover {
  transform: translateY(-3px);
  background-color: rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.menu-item:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

/* 菜单图标样式 */
.menu-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background-color: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: var(--spacing-xs);
  color: var(--primary-color);
  transition: all var(--transition-normal);
  flex-shrink: 0;
  font-size: var(--font-size-md);
}

.menu-item:hover .menu-icon {
  transform: scale(1.1);
  background-color: rgba(255, 255, 255, 0.3);
}

/* 菜单文本样式 */
.menu-item span {
  font-size: var(--font-size-md);
  font-weight: 500;
  color: var(--primary-color);
}

/* 站点页脚 */
.site-footer {
  margin-top: var(--spacing-xl);
  text-align: center;
  animation: fadeIn 1.2s ease-out;
}

/* 社交链接 */
.social-links {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
  align-items: center;
}

/* 社交链接项 */
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--primary-color);
  text-decoration: none;
  transition: all var(--transition-normal);
  font-size: var(--font-size-lg);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
}

/* 备案信息样式 */
.icp-info {
  margin-top: var(--spacing-md);
  text-align: center;
}

.icp-info a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--font-size-sm);
  transition: color var(--transition-fast);
}

.icp-info a:hover {
  color: var(--primary-color);
}

.social-link:hover {
  transform: translateY(-3px);
  background-color: rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

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

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

/* 菜单项延迟动画 */
.menu-item:nth-child(1) { animation-delay: 0.1s; }
.menu-item:nth-child(2) { animation-delay: 0.2s; }
.menu-item:nth-child(3) { animation-delay: 0.3s; }
.menu-item:nth-child(4) { animation-delay: 0.4s; }

/* 响应式设计 */
@media (max-width: 768px) {
  :root {
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --font-size-2xl: 2rem;
  }
  
  .menu-items {
    flex-wrap: wrap;
    gap: var(--spacing-sm);
  }
  
  .menu-item {
    flex: 1 0 45%;
    max-width: 45%;
    min-width: auto;
  }

  .site-title {
    font-size: var(--font-size-xl);
  }

  .avatar {
    width: 100px;
    height: 100px;
  }
}

@media (max-width: 480px) {
  .content-layer {
    padding: var(--spacing-md) var(--spacing-sm) 60px;
  }

  .site-buttons {
    flex-direction: column;
    align-items: center;
  }

  .button {
    width: 100%;
    max-width: 250px;
    text-align: center;
  }

  .social-links {
    flex-wrap: wrap;
    gap: var(--spacing-xs);
  }

  .social-link {
    width: 36px;
    height: 36px;
    font-size: var(--font-size-md);
  }
}

/* 深色模式支持 - 黑色主题增强 */
@media (prefers-color-scheme: dark) {
  :root {
    --background-color: #0a0a0a;
    --surface-color: rgba(255, 255, 255, 0.03);
    --border-color: rgba(255, 255, 255, 0.1);
  }
  
  .background-layer {
    filter: brightness(0.4) contrast(1.2);
  }
  
  .menu-item {
    background-color: rgba(255, 255, 255, 0.03);
  }
  
  .menu-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
  }
  
  .social-link {
    background-color: rgba(255, 255, 255, 0.03);
  }
  
  .social-link:hover {
    background-color: rgba(255, 255, 255, 0.08);
  }
}
