body {
  font-family: "Segoe UI", sans-serif;
  margin: 0;
  background: #f6f2fd;
  display: flex;
  flex-direction: column;
  height: 100vh;
}

  ::-webkit-scrollbar {
    width: 8px;
  }

  ::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
  }

  ::-webkit-scrollbar-thumb {
    background: #b6b6ff;
    border-radius: 10px;
  }

  ::-webkit-scrollbar-thumb:hover {
    background: #a0a0ff;
  }

  .top {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 10;
    padding: 15px;
  }

  .input-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
  }
  

  .input-area input[type="text"] {
    flex: 1;
    min-width: 200px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 8px;
    outline: none;
  }

  /* 输入框聚焦时发光 */
  .input-area input[type="text"]:focus {
    border-color: #8d7dff;
    box-shadow:
      0 0 0 3px rgba(120,100,255,0.15),
      0 0 18px rgba(120,100,255,0.12);
  }

  .btn-group {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
  }

  button {
    padding: 8px 14px;
    background: linear-gradient(135deg, #a884ff, #7b6cff);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.2s;
  }

  .letter-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 10px;
  }

  .letter-bar {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    gap: 10px;
    padding-bottom: 8px;
  }

  .letter {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.2s;
  }

  .letter:hover {
    background: rgba(180, 150, 255, 0.2);
  }

  .prefixes {
    display: none;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
  }

  .prefix-btn {
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(180, 160, 255, 0.4);
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
  }

  .prefix-btn:hover {
    background: rgba(180, 160, 255, 0.4);
  }

  .result {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
  }

  .result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
  }

  .quick-buttons {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end; 
  }

.jable-color {
  background: linear-gradient(135deg, #F07F7E, #F59B98);
  color: #4E1C1C;
}
.jable-color:hover {
  background: linear-gradient(135deg, #F28F8E, #F7AAA7);
  box-shadow: 0 0 10px rgba(240, 127, 126, 0.45);
}

.javdb-color {
  background: linear-gradient(135deg, #3A7BE0, #6FA7F5);
  color: #FFFFFF;
}
.javdb-color:hover {
  background: linear-gradient(135deg, #4C8CF0, #86B6FA);
  box-shadow: 0 0 10px rgba(58, 123, 224, 0.45);
}

.missav-color {
  background: linear-gradient(135deg, #F0628A, #F78DAE);
  color: #4E1C32;
}
.missav-color:hover {
  background: linear-gradient(135deg, #F27298, #F9A2BE);
  box-shadow: 0 0 10px rgba(240, 98, 138, 0.45);
}

.av18-color {
  background: linear-gradient(135deg, #3AA6B9, #6FCFE0);
  color: #123F47;
}
.av18-color:hover {
  background: linear-gradient(135deg, #4BB3C6, #84D9E8);
  box-shadow: 0 0 10px rgba(58, 166, 185, 0.45);
}

.javbus-color {
  background: linear-gradient(135deg, #E6C76E, #DDBB5A);
  color: #4F3F1A;
}
.javbus-color:hover {
  background: linear-gradient(135deg, #EED487, #E2C46C);
  box-shadow: 0 0 10px rgba(221, 187, 90, 0.5);
}

.google-color {
  background: linear-gradient(135deg, #2FA36B, #4CC38A);
  color: #FFFFFF;
}
.google-color:hover {
  background: linear-gradient(135deg, #3CB579, #62D49A);
  box-shadow: 0 0 10px rgba(47, 163, 107, 0.45);
}

  .fixed {
    position: fixed;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 10px 14px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08), 0 12px 24px rgba(120, 100, 255, 0.15);
    font-weight: bold;
    color: #5a4ea3;
    transition: all 0.25s ease;
    cursor: default;
    white-space: nowrap;
  }

  .fixed-bar {
    top: 170px;
    right: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    margin-top: 20px;
  }

  .card {
    background: rgba(255, 255, 255, 0.35);
    border-radius: 16px;
    padding: 12px;
    text-align: center;
    color: #333;
    transition: 0.25s;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    position: relative;
  }

  .card:hover {
    background: #f3c3fafc;
    transform: translateY(-2px);
  }

  .card.visited {
    background: #3d2b91;
    box-shadow: 0 0 25px rgba(140, 120, 255, 0.5);
    color: #e7e2ff;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
  }

  .card.visited * { color: #e7e2ff !important; }

  .card strong {
    display: block;
    font-weight: bold;
    margin-bottom: 6px;
    color: #5a4ea3;
  }

  /* 动态 tooltip 样式 - 淡紫色 + 毛玻璃 */
  #tooltip {
    position: fixed;
    z-index: 10000; /* 高于 fixed-bar 的 9999 */
    background: rgba(220, 200, 255, 0.75);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    color: #2c1c5e;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 13.5px;
    line-height: 1.6;
    max-width: 90vw;
    max-width: 480px;
    white-space: pre-wrap;
    word-break: break-word;
    box-shadow: 0 10px 30px rgba(140, 120, 255, 0.3);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s ease, transform 0.35s ease;
    border: 1px solid rgba(180, 160, 255, 0.4);
  }

/* 删除箭头 */
#tooltip::after {
  content: none;  /* 删除箭头 */
}



  @media (max-width: 600px) {
    .inline-toggles { margin-top: 8px; }
  }

/* =========================
   主题切换按钮
========================= */

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;

  background: rgba(255,255,255,0.65);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border: 1px solid rgba(255,255,255,0.3);

  cursor: pointer;

  transition:
    transform 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

/* hover */

.icon-btn:hover {
  transform: translateY(-2px) scale(1.05);

  box-shadow:
    0 6px 18px rgba(120,100,255,0.18);
}

/* svg */

.theme-icon {
  width: 20px;
  height: 20px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #6b5cff;

  transition:
    transform 0.45s ease,
    opacity 0.3s ease,
    color 0.3s ease;
}

.theme-icon svg {
  width: 100%;
  height: 100%;
}

