/* Snows Blog - 首页完整样式（仿原博客） */

/* 首屏 */
.first-screen {
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, var(--theme-color), #6dba82, #5073b8);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  transition: transform 0.8s ease, opacity 0.8s ease;
}

.first-screen.hide {
  transform: translateY(-100%);
  opacity: 0;
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.first-screen-content {
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.site-title {
  font-size: 80px;
  font-weight: bold;
  font-family: "优设标题黑", sans-serif;
  margin-bottom: 20px;
  letter-spacing: 10px;
}

.site-description {
  font-size: 20px;
  font-family: "电影旁白体", cursive;
  margin-bottom: 40px;
  opacity: 0.9;
}

.scroll-tip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  opacity: 0.8;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

/* 主内容区 */
.home-wrap {
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding-top: 80px;
  background: var(--under-background);
}

.content-center {
  max-width: 920px;
  flex: 1;
  padding: 0 20px;
}

.article-title-wrap {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 40px;
}

.article-icon {
  width: 30px;
  height: 30px;
}

.content-title {
  font-size: 28px;
  font-weight: bold;
  color: var(--text-title-color);
  font-family: "优设标题黑", sans-serif;
  letter-spacing: 5px;
}

/* 文章列表 */
.article-list-wrap {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding-bottom: 60px;
}

.article-item {
  display: flex;
  background: var(--bg-content-color);
  border-radius: var(--border-radius-3);
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.article-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.article-item.img-left .cover-img-wrap {
  order: 1;
}

.article-item.img-left .article-content {
  order: 2;
}

.article-item.img-right .cover-img-wrap {
  order: 2;
}

.article-item.img-right .article-content {
  order: 1;
}

.cover-img-wrap {
  width: 450px;
  height: 280px;
  overflow: hidden;
  cursor: pointer;
}

.cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.article-item:hover .cover-img {
  transform: scale(1.1);
}

.article-content {
  flex: 1;
  padding: 33px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.article-time {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-color-2);
  padding: 2px 10px;
  background: var(--bg-content-color-2);
  border-radius: 5px;
  width: fit-content;
  margin-bottom: 15px;
}

.article-title {
  font-size: 22px;
  font-weight: bold;
  color: var(--text-title-color);
  margin-bottom: 15px;
  line-height: 1.4;
  cursor: pointer;
  transition: color 0.3s ease;
}

.article-title:hover {
  color: var(--theme-color);
}

.article-excerpt {
  font-size: 14px;
  color: var(--text-color-2);
  line-height: 1.8;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  color: var(--text-disabled-color);
  margin-bottom: 15px;
}

.article-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.article-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.label-item {
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 12px;
  color: #fff;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.label-item:hover {
  transform: scale(1.05);
}

/* 右侧边栏 */
.slider-wrap {
  width: 320px;
  padding: 0 20px;
  flex-shrink: 0;
}

.position-wrap {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.slider-item {
  background: var(--bg-wrap-color);
  border-radius: var(--border-radius-2);
  padding: 25px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.slider-title {
  font-size: 16px;
  font-weight: bold;
  color: var(--text-title-color);
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--theme-color);
}

/* 作者信息 */
.auth-info {
  text-align: center;
}

.avatar-wrap {
  width: 100px;
  height: 100px;
  margin: 0 auto 15px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--theme-color);
}

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

.author-name {
  font-size: 18px;
  font-weight: bold;
  color: var(--text-title-color);
  margin-bottom: 5px;
}

.author-desc {
  font-size: 13px;
  color: var(--text-disabled-color);
  font-family: "电影旁白体", cursive;
}

/* 访问信息 */
.info-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}

.info-item:last-child {
  border-bottom: none;
}

.info-item .label {
  font-size: 13px;
  color: var(--text-color);
}

.info-item .value {
  font-size: 14px;
  font-weight: bold;
  color: var(--theme-color);
  font-family: DSDIGI, monospace;
}

/* 标签云 */
.label-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.label-cloud .label-item {
  padding: 5px 10px;
  font-size: 12px;
  border-radius: 12px;
  background: var(--theme-light-color-9);
  color: var(--theme-color);
}

/* 移动端适配 */
@media (max-width: 768px) {
  .first-screen {
    position: relative;
    height: 60vh;
  }
  
  .site-title {
    font-size: 40px;
  }
  
  .home-wrap {
    flex-direction: column;
    padding-top: 0;
  }
  
  .slider-wrap {
    width: 100%;
    padding: 20px;
  }
  
  .position-wrap {
    position: static;
  }
  
  .article-item {
    flex-direction: column;
  }
  
  .article-item.img-left .cover-img-wrap,
  .article-item.img-right .cover-img-wrap {
    order: 1;
  }
  
  .article-item.img-left .article-content,
  .article-item.img-right .article-content {
    order: 2;
  }
  
  .cover-img-wrap {
    width: 100%;
    height: 200px;
  }
}
