body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #333;
    color: #fff; /* 白色字体 */
}

.carousel {
    position: relative;
    overflow: hidden;
    padding: 10px;
    background-color: #333;
}

.carousel-item {
    position: absolute;
    width: 100%;
    height: 100%;
    transition: opacity 0.5s ease-in-out;
}

.carousel img {
    width: 100%;
    height: auto;
}

.tutorial {
    padding: 20px;
    background-color: #333;
    color: #fff;
}

.tutorial h2 {
    margin-bottom: 10px;
}

.tutorial-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.tutorial-images a {
    display: block;
}

.tutorial-images img {
    width: 100%;
    height: auto;
}

.articles {
    padding: 20px;
    background-color: #333;
    color: #fff;
    margin-top: -20px;
}

.articles h2 {
    margin-bottom: 10px;
}

.tags, .earnings-tags {
    margin-bottom: 10px;
}

.tag {
    background-color: #555;
    border: 1px solid #444;
    padding: 5px 10px;
    margin-right: 5px;
    cursor: pointer;
    border-radius: 4px;
}

.tag.selected {
    background-color: #007bff;
    color: white;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.article {
    display: flex;
    align-items: flex-start;
    gap: 16px; /* 间距 */
    border: 1px solid #ccc; /* 添加边框 */
    padding: 16px; /* 内边距 */
    margin-bottom: 16px; /* 底部间距 */
    border-radius: 8px; /* 圆角 */
}


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

.article-content {
    flex: 1; /* 使内容区域占据剩余空间 */
}

.article-image {
    max-width: 50%; /* 图片最大宽度 */
    height: auto; /* 保持图片的宽高比 */
    max-height: 200px; /* 图片最大高度 */
}

.article-content h3 {
    margin: 0;
    font-size: 18px;
}

.article-content p {
    margin: 5px 0;
    color: #ccc;
}

.article-content a {
    color: #007bff;
    text-decoration: none;
}

.article img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.earnings {
    margin-top: 20px;
}

.earnings h3 {
    margin-bottom: 10px;
}

.earnings p {
    margin: 5px 0;
}

.marquee-images {
    display: flex;
    overflow-x: hidden;
    position: relative;
    margin-top: 20px;
}

.marquee-images img {
    width: 25%;
    height: auto;
    margin-right: 10px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #333;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #444;
    width: 80%;
    max-width: 600px;
    border-radius: 8px;
    color: #fff;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}


/* 轮播图 */
*{
    padding: 0;
    margin: 0;
  }
  #slideshow{
    width: 100%;
    /* height: 350px; */
    margin: 0 auto; /*设置在页面水平居中*/
    overflow: hidden;
    position: relative;
  }

  #slideshow::before {
    content: '';
    display: block;
    padding-top: 31.25%; /* (600 / 1920) * 100 = 31.25% */
}


  #slideshow img{
    /* width: 800px; */
    width: 100%;
    position: absolute; /*图片采取绝对定位，均位于左上角，重叠在一起*/
    top: 0;
    left: 0;
    opacity: 0; /*初始不透明度为0，图片都看不见*/
    transition: opacity 1s linear; /*--重点--定义一个关于透明度的transition*/
  }
  #slideshow img.active{
    opacity: 1; /*有active类的图片不透明度为1，即显示图片*/
  }
  /*-- 设置页码的样式 --*/
  #slideshow div{
    width: 100%;
    position: absolute;
    bottom: 10px;
    text-align: center;
  }
  #slideshow span{
    display: inline-block;
    width: 25px;
    line-height: 25px; /*当只有一行文本时height等于line-height*/
    border-radius: 25px; /*设置页码为圆形*/
    margin: 0 15px;
    background: white;
    font-size: 16px;
  }
  #slideshow span.active{
    color: white;
    background: #FFDD55;
  }
  /*-- 设置图片描述文本的样式 --*/
  #slideshow p{
    position: absolute;
    top: 30px;
    left: -400px; /*相对于轮播图左侧左移400px*/
    line-height: 30px;
    padding: 5px 30px;
    font-size: 20px;
    color: white;
    background-color: rgba(100,100,100,0.6); /*用rgba设置一个带透明度的背景颜色*/
    opacity: 0;
    transition: all 0.5s;
  }
  #slideshow p.active{
    left: 0;
    opacity: 1;
  }


  /* tab */
  @import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap");

  :root {
      --primary-color: #185ee0;
      --secondary-color: #e6eef9;
  }

  *,
  *:after,
  *:before {
      box-sizing: border-box;
  }

  body {

      font-family: "Inter", sans-serif;
      background-color: rgba(#e6eef9, 0.5);
      color: #333; /* 设置全局字体颜色 */
  }
  .containertab {

      /* position: absolute; */
      /* left: 0;
      top: 0;
      right: 0;
      bottom: 0;
        /* margin-left: 20px; */
        /* margin-left: 0; */
      display: flex;
      align-items: center;
      justify-content: left;
  }
  .tabs {

      display: flex;
      position: relative;
      background-color: #fff;
      box-shadow: 0 0 1px 0 rgba(#185ee0, 0.15), 0 6px 12px 0 rgba(#185ee0, 0.15);
      padding: 0.75rem;
      border-radius: 99px;
      * {
          z-index: 2;
      }
  }

  input[type="radio"] {
      display: none;
  }

  .tabbar {
    margin-top: 3px;
      display: flex;
      align-items: center;
      justify-content: center;
      height: 18px;
      width: 120px;
      font-size: 1.25rem;
      font-weight: 500;
      border-radius: 99px;
      cursor: pointer;
      transition: color 0.15s ease-in;
      color: #333;
  }

  .notification {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 2rem;
      height: 2rem;
      margin-left: 0.75rem;
      border-radius: 50%;
      background-color: var(--secondary-color);
      transition: 0.15s ease-in;
  }

  input[type="radio"] {
      &:checked {
          & + label {
              color: var(--primary-color);
              & > .notification {
                  background-color: var(--primary-color);
                  color: #007bff;

              }
          }
      }
  }

  input[id="radio-1"] {
      &:checked {
          & ~ .glider {
              transform: translateX(0);
          }
      }
  }

  input[id="radio-2"] {
      &:checked {
          & ~ .glider {
              transform: translateX(100%);
          }
      }
  }

  input[id="radio-3"] {
      &:checked {
          & ~ .glider {
              transform: translateX(200%);
          }
      }
  }

  .glider {

      position: absolute;
      display: flex;
      height: 25px;
      width: 120px;
      background-color: var(--secondary-color);
      z-index: 1;
      border-radius: 99px;
      transition: 0.25s ease-out;
  }

  @media (max-width: 700px) {
      .tabs {

          transform: scale(0.6);
      }
  }
