* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
  background: url('https://zyguide.cn-nb1.rains3.com/%E5%B0%81%E9%9D%A2/%E5%B0%81%E9%9D%A2%E5%A4%A7%E5%9B%BE1.jpg') no-repeat center center fixed;
  background-size: cover;
  min-height: 100vh;
  color: #fff;
}

/* 顶部信息栏 */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
}

.blog-link {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: all 0.3s ease;
}

.blog-link:hover {
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.location, .weather, .settings-icon {
  font-size: 14px;
  cursor: pointer;
}

.weather {
  display: flex;
  align-items: center;
  gap: 5px;
}

.settings-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  transition: all 0.3s;
  cursor: pointer;
}

.settings-icon:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(90deg);
}

/* 设置面板 */
.settings-panel {
  position: fixed;
  top: 60px;
  right: 30px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  display: none;
  z-index: 1000;
  min-width: 250px;
}

.settings-panel.active {
  display: block;
}

.settings-panel h3 {
  margin: 0 0 15px 0;
  font-size: 16px;
  color: #fff;
}

.engine-option {
  display: flex;
  align-items: center;
  padding: 10px;
  margin: 5px 0;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
  color: #fff;
}

.engine-option:hover {
  background: rgba(255, 255, 255, 0.2);
}

.engine-option.active {
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.engine-option input[type="radio"] {
  margin-right: 10px;
  cursor: pointer;
}

.engine-option label {
  cursor: pointer;
  flex: 1;
}

/* 主容器 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

/* 搜索容器 */
.search-container {
  max-width: 700px;
  margin: 0 auto 60px;
  position: relative;
}

/* 搜索框 - 磨砂玻璃效果 */
.search-box {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  padding: 6px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.search-box:focus-within {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.search-input {
  flex: 1;
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  outline: none;
  background: transparent;
  color: #fff;
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.search-btn {
  border: none;
  background: rgba(255, 255, 255, 0.25);
  color: white;
  padding: 12px 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 40px;
  min-width: 50px;
}

.search-btn:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: scale(1.05);
}

.search-btn svg {
  width: 20px;
  height: 20px;
}

/* 搜索建议下拉框 */
.search-suggestions {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  padding: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  display: none;
  max-height: 400px;
  overflow-y: auto;
  z-index: 100;
}

/* 隐藏滚动条但保持滚动功能 */
.search-suggestions::-webkit-scrollbar {
  display: none;
}

.search-suggestions {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.search-suggestions.active {
  display: block;
}

.suggestion-item {
  padding: 12px 20px;
  color: #fff;
  cursor: pointer;
  border-radius: 12px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 12px;
}

.suggestion-item:hover {
  background: rgba(255, 255, 255, 0.2);
}

.suggestion-icon {
  width: 18px;
  height: 18px;
  opacity: 0.7;
}





/* 响应式设计 */
@media (max-width: 768px) {
  .container {
    padding: 30px 15px;
  }
  

  

}

/* 快捷链接 */
.quick-links {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-bottom: 60px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.quick-link-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #fff;
  transition: transform 0.3s;
  cursor: pointer;
  opacity: 0;
  animation: scaleIn 0.5s ease-out forwards;
}

/* 为每个快捷链接设置不同的延迟 */
.quick-link-item:nth-child(1) {
  animation-delay: 0.1s;
}

.quick-link-item:nth-child(2) {
  animation-delay: 0.15s;
}

.quick-link-item:nth-child(3) {
  animation-delay: 0.2s;
}

.quick-link-item:nth-child(4) {
  animation-delay: 0.25s;
}

.quick-link-item:nth-child(5) {
  animation-delay: 0.3s;
}

.quick-link-item:nth-child(6) {
  animation-delay: 0.35s;
}

.quick-link-item:nth-child(7) {
  animation-delay: 0.4s;
}

.quick-link-item:nth-child(8) {
  animation-delay: 0.45s;
}

.quick-link-item:nth-child(9) {
  animation-delay: 0.5s;
}

.quick-link-item:nth-child(10) {
  animation-delay: 0.55s;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.5) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.quick-link-item:hover {
  transform: translateY(-8px) scale(1.05);
}

.quick-link-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
  margin-bottom: 10px;
}

.quick-link-item:hover .quick-link-icon {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.quick-link-name {
  font-size: 13px;
  text-align: center;
}

/* 分类容器 */
.categories-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  padding: 0 20px;
}

.category-section {
  min-height: 300px;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

/* 为每个分类设置不同的延迟 */
.category-section:nth-child(1) {
  animation-delay: 0.1s;
}

.category-section:nth-child(2) {
  animation-delay: 0.2s;
}

.category-section:nth-child(3) {
  animation-delay: 0.3s;
}

.category-section:nth-child(4) {
  animation-delay: 0.4s;
}

.category-section:nth-child(5) {
  animation-delay: 0.5s;
}

.category-section:nth-child(6) {
  animation-delay: 0.6s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.category-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #fff;
  padding-bottom: 15px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.category-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.3));
  animation: titleUnderline 0.8s ease-out forwards;
  animation-delay: inherit;
}

@keyframes titleUnderline {
  to {
    width: 100%;
  }
}

.category-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.category-link-item {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 12px 15px;
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: #fff;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  opacity: 0;
  animation: fadeInLeft 0.4s ease-out forwards;
}

/* 为每个链接项设置不同的延迟 */
.category-link-item:nth-child(1) {
  animation-delay: 0.2s;
}

.category-link-item:nth-child(2) {
  animation-delay: 0.3s;
}

.category-link-item:nth-child(3) {
  animation-delay: 0.4s;
}

.category-link-item:nth-child(4) {
  animation-delay: 0.5s;
}

.category-link-item:nth-child(5) {
  animation-delay: 0.6s;
}

.category-link-item:nth-child(6) {
  animation-delay: 0.7s;
}

.category-link-item:nth-child(7) {
  animation-delay: 0.8s;
}

.category-link-item:nth-child(8) {
  animation-delay: 0.9s;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.category-link-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: rgba(255, 255, 255, 0.5);
  transform: scaleY(0);
  transition: transform 0.3s;
}

.category-link-item:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(5px);
  border-color: rgba(255, 255, 255, 0.4);
}

.category-link-item:hover::before {
  transform: scaleY(1);
}

.category-link-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.category-link-info {
  flex: 1;
  min-width: 0;
}

.category-link-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.category-link-desc {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 响应式 */
@media (max-width: 1200px) {
  .categories-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .quick-links {
    gap: 20px;
  }
  
  .quick-link-icon {
    width: 50px;
    height: 50px;
  }
  
  .categories-container {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }
  
  .category-section {
    padding: 0;
  }
}

/* 搜索框placeholder动画 */
.search-input::placeholder {
  transition: opacity 0.3s;
}

.search-input:focus::placeholder {
  opacity: 0.5;
}
