:root {
  /* 颜色系统 */
  --primary: #4a8cff;
  --primary-light: rgba(74, 140, 255, 0.1);
  --secondary: #6c63ff;
  --accent: #00c9a7;
  --dark-bg: #121826;
  --dark-card: #1e293b;
  --light-bg: #f8fafc;
  --white: #ffffff;
  --text-light: #334155;
  --text-dark: #e2e8f0;
  --glass-bg: rgba(255, 255, 255, 0.92);
  --glass-border: rgba(74, 140, 255, 0.15);
  --hover-color: #3b82f6;
  --highlight-color: #ffd166;
  
  /* 尺寸系统 */
  --border-radius: 0.75rem;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.12);
  
  /* 过渡效果 */
  --transition: all 0.25s ease;
}

/* 基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  line-height: 1.6;
  background: var(--light-bg);
  color: var(--text-light);
  min-height: 100vh;
  transition: var(--transition);
  overflow-x: hidden;
}

body.dark {
  background: var(--dark-bg);
  color: var(--text-dark);
}

/* 容器系统 */
.container {
  width: min(100%, 87.5rem);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* 通用卡片样式 */
.card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  transition: var(--transition);
  color: var(--text-light);
  box-shadow: var(--shadow-sm);
}

body.dark .card {
  background: rgba(30, 41, 59, 0.92);
  border-color: rgba(74, 140, 255, 0.15);
  color: var(--text-dark);
}

.card:hover {
  background: rgba(74, 140, 255, 0.08);
  border-color: var(--primary);
  transform: translateY(-0.1rem);
  box-shadow: var(--shadow-md);
}

/* 头部区域 */
.header {
  padding: 1.5rem 0 1rem;
}

.header-top {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

@media (max-width: 48rem) {
  .header-top {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1rem;
  }
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: var(--transition);
  padding: 0.5rem;
  border-radius: var(--border-radius);
}

.logo:hover {
  transform: translateY(-0.15rem);
  background: rgba(74, 140, 255, 0.08);
}

.logo img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  animation: logoSpin 8s linear infinite;
}

.logo:hover img {
  animation-duration: 2s;
}

@keyframes logoSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.logo-text {
  font-size: 2.25rem;
  font-weight: 800;
  background: linear-gradient(135deg, #4a8cff 0%, #00c9a7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-desc {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 0.25rem;
  font-weight: 300;
}

/* 搜索系统 */
.search-section {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.search-container {
  display: flex;
  width: min(100%, 60rem);
  gap: 0.875rem;
  align-items: center;
  justify-content: center;
}

.search-box {
  position: relative;
  flex: 1;
  max-width: 50rem;
}

.search-input {
  width: 100%;
  padding: 1rem 3.5rem 1rem 1.5rem;
  border-radius: 2.5rem;
  color: var(--text-light);
  transition: var(--transition);
  font-size: 1.05rem;
  font-weight: 400;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
}

body.dark .search-input {
  background: rgba(30, 41, 59, 0.92);
  border-color: rgba(74, 140, 255, 0.15);
  color: var(--text-dark);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(74, 140, 255, 0.2);
  background: rgba(255, 255, 255, 0.95);
}

body.dark .search-input:focus {
  background: rgba(30, 41, 59, 0.95);
}

.search-btn {
  position: absolute;
  right: 0.375rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  background: var(--primary);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 1.1rem;
}

.search-btn:hover {
  background: var(--hover-color);
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* 搜索引擎选择器 */
.search-engines {
  display: flex;
  gap: 0.625rem;
  flex-shrink: 0;
}

.search-engine {
  padding: 0.5rem 1rem;
  border-radius: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  font-size: 0.95rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  transition: var(--transition);
}

body.dark .search-engine {
  background: rgba(30, 41, 59, 0.92);
  border-color: rgba(74, 140, 255, 0.15);
}

.search-engine:hover,
.search-engine.active {
  background: rgba(74, 140, 255, 0.08);
  border-color: var(--primary);
  transform: translateY(-0.1rem);
}

/* 导航系统 */
.nav-section {
  padding: 1.5rem 0;
}

.nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.nav-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.6rem;
  font-weight: 700;
}

.nav-actions {
  display: flex;
  gap: 0.75rem;
}

.nav-btn {
  padding: 0.5rem 1rem;
  border-radius: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  font-size: 0.95rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  transition: var(--transition);
}

body.dark .nav-btn {
  background: rgba(30, 41, 59, 0.92);
  border-color: rgba(74, 140, 255, 0.15);
}

.nav-btn:hover,
.nav-btn.primary {
  background: rgba(74, 140, 255, 0.08);
  border-color: var(--primary);
}

.nav-btn.primary {
  background: var(--primary);
  color: white;
}

/* 导航标签 */
.nav-tabs {
  display: flex;
  gap: 0.625rem;
  justify-content: center;
  white-space: nowrap;
  flex-wrap: nowrap;
  margin-bottom: 1.25rem;
  padding: 0.5rem;
  border-radius: var(--border-radius);
  background: rgba(74, 140, 255, 0.04);
  overflow-x: auto;
}

.nav-tab {
  position: relative;
  font-size: 1.125rem;
  font-weight: 500;
  transition: var(--transition);
  padding: 0.5rem 1rem;
  border-radius: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  white-space: nowrap;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
}

body.dark .nav-tab {
  background: rgba(30, 41, 59, 0.92);
  border-color: rgba(74, 140, 255, 0.15);
}

.nav-tab::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0.25rem;
  background: var(--primary);
  border-radius: 0.125rem;
  opacity: 0;
  transition: var(--transition);
}

.nav-tab.active::after,
.nav-tab:hover::after {
  width: 80%;
  opacity: 1;
}

.nav-tab.active,
.nav-tab:hover {
  background: rgba(74, 140, 255, 0.08);
  border-color: var(--primary);
}

/* 导航内容 */
.nav-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  padding: 1.25rem;
  border-radius: var(--border-radius);
  border: 1px solid rgba(74, 140, 255, 0.2);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
}

body.dark .nav-content {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(74, 140, 255, 0.15);
}

@media (min-width: 1200px) {
  .nav-content {
    grid-template-columns: repeat(9, 1fr);
  }
}

.nav-site {
  padding: 0.875rem 0.5rem;
  text-align: center;
  transition: var(--transition);
  text-decoration: none;
  color: var(--text-light);
  position: relative;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(74, 140, 255, 0.2);
  border-radius: 0.75rem;
  min-height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
}

body.dark .nav-site {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(74, 140, 255, 0.15);
  color: var(--text-dark);
}

.nav-site:hover {
  background: rgba(74, 140, 255, 0.1);
  border-color: var(--primary);
  transform: translateY(-0.15rem);
  box-shadow: var(--shadow-md);
}

.nav-site-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1rem;
  width: 100%;
  text-align: center;
  display: block;
  font-weight: 500;
}

/* 高亮网站样式 */
.highlight-site {
  position: relative;
  border: 2px solid var(--highlight-color) !important;
  box-shadow: 0 0 10px rgba(255, 209, 102, 0.3) !important;
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.1), rgba(255, 209, 102, 0.05)) !important;
}

.highlight-site::before {
  content: '★';
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  background: linear-gradient(135deg, #6c63ff 0%, #4a8cff 100%);
  color: white;
  font-size: 0.875rem;
  font-weight: bold;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.3);
}

/* 编辑按钮样式 */
.edit-btn {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  width: 1.5rem;
  height: 1.5rem;
  border: none;
  border-radius: 50%;
  background: rgba(74, 140, 255, 0.15);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: var(--transition);
  font-size: 0.8rem;
}

.nav-section.edit-mode .edit-btn {
  opacity: 1;
}

.edit-btn:hover {
  background: var(--primary);
  color: white;
}

/* 主内容区域 */
.main-section {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1.5rem;
  padding: 2rem 0;
}

@media (max-width: 62rem) {
  .main-section {
    grid-template-columns: 1fr;
  }
}

.sidebar {
  position: sticky;
  top: 1.5rem;
  height: fit-content;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

@media (max-width: 62rem) {
  .sidebar {
    display: none;
  }
}

.sidebar-item {
  padding: 0.75rem 0.5rem;
  border-radius: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 500;
  transition: var(--transition);
  justify-content: flex-start;
  letter-spacing: 0.05em;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
}

body.dark .sidebar-item {
  background: rgba(30, 41, 59, 0.92);
  border-color: rgba(74, 140, 255, 0.15);
}

.sidebar-item:hover,
.sidebar-item.active {
  background: rgba(74, 140, 255, 0.08);
  border-color: var(--primary);
}

.sidebar-item .icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.content {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.category {
  scroll-margin-top: 6.25rem;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1.5rem;
  font-size: 1.6rem;
  font-weight: 700;
  padding: 0.5rem 0;
  border-bottom: 2px solid rgba(74, 140, 255, 0.15);
}

.category-content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 1.125rem;
}

@media (min-width: 1200px) {
  .category-content {
    grid-template-columns: repeat(8, 1fr);
  }
}

@media (max-width: 75rem) {
  .category-content {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}

@media (max-width: 48rem) {
  .category-content {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
}

@media (max-width: 36rem) {
  .category-content {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  }
}

.category-site {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0.75rem;
  text-decoration: none;
  color: var(--text-light);
  transition: var(--transition);
  border-radius: var(--border-radius);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(74, 140, 255, 0.2);
}

body.dark .category-site {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(74, 140, 255, 0.15);
  color: var(--text-dark);
}

.category-site:hover {
  border-color: var(--primary);
  background: rgba(74, 140, 255, 0.1);
  transform: translateY(-0.15rem);
  box-shadow: var(--shadow-md);
}

.site-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  background: rgba(74, 140, 255, 0.08);
  overflow: hidden;
}

.site-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}

.site-name {
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 500;
}

/* 广告位系统 */
.ad-container {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  transition: var(--transition);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm);
}

body.dark .ad-container {
  background: rgba(30, 41, 59, 0.92);
  border-color: rgba(74, 140, 255, 0.15);
  color: var(--text-dark);
}

.ad-a {
  height: 7rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.ad-b-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.875rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 62rem) {
  .ad-b-row {
    grid-template-columns: 1fr;
  }
}

.ad-b {
  height: 5.5rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(74, 140, 255, 0.08);
  border: 1px solid rgba(74, 140, 255, 0.2);
}

.ad-b-title {
  font-weight: 700;
  margin-bottom: 0.4rem;
  font-size: 1.15rem;
}

.ad-b-desc {
  font-size: 0.85rem;
  opacity: 0.9;
}

.ad-c {
  height: 12rem;
  margin: 1.5rem 0;
  background: rgba(74, 140, 255, 0.06);
  border: 1px solid rgba(74, 140, 255, 0.15);
}

.ad-d-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.875rem;
  margin: 1.5rem 0;
}

@media (max-width: 48rem) {
  .ad-d-row {
    grid-template-columns: 1fr;
  }
}

.ad-d {
  height: 5.5rem;
  background: rgba(0, 201, 167, 0.08);
  border: 1px solid rgba(0, 201, 167, 0.2);
}

/* 友情链接区域 */
.friendship-links-container {
  margin-top: 2rem;
}

.friendship-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.125rem;
}

.friendship-link {
  color: var(--text-light);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.95rem;
  font-weight: 500;
}

body.dark .friendship-link {
  color: var(--text-dark);
}

.friendship-link:hover {
  color: var(--primary);
}

/* 底部区域 */
footer {
  padding: 3rem 0 1.5rem;
}

.footer-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
}

@media (max-width: 48rem) {
  .footer-info {
    flex-direction: column;
    gap: 0.875rem;
    text-align: center;
  }
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.125rem;
  justify-content: flex-end;
}

@media (max-width: 48rem) {
  .footer-links {
    justify-content: center;
  }
}

.footer-link {
  color: rgba(0, 0, 0, 0.7);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.9rem;
  font-weight: 400;
}

body.dark .footer-link {
  color: rgba(255, 255, 255, 0.7);
}

.footer-link:hover {
  color: rgba(0, 0, 0, 0.9);
}

body.dark .footer-link:hover {
  color: rgba(255, 255, 255, 0.9);
}

.copyright {
  font-size: 0.875rem;
  color: rgba(0, 0, 0, 0.6);
}

body.dark .copyright {
  color: rgba(255, 255, 255, 0.6);
}

/* 工具栏系统 */
.toolbar {
  position: fixed;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 1000;
}

@media (max-width: 48rem) {
  .toolbar {
    right: 0.875rem;
  }
}

@media (max-width: 36rem) {
  .toolbar-btn {
    width: 3.5rem;
    height: 3.5rem;
    font-size: 1.4rem;
  }
}

.toolbar-btn {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1.6rem;
  border: 1px solid rgba(74, 140, 255, 0.2);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-light);
  box-shadow: var(--shadow-sm);
}

body.dark .toolbar-btn {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(74, 140, 255, 0.15);
  color: var(--text-dark);
}

.toolbar-btn:hover {
  background: rgba(74, 140, 255, 0.15);
  transform: scale(1.08);
  box-shadow: var(--shadow-md);
}

.toolbar-panel {
  position: absolute;
  right: 5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 20rem;
  display: none;
  border-radius: var(--border-radius);
  border: 1px solid rgba(74, 140, 255, 0.2);
  background: rgba(255, 255, 255, 0.95);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
}

body.dark .toolbar-panel {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(74, 140, 255, 0.15);
}

@media (max-width: 48rem) {
  .toolbar-panel {
    width: 18rem;
    right: 4.5rem;
  }
}

@media (max-width: 36rem) {
  .toolbar-panel {
    width: 16rem;
  }
}

.toolbar-panel.show {
  display: block;
  animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateY(-50%) translateX(1rem);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.125rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(74, 140, 255, 0.15);
}

.category-menu {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.category-menu-item {
  padding: 0.75rem;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
}

.category-menu-item:hover {
  background: rgba(74, 140, 255, 0.08);
  transform: translateX(0.15rem);
}

/* 模态框 */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal.show {
  display: flex;
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  width: min(90%, 34rem);
  border-radius: var(--border-radius);
  border: 1px solid rgba(74, 140, 255, 0.2);
  background: rgba(255, 255, 255, 0.95);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}

body.dark .modal-content {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(74, 140, 255, 0.15);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-input, .form-select {
  width: 100%;
  padding: 0.875rem 1.125rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(74, 140, 255, 0.2);
  border-radius: 0.75rem;
  color: var(--text-light);
  font-size: 1rem;
  transition: var(--transition);
}

body.dark .form-input,
body.dark .form-select {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(74, 140, 255, 0.15);
  color: var(--text-dark);
}

.form-input:focus, .form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(74, 140, 255, 0.2);
  background: rgba(255, 255, 255, 0.95);
}

body.dark .form-input:focus,
body.dark .form-select:focus {
  background: rgba(30, 41, 59, 0.95);
}

.form-select {
  cursor: pointer;
}

.btn {
  padding: 0.875rem 1.5rem;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
  font-weight: 600;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn:hover {
  opacity: 0.95;
  transform: translateY(-0.1rem);
  box-shadow: var(--shadow-sm);
}

/* 图标系统 */
.icon {
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  fill: currentColor;
  overflow: hidden;
}

/* 移动端搜索 */
.mobile-search { 
  display: none; 
  position: relative; 
  width: min(100%, 40rem);
  margin: 0 auto 1.5rem;
}

@media (max-width: 48rem) {
  .search-section { 
    display: none; 
  }
  .mobile-search { 
    display: block; 
  }
}

.mobile-search-box {
  position: relative;
  width: 100%;
}

.mobile-search-input {
  width: 100%;
  padding: 1rem 3.5rem 1rem 3.5rem;
  border-radius: 2.5rem;
  color: var(--text-light);
  transition: var(--transition);
  font-size: 1.05rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
}

body.dark .mobile-search-input {
  background: rgba(30, 41, 59, 0.92);
  border-color: rgba(74, 140, 255, 0.15);
  color: var(--text-dark);
}

.mobile-search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(74, 140, 255, 0.2);
  background: rgba(255, 255, 255, 0.95);
}

body.dark .mobile-search-input:focus {
  background: rgba(30, 41, 59, 0.95);
}

.mobile-search-engine {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  background: rgba(255, 255, 255, 0.9);
  transition: var(--transition);
}

body.dark .mobile-search-engine {
  background: rgba(30, 41, 59, 0.9);
}

.mobile-search-engine:hover {
  background: rgba(74, 140, 255, 0.15);
  transform: translateY(-50%) scale(1.08);
}

.mobile-search-btn {
  position: absolute;
  right: 0.375rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  background: var(--primary);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.mobile-search-btn:hover {
  background: var(--hover-color);
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.mobile-search-engines { 
  position: absolute; 
  top: 100%; 
  left: 0; 
  width: 10.5rem; 
  display: none; 
  flex-direction: column; 
  gap: 0.375rem; 
  z-index: 10;
  border-radius: 0.875rem; 
  border: 1px solid rgba(74, 140, 255, 0.2);
  background: rgba(255, 255, 255, 0.95); 
  padding: 0.875rem;
  margin-top: 0.625rem;
  box-shadow: var(--shadow-lg);
}

body.dark .mobile-search-engines {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(74, 140, 255, 0.15);
}

.mobile-search-engines.show { 
  display: flex;
  animation: slideDown 0.2s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-0.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-engine-option {
  padding: 0.75rem 0.875rem;
  border-radius: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: var(--transition);
  font-weight: 500;
}

.mobile-engine-option:hover,
.mobile-engine-option.active {
  background: rgba(74, 140, 255, 0.08);
  transform: translateX(0.15rem);
}

.mobile-engine-icon {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}