/* 通用样式 */
body {
    margin: 0;
    padding: 0;
    background-color: rgba(0, 0, 0, 0.85);
    color: whitesmoke;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.7;
  }
  
  /* 卡片容器 */
  .wrapper {
    width: 100%;
    padding: 60px 0;
    position: relative;
    display: flex;
    justify-content: center;
  }
  
  /* 单选按钮样式 */
  [type="radio"]:checked,
  [type="radio"]:not(:checked) {
    position: absolute;
    left: -9999px;
  }
  
  [type="radio"]:checked + label,
  [type="radio"]:not(:checked) + label {
    position: relative;
    padding-left: 12px;
    padding-right: 12px;
    letter-spacing: 3px;
    cursor: pointer;
    line-height: 30px;
    font-size: 15px;
    text-transform: uppercase;
    font-weight: 500;
    color: #fff;
    margin-right: 10px;
    margin-left: 10px;
    transition: all 0.2s ease;
  }
  
  [type="radio"]:checked + label:after,
  [type="radio"]:not(:checked) + label:after {
    content: "";
    border-radius: 2px;
    height: 20px;
    padding: 5px;
    background-color: #e74c3c;
    position: absolute;
    bottom: 0;
    left: 6px;
    top: -4px;
    z-index: -1;
    transition: all 0.2s ease;
  }
  
  [type="radio"]:not(:checked) + label:after {
    opacity: 0;
    width: 0;
  }
  
  [type="radio"]:checked + label:after {
    opacity: 1;
    width: calc(100% - 24px);
  }
  
  /* 卡片样式 */
  .cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 800px;
    margin-top: 20px;
  }
  
  .project {
    position: relative;
    border-radius: 4px;
    box-shadow: 6px 7px 28px 0 rgba(16, 16, 16, 0.7);
    transition: all 0.3s linear;
    opacity: 0;
    transform: scale(0);
    padding: 0;
    margin: 0;
    visibility: hidden;
    background-size: cover;
    background-position: center;
    min-height: 140px;
    min-width: calc(22% - 28px);
    margin-left: 10px;
    margin-right: 10px;
    margin-top: 20px;
  }
  
  .project.js {
    background-image: url('https://via.placeholder.com/150');
    border: 3px solid #f1c40f;
  }
  
  .project.html {
    background-image: url('https://via.placeholder.com/150');
    border: 3px solid #ff932b;
  }
  
  .project.react {
    background-image: url('https://via.placeholder.com/150');
    border: 3px solid #64e1fe;
  }
  
  .project.vue {
    background-image: url('https://via.placeholder.com/150');
    border: 3px solid #6edbbe;
  }
  
  .project.angular {
    background-image: url('https://via.placeholder.com/150');
    border: 3px solid #e75139;
  }
  
  /* 样式变化：选中的单选按钮后显示相关卡片 */
  .checkbox-all:checked ~ .cards .project.js,
  .checkbox-all:checked ~ .cards .project.html,
  .checkbox-all:checked ~ .cards .project.react,
  .checkbox-all:checked ~ .cards .project.vue,
  .checkbox-all:checked ~ .cards .project.angular,
  .checkbox-js:checked ~ .cards .project.js,
  .checkbox-html:checked ~ .cards .project.html,
  .checkbox-react:checked ~ .cards .project.react,
  .checkbox-vue:checked ~ .cards .project.vue,
  .checkbox-angular:checked ~ .cards .project.angular {
    opacity: 1;
    transform: scale(1);
    visibility: visible;
    border-width: 3px;
  }
  
  /* 卡片头部样式 */
  .project-header {
    font-size: 18px;
    font-weight: 600;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.5);
  }
  
  /* 卡片内容区域 */
  .project-body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
  }
  
  /* 按钮样式 */
  .wear-btn {
    padding: 10px 20px;
    background-color: #fff;
    color: #000;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  
  .wear-btn:hover {
    background-color: #e74c3c;
  }
  
  /* 响应式设计 */
  @media only screen and (max-width: 650px) {
    .container {
      width: 100%;
    }
  
    label {
      display: block;
    }
  
    .cards {
      flex-direction: column;
      width: auto;
    }
  }
  