::-webkit-scrollbar {
  width: 2px;
  /* 设置滚动条宽度 */
}

::-webkit-scrollbar-thumb {
  background-color: #888;
  /* 设置滑块颜色 */
  border-radius: 150px;
  /* 设置滑块圆角 */
}

::-webkit-scrollbar-track {
  background-color: #ffffff;
  /* 设置轨道颜色 */
}


#desktop-wz,
#mobile-wz {
  display: none;
}

@media (max-width: 768px) {

  #mobile-wz {
    display: block;
  }

  #desktop-wz {
    display: none;
  }
}

@media (min-width: 769px) {

  #mobile-wz {
    display: none;
  }

  #desktop-wz {
    display: block;
  }
}

select {
  background-color: rgba(0, 0, 0, 0);
  text-align: center;
  border-radius: 15px;
  border-color: rgb(0, 0, 0);
  color: rgb(0, 0, 0);
}

option {
  background-color: rgb(243, 244, 246);
  ;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #33333300;
  padding: 10px 20px;
  color: white;
}

.navbar a {
  color: white;
  text-decoration: none;
  padding: 8px 16px;
}

.navbar .menu {
  display: none;
}

.navbar .menu-icon {
  font-size: 1.5em;
  cursor: pointer;
}

@media (max-width: 600px) {
  .navbar .menu {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 20px;
    background-color: #0000009a;
    width: 150px;
    border-radius: 5px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  }

  .navbar .menu a {
    text-align: center;
    padding: 10px 0;
    border-bottom: 1px solid #ffffff;
  }

  .navbar .menu a:last-child {
    border-bottom: none;
  }
}

.navbar {
  position: relative;
}

.menu-icon {
  width: 25px;
  height: 20px;
  background-image: url('../images/menu-btn.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
}

.menu {
  display: none;
  flex-direction: column;
}

@media (min-width: 768px) {
  .menu {
    display: flex;
    flex-direction: row;
  }

  .menu-icon {
    display: none;
  }
}

.navigation,
.navbar {
  display: none;
}


@media (min-width: 1070px) {
  .navigation {
    display: block;
  }
}


@media (max-width: 1070px) {
  .navbar {
    display: block;
  }
}

/* 联系我邮箱 */
.Contact-img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 15px;
  width: 350px;
  height: auto;
}

.Contact-img:hover {
  transform: scale(1.05);
  /* 放大图片 */
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
  /* 增加阴影 */
}

/* 版本号 */
sup {
  font-size: 10px;
}

/* 工作经历CSS */
.experience-card {
  display: flex;
  padding: 24px;
  margin-bottom: 24px;
  background-color: #ffffff;
  border-radius: 15px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: box-shadow 0.2s;
}

.experience-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.experience-left {
  width: 300px;
  flex-shrink: 0;
  padding-right: 20px;
  border-right: 1px solid #e0e0e0;
}

.company {
  font-weight: 600;
  font-size: 16px;
  color: #333;
  margin-bottom: 6px;
}

.date {
  font-size: 14px;
  color: #999;
}

.experience-right {
  flex: 1;
  padding-left: 20px;
}

.position {
  font-size: 16px;
  font-weight: 500;
  color: #111;
  margin-bottom: 8px;
}

.experience-right p {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 640px) {
  .experience-card {
    flex-direction: column;
    padding: 20px;
  }

  .experience-left {
    width: auto;
    border-right: none;
    padding-right: 0;
    margin-bottom: 12px;
  }

  .experience-right {
    padding-left: 0;
  }
}

/* 最近文章CSS */
.recent-posts {
  max-width: 1150px;
  margin: 60px auto;
  padding: 0 2em;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.section-title {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 30px;
  text-align: center;
}

.posts-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.post-card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}

.post-card:hover {
  transform: translateY(-4px);
}

.post-image {
  position: relative;
  height: 200px;
  background-size: cover;
  background-position: center;
}

.gradient-overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  color: white;
}

.post-title {
  font-size: 18px;
  margin: 0 0 5px;
}

.post-date {
  font-size: 13px;
  color: #ddd;
}

.post-content {
  padding: 20px;
}

.post-summary {
  font-size: 15px;
  color: #333;
  margin-bottom: 12px;
  line-height: 1.5;
}

.read-more {
  font-weight: 500;
  color: #6a59d1;
  text-decoration: none;
}

.read-more:hover {
  text-decoration: underline;
}

.contact-section {
  max-width: 600px;
  margin: 0 auto;
  padding: 0px 2em;
  text-align: center;
}

.contact-section h2 {
  font-size: 32px;
  margin-bottom: 10px;
  color: #111827;
}

.contact-section p {
  color: #6b7280;
  margin-bottom: 40px;
}

.contact-form {
  text-align: left;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  color: #374151;
  font-size: 14px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 16px;
  box-sizing: border-box;
  transition: border 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #000;
}

#submitBtn {
  display: inline-block;
  background-color: #111827;
  color: #fff;
  padding: 10px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s;
}

#submitBtn:hover {
  background-color: #374151;
}

@media (max-width: 600px) {
  .contact-section h2 {
    font-size: 26px;
  }
}

#submitBtn.loading {
  position: relative;
  padding-left: 40px;
}

#submitBtn.loading::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border: 2px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* 语言切换按钮样式 */
.lang-switch {
  max-width: 600px;
  margin: 20px auto 0;
  text-align: right;
  padding: 0 20px;
  font-size: 14px;
}

.lang-switch a {
  color: #374151;
  text-decoration: none;
  margin-left: 10px;
  cursor: pointer;
}

.lang-switch a.active {
  font-weight: 700;
  color: #111827;
  cursor: default;
}