* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  background: linear-gradient(to bottom right, #c7d2fe, #e9d5ff, #fbcfe8);
  padding: 1rem;
  font-family: system-ui, -apple-system, sans-serif;
}

.header {
  text-align: center;
  margin-bottom: 2rem;
}

.banner {
  width: 100%;
  max-width: 28rem;
  height: 120px;
  margin: 0 auto 2rem;
  position: relative;
  /* 更自然的渐变背景，从左到右渐变更平滑 */
  background: linear-gradient(135deg, 
    rgba(99, 102, 241, 0.9) 0%, 
    rgba(139, 92, 246, 0.85) 40%, 
    rgba(236, 72, 153, 0.8) 100%);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  display: flex;
}

.banner::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  background: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.1) 0px,
    rgba(255, 255, 255, 0.1) 10px,
    transparent 10px,
    transparent 20px
  );
  animation: moveStripes 20s linear infinite;
}

@keyframes moveStripes {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.banner-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  width: 100%;
}

.banner-logo-symbol {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  overflow: hidden;
  /* 添加渐变遮罩，让logo区域更自然地融入横幅 */
  background: linear-gradient(90deg, 
    rgba(99, 102, 241, 0.3) 0%, 
    rgba(139, 92, 246, 0.2) 60%,
    transparent 100%);
  border-top-left-radius: 1rem;
  border-bottom-left-radius: 1rem;
  /* 添加微妙的边框和阴影 */
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.1);
}

.banner-logo-symbol::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: url("favicon_io/android-chrome-192x192.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 60%;
  /* 针对favicon图标的样式优化 */
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3)) brightness(1.1);
  /* 轻微的放大动画 */
  transition: all 0.3s ease;
  opacity: 0.95;
}

.banner-logo-symbol:hover::before {
  background-size: 65%;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4)) brightness(1.2);
  transform: scale(1.05);
  opacity: 1;
}

.banner-text {
  text-align: left;
  flex-grow: 1;
  padding: 1rem 2rem;
  margin-left: 120px; /* Match the width of the logo */
}

.banner-title {
  font-size: 2rem;
  font-weight: bold;
  color: white;
  margin: 0;
  line-height: 1.2;
}

.banner-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  margin: 0;
}
.utility-buttons {
  display: flex;
  justify-content: flex-end;
  max-width: 28rem;
  margin: 0 auto 0.5rem;
  gap: 0.8rem;
}

.utility-icon {
  color: #1a1a1a;
  cursor: pointer;
  font-size: 1.2rem;
  transition: transform 0.2s;
}

.utility-icon:hover {
  transform: scale(1.2);
}

.share-dropdown {
  position: relative;
  display: inline-block;
}

.share-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 0.5rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  border-radius: 0.5rem;
  padding: 0.5rem;
  width: 180px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 100;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.share-menu.active {
  display: flex;
}

.share-menu a {
  padding: 0.5rem;
  text-decoration: none;
  color: #1a1a1a;
  border-radius: 0.3rem;
  transition: background 0.2s;
  font-size: 0.875rem;
}

.share-menu a:hover {
  background: rgba(255, 255, 255, 0.5);
}

.search-form {
  max-width: 28rem;
  margin: 0 auto 2rem;
}

.search-container {
  position: relative;
}

.search-input {
  width: 100%;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: #1a1a1a;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.search-input::placeholder {
  color: rgba(0, 0, 0, 0.5);
}

.search-input:focus {
  outline: none;
  border-color: rgba(99, 102, 241, 0.7);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.search-button {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(0, 0, 0, 0.6);
  cursor: pointer;
  transition: color 0.2s;
}

.search-button:hover {
  color: rgba(0, 0, 0, 0.8);
}

.main {
  max-width: 28rem;
  margin: 0 auto;
  padding-bottom: 2rem;
}

.category {
  padding: 1rem;
  border-radius: 0.5rem;
  backdrop-filter: blur(8px);
  border: 2px solid;
  margin-bottom: 1.5rem;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
}

.category:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.category-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 1rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.links-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #1a1a1a;
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.2s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  gap: 0.5rem;
}

.link:hover {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.link img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

@media (max-width: 640px) {
  .utility-buttons {
    margin: 0 auto 0.4rem;
    gap: 0.6rem;
  }
  
  .utility-icon {
    font-size: 1.1rem;
  }
  
  .share-menu {
    width: 150px;
  }
}