:root {
  /* 主题颜色 */
  --primary-bg-color: rgba(0, 0, 0, 0.35);
  --secondary-bg-color: rgba(15, 15, 15, 0.6);
  --text-color: #fff;
  --text-secondary-color: rgba(255, 255, 255, 0.6);
  --accent-color: #70C000;
  --sun-color: rgba(255, 207, 72, 0.75);
  --moon-color: rgba(32, 33, 36, 0.25);
  
  /* 尺寸 */
  --border-radius: 30px;
  --search-height: 43px;
  
  /* 过渡时间 */
  --transition-fast: 0.25s;
  --transition-medium: 0.3s;
  --transition-slow: 0.5s;
  
  /* 背景效果 */
  --main-backdrop-filter: blur(30px) saturate(1.25);
  --main-box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
  --white-alpha-10: rgba(255, 255, 255, 0.1);
}

/* 基础重置样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  overflow: hidden;
  width: 100%;
  height: 100%;
}

/* 加载指示器 */
.loading-indicator {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.loading-indicator:not(.hidden) {
  opacity: 1;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  border-top-color: #70C000;
  animation: spin 1s ease-in-out infinite;
  box-shadow: 0 0 20px rgba(112, 192, 0, 0.3);
  transform: none;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes rth102a7221 {
  0% {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.hidden {
  display: none !important;
}

#app {
  position: relative;
}

body {
  background-color: black;
  font-family: "Microsoft Yahei Light", "Microsoft Yahei", "PingFang SC", "Helvetica Neue", Helvetica, Tahoma, Arial, sans-serif;
}

/* 确保RemixIcon图标正确显示 */
i[class^="ri-"], i[class*=" ri-"] {
  font-family: 'remixicon' !important;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 背景 */
.bg {
  position: fixed;
  background-size: cover;
  transition: all var(--transition-fast);
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.bg-media {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  display: none; /* 初始隐藏，由JavaScript控制显示 */
}



/* 主体内容 */
main {
  position: relative;
  height: 100vh;
}

/* 时间显示 */
.timecontainer {
  position: fixed;
  top: 115px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px;
  text-align: center;
  user-select: none; /* 防止时间文本被选中 */
}

/* 时间容器搜索聚焦状态 */
.timecontainer.search-focus {
  top: 30px;
  transition: top 0.3s ease;
}

.time {
  font-size: 36px;
  color: var(--text-color);
  text-shadow: 0 0 20px rgb(0 0 0 / 35%);
  font-weight: bold;
  letter-spacing: 2px;
  cursor: pointer;
  transition: transform 0.2s ease, text-shadow 0.2s ease;
  position: relative;
}

.time:hover {
  text-shadow: 0 0 25px rgba(112, 192, 0, 0.5);
  transform: scale(1.02);
}

.time::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80%;
  height: 2px;
  background: var(--accent-color);
  transition: transform 0.3s ease;
}

.time:hover::after {
  transform: translateX(-50%) scaleX(1);
}

/* 时间提示框 */
.time-tooltip {
  position: absolute;
  top: 0;
  left: 100%;
  margin-left: 15px;
  padding: 8px 15px;
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
  border-radius: 6px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 100;
  pointer-events: none;
}

.time-tooltip::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 100%;
  transform: translateY(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: transparent rgba(0, 0, 0, 0.8) transparent transparent;
}

.timecontainer:hover .time-tooltip {
  opacity: 1;
  visibility: visible;
}

/* 搜索框 */
.search {
  position: absolute;
  top: 200px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 80%;
  width: 550px;
  height: var(--search-height);
  border-radius: var(--border-radius);
  color: var(--text-color);
  background-color: rgba(255, 255, 255, 0.25);
  box-shadow: rgb(0 0 0 / 20%) 0 0 10px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  overflow: visible; /* 改为visible，确保下拉选项可见 */
  transition: 
    color var(--transition-fast),
    background-color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast);
  cursor: pointer;
  display: flex;
  align-items: center;
  z-index: 100; /* 提高z-index，确保搜索框始终在最上层 */
}

.search:hover {
  transform: translateX(-50%) scale(1.02); /* 添加轻微放大效果 */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15); /* 增强阴影效果 */
  background-color: rgba(255, 255, 255, 0.3);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); /* 平滑过渡动画 */
}

/* 搜索框聚焦状态 */
.search.focus {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25); /* 增强阴影效果 */
  /* width: inherit;  聚焦时继承默认宽度，避免宽度变化 */
  /* max-width: inherit;  聚焦时继承默认最大宽度 */
  transform: translateX(-50%);
  background-color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); /* 使用更平滑的过渡 */
}

/* 翻译栏 */
.translation-bar {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  z-index: 1001; /* 确保翻译栏在联想词容器之上 */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.translation-bar.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.translation-controls {
  display: flex;
  align-items: center;
  padding: 12px 16px;
}

.translate-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-color);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  margin-right: 12px;
}

.translate-btn:hover {
  background: #5fa000;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(112, 192, 0, 0.3);
}

.translate-btn.loading {
  opacity: 0.7;
  cursor: not-allowed;
}

.translate-btn i {
  margin-right: 6px;
  font-size: 16px;
}

.translation-result {
  flex: 1;
  min-height: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.translation-text {
  color: rgba(0, 0, 0, 0.8);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  display: inline-block;
  flex: 1;
}

.translation-actions {
  display: flex;
  margin-top: 8px;
}

.copy-translation-btn,
.search-translation-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.7);
  color: rgba(0, 0, 0, 0.7);
  border: none;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-right: 0;
  flex-shrink: 0;
}

.copy-translation-btn:hover,
.search-translation-btn:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--accent-color);
}

.translation-message {
  color: rgba(0, 0, 0, 0.6);
  font-size: 13px;
  font-style: italic;
}

/* 翻译加载状态样式 */
.translation-result i[class*="loader"] {
  color: rgba(0, 0, 0, 0.6);
  margin-right: 6px;
  animation: spin 1s linear infinite;
}

.translation-result:has(i[class*="loader"]) {
  color: rgba(0, 0, 0, 0.6);
}

/* 搜索联想词容器 */
.search-suggestions {
  position: absolute;
  top: calc(100% + 8px); /* 恢复原始位置 */
  left: 0;
  width: 100%;
  max-height: 320px;
  overflow-y: auto;
  background-color: rgba(255, 255, 255, 0.85);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.98);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 105; /* 确保联想词容器在导航小标签之上 */
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  /* 隐藏滚动条 */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

/* 隐藏Webkit浏览器的滚动条 */
.search-suggestions::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* 搜索框聚焦时显示联想词 */
.search.focus .search-suggestions.show,
.search.engine-dropdown-open .search-suggestions.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* 联想词项 */
.search-suggestion-item {
  padding: 14px 18px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #333;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 0.3s ease forwards;
}

/* 联想词项动画效果 */
.search-suggestion-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.search-suggestion-item:hover::before {
  left: 100%;
}

/* 为每个联想词项添加延迟动画 */
.search-suggestion-item:nth-child(1) { animation-delay: 0.05s; }
.search-suggestion-item:nth-child(2) { animation-delay: 0.1s; }
.search-suggestion-item:nth-child(3) { animation-delay: 0.15s; }
.search-suggestion-item:nth-child(4) { animation-delay: 0.2s; }
.search-suggestion-item:nth-child(5) { animation-delay: 0.25s; }
.search-suggestion-item:nth-child(6) { animation-delay: 0.3s; }
.search-suggestion-item:nth-child(7) { animation-delay: 0.35s; }
.search-suggestion-item:nth-child(8) { animation-delay: 0.4s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.search-suggestion-item:last-child {
  border-bottom: none;
}

.search-suggestion-item:hover {
  background-color: rgba(255, 255, 255, 0.4);
  transform: translateX(4px);
}

.search-suggestion-item.active {
  background-color: rgba(255, 255, 255, 0.5);
  transform: translateX(4px);
}

/* 联想词项图标 */
.search-suggestion-item i {
  /* margin-right: 14px; */
  font-size: 20px;
  color: var(--accent-color);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-suggestion-item:hover i {
  transform: scale(1.1);
  color: var(--accent-color);
}

/* 联想词项文本 */
.search-suggestion-item span {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.8);
}

/* 加载状态样式 */
.search-suggestion-loading {
  opacity: 1;
  animation: none;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  margin: 10px;
}

.search-suggestion-loading i {
  animation: spin 1.2s linear infinite;
  color: var(--accent-color);
  font-size: 24px;
  margin-right: 12px;
}

.search-suggestion-loading span {
  color: rgba(0, 0, 0, 0.6);
  font-size: 14px;
  font-weight: 500;
}

/* 空状态样式 */
.search-suggestion-empty {
  opacity: 1;
  animation: none;
  cursor: default;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  margin: 10px;
  transition: all 0.3s ease;
}

.search-suggestion-empty:hover {
  background-color: rgba(255, 255, 255, 0.4);
}

.search-suggestion-empty i {
  font-size: 32px;
  color: rgba(0, 0, 0, 0.2);
  margin-bottom: 10px;
  animation: pulse 2s infinite ease-in-out;
}

.search-suggestion-empty span {
  color: rgba(0, 0, 0, 0.4);
  font-style: italic;
  font-size: 14px;
  text-align: center;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}

/* 搜索历史记录样式 */
.search-suggestions-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px 16px 0 0;
}

.history-title {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.7);
}

.history-title i {
  margin-right: 8px;
  font-size: 18px;
  color: var(--accent-color);
}

.clear-history-btn {
  background: none;
  border: none;
  color: rgba(0, 0, 0, 0.4);
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 500;
}

.clear-history-btn:hover {
  background-color: rgba(255, 71, 87, 0.15);
  color: #ff4757;
  transform: scale(1.05);
}

.clear-history-btn i {
  font-size: 16px;
  margin-right: 4px;
}

.search-history-item {
  position: relative;
  padding: 14px 18px;
}

.search-history-item i:first-child {
  color: var(--accent-color);
  opacity: 0.7;
  transition: all 0.25s ease;
}

.search-history-item:hover i:first-child {
  opacity: 1;
  transform: scale(1.1);
}

.delete-history-item {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.7);
  border: none;
  color: rgba(0, 0, 0, 0.4);
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  width: 26px;
  height: 26px;
}

.search-history-item:hover .delete-history-item {
  opacity: 1;
  transform: translateY(-50%);
}

.delete-history-item:hover {
  background-color: rgba(255, 71, 87, 0.15);
  color: #ff4757;
}

.delete-history-item i {
  font-size: 14px;
  display: block;
  line-height: 1;
  width: 14px;
  height: 14px;
  text-align: center;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* 搜索框空值提示动画 */
.search.empty-shake {
  animation: emptyShake 0.5s ease-in-out;
}

@keyframes emptyShake {
  0%, 100% { transform: translateX(-50%); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-52%); }
  20%, 40%, 60%, 80% { transform: translateX(-48%); }
}

/* 搜索引擎选择器 */
.search-engine-selector {
  position: absolute;
  height: 100%;
  display: flex;
  align-items: center;
  padding-left: 15px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  margin-right: 10px;
  opacity: 0; /* 默认隐藏 */
  visibility: hidden; /* 默认隐藏 */
  transform: translateX(-10px); /* 默认向左偏移一点 */
  transition: opacity 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), 
              visibility 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), 
              transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  width: auto; /* 始终占据空间 */
  min-width: 40px; /* 减小最小宽度，只容纳图标 */
  overflow: visible; /* 显示溢出内容 */
  pointer-events: none; /* 默认禁用鼠标事件 */
  left: 10px;
  top: 0;
  z-index: 2;
}

/* 搜索框聚焦时显示搜索引擎选择器 */
.search.focus .search-engine-selector {
  opacity: 1; /* 聚焦时显示 */
  visibility: visible; /* 聚焦时显示 */
  transform: translateX(0); /* 聚焦时恢复正常位置 */
  pointer-events: auto; /* 聚焦时启用鼠标事件 */
  border-right-color: rgba(255, 255, 255, 0.5);
}

.search-engine-dropdown {
  position: relative;
  width: 40px; /* 减小宽度，只容纳图标 */
  overflow: visible; /* 确保下拉选项可见 */
}

.search-engine-current {
  display: flex;
  align-items: center;
  justify-content: center; /* 居中对齐图标 */
  padding: 5px; /* 减小内边距 */
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px; /* 增加圆角 */
  color: var(--text-color);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); /* 使用更平滑的过渡 */
  white-space: nowrap;
  width: 30px; /* 设置固定宽度 */
  height: 30px; /* 设置固定高度 */
  position: relative; /* 添加相对定位 */
}

.search-engine-current i {
  font-size: 18px; /* 增大图标尺寸 */
  margin: 0; /* 移除所有边距 */
  transition: transform 0.2s ease; /* 添加图标旋转动画 */
}

.search-engine-current:hover i {
  transform: scale(1.1); /* 悬停时图标放大，删除旋转效果 */
}

.search-engine-options {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 8px; /* 增加圆角 */
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15); /* 增强阴影效果 */
  overflow: visible; /* 改为visible，确保内容可见 */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.95); /* 添加缩放效果 */
  transition: opacity 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), 
              visibility 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), 
              transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 1000; /* 提高z-index确保在最上层显示 */
  margin-top: 8px; /* 增加间距 */
  min-height: 40px; /* 设置最小高度，确保有足够空间显示内容 */
  width: 180px; /* 增加下拉选项宽度，确保文本显示完整 */
  backdrop-filter: blur(10px); /* 添加毛玻璃效果 */
  border: 1px solid rgba(255, 255, 255, 0.2); /* 添加边框 */
  max-width: 90vw; /* 添加最大宽度，确保在小屏幕上不会溢出 */
  /* 确保下拉选项始终在视口内可见 */
  right: auto;
}

/* 允许下拉框在未聚焦状态下也能显示 */
.search-engine-dropdown.open .search-engine-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1); /* 显示时恢复原始大小 */
}

/* 确保搜索框聚焦时，下拉选项也能正确显示 */
.search.focus .search-engine-dropdown.open .search-engine-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1); /* 显示时恢复原始大小 */
  z-index: 1000; /* 确保在搜索框聚焦时也在最上层 */
}

/* 小屏幕适配 */
@media (max-width: 768px) {
  .search-engine-options {
    left: 0;
    right: auto;
    transform-origin: top left; /* 从左上角缩放 */
  }
  
  .search-engine-dropdown.open .search-engine-options,
  .search.focus .search-engine-dropdown.open .search-engine-options {
    transform: translateY(0) scale(1); /* 显示时恢复原始大小 */
  }
  
  .search {
    width: 90%; /* 在小屏幕上使用百分比宽度 */
    max-width: 400px; /* 设置最大宽度 */
  }
  
  .search.focus {
    width: 90%; /* 聚焦时保持与默认相同的宽度 */
    max-width: 400px; /* 设置最大宽度 */
  }
}

@media (max-width: 480px) {
  .search {
    width: 95%; /* 在更小屏幕上使用更大的百分比宽度 */
    max-width: none; /* 移除最大宽度限制 */
  }
  
  .search.focus {
    width: 95%; /* 聚焦时保持与默认相同的宽度 */
    max-width: none; /* 移除最大宽度限制 */
  }
}

.search-engine-option {
  display: flex;
  align-items: center;
  padding: 10px 14px; /* 增加内边距，使选项更易点击 */
  color: #333;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease; /* 添加过渡效果 */
  position: relative; /* 添加相对定位 */
  white-space: nowrap; /* 防止文本换行 */
  overflow: hidden; /* 隐藏溢出内容 */
  text-overflow: ellipsis; /* 使用省略号表示溢出文本 */
}

.search-engine-option::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 3px;
  background-color: var(--accent-color);
  transform: scaleY(0);
  transition: transform 0.2s ease;
}

.search-engine-option:hover::before {
  transform: scaleY(1); /* 悬停时显示左侧边框 */
}

.search-engine-option i {
  margin-right: 10px; /* 增加图标与文本的间距 */
  font-size: 18px; /* 增大图标尺寸 */
  transition: transform 0.2s ease; /* 添加图标过渡效果 */
}

.search-engine-option:hover {
  background-color: rgba(0, 0, 0, 0.05);
  transform: translateX(3px); /* 悬停时向右轻微移动 */
}

.search-engine-option:hover i {
  transform: scale(1.1); /* 悬停时图标放大 */
}

.search-engine-option.active {
  background-color: rgba(143, 224, 0, 0.1);
  color: var(--accent-color);
  font-weight: 500;
}

.search-engine-option.active::before {
  transform: scaleY(1); /* 活动选项显示左侧边框 */
}

.search.focus .search-engine-current {
  color: #333;
  border-color: rgba(0, 0, 0, 0.3);
  background-color: rgba(255, 255, 255, 0.8);
}

.search.focus .search-engine-current:hover {
  background-color: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.5);
  transform: scale(1.05); /* 悬停时轻微放大 */
}

.search.focus .search-input {
  color: #000000;
  caret-color: #000000;
}

/* 搜索按钮 */
.search-button {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0; /* 默认完全隐藏 */
  visibility: hidden; /* 默认不可见 */
  transition: opacity 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), 
              visibility 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
              transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
              box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  padding: 8px; /* 增加点击区域 */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; /* 增加尺寸 */
  height: 32px; /* 增加尺寸 */
  border-radius: 50%; /* 添加圆形背景 */
  background-color: rgba(143, 224, 0, 0.1); /* 添加背景色 */
  box-shadow: 0 2px 8px rgba(143, 224, 0, 0.2); /* 添加轻微阴影 */
  pointer-events: none; /* 默认禁用鼠标事件 */
  z-index: 2; /* 确保按钮在输入框之上 */
}

.search.focus .search-button {
  opacity: 1; /* 聚焦时完全不透明 */
  visibility: visible;
  transform: translateY(-50%) scale(1); /* 显示时恢复原始大小 */
  pointer-events: auto; /* 聚焦时启用鼠标事件 */
}

.search-button:hover {
  opacity: 1 !important;
  transform: translateY(-50%) scale(1.1) !important; /* 悬停时放大 */
  background-color: rgba(143, 224, 0, 0.2); /* 悬停时加深背景色 */
  box-shadow: 0 4px 12px rgba(143, 224, 0, 0.3); /* 悬停时增强阴影 */
}

.search-button i {
  color: var(--accent-color);
  font-size: 18px; /* 增大图标尺寸 */
  transition: color 0.2s ease, transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55); /* 使用弹性动画 */
}

.search-button:hover i {
  color: #8fe000;
  transform: scale(1.2); /* 悬停时图标放大，删除旋转效果 */
}

.search-input {
  outline: 0;
  border: none;
  width: 100%;
  height: 100%;
  padding: 0 50px; /* 左右留出相同的空间，使文本真正居中 */
  color: inherit;
  background-color: transparent;
  font-size: 14px;
  text-align: center; /* 默认文本居中 */
  caret-color: var(--text-color); /* 光标颜色 */
  transition: 
    color 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
    padding 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
    text-align 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); /* 使用更平滑的过渡 */
  flex: 1; /* 使输入框占据剩余空间 */
  display: block; /* 改为block布局，确保文本居中 */
  position: relative; /* 添加相对定位 */
  z-index: 1; /* 确保输入框在选择器之上 */
}

/* 改进键盘交互体验 */
.search-input:focus {
  outline: none; /* 移除默认焦点轮廓 */
}

/* 为键盘焦点添加可见指示器 */
.search-input:focus-visible {
  outline: none; /* 移除默认焦点轮廓 */
}

/* 为搜索框添加键盘焦点样式 */
.search:focus-within {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25), 0 0 0 2px rgba(143, 224, 0, 0.5); /* 添加彩色边框作为焦点指示器 */
}

/* 手机端搜索框聚焦状态调整 */
@media screen and (max-width: 480px) {
  /* 搜索框聚焦时显示联想词 */
  .search.focus .search-suggestions.show,
  .search.engine-dropdown-open .search-suggestions.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) scale(1) !important;
  }

  .search:focus-within {
    top: 150px !important; /* 向上移动，为诗句面板留出空间 */
    transition: top 0.3s ease;
  }
  
  /* 确保时间容器在没有焦点时保持默认位置 */
  .timecontainer:not(.search-focus) {
    top: 115px !important;
  }
  
  .timecontainer.search-focus {
    top: 30px !important; /* 时间也向上移动 */
  }
  
  /* 确保搜索引擎选择器不会影响搜索框位置 */
  .search-engine-selector {
    transform: translateX(0) !important; /* 覆盖默认的transform */
    transition: none !important; /* 禁用过渡效果，防止抖动 */
  }
  
  .search.focus .search-engine-selector {
    transform: translateX(0) !important; /* 覆盖聚焦时的transform */
    transition: none !important; /* 禁用过渡效果，防止抖动 */
  }
  
  /* 确保搜索框位置稳定 */
  .search {
    transition: top 0.3s ease !important; /* 只保留top的过渡效果 */
  }
  
  .search.focus {
    transition: top 0.3s ease !important; /* 只保留top的过渡效果 */
  }
  
  /* 当搜索引擎下拉框打开时，保持搜索框位置不变 */
  .search-engine-dropdown.open ~ .search-input,
  .search-engine-dropdown.open + .search-input {
    top: 150px !important;
  }
  
  /* 确保搜索框在没有焦点时保持默认位置 */
  .search:not(:focus-within):not(.engine-dropdown-open) {
    top: 200px !important; /* 确保没有焦点时保持在默认位置 */
  }
  
  /* 当搜索引擎下拉框打开时，即使搜索框失去焦点也保持位置 */
  .search.engine-dropdown-open {
    top: 150px !important;
  }
  
  /* 确保搜索引擎选择器不会影响搜索框位置 */
  .search-engine-selector {
    transform: translateX(0) !important; /* 覆盖默认的transform */
    transition: none !important; /* 禁用过渡效果，防止抖动 */
  }
}

/* 为搜索引擎选项添加键盘焦点样式 */
.search-engine-option:focus {
  outline: none; /* 移除默认焦点轮廓 */
  background-color: rgba(143, 224, 0, 0.1); /* 添加背景色 */
  transform: translateX(3px); /* 向右轻微移动 */
}

.search-engine-option:focus::before {
  transform: scaleY(1); /* 显示左侧边框 */
}

/* 为搜索按钮添加键盘焦点样式 */
.search-button:focus {
  outline: none; /* 移除默认焦点轮廓 */
  box-shadow: 0 0 0 2px rgba(143, 224, 0, 0.5); /* 添加彩色边框作为焦点指示器 */
}

.search.focus .search-input {
  padding: 0 50px 0 65px; /* 聚焦时左侧减少内边距，适应简化后的选择框 */
  text-align: left; /* 聚焦时文本左对齐，更符合常规搜索框习惯 */
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease; /* 添加过渡效果 */
}

.search.focus .search-input::placeholder {
  color: rgba(0, 0, 0, 0.4); /* 聚焦时使用深色占位符 */
}

/* 诗句 */
.poem-container {
  width: 530px;
  padding: 15px 50px;
  margin: 0;
  position: absolute;
  left: 50%;
  bottom: 200px; /* 调整为底部导航条和信息栏预留足够空间 */
  transform: translateX(-50%);
  border-radius: 15px;
  color: rgba(255, 255, 255, 0.9);
  font-size: small;
  text-align: center;
  cursor: default;
  transition: var(--transition-slow);
  overflow: hidden;
  user-select: none; /* 禁止文本选择 */
  -webkit-user-select: none; /* 兼容WebKit浏览器 */
  -moz-user-select: none; /* 兼容Firefox */
  -ms-user-select: none; /* 兼容IE/Edge */
  opacity: 1;
  /* 添加响应式设计 */
  max-width: 90vw; /* 确保在小屏幕上不会超出视口宽度 */
}

/* 小屏幕适配 */
@media (max-width: 768px) {
  .poem-container {
    width: 90vw;
    padding: 10px 20px;
    bottom: 150px; /* 在小屏幕上进一步调整位置，确保不遮挡导航条 */
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .poem-container {
    width: 95vw;
    padding: 8px 15px;
    bottom: 100px; /* 调整位置，确保不与底部导航条重叠（底部导航条在50px处，加上10px间距） */
    font-size: 12px;
  }
}

.poem-container.hide {
  opacity: 0;
  pointer-events: none;
}

.poem-bg {
  opacity: 0;
  position: absolute;
  left: 0;
  top: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  background-color: #ffffff1a;
  transition: var(--transition-fast);
}

.poem-content {
  transition: var(--transition-fast);
  text-shadow: 0 0 20px rgb(0 0 0 / 80%);
}

.poem-author {
  opacity: 0;
  transition: var(--transition-fast);
  margin-top: 8px;
}

.poem-menu {
  opacity: 0;
  position: absolute;
  top: 6px;
  right: 6px;
  padding: 0 10px;
  border: none;
  border-radius: 10px;
  background-color: transparent;
  color: var(--text-secondary-color);
  cursor: pointer;
  transition: var(--transition-fast);
}

.poem-menu i {
  font-size: 22px;
}

/* 诗歌悬停效果 */
.poem-container:hover .poem-content {
  text-shadow: 0 0 20px transparent;
}

.poem-container:hover .poem-bg,
.poem-container:hover .poem-author,
.poem-container:hover .poem-menu {
  opacity: 1;
}

.poem-container:hover .poem-menu:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--accent-color);
}

/* 页脚 */
footer {
  position: fixed;
  bottom: 20px;
  width: 100%;
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  z-index: 10;
  transition: opacity var(--transition-medium);
}

footer p {
  margin: 5px 0;
}

footer a {
  color: #70C000;
  text-decoration: none;
  transition: color var(--transition-fast);
}

footer a:hover {
  color: #fff;
  text-decoration: underline;
}



/* 壁纸选择侧边栏 */
.wallpaper-panel {
  position: fixed;
  top: 0;
  right: -400px;
  width: 380px;
  height: 100%;
  background: rgba(25, 25, 25, 0.95);
  backdrop-filter: blur(15px);
  z-index: 10000;
  transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), 
              box-shadow 0.3s ease;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
  color: white;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  /* 添加渐变边框效果 */
  background: linear-gradient(90deg, rgba(25, 25, 25, 0.98), rgba(25, 25, 25, 0.95)) border-box;
}

.wallpaper-panel.active {
  right: 0;
  box-shadow: -15px 0 40px rgba(0, 0, 0, 0.6);
  /* 添加激活状态的发光效果 */
  box-shadow: -15px 0 40px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(112, 192, 0, 0.2);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.panel-header h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 500;
}

.panel-header .fa-times {
  font-size: 26px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  outline: none;
  padding: 8px;
  /* 添加默认状态的轻微阴影 */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.panel-header .fa-times:hover,
.panel-header .fa-times:focus {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.15);
  /* 增强悬停状态的阴影效果 */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.panel-header .fa-times:focus {
  box-shadow: 0 0 0 2px #70C000, 0 4px 10px rgba(0, 0, 0, 0.3);
}

.panel-header .fa-times:active {
  transform: scale(0.95);
  transition: all 0.1s ease;
}

.panel-content {
  padding: 20px;
  position: relative;
}

/* 壁纸选项基础样式 - 网格布局版本 */
.wallpaper-option {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(5px);
  outline: none;
  min-height: 60px;
  box-sizing: border-box;
  /* 添加微妙的内阴影 */
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
  /* 添加3D效果 */
  transform-style: preserve-3d;
  perspective: 1000px;
}

.wallpaper-option::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(112, 192, 0, 0.3), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.wallpaper-option::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 20px;
  height: 200%;
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(25deg);
  transition: all 0.6s;
  opacity: 0;
}

.wallpaper-option:hover,
.wallpaper-option:focus {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px) translateZ(10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.25);
  /* 增强悬停效果 */
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(255, 255, 255, 0.1);
}

.wallpaper-option:hover::before,
.wallpaper-option:focus::before {
  opacity: 1;
}

.wallpaper-option:hover::after {
  left: 120%;
  opacity: 1;
}

.wallpaper-option:focus {
  box-shadow: 0 0 0 3px #70C000, 0 12px 30px rgba(0, 0, 0, 0.4);
}

.wallpaper-option:active {
  transform: translateY(-1px) scale(0.98) translateZ(5px);
  transition: all 0.15s ease;
  /* 添加按下效果 */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2), inset 0 0 10px rgba(0, 0, 0, 0.3);
}

/* 壁纸选项选中状态 */
.wallpaper-option.selected,
.wallpaper-option.active {
  transform: scale(0.96) translateZ(5px);
  box-shadow: 0 0 0 3px #4CAF50, 0 0 30px rgba(76, 175, 80, 0.8);
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
  background: rgba(76, 175, 80, 0.2);
  /* 增强选中状态的视觉效果 */
  animation: pulse 0.6s ease-in-out;
}

/* 壁纸选项禁用状态 */
.wallpaper-option.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  transform: scale(0.98);
  transition: all 0.3s ease;
  position: relative;
}

.wallpaper-option.disabled::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  z-index: 1;
}

.wallpaper-option.disabled .wallpaper-name {
  color: rgba(255, 255, 255, 0.6);
}

.wallpaper-option.disabled i {
  opacity: 0.6;
}

/* 添加脉冲动画效果 */
  @keyframes pulse {
    0% {
      box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    }
    70% {
      box-shadow: 0 0 0 15px rgba(76, 175, 80, 0);
    }
    100% {
      box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
  }
  
  /* 壁纸分组头部样式 */
.wallpaper-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding: 0 5px;
}

/* 壁纸选项网格布局 - 18个分类两栏布局 */
.wallpaper-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 5px;
}

/* 壁纸选项网格滚动条样式 */
.wallpaper-options-grid::-webkit-scrollbar {
  width: 4px;
}

.wallpaper-options-grid::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
}

.wallpaper-options-grid::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

.wallpaper-options-grid::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* 刷新按钮样式 */
.refresh-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(112, 192, 0, 0.2);
  border: 1px solid rgba(112, 192, 0, 0.3);
  border-radius: 20px;
  color: #70C000;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.refresh-button:hover {
  background: rgba(112, 192, 0, 0.3);
  border-color: rgba(112, 192, 0, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(112, 192, 0, 0.2);
}

.refresh-button:active {
  transform: translateY(0);
  box-shadow: none;
}

.refresh-button i {
  font-size: 14px;
  transition: transform 0.3s ease;
}

.refresh-button:hover i {
  transform: scale(1.1);
}

.refresh-button.refreshing i {
  animation: spin 1s linear infinite;
}

/* 刷新按钮禁用状态 */
.refresh-button.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.refresh-button.disabled:hover {
  background: rgba(112, 192, 0, 0.2);
  border-color: rgba(112, 192, 0, 0.3);
  transform: none;
  box-shadow: none;
}

.refresh-button.disabled:hover i {
  transform: none;
}

/* 壁纸选项图标 - 两栏布局适配 */
.wallpaper-option i {
  font-size: 20px;
  margin-right: 12px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.wallpaper-option[data-wallpaper="video"] .fa {
  color: #FF5252;
}

.wallpaper-option[data-wallpaper="day"] .fa {
  color: #4CAF50;
}

.wallpaper-option[data-wallpaper="afternoon"] .fa {
  color: #FFC107;
}

.wallpaper-option[data-wallpaper="night"] .fa {
  color: #2196F3;
}

.wallpaper-option[data-wallpaper="bing"] .fa {
  color: #9C27B0;
}
  
/* 壁纸面板加载指示器 */
.wallpaper-loading-indicator {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.wallpaper-loading-indicator:not(.hidden) {
  opacity: 1;
}

.wallpaper-loading-indicator.hidden {
  display: none !important;
}

.wallpaper-loading-indicator .spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid #70C000;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  /* 添加阴影效果 */
  box-shadow: 0 0 15px rgba(112, 192, 0, 0.5);
  /* 重置transform，确保不受全局spinner样式影响 */
  transform: none;
  /* 移除margin，让flex布局处理居中 */
  margin: 0;
}

.wallpaper-option .wallpaper-name {
  font-size: 16px;
  font-weight: 400;
  flex-grow: 1;
}

/* 壁纸编辑按钮 */
.wallpaper-option .edit-name-btn {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  opacity: 0;
  transition: all 0.3s ease;
  padding: 5px;
}

/* 壁纸历史记录样式 */
.wallpaper-history-container {
  max-height: 300px;
  overflow-y: auto;
  margin-top: 10px;
  padding-right: 5px;
}

.wallpaper-history-container::-webkit-scrollbar {
  width: 6px;
}

.wallpaper-history-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.wallpaper-history-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.wallpaper-history-container::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.wallpaper-history-item {
  display: flex;
  align-items: center;
  padding: 10px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  cursor: pointer;
  transform-origin: center;
}

.wallpaper-history-item:active {
  transform: scale(0.98);
}

.wallpaper-history-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.01);
}

.wallpaper-history-item.active {
  background: rgba(33, 150, 243, 0.2) !important;
  border: 1px solid rgba(33, 150, 243, 0.5) !important;
  transform: scale(1.02) !important;
  box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3) !important;
}

.wallpaper-history-thumbnail {
  width: 50px;
  height: 35px;
  border-radius: 4px;
  object-fit: cover;
  margin-right: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.wallpaper-history-info {
  flex-grow: 1;
  min-width: 0;
}

.wallpaper-history-category {
  font-size: 14px;
  color: #fff;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wallpaper-history-time {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.wallpaper-history-actions {
  display: flex;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.wallpaper-history-item:hover .wallpaper-history-actions {
  opacity: 1;
}

.wallpaper-history-action {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 14px;
}

.wallpaper-history-action:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.wallpaper-history-action.download:hover {
  background: rgba(33, 150, 243, 0.3);
  color: #2196F3;
}

.wallpaper-history-action.delete:hover {
  background: rgba(244, 67, 54, 0.3);
  color: #f44336;
}

.empty-history {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 0;
  color: rgba(255, 255, 255, 0.4);
}

.empty-history i {
  font-size: 32px;
  margin-bottom: 10px;
}

.empty-history p {
  font-size: 14px;
  margin: 0;
}

.clear-history-button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(244, 67, 54, 0.1);
  border: 1px solid rgba(244, 67, 54, 0.2);
  border-radius: 16px;
  color: rgba(244, 67, 54, 0.8);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.clear-history-button:hover {
  background: rgba(244, 67, 54, 0.2);
  border-color: rgba(244, 67, 54, 0.3);
  color: #f44336;
}

.clear-history-button i {
  font-size: 14px;
}

/* 灵动岛弹窗样式 */
.dynamic-island:hover img {
    width: 30px; /* 鼠标悬停时，图片宽度也增大 */
    height: 30px; /* 鼠标悬停时，图片高度增大 */
}

.bars {
  display: flex;
  align-items: center; /* 垂直居中 */
  justify-content: flex-end; /* 向右对齐 */
  gap: 3px;
}

.bar {
  width: 2px;
  height: 13px;
  background-color: green;
  animation: bounce 1s infinite ease-in-out;
  animation-direction: alternate;
}

/* 增加更多的条形波动并调整动画时间 */
.bar:nth-child(1) { animation-duration: 1s; }
.bar:nth-child(2) { animation-duration: 0.9s; }
.bar:nth-child(3) { animation-duration: 0.8s; }
.bar:nth-child(4) { animation-duration: 0.7s; }
.bar:nth-child(5) { animation-duration: 0.6s; }
.bar:nth-child(6) { animation-duration: 0.9s; }
.bar:nth-child(7) { animation-duration: 0.7s; }

.dynamic-island {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) scale(0); /* 初始状态缩小为0 */
    transform-origin: center;
    width: auto;
    max-width:80%;
    height: 40px;
    background-color: #000;
    border-radius: 25px; /* 与默认高度一致的圆角半径 */
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between; /* 图片和文字之间自动分配空间 */
    transition: transform 0.4s ease-in-out, height 0.6s ease-in-out, border-radius 0.6s ease-in-out, box-shadow 0.5s ease-in-out, opacity 0.5s ease-in-out;
    overflow: visible; /* 允许溢出，避免图片被遮挡 */
    z-index: 1000;
    padding-left: 35px; /* 确保内容不贴边 */
    padding-right: 20px; /* 确保内容不贴边 */
    opacity: 0;
    box-shadow: 0 0px 10px rgba(0, 0, 0, 0.45); /* 添加黑色阴影 */
}

.dynamic-island.active {
    transform: translateX(-50%) scale(1); /* 激活状态放大为正常大小 */
    opacity: 1;
}

.dynamic-island.inactive {
    transform: translateX(-50%) scale(0); /* 关闭状态缩小 */
    opacity: 0;
}

.island-content {
    opacity: 0;
    transition: opacity 0.9s ease-in-out, filter 0.8s ease-in-out; /* 使内容加粗并从模糊到清晰 */
    font-weight: bold; /* 使文字加粗 */
    flex-grow: 1; /* 使内容区占满剩余空间 */
    text-align: right; /* 文字内容右对齐 */
    width:100%;
}

.dynamic-island.active .island-content {
    opacity: 1;
}

/* 图片样式 */

.dynamic-island img {
    position: absolute;
    left: 10px; /* 保持与灵动岛左边10px的距离 */
    width: 20px; /* 图片宽度 */
    height: 20px; /* 图片高度 */
    /* border-radius: 50%;  为圆形 */
    object-fit: cover; /* 保证图片内容充满容器 */
    transition: height 0.8s ease-in-out, width 0.8s ease-in-out, filter 0.8s ease-in-out;
}

.dynamic-island:hover {
    height: 60px;
    border-radius: 50px;
}

@keyframes bounce {
    0% {
        transform: scaleY(0.3);
        background-color: green;
    }

    50% {
        transform: scaleY(1);
        background-color: orange;
    }

    100% {
        transform: scaleY(0.3);
        background-color: green;
    }
}


.wallpaper-option:hover .edit-name-btn,
.wallpaper-option:focus-within .edit-name-btn {
  opacity: 1;
}

.wallpaper-option .edit-name-btn:hover {
  color: #70C000;
  background: rgba(255, 255, 255, 0.1);
}

/* 壁纸分组 */
.wallpaper-group {
  margin-bottom: 25px;
}

.wallpaper-group:last-child {
  margin-bottom: 10px;
}

.wallpaper-group-title {
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 15px 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
}

.wallpaper-group-title::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, #70C000, transparent);
  border-radius: 1px;
}

/* 壁纸说明文字 */
.wallpaper-note {
  margin-top: 30px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(3px);
}

.wallpaper-note p {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

.wallpaper-note .fa {
  margin-right: 8px;
  color: #70C000;
}

/* 添加滚动条样式 */
.wallpaper-panel::-webkit-scrollbar {
  width: 6px;
}

.wallpaper-panel::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

.wallpaper-panel::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.wallpaper-panel::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}



/* 响应式设计 */
/* 平板设备 */
@media screen and (max-width: 768px) {
  .search {
    width: 530px;
  }
  
  .search:hover {
    width: 530px;
  }
  
  .poem-container {
    width: 300px;
    padding: 10px 20px;
  }
  
  .time {
    font-size: 45px;
  }
  
  .timecontainer {
    top: 100px;
  }
  
  footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .info li {
    margin: 5px 0;
  }
}

/* 手机设备 */
@media screen and (max-width: 480px) {
  .search {
    width: 90%;
  }
  
  .search:hover {
    width: 90%;
  }
  
  .poem-container {
    width: 250px;
    padding: 8px 15px;
    bottom: 100px;
  }
  
  .time {
    font-size: 45px;
  }
  
  footer {
    font-size: 10px;
    padding: 5px;
  }
}

/* 超小屏幕设备 */
@media screen and (max-width: 320px) {
  .search {
    width: 90%;
  }
  
  .search:hover {
    width: 90%;
  }
  
  .poem-container {
    width: 200px;
    padding: 6px 10px;
    bottom: 80px;
  }
  
  .time {
    font-size: 20px;
  }
}

/* 横屏手机 */
@media screen and (max-width: 768px) and (orientation: landscape) {
  .timecontainer {
    top: 70px;
  }
  
  .search {
    top: 150px;
  }
  
  .poem-container {
    bottom: 80px;
  }
  
  footer {
    bottom: 5px;
  }
}

/* 大屏设备优化 */
@media screen and (min-width: 1200px) {
  .search {
    width: 550px;
  }
  
  .search:hover {
    width: 550px;
  }
  
  .time {
    font-size: 42px;
  }
}

/* 壁纸选项选中状态 */
.wallpaper-option.selected {
  position: relative;
  overflow: hidden;
}

/* 灵动岛弹窗样式 */
.dynamic-island {
  position: fixed;
  top: 25px;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  z-index: 9999;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(40, 40, 40, 0.95) 100%);
  border-radius: 32px;
  padding: 0; /* 移除内边距，由内部容器控制 */
  backdrop-filter: blur(30px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 12px 50px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 0 20px rgba(112, 192, 0, 0.1);
  transition: opacity 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  max-width: 85vw;
  min-width: auto; /* 完全自适应最小宽度 */
  width: auto;
  opacity: 0;
  white-space: nowrap;
  pointer-events: none; /* 防止在透明状态下接收鼠标事件 */
}

.dynamic-island .island-container {
  display: flex;
  align-items: center;
  padding: 14px 28px;
  gap: 16px;
  width: 100%;
}

/* 图片容器 */
.dynamic-island .icon-container {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.dynamic-island img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  filter: brightness(1.15) contrast(1.2);
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.dynamic-island:hover img {
  transform: scale(1.05);
}

/* 内容区域容器 */
.island-content {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  width: 100%;
}

/* 文字和动画容器 */
.bars {
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  flex: 1;
  gap: 6px; /* 减少文字和动画之间的间距 */
}

/* 文字内容容器 */
.bars .text-container {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  margin-left: 8px; /* 文字往右靠一点 */
}

.bars p {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  flex: 1; /* 文字容器自动扩展，占据剩余空间 */
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  letter-spacing: 0.4px;
  text-align: left;
}

.bar-container {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.bar {
  width: 4px; /* 增加宽度 */
  height: 16px; /* 增加高度 */
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.5));
  border-radius: 3px; /* 增加圆角 */
  animation: barAnimation 1.6s infinite ease-in-out;
  transform-origin: bottom center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.bar:nth-child(1) { animation-delay: 0s; }
.bar:nth-child(2) { animation-delay: 0.15s; }
.bar:nth-child(3) { animation-delay: 0.3s; }
.bar:nth-child(4) { animation-delay: 0.45s; }
.bar:nth-child(5) { animation-delay: 0.6s; }
.bar:nth-child(6) { animation-delay: 0.75s; }
.bar:nth-child(7) { animation-delay: 0.9s; }

@keyframes barAnimation {
  0%, 100% {
    transform: scaleY(0.6);
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.3));
  }
  25% {
    transform: scaleY(1.2);
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.6));
  }
  50% {
    transform: scaleY(1.8);
    background: linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.8));
  }
  75% {
    transform: scaleY(1.2);
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.6));
  }
}

/* 灵动岛动画状态 */
.dynamic-island.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(40, 40, 40, 0.95) 100%);
  box-shadow: 
    0 15px 50px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    0 0 30px rgba(112, 192, 0, 0.3);
  animation: islandGlow 3s ease-in-out infinite;
}

.dynamic-island.inactive {
  transform: translateX(-50%) translateY(0);
  opacity: 0;
}

@keyframes islandGlow {
  0%, 100% {
    box-shadow: 
      0 15px 50px rgba(0, 0, 0, 0.5),
      0 0 0 1px rgba(255, 255, 255, 0.1) inset,
      0 0 30px rgba(112, 192, 0, 0.3);
  }
  50% {
    box-shadow: 
      0 15px 50px rgba(0, 0, 0, 0.5),
      0 0 0 1px rgba(255, 255, 255, 0.1) inset,
      0 0 40px rgba(112, 192, 0, 0.5);
  }
}

/* 灵动岛悬停效果 */
.dynamic-island:hover {
  transform: translateX(-50%) translateY(0);
  background: linear-gradient(135deg, rgba(10, 10, 10, 0.95) 0%, rgba(50, 50, 50, 0.95) 100%);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
  .dynamic-island {
    top: 15px;
    max-width: 90vw;
    min-width: auto;
    padding: 6px 12px;
  }
  
  .bars p {
    font-size: 15px;
  }
  
  .dynamic-island img {
    width: 28px;
    height: 28px;
    margin-right: 8px;
  }
  
  .bar {
    width: 2px;
    height: 10px;
  }
  
  .bar-container {
    height: 16px;
  }
}

@media screen and (max-width: 480px) {
  .dynamic-island {
    top: 10px;
    max-width: 95vw;
    min-width: auto;
    padding: 5px 10px;
  }
  
  .bars p {
    font-size: 14px;
  }
  
  .dynamic-island img {
    width: 25px;
    height: 25px;
    margin-right: 6px;
  }
  
  .bar {
    width: 2px;
    height: 8px;
  }
  
  .bar-container {
    height: 14px;
  }
}

@media screen and (max-width: 360px) {
  .dynamic-island {
    max-width: 98vw;
    padding: 4px 8px;
  }
  
  .bars p {
    font-size: 13px;
  }
  
  .dynamic-island img {
    width: 22px;
    height: 22px;
    margin-right: 4px;
  }
  
  .bar {
    width: 1px;
    height: 6px;
  }
  
  .bar-container {
    height: 12px;
  }
}

@media screen and (max-width: 320px) {
  .bar-container {
    display: none; /* 在极窄屏幕上隐藏条形动画 */
  }
  
  .bars p {
    font-size: 12px;
  }
}

/* 底部导航条样式 */
.bottom-nav {
  animation: rth102a7221 1s;
  -webkit-backdrop-filter: var(--main-backdrop-filter);
  backdrop-filter: var(--main-backdrop-filter);
  background-color: var(--white-alpha-10);
  border-radius: 20px;
  bottom: 80px; /* 向上移动，确保与footer有足够间距 */
  box-shadow: #0003 0 0 10px;
  display: flex;
  left: 50%;
  max-width: calc(100% - 20px);
  overflow: hidden;
  padding: 10px;
  position: fixed;
  transform: translate(-50%);
  transition: .25s;
  white-space: nowrap;
  z-index: 1000;
  width: auto;
}

/* 小屏幕适配 */
@media (max-width: 768px) {
  .bottom-nav {
    bottom: 60px; /* 在小屏幕上调整位置 */
  }
}

@media (max-width: 480px) {
  .bottom-nav {
    bottom: 50px; /* 在更小屏幕上调整位置 */
  }
}

.nav-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nav-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 
    0 6px 20px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.nav-item:hover::before {
  opacity: 1;
}

.nav-item i {
  font-size: 20px;
  z-index: 1;
  position: relative;
}

.nav-item:active {
  transform: translateY(0);
  background: rgba(255, 255, 255, 0.25);
}

/* 导航条响应式设计 */
@media screen and (max-width: 768px) {
  .bottom-nav {
    bottom: 50px; /* 向上移动，避免遮挡footer和诗句面板 */
  }
  
  .nav-container {
    padding: 10px 16px;
    gap: 6px;
  }
  
  .nav-item {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }
  
  .nav-item i {
    font-size: 18px;
  }
}

@media screen and (max-width: 480px) {
  .bottom-nav {
    bottom: 50px; /* 向上移动，避免遮挡footer和诗句面板 */
    max-width: 95vw;
  }
  
  .nav-container {
    padding: 8px 12px;
    gap: 4px;
  }
  
  .nav-item {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }
  
  .nav-item i {
    font-size: 16px;
  }
}

@media screen and (max-width: 360px) {
  .bottom-nav {
    bottom: 50px; /* 向上移动，避免遮挡footer和诗句面板 */
  }
  
  .nav-container {
    padding: 6px 10px;
  }
  
  .nav-item {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }
  
  .nav-item i {
    font-size: 14px;
  }
}

/* 底部信息栏样式 */
footer {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  animation-delay: 0.5s;
  animation-duration: 0.5s;
  animation-fill-mode: backwards;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background-color: rgba(0, 0, 0, 0.06);
  border-radius: 11px;
  color: rgba(255, 255, 255, 0.6);
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  padding: 3px 3px 3px 8px;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  width: auto;
  max-width: calc(100% - 40px);
}

/* Footer隐藏状态类 */
footer.hidden {
  display: none;
}

/* 导航栏底部位置类 */
.bottom-nav.bottom-position {
  bottom: 10px;
}

footer:hover {
  background-color: rgba(0, 0, 0, 0.1);
  color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

footer p {
  margin: 0;
  line-height: 1;
}

/* 关闭按钮样式 */
.close-footer {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  padding: 2px;
  border-radius: 50%;
  transition: all 0.2s ease;
  width: 16px;
  height: 16px;
}

.close-footer:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
}

.close-footer i {
  font-size: 12px;
  line-height: 1;
}

/* About页面样式 */
.about-page {
  background-color: #000;
  color: #fff;
  font-family: "Microsoft Yahei Light", "Microsoft Yahei", "PingFang SC", "Helvetica Neue", Helvetica, Tahoma, Arial, sans-serif;
  padding: 20px;
}

.about-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background-color: rgba(25, 25, 25, 0.25);
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.about-container h1, 
.about-container h2 {
  text-align: center;
  margin-bottom: 20px;
}

.about-container h1 {
  font-size: 2.5rem;
  color: #70C000;
}

.about-container h2 {
  font-size: 1.8rem;
  color: #70C000;
  margin-top: 30px;
}

.about-container p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 15px;
}

.about-back-link {
  display: block;
  text-align: center;
  margin-top: 30px;
  color: #70C000;
  text-decoration: none;
  font-size: 1.2rem;
}

.about-back-link:hover {
  text-decoration: underline;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1search-engine-selectorfr));
  gap: 20px;
  margin: 20px 0;
}

.about-feature {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 10px;
  text-align: center;
}

.about-feature i {
  font-size: 2rem;
  color: #70C000;
  margin-bottom: 10px;
}

/* 涟漪效果样式 */
.ripple {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.6);
  transform: scale(0);
  animation: ripple-animation 3s ease-out;
  pointer-events: none;
  z-index: 10; /* 确保涟漪效果在内容之上 */
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* 网址导航小标签样式 */
.website-navigation {
  position: fixed;
  top: 350px; /* 调整位置，确保与搜索框有足够间距 */
  left: 50%;
  transform: translateX(-50%);
  border-bottom: 1px solid transparent;
  border-top: 1px solid transparent;
  max-height: calc(100vh - 480px); /* 调整最大高度，避免与底部元素重叠 */
  overflow-x: hidden;
  overflow-y: auto;
  padding: 10px 10px 50px;
  scrollbar-width: none;
  transition: border-color .25s, opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  z-index: 1; /* 确保导航小标签在搜索框之下 */
  animation: slideInUp 0.6s ease-out;
  /* 确保背景模糊效果立即生效 */
  -webkit-backdrop-filter: blur(0px);
  backdrop-filter: blur(0px);
}

/* 隐藏滚动条 */
.website-navigation::-webkit-scrollbar {
  display: none;
}

/* 从下往上滑入动画 */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* 搜索框聚焦时隐藏网址导航小标签 */
.search.focus ~ .website-navigation,
.search.focus + * .website-navigation,
main:has(.search.focus) .website-navigation {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(20px) translateX(-50%);
  transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s ease;
}

.nav-grid {
  display: grid;
  grid-gap: 50px;
  grid-template-columns: repeat(5, 80px); /* 调整列宽为80px */
  justify-content: center;
  padding-bottom: 35px; /* 增加底部间距，为文字留出空间 */
}

/* 导航项包装器样式 */
.nav-item-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 80px; /* 调整宽度为80px以匹配卡片 */
}

/* 网址名称样式 */
.nav-item-wrapper > div {
  color: #fff;
  font-size: 12px;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  margin-top: 5px;
  transition: all 0.4s ease;
  z-index: 2;
  line-height: 1.4;
}

/* 悬停效果 */
.nav-card:hover + div,
.nav-item-wrapper:hover > div {
  transform: translateY(-2px);
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.3);
}

.nav-card {
  width: 80px;
  height: 80px;
  padding: 10px 5px;
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.nav-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.1));
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
  border-radius: 15px;
}

.nav-card::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 70%);
  transform: translate(-50%, -50%);
  transition: width 0.7s, height 0.7s;
  z-index: 0;
}

.nav-card:hover {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.12));
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
  color: #fff;
  border-radius: 15px;
}

.nav-card:hover::before {
  opacity: 1;
}

.nav-card:hover::after {
  width: 120%;
  height: 120%;
}

.nav-card i {
  font-size: 40px;
  /*margin-bottom: 6px; */
  position: relative;
  z-index: 2;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
  .website-navigation {
    top: 300px; /* 调整位置，确保与搜索框有足够间距 */
    padding: 10px 10px 50px;
    max-height: calc(100vh - 430px); /* 调整最大高度，避免与底部元素重叠 */
  }
  
  .nav-grid {
    grid-gap: 40px;
    grid-template-columns: repeat(4, 65px); /* 调整为65px */
    padding-bottom: 35px; /* 增加底部间距，为文字留出空间 */
  }
  
  .nav-item-wrapper {
    width: 45px; /* 与卡片宽度一致 */
  }
  
  .nav-item-wrapper > div {
    font-size: 10px;
  }
  
  .nav-card {
    width: 65px;
    height: 65px;
    padding: 8px 4px;
    border-radius: 12px;
  }
  
  .nav-card i {
    font-size: 32px; /* 调整为32px */
    margin-bottom: 5px;
  }
}

@media screen and (max-width: 480px) {
  .website-navigation {
    top: 280px; /* 调整位置，确保与搜索框有足够间距 */
    padding: 10px 10px 50px;
    max-height: calc(100vh - 410px); /* 调整最大高度，避免与底部元素重叠 */
  }
  
  .nav-grid {
    grid-gap: 30px;
    grid-template-columns: repeat(3, 55px); /* 调整为55px */
    padding-bottom: 35px; /* 增加底部间距，为文字留出空间 */
  }
  
  .nav-item-wrapper {
    width: 55px; /* 与卡片宽度一致 */
  }
  
  .nav-item-wrapper > div {
    font-size: 9px;
  }
  
  .nav-card {
    width: 55px;
    height: 55px;
    padding: 7px 3px;
    border-radius: 10px;
  }
  
  .nav-card i {
    font-size: 28px; /* 调整为28px */
    margin-bottom: 4px;
  }
}

@media screen and (max-width: 360px) {
  .website-navigation {
    top: 260px; /* 调整位置，确保与搜索框有足够间距 */
    padding: 10px 10px 50px;
    max-height: calc(100vh - 390px); /* 调整最大高度，避免与底部元素重叠 */
  }
  
  .nav-grid {
    grid-gap: 25px;
    grid-template-columns: repeat(3, 45px); /* 调整为45px */
    padding-bottom: 35px; /* 增加底部间距，为文字留出空间 */
  }
  
  .nav-item-wrapper {
    width: 65px; /* 与卡片宽度一致 */
  }
  
  .nav-item-wrapper > div {
    font-size: 8px;
  }
  
  .nav-card {
    width: 45px;
    height: 45px;
    padding: 6px 2px;
    border-radius: 8px;
  }
  
  .nav-card i {
    font-size: 24px; /* 调整为24px */
    margin-bottom: 3px;
  }
}

/* 不同网站的颜色主题 */
/* 删除了针对特定网站的样式 */

/* 添加卡片按钮样式 */
.add-card {
  cursor: pointer;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border: 1px dashed rgba(255, 255, 255, 0.3);
}

.add-card:hover {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
  border-color: rgba(255, 255, 255, 0.5);
}

.add-card i {
  color: rgba(255, 255, 255, 0.7);
}

.add-card:hover i {
  color: rgba(255, 255, 255, 0.9);
}

/* 弹窗样式 */
.modal {
  display: flex;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  justify-content: center;
  align-items: center;
}

.modal.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  width: 90%;
  max-width: 500px;
  transform: translateY(30px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.modal.show .modal-content {
  transform: translateY(0);
  opacity: 1;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 28px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.modal-header h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  background: linear-gradient(135deg, #ffffff, #e0e0e0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.close-btn {
  font-size: 24px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
  line-height: 1;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.close-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

.modal-body {
  padding: 24px 28px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  font-weight: 500;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
}

.form-group input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  color: #fff;
  font-size: 16px;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}

.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-group small {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.form-group small a {
  color: #4dabf7;
  text-decoration: none;
  transition: color 0.2s;
}

.form-group small a:hover {
  color: #74c0fc;
  text-decoration: underline;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  padding: 20px 28px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-cancel {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-cancel:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary {
  background: linear-gradient(135deg, #4dabf7, #339af0);
  color: #fff;
  box-shadow: 0 4px 15px rgba(77, 171, 247, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #339af0, #228be6);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(77, 171, 247, 0.4);
}

/* 动画 */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* fadeInUp动画 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 天气卡片样式 */
.weather-card {
  position: fixed;
  top: 20px;
  right: 20px;
  transform: scale(0.8);
  width: 90%;
  max-width: 350px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.weather-card.show {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.weather-content {
  padding: 20px;
  color: #333;
}

/* 天气卡片头部 */
.weather-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.weather-location {
  display: flex;
  align-items: center;
  font-weight: 500;
  color: #333;
}

.weather-location i {
  margin-right: 6px;
  color: var(--accent-color);
}

.weather-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  color: #666;
}

.weather-close-btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: #333;
}

/* 当前天气 */
.weather-current {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.weather-icon {
  font-size: 40px;
  color: var(--accent-color);
}

.weather-temp {
  display: flex;
  align-items: flex-start;
}

.temp-value {
  font-size: 36px;
  font-weight: 300;
  line-height: 1;
}

.temp-unit {
  font-size: 16px;
  margin-top: 5px;
  margin-left: 2px;
}

.weather-desc {
  font-size: 16px;
  color: #666;
  text-align: center;
  flex: 1;
}

/* 天气详情 */
.weather-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.weather-detail-item {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #666;
}

.weather-detail-item i {
  margin-right: 6px;
  color: var(--accent-color);
  font-size: 16px;
}

/* 天气卡片底部 */
.weather-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #666;
}

.weather-refresh-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  color: var(--accent-color);
}

.weather-refresh-btn:hover {
  background-color: rgba(143, 224, 0, 0.1);
  transform: rotate(90deg);
}

/* 加载状态 */
.weather-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 0;
  color: #666;
}

.weather-loading .spinner {
  width: 30px;
  height: 30px;
  border: 2px solid rgba(143, 224, 0, 0.2);
  border-top: 2px solid var(--accent-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 错误状态 */
.weather-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 0;
  color: #666;
}

.weather-error i {
  font-size: 30px;
  color: #ff4757;
  margin-bottom: 10px;
}

.weather-retry-btn {
  margin-top: 15px;
  padding: 8px 16px;
  background-color: var(--accent-color);
  color: white;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.weather-retry-btn:hover {
  background-color: #8fe000;
  transform: translateY(-2px);
}

/* 深色模式适配 */
@media (prefers-color-scheme: dark) {
  .weather-card {
    background: rgba(30, 30, 30, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .weather-content,
  .weather-location,
  .weather-temp,
  .weather-desc,
  .weather-details,
  .weather-footer,
  .weather-loading,
  .weather-error {
    color: #f0f0f0;
  }
  
  .weather-close-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #f0f0f0;
  }
  
  .weather-detail-item {
    color: #ccc;
  }
}

/* 响应式设计 */
@media screen and (max-width: 1024px) {
  /* 平板设备：天气卡片居中显示 */
  .weather-card {
    top: 50%;
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%) scale(0.8);
  }
  
  .weather-card.show {
    transform: translate(-50%, -50%) scale(1);
  }
}

@media screen and (max-width: 480px) {
  /* 手机设备：天气卡片居中显示 */
  .weather-card {
    top: 50%;
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%) scale(0.8);
    width: 95%;
    max-width: 320px;
  }
  
  .weather-card.show {
    transform: translate(-50%, -50%) scale(1);
  }
  
  .weather-content {
    padding: 15px;
  }
  
  .weather-icon {
    font-size: 36px;
  }
  
  .temp-value {
    font-size: 32px;
  }
  
  .weather-details {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* 新闻卡片样式 */
.news-card {
  position: fixed;
  top: 20px;
  right: 20px;
  transform: scale(0.8);
  width: 90%;
  max-width: 400px;
  max-height: 80vh;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
}

.news-card.show {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.news-content {
  padding: 20px;
  color: #333;
  overflow-y: auto;
  flex: 1;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

/* 隐藏滚动条 */
.news-content::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}

/* 新闻卡片头部 */
.news-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.news-title {
  display: flex;
  align-items: center;
  font-weight: 500;
  color: #333;
}

.news-title i {
  margin-right: 6px;
  color: var(--accent-color);
}

.news-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  color: #666;
}

.news-close-btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: #333;
}

/* 新闻日期 */
.news-date {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
  text-align: center;
}

/* 新闻图片 */
.news-image-container {
  margin-bottom: 20px;
  text-align: center;
}

.news-image {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 新闻列表 */
.news-list {
  margin-bottom: 20px;
}

.news-item {
  margin-bottom: 12px;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.02);
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
  transition: all 0.2s ease;
}

.news-item:hover {
  background-color: rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

/* 新闻卡片底部 */
.news-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #666;
  padding-top: 15px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.news-weiyu {
  font-style: italic;
  flex: 1;
  padding-right: 10px;
}

.news-refresh-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  color: var(--accent-color);
}

.news-refresh-btn:hover {
  background-color: rgba(143, 224, 0, 0.1);
  transform: rotate(90deg);
}

/* 加载状态 */
.news-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 0;
  color: #666;
}

.news-loading .spinner {
  width: 30px;
  height: 30px;
  border: 2px solid rgba(143, 224, 0, 0.2);
  border-top: 2px solid var(--accent-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

/* 错误状态 */
.news-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 0;
  color: #666;
}

.news-error i {
  font-size: 30px;
  color: #ff4757;
  margin-bottom: 10px;
}

.news-retry-btn {
  margin-top: 15px;
  padding: 8px 16px;
  background-color: var(--accent-color);
  color: white;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.news-retry-btn:hover {
  background-color: #8fe000;
  transform: translateY(-2px);
}

/* 深色模式适配 */
@media (prefers-color-scheme: dark) {
  .news-card {
    background: rgba(30, 30, 30, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .news-content,
  .news-title,
  .news-date,
  .news-footer,
  .news-loading,
  .news-error {
    color: #f0f0f0;
  }
  
  .news-close-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #f0f0f0;
  }
  
  .news-item {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ccc;
  }
  
  .news-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }
  
  .news-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
}

/* 热榜卡片样式 */
.hotlist-card {
  position: fixed;
  top: 20px;
  right: 20px;
  transform: scale(0.8);
  width: 90%;
  max-width: 450px;
  max-height: 85vh;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
}

.hotlist-card.show {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.hotlist-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative; /* 添加相对定位 */
}

.hotlist-tabs {
  display: flex;
  overflow-x: auto;
  /* scrollbar-width: none;  Firefox - 移除以显示滚动条 */
  /* -ms-overflow-style: none;  IE and Edge - 移除以显示滚动条 */
  padding: 5px 0;
  width: 100%; /* 确保宽度为100% */
  scroll-behavior: smooth; /* 添加平滑滚动 */
  -webkit-overflow-scrolling: touch; /* 在iOS上提供平滑滚动 */
  flex: 1; /* 让标签页占据可用空间 */
  margin-right: 10px; /* 为关闭按钮留出空间 */
  cursor: grab; /* 添加抓取光标 */
  user-select: none; /* 防止文本选择 */
}

/* 鼠标按下时改变光标 */
.hotlist-tabs:active {
  cursor: grabbing;
}

/* 显示滚动条 */
.hotlist-tabs::-webkit-scrollbar {
  height: 6px; /* 设置滚动条高度 */
  background: rgba(0, 0, 0, 0.1); /* 设置滚动条轨道背景 */
  border-radius: 3px;
}

.hotlist-tabs::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05); /* 设置滚动条轨道背景 */
  border-radius: 3px;
}

.hotlist-tabs::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2); /* 设置滚动条滑块颜色 */
  border-radius: 3px;
}

.hotlist-tabs::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3); /* 设置滚动条滑块悬停颜色 */
}

.hotlist-tab {
  padding: 8px 12px;
  margin-right: 8px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  background: rgba(0, 0, 0, 0.05);
  color: #333;
  display: flex;
  align-items: center;
}

.hotlist-tab i {
  margin-right: 5px;
  font-size: 16px;
}

.hotlist-tab.active {
  background: var(--accent-color);
  color: white;
}

.hotlist-tab:hover:not(.active) {
  background: rgba(0, 0, 0, 0.1);
}

.hotlist-content {
  padding: 0;
  color: #333;
  overflow-y: auto;
  flex: 1;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

/* 隐藏滚动条 */
.hotlist-content::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}

/* 加载状态 */
.hotlist-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  color: #666;
}

.hotlist-loading .spinner {
  width: 30px;
  height: 30px;
  border: 2px solid rgba(143, 224, 0, 0.2);
  border-top: 2px solid var(--accent-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

.hotlist-loading p {
  margin: 0;
  font-size: 14px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 错误状态 */
.hotlist-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  color: #666;
}

.hotlist-error i {
  font-size: 30px;
  color: #ff4757;
  margin-bottom: 10px;
}

.hotlist-error p {
  margin: 0 0 15px;
  font-size: 14px;
}

.hotlist-retry-btn {
  padding: 8px 16px;
  background-color: var(--accent-color);
  color: white;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.hotlist-retry-btn:hover {
  background-color: #8fe000;
  transform: translateY(-2px);
}

/* 热榜头部信息 */
.hotlist-header-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  background: rgba(0, 0, 0, 0.02);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.update-time-container {
  display: flex;
  align-items: center;
  font-size: 12px;
  color: #666;
  order: 0; /* 放在左侧 */
}

.update-time {
  margin-right: 10px;
}

.refresh-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  color: var(--accent-color);
  order: 1; /* 放在右侧 */
}

.refresh-btn:hover {
  background-color: rgba(143, 224, 0, 0.1);
  transform: rotate(90deg);
}

.refresh-btn i {
  font-size: 16px;
}

/* 热榜设置按钮 */
.hotlist-header-buttons {
  display: flex;
  align-items: center;
}

.settings-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  color: #666;
  margin-right: 5px;
}

.settings-btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: var(--accent-color);
}

.settings-btn i {
  font-size: 16px;
}

/* 热榜设置面板 */
.hotlist-settings-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
}

.hotlist-settings-panel.show {
  display: flex;
  opacity: 1;
}

.settings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.settings-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.settings-content {
  padding: 20px;
  max-height: 70vh;
  overflow-y: auto;
}

.settings-section h4 {
  margin: 0 0 15px;
  font-size: 16px;
  font-weight: 500;
  color: #333;
}

/* 可拖动的平台复选框样式 */
.draggable-platform {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
    cursor: move;
    margin-bottom: 8px;
    border: 1px solid transparent;
}

.draggable-platform:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

.draggable-platform.dragging {
    opacity: 0.5;
    background: rgba(143, 224, 0, 0.1);
    border-color: var(--accent-color);
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.draggable-platform.drag-over {
    background: rgba(143, 224, 0, 0.05);
    border-color: var(--accent-color);
    border-style: dashed;
}

.drag-handle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-right: 10px;
    color: #999;
    cursor: grab;
    transition: all 0.2s ease;
}

.draggable-platform:hover .drag-handle {
    color: var(--accent-color);
}

.draggable-platform.dragging .drag-handle {
    cursor: grabbing;
}

.drag-handle i {
    font-size: 16px;
}

/* 排序按钮样式 */
.sort-buttons {
    display: flex;
    align-items: center;
    margin-left: 10px;
    gap: 4px;
}

.sort-btn {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: #666;
    font-size: 16px;
    width: 28px;
    height: 28px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.sort-btn:hover {
    background-color: rgba(143, 224, 0, 0.1);
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: scale(1.1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.sort-btn:active {
    transform: scale(0.95);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.sort-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: #999;
    box-shadow: none;
}

.sort-btn:disabled:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: #999;
    transform: none;
    box-shadow: none;
}

/* 拖动排序说明文字 */
.drag-instruction {
    font-size: 12px;
    color: #666;
    margin-bottom: 15px;
    padding: 8px 12px;
    background: rgba(143, 224, 0, 0.05);
    border-radius: 4px;
    border-left: 3px solid var(--accent-color);
}

.drag-instruction i {
    margin-right: 5px;
    color: var(--accent-color);
}

/* 更新平台复选框容器样式以支持拖动 */
.platform-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 20px;
}

.platform-checkbox {
    display: flex;
    align-items: center;
    flex: 1;
    padding: 0;
    background: none;
    cursor: pointer;
}

.platform-checkbox:hover {
    background: none;
}

.platform-checkbox input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
}

.platform-checkbox label {
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #333;
    margin: 0;
    flex: 1;
}

.platform-checkbox i {
    margin-right: 5px;
    font-size: 16px;
}

.settings-actions {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.btn {
  padding: 8px 16px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background-color: var(--accent-color);
  color: white;
}

.btn-primary:hover {
  background-color: #8fe000;
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: rgba(0, 0, 0, 0.05);
  color: #333;
}

.btn-secondary:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

/* 热榜设置面板内容容器 */
.hotlist-settings-panel .modal-content {
  background: white;
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  animation: modalFadeIn 0.3s ease;
  opacity: 1;
  transform: translateY(0);
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hotlist-item {
  display: flex;
  align-items: flex-start;
  padding: 12px 15px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: visible;
}

.hotlist-item:hover {
  background: rgba(0, 0, 0, 0.03);
}

.hotlist-item:last-child {
  border-bottom: none;
}

/* 前三名特殊样式 */
.hotlist-item.top-item {
  background: linear-gradient(to right, rgba(255, 215, 0, 0.05), transparent);
}

.hotlist-item.top-item:nth-child(1) {
  background: linear-gradient(to right, rgba(255, 215, 0, 0.15), transparent);
  box-shadow: 0 1px 3px rgba(255, 215, 0, 0.1);
}

.hotlist-item.top-item:nth-child(2) {
  background: linear-gradient(to right, rgba(192, 192, 192, 0.2), transparent);
  box-shadow: 0 1px 3px rgba(192, 192, 192, 0.15);
}

.hotlist-item.top-item:nth-child(3) {
  background: linear-gradient(to right, rgba(205, 127, 50, 0.15), transparent);
  box-shadow: 0 1px 3px rgba(205, 127, 50, 0.1);
}

.item-rank {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  margin-right: 12px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  color: #666;
  flex-shrink: 0;
}

.top-item .item-rank {
  color: white;
}

.top-item:nth-child(1) .item-rank {
  background: #FFD700;
}

.top-item:nth-child(2) .item-rank {
  background: #C0C0C0;
}

.top-item:nth-child(3) .item-rank {
  background: #CD7F32;
}

.item-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.item-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 4px;
}

.item-title-container {
  flex: 1;
  overflow: hidden;
  position: relative;
  min-width: 0;
}

.item-title {
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
  color: #333;
  margin-right: 10px;
  position: relative;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-title-container.scroll .item-title {
  overflow: visible;
  text-overflow: unset;
  display: inline-block;
  padding-right: 20px;
}

.hotlist-item:hover .item-title-container.scroll .item-title {
  animation: scroll-text 8s linear infinite;
}

@keyframes scroll-text {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes scroll-text {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.item-pic {
  width: 50px;
  height: 50px;
  margin-left: 10px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

.item-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-hot {
  margin-left: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  line-height: 1.2;
  height: fit-content;
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.item-hot::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.item-hot:hover::before {
  left: 100%;
}

.item-hot:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.hot-normal {
  background: linear-gradient(135deg, rgba(150, 150, 150, 0.15), rgba(100, 100, 100, 0.2));
  color: #777;
  border-color: rgba(150, 150, 150, 0.2);
}

.hot-medium {
  background: linear-gradient(135deg, rgba(255, 165, 0, 0.15), rgba(255, 140, 0, 0.2));
  color: #FF8C00;
  border-color: rgba(255, 165, 0, 0.3);
  box-shadow: 0 1px 4px rgba(255, 140, 0, 0.15);
}

.hot-high {
  background: linear-gradient(135deg, rgba(255, 69, 0, 0.15), rgba(255, 69, 0, 0.2));
  color: #FF4500;
  border-color: rgba(255, 69, 0, 0.3);
  box-shadow: 0 1px 4px rgba(255, 69, 0, 0.15);
}

.hot-super {
  background: linear-gradient(135deg, rgba(255, 0, 0, 0.15), rgba(255, 0, 0, 0.2));
  color: #FF0000;
  border-color: rgba(255, 0, 0, 0.3);
  box-shadow: 0 1px 4px rgba(255, 0, 0, 0.15);
  animation: pulse-hot 3s infinite;
}

@keyframes pulse-hot {
  0% {
    box-shadow: 0 1px 4px rgba(255, 0, 0, 0.15);
  }
  50% {
    box-shadow: 0 1px 6px rgba(255, 0, 0, 0.25);
  }
  100% {
    box-shadow: 0 1px 4px rgba(255, 0, 0, 0.15);
  }
}

/* 热榜头部关闭按钮 */
.hotlist-header .close-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  color: #666;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.hotlist-header .close-btn:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #333;
  transform: scale(1.1);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hotlist-header .close-btn:active {
  transform: scale(0.95);
}

.hotlist-header .close-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s;
}

.hotlist-header .close-btn:hover::before {
  width: 100%;
  height: 100%;
}

/* 热榜底部 */
.hotlist-footer {
  padding: 12px 15px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.view-more {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.view-more:hover {
  color: #8fe000;
}

.view-more i {
  margin-left: 5px;
  transition: transform 0.2s ease;
}

.view-more:hover i {
  transform: translateX(3px);
}

/* 加载状态 */
.loading-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  color: #666;
}

.loading-indicator i {
  font-size: 24px;
  margin-bottom: 10px;
  animation: spin 1s linear infinite;
}

/* 错误状态 */
.error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  color: #666;
  text-align: center;
}

.error-state i {
  font-size: 24px;
  color: #ff4757;
  margin-bottom: 10px;
}

.retry-btn {
  margin-top: 15px;
  padding: 8px 16px;
  background-color: var(--accent-color);
  color: white;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
}

.retry-btn i {
  margin-right: 5px;
}

.retry-btn:hover {
  background-color: #8fe000;
  transform: translateY(-2px);
}

/* 深色模式适配 */
@media (prefers-color-scheme: dark) {
  .hotlist-card {
    background: rgba(30, 30, 30, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .hotlist-header {
    background: rgba(50, 50, 50, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .hotlist-content,
  .hotlist-header-info,
  .hotlist-footer {
    color: #f0f0f0;
  }
  
  .hotlist-tab {
    background: rgba(255, 255, 255, 0.1);
    color: #f0f0f0;
  }
  
  .hotlist-tab:hover:not(.active) {
    background: rgba(255, 255, 255, 0.2);
  }
  
  .hotlist-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .hotlist-item:hover {
    background: rgba(255, 255, 255, 0.05);
  }
  
  .item-title {
    color: #f0f0f0;
  }
  
  .item-desc {
    color: #aaa;
  }
  
  .hotlist-header-info {
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .hotlist-footer {
    background: rgba(50, 50, 50, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .item-rank {
    background: rgba(255, 255, 255, 0.1);
    color: #aaa;
  }
  
  .hot-normal {
    background: linear-gradient(135deg, rgba(150, 150, 150, 0.2), rgba(100, 100, 100, 0.3));
    color: #aaa;
    border-color: rgba(150, 150, 150, 0.3);
  }
  
  .hot-medium {
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.2), rgba(255, 140, 0, 0.3));
    color: #FFA500;
    border-color: rgba(255, 165, 0, 0.4);
    box-shadow: 0 1px 4px rgba(255, 140, 0, 0.2);
  }
  
  .hot-high {
    background: linear-gradient(135deg, rgba(255, 69, 0, 0.2), rgba(255, 69, 0, 0.3));
    color: #FF6347;
    border-color: rgba(255, 69, 0, 0.4);
    box-shadow: 0 1px 4px rgba(255, 69, 0, 0.2);
  }
  
  .hot-super {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.2), rgba(255, 0, 0, 0.3));
    color: #FF4141;
    border-color: rgba(255, 0, 0, 0.4);
    box-shadow: 0 1px 4px rgba(255, 0, 0, 0.2);
  }
  
  .update-time {
    color: #aaa;
  }
  
  /* 深色模式下的关闭按钮 */
  .hotlist-header .close-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #aaa;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .hotlist-header .close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #f0f0f0;
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }
  
  .hotlist-header .close-btn::before {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  }
}

/* 响应式设计 */
@media screen and (max-width: 1024px) {
  /* 平板设备：热榜卡片居中显示 */
  .hotlist-card {
    top: 50%;
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%) scale(0.8);
  }
  
  .hotlist-card.show {
    transform: translate(-50%, -50%) scale(1);
  }
}

@media screen and (max-width: 480px) {
  /* 手机设备：热榜卡片居中显示 */
  .hotlist-card {
    top: 50%;
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%) scale(0.8);
    width: 95%;
    max-width: 320px;
    max-height: 90vh;
  }
  
  .hotlist-card.show {
    transform: translate(-50%, -50%) scale(1);
  }
  
  .hotlist-header {
    padding: 12px 15px;
  }
  
  .hotlist-tab {
    padding: 6px 10px;
    font-size: 13px;
  }
  
  .item-pic {
    width: 40px;
    height: 40px;
  }
  
  .item-title {
    font-size: 13px;
  }
  
  .item-desc {
    font-size: 11px;
  }
  
  .item-hot {
    font-size: 11px;
    padding: 2px 6px;
  }
}

/* 响应式设计 */
@media screen and (max-width: 1024px) {
  /* 平板设备：新闻卡片居中显示 */
  .news-card {
    top: 50%;
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%) scale(0.8);
  }
  
  .news-card.show {
    transform: translate(-50%, -50%) scale(1);
  }
}

@media screen and (max-width: 480px) {
  /* 手机设备：新闻卡片居中显示 */
  .news-card {
    top: 50%;
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%) scale(0.8);
    width: 95%;
    max-width: 320px;
    max-height: 90vh;
  }
  
  .news-card.show {
    transform: translate(-50%, -50%) scale(1);
  }
  
  .news-content {
    padding: 15px;
  }
  
  .news-item {
    font-size: 13px;
    padding: 8px;
  }
}