:root {
  --text-light: white;
  --bg-overlay: rgba(0, 0, 0, 0.5);
  --glass-bg: rgba(255, 255, 255, 0.2);
  --glass-border: rgba(255, 255, 255, 0.18);
  --hover-bg: rgba(255, 255, 255, 0.3);
  --header-height: 60px;
  --sidebar-width: 360px;
  --search-box-height: 42px;
  --icon-size: 1.2rem;
  --time-font-size: 2.8rem;
  --footer-font-size: 0.9rem;
  /* --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.2); */
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.1);
  /* --search-shadow: 0 4px 25px rgba(0, 0, 0, 0.3); */
  --transition-fast: all 0.2s ease;
  --transition-normal: all 0.3s ease;
  --transition-slow: all 0.5s ease;
  --blur-sm: blur(5px);
  --blur-md: blur(10px);
  --blur-lg: blur(15px);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
}
body {
  font-family: "微软雅黑", "宋体", Arial, sans-serif;
  font-size: 16px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: var(--bg-overlay);
  overflow: hidden;
}
/* 背景图片 */
.bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url(https://www.zhuye.site/api/wallpaper/bing?proxy=true);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.7) blur(0);
  z-index: -1;
  transition: var(--transition-slow);
  transform: scale(1);
}
.bg-image.blurred {
  filter: brightness(0.3) blur(5px);
  transform: scale(1.05);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
/* 头部 */
header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  padding: 15px 20px;
  height: var(--header-height);
}
header nav {
  display: flex;
  gap: 15px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.top-button {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  color: var(--text-light);
  background: rgba(255, 255, 255, 0);
  border: none;
  cursor: pointer;
}
.top-button:hover {
  background: rgba(255, 255, 255, 0.3);
}
main {
  width: 100%;
  flex: 1;
  display: flex;
  gap: 30px;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  margin-top: 16vh;
  transition: var(--transition-normal);
}
.time-container {
  display: flex;
  gap: 0.63rem;
  align-items: center;
  flex-direction: column;
}
.time-display {
  color: var(--text-light);
  font-size: var(--time-font-size);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-weight: 600;
  letter-spacing: 1px;
  transition: var(--transition-normal);
}
.time-display.blurred {
  transform: scale(0.95);
  opacity: 0.9;
}
.time-container p {
  color: var(--text-light);
  font-size: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-weight: 500;
  letter-spacing: 2px;
  transition: var(--transition-normal);
}
.search-container {
  width: 100%;
  max-width: 37.5rem;
  text-align: center;
}
/* 搜索框容器 */
.search-wrapper {
  display: flex;
  width: 100%;
  height: var(--search-box-height);
  flex-direction: row;
  justify-content: center;
  border-radius: 30px;
  background-color: var(--bg-overlay);
  backdrop-filter: var(--blur-sm);
  -webkit-backdrop-filter: var(--blur-sm);
}

/* 搜索框 */
.search-box {
  width: 100%;
  height: var(--search-box-height);
  border: none;
  font-size: 0.9rem;
  /* box-shadow: var(--shadow-sm); */
  outline: 0;
  transition: var(--transition-normal);
  background: rgba(255, 255, 255, 0);
  text-align: center;
  color: var(--text-light);
  padding-left: 9px;
}
.search-box:focus {
  /* box-shadow: var(--search-shadow); */
  color: var(--text-light);
  text-align: left;
  letter-spacing: 1px;
  /* background-color: #0a0a0a; */
}
.search-box::placeholder {
  color: var(--text-light);
  letter-spacing: 1px;
  font-size: 0.9rem;
}
/* 搜索按钮 */
.search-icon {
  width: 50px;
  height: var(--search-box-height);
  border-radius: 50%;
  color: var(--text-light);
  background: rgba(255, 255, 255, 0);
  border: none;
  cursor: pointer;
}

.search-icon:hover {
  background: rgba(255, 255, 255, 0.3);
}
.glass-container {
  background: var(--glass-bg);
  backdrop-filter: var(--blur-md);
  -webkit-backdrop-filter: var(--blur-md);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--glass-border);
  overflow: hidden;
}
.engine-list {
  display: none;
  margin-top: 8px;
  width: 129.81px;
  z-index: 2;
}
.engine-list.show {
  display: block;
}
.engine-item {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  cursor: pointer;
  transition: var(--transition-normal);
  color: var(--text-light);
}
.engine-item.highlighted,
.engine-item:hover {
  background: var(--hover-bg);
}
.engine-item-icon {
  margin-right: 12px;
  width: 20px;
  text-align: center;
  color: var(--text-light);
}
.suggestions-list {
  margin-top: 8px;
  width: 100%;
  z-index: 2;
  display: none;
  max-height: 300px;
  font-size: 0.9rem;
  overflow: auto;
}
.suggestions-list.show {
  display: block;
}
.suggestion-item {
  padding: 12px 20px;
  cursor: pointer;
  transition: var(--transition-normal);
  color: var(--text-light);
  text-align: left;
}
.suggestion-item.highlighted,
.suggestion-item:hover {
  background: var(--hover-bg);
}
aside {
  position: fixed;
  top: 0;
  right: calc(var(--sidebar-width) * -1);
  width: var(--sidebar-width);
  height: 100%;
  background: var(--glass-bg);
  backdrop-filter: var(--blur-lg);
  -webkit-backdrop-filter: var(--blur-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--glass-border);
  transition: var(--transition-slow);
  z-index: 3;
  padding: 20px;
  color: var(--text-light);
  overflow: auto;
}
aside.open {
  right: 0;
}
.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.close-sidebar {
  cursor: pointer;
  font-size: var(--icon-size);
}
.sidebar-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.sidebar-item {
  padding: 10px;
  border-radius: 5px;
  transition: var(--transition-fast);
  cursor: pointer;
}
.sidebar-item:hover {
  background: var(--hover-bg);
}
.quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1rem;
  list-style: none;
}
.quick-link {
  display: block;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 1rem;
  color: var(--text-light);
}
.quick-link:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}
/* 页脚 */
footer {
  text-align: center;
  padding: 0.6rem;
  color: var(--text-light);
  font-size: var(--footer-font-size);
  transition: var(--transition-normal);
}
footer.blurred {
  display: none;
}
footer a {
  color: var(--text-light);
}
.name::after {
  content: "|";
  font-size: 11px;
  margin: 0 4px;
  color: var(--text-light);
}

/* 移动设备 */
@media (max-width: 768px) {
  main {
    margin-top: 9vh;
  }
  .search-container {
    width: 88%;
  }
  .quick-links {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }
  .quick-link {
    padding: 6px 8px;
    font-size: 1rem;
  }
}
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #555;
}