*{
  margin:0;
  padding:0;
  box-sizing: border-box;
}
body{
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #ffffff;
  color:#222;
  min-height:100vh;
  display:flex;
  flex-direction:column;
}
/* 主体居中容器 */
.main-wrap{
  flex:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:40px 20px;
}
/* Logo 重新设计，不再模仿谷歌彩虹字母 */
.logo{
  font-size:62px;
  font-weight:800;
  letter-spacing:-1px;
  margin-bottom:36px;
}
.logo strong{
  background: linear-gradient(135deg,#165DFF,#722ED1);
  -webkit-background-clip:text;
  color:transparent;
}



/* 搜索框区域 - 按钮内嵌输入框右侧，国内搜索风格 */
.search-box-wrap{
  width:100%;
  max-width:600px;
}
.search-input-area{
  position:relative;
  display:flex;
}
#searchInput{
  flex:1;
  font-size:16px;
  padding:14px 18px 14px 44px;
  border:1px solid #d0d3d9;
  border-radius:999px 0 0 999px;
  outline:none;
  transition:box-shadow 0.2s, border 0.2s;
}
#searchInput:focus{
  box-shadow:0 2px 8px rgba(22,93,255,0.15);
  border-color:#165DFF;
}
.search-icon{
  position:absolute;
  left:16px;
  top:50%;
  transform:translateY(-50%);
  width:20px;
  height:20px;
  opacity:0.55;
}
.search-submit-btn{
  padding:0 28px;
  background:#165DFF;
  color:#fff;
  border:none;
  border-radius:0 999px 999px 0;
  cursor:pointer;
  font-size:15px;
  transition:background 0.2s;
}
.search-submit-btn:hover{
  background:#0e42d2;
}

/* 新增提示文字样式 */
.slogan-text{
  margin-top:16px;
  font-size:14px;
  color:#888888;
  text-align:center;
}

/* 热门搜索 重新改版，卡片式标签，去掉谷歌风格 */
.hot-search{
  margin-top:40px;
  width:100%;
  max-width:600px;
}
.hot-search-title{
  font-size:15px;
  color:#666;
  margin-bottom:12px;
}
.hot-tags{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}
.hot-tags a{
  padding:7px 14px;
  background:#f7f8fa;
  border-radius:8px;
  color:#333;
  text-decoration:none;
  font-size:14px;
  transition:all 0.2s;
  border:1px solid #eee;
}
.hot-tags a:hover{
  background:#eef3ff;
  border-color:#c9d8ff;
  color:#165DFF;
}



/* 页脚 */
footer{
  background:#f7f8fa;
  padding:20px 24px;
  font-size:13px;
  color:#666;
}
.footer-inner{
  max-width:1200px;
  margin:0 auto;
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  gap:14px;
}
.footer-meta{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:14px;
}
.footer-location{
  color:#888;
}
.footer-links a{
  color:#666;
  text-decoration:none;
  margin-left:20px;
}
.footer-links a:hover{
  color:#165DFF;
}



/* 暗黑模式切换 */
.dark-btn{
  position:fixed;
  top:14px;
  right:18px;
  border:none;
  background:#f1f1f1;
  padding:7px 13px;
  border-radius:8px;
  cursor:pointer;
  font-size:14px;
}



/* 移动端适配 */
@media(max-width:640px){
  .logo{
    font-size:44px;
  }
  .search-box-wrap{
    max-width:100%;
  }
  .search-input-area{
    flex-direction:column;
  }
  #searchInput{
    border-radius:999px;
  }
  /* 移动端按钮换行后容器变高，图标需要重新对齐到输入框中心 */
  .search-icon{
    top:15px;
    transform:none;
  }
  .search-submit-btn{
    border-radius:999px;
    margin-top:12px;
    padding:12px;
  }
  .hot-tags{
    justify-content:flex-start;
  }
  .footer-inner{
    flex-direction:column;
    text-align:center;
  }
  .footer-meta{
    flex-direction:column;
    gap:6px;
  }
  .footer-links a{
    margin:0 8px;
  }
}



/* 深色主题 */
body.dark{
  background:#11141c;
  color:#eee;
}
body.dark #searchInput{
  background:#1f2430;
  border-color:#333948;
  color:#fff;
}
body.dark .hot-tags a{
  background:#1f2430;
  color:#ddd;
  border-color:#333948;
}
body.dark .hot-tags a:hover{
  background:#253252;
  border-color:#3b5799;
  color:#73a2ff;
}
body.dark footer{
  background:#181c28;
  color:#aaa;
}
body.dark .footer-links a{
  color:#aaa;
}
body.dark .dark-btn{
  background:#272c38;
  color:#fff;
}
body.dark .slogan-text{
  color:#707b9c;
}
