 /* Reset and base */
 * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: #f9f9fc;
    color: #1a1a3d;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }
  a {
    color: #4f5ce1;
    text-decoration: none;
  }
  a:hover {
    text-decoration: underline;
  }

  /* Layout */
  .container {
    display: flex;
    min-height: 100vh;
    flex-wrap: nowrap;
  }
  /* Sidebar */
  .sidebar {
    background: #4f5ce1;
    color: white;
    width: 220px;
    display: flex;
    flex-direction: column;
    padding: 20px;
    flex-shrink: 0;
    z-index: 100;
  }
  .sidebar .logo img{
     width: 180px;
     margin-bottom: 30px;
  }
  .logo2{display: none;}
  .nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    user-select: none;
    transition: background-color 0.3s ease;
    line-height: 15px;
  }
  .sidebar a{
    color: inherit;
    text-decoration: none;
  }
  .nav-item.active,
  .nav-item:hover {
    background: #6c75f6;
    color: #fff;
  }
  .nav-item img {
    width: 26px;
    height: 26px; 
    line-height: 26px;
  }


  .nav-item2 {
    display: block;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    user-select: none;
    transition: background-color 0.3s ease;
    line-height: 15px;
  }
  .sidebar a{
    color: inherit;
    text-decoration: none;
  }
  .nav-item2.active,
  .nav-item2:hover {
    background: #6c75f6;
  }
  .nav-item2 img {
    width: 26px;
    height: 26px; 
    line-height: 26px;
  }
  .submenu{
    display: none; margin-top: 8px; padding-left: 36px; flex-direction: column; gap: 6px;
  }
  .submenu-item{
    display: block; padding: 6px 0; color: white; font-size: 0.9rem; text-decoration: none;
  } 
  /* Main content */
  .main-content {
    flex: 1;
    padding: 30px 40px;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
  }

  /* Header top right */
  .header-top {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: #666;
  }
  .header-top .api-info {
    background: #f5e6d9;
    color: #b36a00;
    padding: 5px 10px;
    border-radius: 12px;
    font-weight: 600;
  }
  .header-top .login-btn2 {
    background: #4f5ce1;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s ease;
  }
  .header-top .login-btn2:hover {
    background: #3a44b8;
  }
  .header-top .free-tag {
    background: #ff7f50;
    color: white;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 12px;
    margin-left: 6px;
    user-select: none;
  }

  /* Title */
  .title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #1a1a3d;
  }

  .logotit{
    position: relative;
    overflow: hidden; 
    font-size: 35px;
    margin-right: 10px;
    line-height: 1;
    white-space: nowrap;
    background: linear-gradient(268.18deg, #ff8e11 4.02%, #ee07c4 97.5%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-change 15s infinite linear;
    background-image: linear-gradient(210.39deg, #4f5ce1 0%, #3a44b8 0%, #14e3ff 7.29%, #4a9dff 15.1%, #aa82ff 21.87%, #ff26c2 29.69%, #ff6543 34.37%, #ffd643 40.62%, #4a9dff 43.75%, #4f5ce1 51.04%, #14e3ff 58.85%, #4a9dff 65.1%, #aa82ff 72.4%, #ff26c2 78.65%, #14e3ff 85.94%, #aa82ff 92.71%, #3a44b8 100%, #3a44b8 100%);
    background-size: 800% 100%;
    background-position: 0 0;
  }
  .title .highlight {
    color: #4f5ce1;
  }

  /* Feature cards container */
  .features {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
  }
  .feature-card {
    background: #f0f2ff;
    border-radius: 16px;
    padding: 20px;
    flex: 1 1 250px;
    min-width: 250px;
    box-shadow: 0 4px 12px  #c5cbff;
    position: relative;
    color: #2a2a4a;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .feature-card:hover {
    box-shadow: 0 4px 16px #606bff;
  }
  .feature-card .icon {
    width: 40px;
    height: 40px;
    background: #6c75f6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    position: absolute;
    top: 20px;
    left: 20px;
  }
  .feature-card .tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #a3b1ff;
    color: white;
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 12px;
    user-select: none;
  }
  .feature-card h3 {
    margin-top: 60px;
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 700;
  }
  .feature-card p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.3;
  }

  .goimg{
    float: right; margin-top: -50px; height: 36px; margin-right: 30px;
    transition: transform 0.5s ease; /* 平滑过渡效果 */
    
  }
  .goimg:hover{
    transform: scale(1.2); /* 放大10% */
  }
  /* Bottom examples section */
  .examples-section {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
  }
  .example-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgb(0 0 0 / 0.1);
    flex: 1 1 280px;
    min-width: 280px;
    display: flex;
    gap: 15px;
    padding: 15px;
    align-items: center;
    cursor: pointer;
    transition: box-shadow 0.3s ease;
  }
  .example-card:hover {
    box-shadow: 0 4px 16px rgb(0 0 0 / 0.15);
  }
  .example-card img {
    width: 100px; 
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
  }
  .example-info {
    flex: 1;
    display: grid;
    flex-direction: column;
    gap: 6px;
  }
  .example-info .title {
    font-weight: 700;
    font-size: 1rem;
    color: #1a1a3d;
  }
  .example-info .duration {
    font-size: 0.85rem;
    color: #999;
  }
  .example-info a {
    font-size: 0.9rem;
    color: #4f5ce1;
    font-weight: 600;
    align-self: flex-start;
    margin-top: -20px;
    margin-left: 5px;
  }
  .sidebar-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: 10px;
    color: #4f5ce1;
    font-size: 1.5rem;
  }
 .loginzc{
    display: flex;
    justify-content: center;
    margin-top: 30px;
 }
 .memberinfo{
  background: #e9ebfb;
  color: #6c75f6; 
  height: 60px;  
  border-radius: 12px;
  font-weight: 600;
  margin-bottom: 30px;
 }
.membervip{display: inline-block; margin: 10px;}
.membertxt{ margin-top: -50px; margin-left: 60px;}
.logout{
  background: #4f5ce1;
  color: #FFF;
  font-size: 0.75rem;
  padding: 6px 8px;
  border-radius: 6px;
  user-select: none;
  margin-left: 10px;
}
.form-control{
  width: 100%;
  border: 2px solid #c5cbff;
  border-radius: 5px;
  padding: 8px 12px;
  font-size: 14px;
  background-image: linear-gradient(to bottom right, #f7fdf8, #e3ddf0);
}
.uploadmain{
  width: 100%;   
  margin: 0 auto;
  background-color: #fff;
  box-shadow: 0 4px 12px #c5cbff;
  border-radius: 10px; 
}
.kamibtn{
  background: #606bff;
    color: #FFF;
    font-size: 0.75rem;
    padding: 6px 8px;
    border-radius: 6px;
    user-select: none;
    margin-top: 10px;
    border: 1px solid;
}
input[type="text"]:focus {
  border-color: #4f5ce1;
  outline: none; /* 移除默认的轮廓 */
}
.txtcz{margin-top: -30px; font-size: 11px; color: #F56C6C;}
  /* Responsive */
  @media (max-width: 900px) {
    .container {
      flex-direction: column;
    }
    .sidebar {
      width: 100%;
      flex-direction: row;
      overflow-x: auto;
      padding: 10px 15px;
    
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      height: 100vh;
      width: 220px;
      background: #4f5ce1;
      flex-direction: column;
      padding: 20px;
      z-index: 1000;
      transition: transform 0.3s ease;
      transform: translateX(-100%);
    }

    .sidebar .logo {
      margin-bottom: 0;
      margin-right: 20px;
    }
    /* Show sidebar when active */
    .sidebar.active {
      display: flex;
      transform: translateX(0);
    }
    /* Show toggle button on mobile */
    .sidebar-toggle {
      display: inline;
    }
    /* Adjust header-top to align items */
    .header-top {
      display:grid;
      justify-content: flex-end;
      align-items: center;
      gap: 10px;
      height: 60px;
      background-color: #eff7fd;
    }
 
    .nav-item {
      flex: 0 0 auto;
      margin-bottom: 0;
      margin-right: 12px;
      padding: 8px 12px;
      font-size: 0.85rem;
      
    }
    .main-content {
      padding: 0px 0px;
    }
    .features {
      flex-direction: column;
    }
    .feature-card {
      min-width: auto;
      width: 100%;
      flex: 1 1 150px;
    }
    .feature-card h3 {
      margin-top: 8px;
      margin-left: 60px;
      margin-bottom: 20px;
      font-size: 1.1rem;
      font-weight: 700;
  }
    .examples-section {
      flex-direction: column;
    }
    .example-card {
      min-width: auto;
      width: 100%;
    }
    .api-info {display: none;}
    .login-btn2 {display: none;}
    .fasttit{display: none;}
    .examples-section{display: none;}
    .title{text-align: center; margin-bottom: 5px;}
    .features{margin: 10px 10px;}
    .logo2{float: left; position: absolute; display: block;}
    .memberinfo{ height: 45px;   } 
    .membervip{margin-top: 3px;}
    .txtcz{margin-left: 60px;}
  }