* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  background-color: #f4f4f4;
  width: 100%;
  height: 100%;
  background-image: url('/assets/back.webp');
  background-size: cover;
  /* 保持图片比例并覆盖整个背景 */
  background-position: center;
  /* 将图片居中 */
  background-repeat: no-repeat;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px;
}
.content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  height: 100%;
}
main {
  flex: 2;
  min-width: 300px;
}
aside {
  flex: 1;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.post-card {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px;
}
.post-card h2 {
  color: #fff;
  border-radius: 8px 8px 0 0;
  text-align: center;
  font-weight: 600;
  font-size: 44px;
  letter-spacing: 10px;
  margin-bottom: 10px;
}
.post-card .go:hover {
  cursor: pointer;
  color: blue;
}
.post-card h4 {
  text-align: center;
  font-weight: 600;
  color: #eee;
  font-size: 16px;
  margin-top: 20px;
}
.post-card .post-meta {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  border-radius: 0 0 8px 8px;
  font-size: 0.9rem;
  color: #7f8c8d;
}
.post-card .post-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.post-card .post-meta span .icon {
  width: 20px;
  height: 20px;
}
.sidebar-widget {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.sidebar-widget h3 {
  background-color: #00CCCC;
  color: #fff;
  padding: 0.8rem;
  border-radius: 8px 8px 0 0;
  opacity: 0.8;
}
.sidebar-widget .tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem;
}
.sidebar-widget .tag-cloud .tag {
  background-color: #ecf0f1;
  color: #2c3e50;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-size: 12px;
  transition: background-color 0.3s ease;
}
.sidebar-widget .tag-cloud .tag:hover {
  background-color: #1BA37C;
  color: #fff;
}
.sidebar-widget .avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto;
  display: block;
  /* 添加过渡效果，让动画更加平滑 */
  transition: filter 375ms ease-in 0.5s, transform 0.3s;
}
.sidebar-widget .avatar:hover {
  /* 当鼠标悬停时，元素将会旋转360度 */
  transform: rotate(360deg);
}
.sidebar-widget .name {
  font-weight: 600;
  font-size: 26px;
  text-align: center;
  margin: 10px;
  color: #fff;
}
.sidebar-widget .wx {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  gap: 4px;
  cursor: pointer;
  position: relative;
  color: #fff;
  font-weight: 600;
}
.sidebar-widget .wx .icon {
  width: 30px;
  height: 30px;
}
.sidebar-widget .wx .tip {
  font-size: 12px;
  color: #000;
  text-align: center;
  font-weight: 500;
}
.sidebar-widget .wx .p-img {
  width: 200px;
  height: 200px;
  border-radius: 8px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 44px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}
.sidebar-widget .wx:hover .p-img {
  opacity: 1;
  visibility: visible;
}
.sidebar-widget .btn {
  width: 100%;
  height: 30px;
  background-color: #EC8D31;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  gap: 8px;
  border-radius: 8px;
  cursor: pointer;
  color: #fff;
  transition: background-color 0.4s ease;
  font-size: 18px;
  font-weight: 600;
}
.sidebar-widget .btn .icon {
  width: 24px;
  height: 24px;
}
.sidebar-widget .btn:hover {
  background: #FDD5E0 !important;
  color: #000;
}
@media (max-width: 768px) {
  .content {
    flex-direction: column;
  }
  .post-card h2 {
    letter-spacing: normal;
  }
}
