* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #F8F9FC;
  min-height: 100vh;
  padding: 0;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #F8F9FC;
}

::-webkit-scrollbar-thumb {
  background: #C9BEF2;
  border-radius: 999px;
}

.header {
  background: rgba(255, 255, 255, 0.7);
  padding: 0 24px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 12px rgba(124, 108, 240, 0.12);
}

.header-content {
  max-width: 1230px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  position: relative;
}

.mode-switch {
  position: absolute;
  right: -30px;
  top: 50%;
  transform: translateY(-50%);
  color: #5A6070;
  font-size: 14px;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  background: transparent;
  border: none;
  transition: all 0.3s ease;
}

.mode-switch:hover {
  background: rgba(50, 50, 50, 0.8);
  color: #fff;
  border-color: rgba(50, 50, 50, 0.8);
}

.logo {
  height: 30px;
  width: auto;
  flex-shrink: 0;
  position: absolute;
  left: 75px;
  transform: translateX(-50%);
}

.logo:hover {
  transform: translateX(-50%) scale(1.08);
}

.search-box {
  background: #4a5568;
  border-radius: 8px;
  padding: 0;
  display: flex;
  align-items: center;
  box-shadow: 0 1px 8px rgba(0,0,0,0.1);
  width: 630px;
  height: 40px;
  position: relative;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  border: 1px solid rgba(226, 232, 240, 0.5);
}

.search-box:hover {
  box-shadow: 0 0 20px rgba(124, 108, 240, 0.3), 0 0 40px rgba(124, 108, 240, 0.15);
}

.search-box input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.9rem;
  padding: 0 12px;
  background: #4a5568;
  color: #e2e8f0;
}

.search-box input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.engine-selector {
  position: relative;
  cursor: pointer;
  padding: 0 10px;
  height: 100%;
  display: flex;
  align-items: center;
}

.engine-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.engine-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  padding: 8px 0;
  min-width: 120px;
  z-index: 1000;
  display: none;
}

.engine-selector:hover .engine-dropdown,
.engine-dropdown:hover,
.engine-selector.active .engine-dropdown {
  display: block;
}

.dropdown-item {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  cursor: pointer;
  transition: background 0.2s;
}

.dropdown-item:hover {
  background: #f5f5f5;
}

.dropdown-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  margin-right: 8px;
}

.dropdown-label {
  font-size: 0.85rem;
  color: #333;
}

.search-icon-btn {
  border: none;
  background: none;
  padding: 0 10px;
  cursor: pointer;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.main-content {
  display: flex;
  max-width: 1230px;
  margin: 75px auto 80px;
  padding: 0;
  gap: 24px;
  min-height: calc(100vh - 64px);
}

.sidebar {
  width: 150px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  padding: 16px 12px;
  position: sticky;
  top: 75px;
  height: fit-content;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  text-align: center;
  backdrop-filter: blur(10px);
}

.category-bar {
  display: none !important;
}

.sidebar-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #222638;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #E5E7F0;
}

.category-item {
  padding: 10.5px 8px;
  margin-bottom: 6px;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-size: 15px;
  color: #5A6070;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  position: relative;
  gap: 11px;
}

.category-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.category-item:hover {
  background: #00A876;
  color: #fff;
  border-color: #009966;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 169, 118, 0.15);
}

.category-item.active {
  background: #009966;
  color: #fff;
  font-weight: 500;
}

.category-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  background: #fff;
  border-radius: 0 5px 5px 0;
}

.content-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.subcategory-bar {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 5px;
  padding: 12px 12px;
  box-shadow: 0 1px 8px rgba(0,0,0,0.05);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-start;
  backdrop-filter: blur(10px);
}

.subcategory-btn {
  background: transparent;
  color: #707690;
  border: 1px solid #E5E7F0;
  padding: 9px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.subcategory-btn:hover {
  border-color: #009966;
  background: #00A876;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 169, 118, 0.15);
}

.subcategory-btn.active {
  background: #009966;
  color: #fff;
  border-color: #009966;
  font-weight: 500;
}

.search-result-count {
  color: #8A72D8;
  font-weight: 500;
  font-size: 0.95rem;
}

.tertiary-group {
  margin-top: 24px;
  padding-left: 20px;
  border-left: 3px solid #E5E7F0;
}

.tertiary-group.border-red { border-left-color: #FFB3B3; }
.tertiary-group.border-blue { border-left-color: #B3D1FF; }
.tertiary-group.border-orange { border-left-color: #FFD4B3; }
.tertiary-group.border-green { border-left-color: #B3FFC6; }
.tertiary-group.border-purple { border-left-color: #D4B3FF; }
.tertiary-group.border-pink { border-left-color: #FFB3E6; }
.tertiary-group.border-cyan { border-left-color: #B3FFFF; }
.tertiary-group.border-yellow { border-left-color: #FFE6B3; }

.tertiary-title {
  font-size: 15px;
  font-weight: 500;
  color: #222638;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #F0F0F0;
}

.websites-container {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  padding: 10px 24px 24px;
  box-shadow: 0 1px 8px rgba(0,0,0,0.05);
  flex: 1;
  backdrop-filter: blur(10px);
}

.subcategory-group {
  margin-bottom: 32px;
}

.subcategory-title {
  font-size: 17px;
  font-weight: 500;
  color: #222638;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #F0F0F0;
}

.websites {
  display: grid;
  grid-template-columns: repeat(4, 230px);
  gap: 12px;
  justify-content: center;
}

.website-card {
  background: transparent;
  border-radius: 5px;
  padding: 11px 5px 11px 16px;
  transition: transform 0.2s ease, border-color 0.2s ease;
  border: 1px solid transparent;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  height: 80px;
  width: 230px;
  box-sizing: border-box;
}

.website-card:hover {
  transform: translateY(-4px);
  border-color: #00cc99;
}

.website-card:hover .website-icon {
  transform: scale(1.1);
}

.website-card.no-desc {
  height: 60px;
  padding: 12px;
  gap: 10px;
}

.website-card a {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
}

.website-icon {
  width: 43px;
  height: 43px;
  border-radius: 8px;
  flex-shrink: 0;
  object-fit: contain;
  transition: transform 0.2s ease;
  background-color: #cccccc;
}

.website-card.no-desc .website-icon {
  width: 32px;
  height: 32px;
}

.website-content {
  flex: 1;
  overflow: hidden;
}

.website-name {
  font-size: 14px;
  font-weight: 500;
  color: #33384F;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.website-card.no-desc .website-name {
  font-size: 14px;
}

.website-description {
  font-size: 11px;
  color: #707690;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.website-category-path {
  font-size: 11px;
  color: #9CA3AF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.no-results {
  text-align: center;
  color: #8A8FA8;
  padding: 40px;
  font-size: 1.1rem;
}

.empty-category {
  text-align: center;
  color: #8A8FA8;
  padding: 60px 20px;
  font-size: 1.2rem;
}

@media (max-width: 1024px) {
  .main-content {
    margin-bottom: 80px;
    overflow-x: auto;
  }

  .header {
    justify-content: flex-start;
    padding: 0 16px;
  }

  .header-content {
    justify-content: flex-start;
  }

  .logo {
    display: none;
  }

  .mode-switch {
    display: none;
  }

  #headerButtons {
    display: none !important;
  }

  .search-box {
    flex: none;
    width: 630px;
  }

  .sidebar {
    display: none !important;
  }

  .content-area {
    display: flex;
    flex-direction: column;
    padding-top: 100px;
  }

  .websites-container {
    margin-left: 0;
  }

  .category-bar {
    display: flex !important;
    flex-wrap: wrap;
    gap: 4px;
    background: rgba(255, 255, 255, 0.7);
    padding: 6px;
    margin-bottom: 4px;
    border-radius: 5px;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    z-index: 99;
    max-height: none;
    overflow-y: visible;
    justify-content: flex-start;
  }

  .category-item {
    flex: 0 0 calc(8.33% - 4px);
    min-width: 60px;
    max-width: 80px;
    padding: 6px 4px;
    margin-bottom: 4px;
    font-size: 0.75rem;
    height: auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
  }

  .category-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
  }

  .websites {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

@media (max-width: 768px) {
  .search-box {
    flex: none;
    width: 630px;
  }

  .search-box input {
    width: 100%;
    text-align: center;
  }

  .websites {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }

  .websites-container {
    padding: 16px;
  }

  .category-bar {
    padding: 8px;
    gap: 6px;
  }

  .category-item {
    flex: 1 1 calc(10% - 6px);
    min-width: 45px;
    max-width: 70px;
    padding: 6px 2px;
    font-size: 0.75rem;
  }

  .category-icon {
    width: 14px;
    height: 14px;
  }
}

/* ===== 详细模式深色模式样式 ===== */
body.dark-mode {
  background-color: #1a202c;
  color: #e2e8f0;
}

body.dark-mode .header {
  background: rgba(45, 55, 72, 0.7);
}

body.dark-mode .search-box {
  background: #e2e8f0;
  border-color: rgba(226, 232, 240, 0.5);
}

body.dark-mode .search-box input {
  background: #e2e8f0;
  color: #4a5568;
}

body.dark-mode .search-box input::placeholder {
  color: rgba(74, 85, 104, 0.7);
}

body.dark-mode .mode-switch {
  background: transparent;
  border: none;
  color: #e2e8f0;
}

body.dark-mode .mode-switch:hover {
  background: rgba(200, 200, 200, 0.8);
  color: #333;
  border: none;
}

body.dark-mode .sidebar {
  background: rgba(45, 55, 72, 0.7);
}

body.dark-mode .category-item {
  color: #cbd5e0;
}

body.dark-mode .category-item:hover {
  background: #00A876;
  color: #fff;
  border-color: #009966;
}

body.dark-mode .category-item.active {
  background: #009966;
  color: #fff;
}

body.dark-mode .subcategory-bar {
  background: rgba(45, 55, 72, 0.7);
}

body.dark-mode .subcategory-btn {
  background: transparent;
  color: #cbd5e0;
  border: 1px solid rgba(74, 85, 104, 0.5);
}

body.dark-mode .subcategory-btn:hover {
  background: #00A876;
  border-color: #009966;
  color: #fff;
}

body.dark-mode .subcategory-btn.active {
  background: #009966;
  color: #fff;
  border-color: #009966;
}

body.dark-mode .websites-container {
  background: rgba(45, 55, 72, 0.7);
}

body.dark-mode .website-card {
  background: transparent;
}

body.dark-mode .website-card:hover {
  background: transparent;
  border-color: #00cc99;
}

body.dark-mode .website-name {
  color: #e2e8f0;
}

body.dark-mode .website-description {
  color: #a0aec0;
}

body.dark-mode .website-category-path {
  color: #718096;
}

body.dark-mode .website-icon {
  background-color: #cccccc;
}

body.dark-mode .tertiary-title {
  color: #e2e8f0;
  border-bottom-color: rgba(74, 85, 104, 0.5);
}

body.dark-mode .empty-category,
body.dark-mode .no-results {
  color: #a0aec0;
}

body.dark-mode .search-result-count {
  color: #a78bfa;
}

body.dark-mode .logo:hover {
}

/* 底部栏样式 */
.footer-bar {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  box-shadow: 0 -2px 12px rgba(124, 108, 240, 0.08);
  padding: 16px 24px;
  position: relative;
  z-index: 100;
  font-size: 13px;
  color: #5A6070;
  margin-top: 24px;
  border-radius: 0 0 8px 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.footer-content {
  text-align: center;
  color: #5A6070;
}

.footer-divider {
  color: #5A6070;
}

body.dark-mode .footer-bar {
  background: rgba(45, 55, 72, 0.7);
  color: #cbd5e0;
}

body.dark-mode .footer-content,
body.dark-mode .footer-divider {
  color: #cbd5e0;
}

/* 简洁模式隐藏底部栏 */
.simple-mode .footer-bar {
  display: none;
}

/* 服务声明链接样式 */
.disclaimer-link {
  color: #5A6070;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.disclaimer-link:hover {
  color: #8A72D8;
  text-decoration: underline;
}

body.dark-mode .disclaimer-link {
  color: #cbd5e0;
}

body.dark-mode .disclaimer-link:hover {
  color: #a78bfa;
}

/* ===== 设置页面自定义网站列表样式 ===== */
.settings-container .custom-sites-list {
  margin-top: 20px;
}

.settings-container .custom-site-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  background: #f7fafc;
  border-radius: 8px;
  margin-bottom: 8px;
  width: 100%;
  box-sizing: border-box;
}

body.dark-mode .settings-container .custom-site-item {
  background: #2d3748;
}

.settings-container .custom-site-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.settings-container .custom-site-icon {
  width: 28px;
  height: 28px;
  background: #CCCCCC;
  border-radius: 6px;
  object-fit: cover;
}

.settings-container .custom-site-info {
  flex: 1;
}

.settings-container .custom-site-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.settings-container .custom-site-name {
  font-size: 14px;
  font-weight: 500;
  color: #4a5568;
}

body.dark-mode .settings-container .custom-site-name {
  color: #e2e8f0;
}

.settings-container .custom-site-url {
  font-size: 12px;
  color: #718096;
}

body.dark-mode .settings-container .custom-site-url {
  color: #a0aec0;
}

.settings-container .custom-site-delete {
  padding: 6px 12px;
  background: #e53e3e;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.settings-container .custom-site-delete:hover {
  background: #c53030;
}

.settings-container .custom-site-move {
  padding: 4px 8px;
  background: #e2e8f0;
  color: #4a5568;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.settings-container .custom-site-move:hover {
  background: #cbd5e0;
}

body.dark-mode .settings-container .custom-site-move {
  background: #4a5568;
  color: #e2e8f0;
}

body.dark-mode .settings-container .custom-site-move:hover {
  background: #5a667a;
}    /* ===== 简洁模式样式 ===== */
    .simple-mode .header {
      display: none;
    }

    .simple-mode .main-content {
      display: none;
    }

    /* 简洁模式布局 */
    .simple-search-wrapper {
      padding-top: 80px;
      padding-bottom: 40px;
      display: none;
      justify-content: center;
    }

    .simple-mode .simple-search-wrapper {
      display: flex;
    }

    .simple-mode .search-wrapper-hidden {
      display: flex !important;
    }

    .search-container {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 20px;
    }

    .simple-content-row {
      display: flex;
      gap: 15px;
      align-items: center;
      justify-content: center;
      width: 900px;
    }

    .simple-time-date {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 30px;
      width: 560px;
    }

    .simple-time {
      font-size: 25px;
      color: #4a5568;
      font-weight: 600;
    }

    .simple-date {
      font-size: 25px;
      color: #4a5568;
      font-weight: 600;
    }

    .simple-search-wrapper .search-box {
      width: 630px;
      height: 40px;
      min-height: 40px;
      max-height: 40px;
      background: #4a5568;
      border: 1px solid #e2e8f0;
      border-radius: 8px;
      position: relative;
      z-index: 100;
      display: flex;
      align-items: center;
      padding: 0 4px;
      box-shadow: 0 1px 8px rgba(0,0,0,0.1);
      transition: box-shadow 0.3s ease, border-color 0.3s ease;
    }
    
    .simple-search-wrapper .search-box:hover {
      box-shadow: 0 4px 20px rgba(124, 108, 240, 0.25);
      border-color: rgba(124, 108, 240, 0.3);
    }
    
    .simple-search-wrapper .search-box #simpleSearchInput {
      flex: 1;
      border: none;
      outline: none;
      font-size: 0.9rem;
      padding: 0 12px;
      background: transparent;
      color: #e2e8f0;
      height: 100%;
      line-height: 38px;
      min-height: 38px;
    }
    
    .simple-search-wrapper .search-box #simpleSearchInput::placeholder {
      color: rgba(226, 232, 240, 0.7);
    }

    .simple-search-wrapper .search-box .search-icon-btn {
      border: none;
      background: none;
      padding: 0 10px;
      cursor: pointer;
      height: 100%;
      min-height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .simple-content-wrapper {
      max-width: 980px;
      margin: 0 auto;
      padding: 0 20px 60px;
    }

    .search-result-count {
      text-align: center;
      font-size: 14px;
      color: #a0aec0;
      margin-bottom: 20px;
    }

    .simple-mode .search-result-count {
      display: block;
    }

    /* 简洁模式站内搜索结果容器 */
    .simple-search-results {
      width: 900px;
      margin-top: 10px;
      padding: 15px 20px 20px;
      border-radius: 12px;
      background-color: rgba(255, 255, 255, 0.7);
      backdrop-filter: blur(10px);
      display: none;
      box-sizing: border-box;
    }

    .simple-search-results.active {
      display: block;
    }

    .simple-search-results-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 14px;
    }

    .simple-search-results-count {
      font-size: 14px;
      color: #4a5568;
      font-weight: 500;
    }

    .simple-search-results-close {
      background: none;
      border: none;
      font-size: 22px;
      line-height: 1;
      color: #4a5568;
      cursor: pointer;
      padding: 2px 8px;
      border-radius: 6px;
      transition: background 0.2s ease;
    }

    .simple-search-results-close:hover {
      background: rgba(0, 0, 0, 0.08);
    }

    /* 复用 .websites / .website-card 网格，但在简洁结果容器内自适应宽度 */
    .simple-search-results .websites {
      grid-template-columns: repeat(4, 1fr);
      gap: 10px;
    }

    .simple-search-results .website-card {
      width: auto;
    }

    body.dark-mode .simple-search-results {
      background-color: rgba(30, 30, 30, 0.7);
    }

    body.dark-mode .simple-search-results-count,
    body.dark-mode .simple-search-results-close {
      color: #e2e8f0;
    }

    body.dark-mode .simple-search-results-close:hover {
      background: rgba(255, 255, 255, 0.1);
    }

    /* 番茄时钟样式 */
    .pomodoro-container {
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 20px;
      border-radius: 12px;
      background-color: rgba(255, 255, 255, 0.7);
      backdrop-filter: blur(10px);
      width: 200px;
      height: 240px;
      transition: box-shadow 0.3s ease;
      border: 1px solid #e2e8f0;
    }

    .pomodoro-container:hover {
      box-shadow: 0 2px 12px rgba(124, 108, 240, 0.12);
    }

    .pomodoro-circle-wrapper {
      position: relative;
      width: 150px;
      height: 150px;
    }

    .pomodoro-circle {
      width: 100%;
      height: 100%;
      transform: rotate(-90deg);
    }

    .pomodoro-circle-bg {
      fill: none;
      stroke: #CCCCCC;
      stroke-width: 6;
    }

    .pomodoro-circle-progress {
      fill: none;
      stroke: #CCCCCC;
      stroke-width: 6;
      stroke-linecap: round;
      stroke-dasharray: 283;
      stroke-dashoffset: 0;
      transition: stroke-dashoffset 1s linear, stroke 0.3s ease;
    }

    .pomodoro-time-container {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .pomodoro-time {
      font-size: 40px;
      font-weight: 600;
      color: #4a5568;
    }

    .pomodoro-time-seconds {
      font-size: 16px;
      font-weight: 400;
      color: #9CA3AF;
      margin-top: 4px;
    }

    .pomodoro-buttons {
      display: flex;
      gap: 30px;
      margin-top: 20px;
    }

    .pomodoro-btn {
      width: 24px;
      height: 24px;
      border: none;
      background: transparent;
      cursor: pointer;
      padding: 0;
      transition: transform 0.2s ease;
    }

    .pomodoro-btn:hover {
      transform: scale(1.2);
    }

    .pomodoro-btn img {
      width: 100%;
      height: 100%;
      object-fit: contain;
    }

    /* 深色模式番茄时钟 */
    body.dark-mode .pomodoro-circle-bg {
      stroke: #808080;
    }

    body.dark-mode .pomodoro-time {
      color: #e2e8f0;
    }

    body.dark-mode .pomodoro-time-seconds {
      color: #9CA3AF;
    }

    body.dark-mode .pomodoro-container {
      background-color: rgba(45, 55, 72, 0.7);
      backdrop-filter: blur(10px);
      border-color: #808080;
    }

    .todo-container {
      width: 200px;
      height: 240px;
      padding: 15px;
      border-radius: 12px;
      background-color: rgba(255, 255, 255, 0.7);
      backdrop-filter: blur(10px);
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      transition: box-shadow 0.3s ease;
      border: 1px solid #e2e8f0;
    }

    .todo-container:hover {
      box-shadow: 0 2px 12px rgba(124, 108, 240, 0.12);
    }

    .todo-title {
      font-size: 16px;
      font-weight: 600;
      color: #4a5568;
      text-align: left;
      margin-bottom: 10px;
    }

    .todo-divider {
      border: none;
      border-top: 1px solid #CCCCCC;
      margin: 0 0 10px 0;
    }

    .todo-list {
      flex: 1;
      overflow-y: auto;
      padding: 0;
      margin: 0;
      list-style: none;
    }

    .todo-item {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 5px 0;
      font-size: 13px;
      color: #4a5568;
    }

    .todo-checkbox {
      width: 16px;
      height: 16px;
      cursor: pointer;
      accent-color: #00cc99;
    }

    .todo-text {
      flex: 1;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .todo-text.completed {
      color: #9CA3AF;
      text-decoration: line-through;
    }

    .todo-delete-btn {
      background: none;
      border: none;
      cursor: pointer;
      font-size: 14px;
      color: #9CA3AF;
      padding: 0;
      width: 20px;
      height: 20px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .todo-delete-btn:hover {
      color: #e53e3e;
    }

    .todo-input {
      width: 100%;
      padding: 6px 10px;
      border: 1px solid #CCCCCC;
      border-radius: 6px;
      font-size: 13px;
      box-sizing: border-box;
      background-color: rgba(255, 255, 255, 0.8);
      color: #4a5568;
      margin-top: auto;
    }

    .todo-input:focus {
      outline: none;
      border-color: #00cc99;
    }

    body.dark-mode .todo-container {
      background-color: rgba(45, 55, 72, 0.7);
      backdrop-filter: blur(10px);
      border-color: #808080;
    }

    body.dark-mode .todo-container:hover {
      box-shadow: 0 2px 12px rgba(124, 108, 240, 0.2);
    }

    body.dark-mode .todo-title {
      color: #e2e8f0;
    }

    body.dark-mode .todo-divider {
      border-top-color: #808080;
    }

    body.dark-mode .todo-item {
      color: #e2e8f0;
    }

    body.dark-mode .todo-text.completed {
      color: #6b7280;
    }

    body.dark-mode .todo-input {
      background-color: rgba(50, 50, 50, 0.8);
      color: #e2e8f0;
      border-color: #808080;
    }

    body.dark-mode .todo-input:focus {
      border-color: #00cc99;
    }

    body.dark-mode .todo-delete-btn:hover {
      color: #f87171;
    }

    .custom-sites-container {
      width: 900px;
      padding: 15px;
      border-radius: 12px;
      background-color: transparent;
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
    }

    .custom-site-item {
      width: calc((100% - 40px) / 5);
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 6px 8px;
      background: none;
      border-radius: 6px;
      cursor: pointer;
      transition: all 0.2s ease;
      box-sizing: border-box;
    }

    .custom-site-item:hover {
      transform: translateY(-2px);
    }

    .custom-site-icon {
      width: 26px;
      height: 26px;
      background-color: #CCCCCC;
      border-radius: 4px;
      object-fit: cover;
      transition: transform 0.2s ease;
    }

    .custom-site-item:hover .custom-site-icon {
      transform: scale(1.2);
    }

    .custom-site-name {
      font-size: 13px;
      color: #4a5568;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    body.dark-mode .custom-sites-container {
      background-color: transparent;
    }

    body.dark-mode .custom-site-item {
      background: none;
    }

    body.dark-mode .custom-site-item:hover {
      background: none;
    }

    body.dark-mode .custom-site-name {
      color: #e2e8f0;
    }

    .sticky-container {
      width: 200px;
      height: 240px;
      padding: 15px;
      border-radius: 12px;
      background-color: rgba(255, 255, 255, 0.7);
      backdrop-filter: blur(10px);
      display: flex;
      flex-direction: column;
      transition: box-shadow 0.3s ease;
      border: 1px solid #e2e8f0;
    }

    .sticky-container:hover {
      box-shadow: 0 2px 12px rgba(124, 108, 240, 0.12);
    }

    .sticky-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 10px;
    }

    .sticky-title {
      font-size: 16px;
      font-weight: 600;
      color: #4a5568;
    }

    .sticky-input {
      width: 100%;
      padding: 6px 8px;
      border: 1px solid #CCCCCC;
      border-radius: 4px;
      font-size: 12px;
      box-sizing: border-box;
      margin-top: auto;
      background: rgba(255, 255, 255, 0.8);
    }

    .sticky-input:focus {
      outline: none;
      border-color: #00cc99;
    }

    .sticky-divider {
      border: none;
      border-top: 1px solid #CCCCCC;
      margin: 0 0 10px 0;
    }

    .sticky-list {
      flex: 1;
      overflow-y: auto;
      padding: 0;
      margin: 0;
      list-style: none;
    }

    .sticky-item {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 5px 0;
      font-size: 13px;
      color: #4a5568;
      cursor: pointer;
      border-radius: 4px;
      transition: background 0.2s ease;
    }

    .sticky-item:hover {
      background: rgba(0, 204, 153, 0.1);
    }

    .sticky-number {
      width: 20px;
      height: 20px;
      background: #CCCCCC;
      color: #4a5568;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 11px;
      font-weight: 600;
    }

    .sticky-text {
      flex: 1;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .sticky-delete-btn {
      background: none;
      border: none;
      cursor: pointer;
      font-size: 14px;
      color: #9CA3AF;
      padding: 0;
      width: 20px;
      height: 20px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .sticky-delete-btn:hover {
      color: #e53e3e;
    }

    body.dark-mode .sticky-container {
      background-color: rgba(45, 55, 72, 0.7);
      backdrop-filter: blur(10px);
      border-color: #808080;
    }

    body.dark-mode .sticky-container:hover {
      box-shadow: 0 2px 12px rgba(124, 108, 240, 0.2);
    }

    body.dark-mode .sticky-title {
      color: #e2e8f0;
    }

    body.dark-mode .sticky-divider {
      border-top-color: #808080;
    }

    body.dark-mode .sticky-input {
      background: rgba(50, 50, 50, 0.8);
      border-color: #808080;
      color: #e2e8f0;
    }

    body.dark-mode .sticky-input:focus {
      border-color: #00cc99;
    }

    body.dark-mode .sticky-item {
      color: #e2e8f0;
    }

    body.dark-mode .sticky-item:hover {
      background: rgba(0, 204, 153, 0.15);
    }

    body.dark-mode .sticky-number {
      background: #4a5568;
      color: #e2e8f0;
    }

    body.dark-mode .sticky-delete-btn:hover {
      color: #f87171;
    }

    .sticky-modal-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.5);
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 1000;
    }

    .sticky-modal {
      background: #fff;
      border-radius: 12px;
      padding: 24px;
      width: 320px;
      box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    }

    .sticky-modal-title {
      font-size: 18px;
      font-weight: 600;
      color: #333;
      margin-bottom: 16px;
    }

    .sticky-modal-content {
      font-size: 14px;
      color: #4a5568;
      line-height: 1.6;
      margin-bottom: 20px;
      padding: 12px;
      background: #f7fafc;
      border-radius: 8px;
      min-height: 60px;
      white-space: pre-wrap;
      word-break: break-word;
    }

    .sticky-modal-buttons {
      display: flex;
      gap: 12px;
      justify-content: flex-end;
    }

    .sticky-modal-btn {
      padding: 8px 20px;
      border: none;
      border-radius: 8px;
      font-size: 14px;
      cursor: pointer;
      transition: all 0.2s ease;
    }

    .sticky-modal-btn.cancel {
      background: #e2e8f0;
      color: #4a5568;
    }

    .sticky-modal-btn.cancel:hover {
      background: #cbd5e0;
    }

    .sticky-modal-btn.confirm {
      background: #00cc99;
      color: #fff;
    }

    .sticky-modal-btn.confirm:hover {
      background: #00b386;
    }

    body.dark-mode .sticky-modal {
      background: #2d3748;
    }

    body.dark-mode .sticky-modal-title {
      color: #e2e8f0;
    }

    body.dark-mode .sticky-modal-content {
      color: #e2e8f0;
      background: #1a202c;
    }

    body.dark-mode .sticky-modal-btn.cancel {
      background: #4a5568;
      color: #e2e8f0;
    }

    body.dark-mode .sticky-modal-btn.cancel:hover {
      background: #5a6678;
    }

    /* 模式切换按钮 */
    .mode-switch {
      color: #5A6070;
      font-size: 14px;
      text-decoration: none;
      padding: 6px 12px;
      border-radius: 6px;
      background: transparent;
      border: none;
      transition: all 0.3s ease;
      white-space: nowrap;
    }

    .mode-switch:hover {
      background: rgba(50, 50, 50, 0.8);
      color: #fff;
      border-color: rgba(50, 50, 50, 0.8);
    }

    .mode-switch-simple {
      color: #5A6070;
      font-size: 14px;
      text-decoration: none;
      padding: 6px 12px;
      border-radius: 6px;
      background: transparent;
      border: none;
      transition: all 0.3s ease;
      white-space: nowrap;
    }

    .mode-switch-simple:hover {
      background: rgba(50, 50, 50, 0.8);
      color: #fff;
      border-color: rgba(50, 50, 50, 0.8);
    }

    /* 深色模式 */
    body.dark-mode {
      background-color: #1a202c;
      color: #e2e8f0;
    }

    body.dark-mode .simple-search-wrapper .search-box {
      background: #e2e8f0;
      border-color: #4a5568;
    }

    body.dark-mode .simple-search-wrapper #simpleSearchInput {
      color: #4a5568;
      background: transparent;
    }

    body.dark-mode .simple-search-wrapper #simpleSearchInput::placeholder {
      color: rgba(74, 85, 104, 0.7);
    }

    body.dark-mode .simple-time,
    body.dark-mode .simple-date {
      color: #e2e8f0;
    }

    body.dark-mode .search-result-count {
      color: #718096;
    }

    body.dark-mode .mode-switch-simple {
      background: transparent;
      border: none;
      color: #e2e8f0;
    }

    body.dark-mode .mode-switch-simple:hover {
      background: rgba(200, 200, 200, 0.8);
      color: #333;
      border: none;
    }

    @media (max-width: 768px) {
      .simple-search-wrapper .search-box {
        width: 90%;
        max-width: 480px;
      }

      .custom-sites-container {
        width: 90%;
        max-width: 480px;
      }

      .simple-search-results {
        width: 90%;
        max-width: 480px;
      }

      .simple-search-results .websites {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    /* 设置模态框样式 */
    .settings-modal-overlay {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.6);
      backdrop-filter: blur(4px);
      z-index: 2000;
      justify-content: center;
      align-items: flex-start;
      padding-top: 40px;
      padding-bottom: 40px;
      overflow-y: auto;
    }

    .settings-modal {
      background: #F8F9FC;
      border-radius: 16px;
      max-width: 800px;
      width: 90%;
      overflow-y: visible;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
      padding: 30px;
      position: relative;
      margin: auto;
    }

    body.dark-mode .settings-modal {
      background: #1a202c;
    }

    .settings-close-btn {
      position: absolute;
      top: 16px;
      right: 16px;
      width: 36px;
      height: 36px;
      background: transparent;
      border: none;
      font-size: 24px;
      color: #718096;
      cursor: pointer;
      border-radius: 8px;
      transition: all 0.2s ease;
    }

    .settings-close-btn:hover {
      background: rgba(0, 0, 0, 0.1);
      color: #4a5568;
    }

    body.dark-mode .settings-close-btn {
      color: #a0aec0;
    }

    body.dark-mode .settings-close-btn:hover {
      background: rgba(255, 255, 255, 0.1);
      color: #e2e8f0;
    }

    .settings-container {
      max-width: 100%;
      margin: 0;
      padding: 0;
    }

    .settings-header {
      display: flex;
      align-items: center;
      gap: 16px;
      margin-bottom: 30px;
    }

    .settings-title {
      font-size: 28px;
      font-weight: 600;
      color: #222638;
    }

    body.dark-mode .settings-title {
      color: #e2e8f0;
    }

    .settings-hint {
      font-size: 14px;
      color: #a0aec0;
    }

    body.dark-mode .settings-hint {
      color: #718096;
    }

    .settings-section {
      background: rgba(255, 255, 255, 0.85);
      border-radius: 12px;
      padding: 24px;
      margin-bottom: 20px;
      box-shadow: 0 4px 20px rgba(124, 108, 240, 0.1);
    }

    body.dark-mode .settings-section {
      background: rgba(45, 55, 72, 0.85);
    }

    .section-title {
      font-size: 18px;
      font-weight: 600;
      color: #222638;
      margin-bottom: 20px;
      padding-bottom: 12px;
      border-bottom: 1px solid #E5E7F0;
    }

    body.dark-mode .section-title {
      color: #e2e8f0;
      border-bottom-color: rgba(74, 85, 104, 0.5);
    }

    .theme-options {
      display: flex;
      gap: 16px;
    }

    .theme-option {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 20px;
      border: 2px solid #E5E7F0;
      border-radius: 12px;
      cursor: pointer;
      transition: all 0.3s ease;
      background: #fff;
    }

    body.dark-mode .theme-option {
      background: #2d3748;
      border-color: #4a5568;
    }

    .theme-option:hover {
      border-color: #00cc99;
    }

    .theme-option.selected {
      border-color: #00cc99;
      background: rgba(0, 204, 153, 0.1);
    }

    body.dark-mode .theme-option.selected {
      background: rgba(0, 204, 153, 0.15);
    }

    .theme-preview {
      width: 60px;
      height: 60px;
      border-radius: 8px;
      margin-bottom: 12px;
    }

    .theme-preview.light {
      background: linear-gradient(135deg, #F8F9FC, #fff);
      border: 1px solid #E5E7F0;
    }

    .theme-preview.dark {
      background: linear-gradient(135deg, #1a202c, #2d3748);
      border: 1px solid #4a5568;
    }

    .theme-name {
      font-size: 14px;
      font-weight: 500;
      color: #4a5568;
    }

    body.dark-mode .theme-name {
      color: #e2e8f0;
    }

    .wallpaper-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
      gap: 16px;
    }

    .wallpaper-item {
      position: relative;
      aspect-ratio: 16/9;
      border-radius: 8px;
      overflow: hidden;
      cursor: pointer;
      border: 2px solid transparent;
      transition: all 0.3s ease;
    }

    .wallpaper-item:hover {
      border-color: #00cc99;
      transform: translateY(-2px);
    }

    .wallpaper-item.selected {
      border-color: #00cc99;
    }

    .wallpaper-item.selected::after {
      content: '✓';
      position: absolute;
      top: 8px;
      right: 8px;
      width: 24px;
      height: 24px;
      background: #00cc99;
      color: #fff;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
    }

    .wallpaper-img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .wallpaper-none {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      background: #f7fafc;
      color: #718096;
    }

    .wallpaper-none.dark {
      background: #2d3748;
      color: #a0aec0;
    }

    .wallpaper-none-icon {
      font-size: 32px;
      margin-bottom: 8px;
    }

    .wallpaper-none-text {
      font-size: 12px;
    }

    /* 容器显示开关样式 */
    .display-toggle-section {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .display-toggle-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 12px;
      background: #f7fafc;
      border-radius: 8px;
    }

    body.dark-mode .display-toggle-item {
      background: #2d3748;
    }

    .display-toggle-label {
      font-size: 14px;
      font-weight: 500;
      color: #4a5568;
    }

    body.dark-mode .display-toggle-label {
      color: #e2e8f0;
    }

    .display-toggle-switch {
      width: 44px;
      height: 24px;
      background: #cbd5e0;
      border-radius: 12px;
      position: relative;
      cursor: pointer;
      transition: background 0.3s ease;
    }

    .display-toggle-switch.active {
      background: #00cc99;
    }

    .display-toggle-switch::after {
      content: '';
      position: absolute;
      top: 2px;
      left: 2px;
      width: 20px;
      height: 20px;
      background: #fff;
      border-radius: 50%;
      transition: left 0.3s ease;
    }

    .display-toggle-switch.active::after {
      left: 22px;
    }

    /* 自定义网址样式 */
    .search-row {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 16px;
    }

    .settings-section .search-box {
      flex: 1;
      display: flex;
      align-items: center;
      gap: 8px;
      width: 100%;
      box-sizing: border-box;
      background: transparent;
      padding: 0;
      height: auto;
      box-shadow: none;
      border: none;
      position: static;
      transition: none;
    }

    .settings-section .search-buttons {
      display: flex;
      gap: 8px;
    }

    .settings-section .search-input {
      flex: 1;
      padding: 0 16px;
      border: 1px solid #E5E7F0;
      border-radius: 8px;
      font-size: 14px;
      background: #fff;
      color: #4a5568;
      min-width: 0;
      height: 38px;
      line-height: 38px;
    }

    body.dark-mode .settings-section .search-input {
      background: #2d3748;
      color: #e2e8f0;
      border-color: #4a5568;
    }

    body.dark-mode .settings-section .search-btn {
      background: #2d3748;
      color: #00cc99;
      border-color: #00cc99;
    }

    body.dark-mode .settings-section .search-btn:hover {
      background: #00cc99;
      color: #fff;
    }

    .settings-section .search-input:focus,
    .form-input:focus {
      outline: none;
      border-color: #00cc99;
    }

    .settings-section .search-btn {
      padding: 0 24px;
      background: #fff;
      color: #00cc99;
      border: 1px solid #00cc99;
      border-radius: 8px;
      font-size: 14px;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.3s ease;
      height: 38px;
      line-height: 38px;
    }

    .settings-section .search-btn:hover {
      background: #00cc99;
      color: #fff;
    }

    .website-list {
      max-height: 300px;
      overflow-y: auto;
      margin-bottom: 20px;
    }

    .website-item {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 12px;
      border-bottom: 1px solid #E5E7F0;
      transition: background 0.2s ease;
    }

    body.dark-mode .website-item {
      border-bottom-color: rgba(74, 85, 104, 0.5);
    }

    .website-item:last-child {
      border-bottom: none;
    }

    .website-item:hover {
      background: rgba(0, 204, 153, 0.05);
    }

    body.dark-mode .website-item:hover {
      background: rgba(0, 204, 153, 0.1);
    }

    .website-checkbox {
      width: 18px;
      height: 18px;
      cursor: pointer;
    }

    .website-icon {
      width: 32px;
      height: 32px;
      background: #CCCCCC;
      border-radius: 6px;
      object-fit: cover;
    }

    .website-info {
      flex: 1;
    }

    .website-name {
      font-size: 14px;
      font-weight: 500;
      color: #4a5568;
    }

    body.dark-mode .website-name {
      color: #e2e8f0;
    }

    .website-url {
      font-size: 12px;
      color: #718096;
    }

    body.dark-mode .website-url {
      color: #a0aec0;
    }

    .add-website-form {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .form-row {
      display: flex;
      gap: 12px;
    }

    .form-group {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .form-group-btn {
      flex: 0 0 auto;
      justify-content: flex-end;
    }

    .form-group label {
      font-size: 13px;
      font-weight: 500;
      color: #4a5568;
    }

    body.dark-mode .form-group label {
      color: #e2e8f0;
    }

    .form-input {
      padding: 10px 12px;
      border: 1px solid #E5E7F0;
      border-radius: 8px;
      font-size: 14px;
      background: #fff;
      color: #4a5568;
    }

    body.dark-mode .form-input {
      background: #2d3748;
      color: #e2e8f0;
      border-color: #4a5568;
    }

    .add-btn {
      padding: 10px 20px;
      background: #00cc99;
      color: #fff;
      border: none;
      border-radius: 8px;
      font-size: 14px;
      cursor: pointer;
      transition: all 0.3s ease;
    }

    .add-btn:hover {
      background: #00b386;
    }

    .save-btn {
      width: 100%;
      padding: 14px;
      background: #00cc99;
      color: #fff;
      border: none;
      border-radius: 12px;
      font-size: 16px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
      margin-top: 30px;
    }

    .save-btn:hover {
      background: #00b386;
    }
    body {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
      background: #F8F9FC;
      min-height: 100vh;
      padding: 0;
      margin: 0;
    }

    .settings-container {
      max-width: 800px;
      margin: 60px auto;
      padding: 0 20px;
    }

    .settings-header {
      display: flex;
      align-items: center;
      gap: 16px;
      margin-bottom: 30px;
    }

    .back-btn {
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 8px 16px;
      background: transparent;
      border: none;
      color: #5A6070;
      font-size: 14px;
      cursor: pointer;
      border-radius: 8px;
      transition: all 0.3s ease;
    }

    .back-btn:hover {
      background: rgba(50, 50, 50, 0.8);
      color: #fff;
    }

    .settings-title {
      font-size: 28px;
      font-weight: 600;
      color: #222638;
    }

    .settings-section {
      background: rgba(255, 255, 255, 0.85);
      border-radius: 12px;
      padding: 24px;
      margin-bottom: 20px;
      box-shadow: 0 4px 20px rgba(124, 108, 240, 0.1);
    }

    .section-title {
      font-size: 18px;
      font-weight: 600;
      color: #222638;
      margin-bottom: 20px;
      padding-bottom: 12px;
      border-bottom: 1px solid #E5E7F0;
    }

    .theme-options {
      display: flex;
      gap: 16px;
    }

    .theme-option {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 20px;
      border: 2px solid #E5E7F0;
      border-radius: 12px;
      cursor: pointer;
      transition: all 0.3s ease;
      background: #fff;
    }

    .theme-option:hover {
      border-color: #00cc99;
    }

    .theme-option.selected {
      border-color: #00cc99;
      background: rgba(0, 204, 153, 0.1);
    }

    .theme-preview {
      width: 60px;
      height: 60px;
      border-radius: 8px;
      margin-bottom: 12px;
    }

    .theme-preview.light {
      background: linear-gradient(135deg, #F8F9FC, #fff);
      border: 1px solid #E5E7F0;
    }

    .theme-preview.dark {
      background: linear-gradient(135deg, #1a202c, #2d3748);
      border: 1px solid #4a5568;
    }

    .theme-name {
      font-size: 14px;
      font-weight: 500;
      color: #4a5568;
    }

    .wallpaper-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
      gap: 16px;
    }

    .wallpaper-item {
      position: relative;
      aspect-ratio: 16/9;
      border-radius: 8px;
      overflow: hidden;
      cursor: pointer;
      border: 2px solid transparent;
      transition: all 0.3s ease;
    }

    .wallpaper-item:hover {
      border-color: #00cc99;
      transform: translateY(-2px);
    }

    .wallpaper-item.selected {
      border-color: #00cc99;
    }

    .wallpaper-item.selected::after {
      content: '✓';
      position: absolute;
      top: 8px;
      right: 8px;
      width: 24px;
      height: 24px;
      background: #00cc99;
      color: #fff;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
    }

    .wallpaper-img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .wallpaper-none {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      background: #f7fafc;
      color: #718096;
    }

    .wallpaper-none-icon {
      font-size: 32px;
      margin-bottom: 8px;
    }

    .wallpaper-none-text {
      font-size: 12px;
    }

    .search-box {
      display: flex;
      gap: 10px;
      margin-bottom: 16px;
    }

    .search-input {
      flex: 1;
      padding: 10px 16px;
      border: 1px solid #E5E7F0;
      border-radius: 8px;
      font-size: 14px;
      background: #fff;
      color: #4a5568;
    }

    .search-input:focus {
      outline: none;
      border-color: #00cc99;
    }

    .search-btn {
      padding: 10px 20px;
      background: #00cc99;
      color: #fff;
      border: none;
      border-radius: 8px;
      font-size: 14px;
      cursor: pointer;
      transition: all 0.3s ease;
    }

    .search-btn:hover {
      background: #00b386;
    }

    .website-list {
      max-height: 300px;
      overflow-y: auto;
      margin-bottom: 20px;
    }

    .website-item {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 12px;
      border-bottom: 1px solid #E5E7F0;
      transition: background 0.2s ease;
    }

    .website-item:last-child {
      border-bottom: none;
    }

    .website-item:hover {
      background: rgba(0, 204, 153, 0.05);
    }

    .website-checkbox {
      width: 18px;
      height: 18px;
      cursor: pointer;
    }

    .website-icon {
      width: 32px;
      height: 32px;
      background: #CCCCCC;
      border-radius: 6px;
      object-fit: cover;
    }

    .website-info {
      flex: 1;
    }

    .website-name {
      font-size: 14px;
      font-weight: 500;
      color: #4a5568;
    }

    .website-url {
      font-size: 12px;
      color: #718096;
    }

    .add-website-form {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .form-row {
      display: flex;
      gap: 12px;
    }

    .form-group {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .form-group label {
      font-size: 13px;
      font-weight: 500;
      color: #4a5568;
    }

    .form-input {
      padding: 10px 12px;
      border: 1px solid #E5E7F0;
      border-radius: 8px;
      font-size: 14px;
      background: #fff;
      color: #4a5568;
    }

    .form-input:focus {
      outline: none;
      border-color: #00cc99;
    }

    .add-btn {
      padding: 10px 20px;
      background: #00cc99;
      color: #fff;
      border: none;
      border-radius: 8px;
      font-size: 14px;
      cursor: pointer;
      transition: all 0.3s ease;
      align-self: flex-start;
    }

    .add-btn:hover {
      background: #00b386;
    }

    .custom-sites-list {
      margin-top: 20px;
    }

    .custom-site-item {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 12px;
      background: #f7fafc;
      border-radius: 8px;
      margin-bottom: 8px;
    }

    .custom-site-icon {
      width: 28px;
      height: 28px;
      background: #CCCCCC;
      border-radius: 6px;
      object-fit: cover;
    }

    .custom-site-info {
      flex: 1;
    }

    .custom-site-name {
      font-size: 14px;
      font-weight: 500;
      color: #4a5568;
    }

    .custom-site-url {
      font-size: 12px;
      color: #718096;
    }

    .custom-site-delete {
      padding: 6px 12px;
      background: #e53e3e;
      color: #fff;
      border: none;
      border-radius: 6px;
      font-size: 12px;
      cursor: pointer;
      transition: all 0.3s ease;
    }

    .custom-site-delete:hover {
      background: #c53030;
    }

    .save-btn {
      width: 100%;
      padding: 14px;
      background: #00cc99;
      color: #fff;
      border: none;
      border-radius: 12px;
      font-size: 16px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
      margin-top: 30px;
    }

    .save-btn:hover {
      background: #00b386;
    }

    body.dark-mode {
      background-color: #1a202c;
    }

    body.dark-mode .settings-title {
      color: #e2e8f0;
    }

    body.dark-mode .settings-section {
      background: rgba(45, 55, 72, 0.85);
    }

    body.dark-mode .section-title {
      color: #e2e8f0;
      border-bottom-color: rgba(74, 85, 104, 0.5);
    }

    body.dark-mode .theme-option {
      background: #2d3748;
      border-color: #4a5568;
    }

    body.dark-mode .theme-option:hover {
      border-color: #00cc99;
    }

    body.dark-mode .theme-option.selected {
      border-color: #00cc99;
      background: rgba(0, 204, 153, 0.15);
    }

    body.dark-mode .theme-name {
      color: #e2e8f0;
    }

    body.dark-mode .search-input,
    body.dark-mode .form-input {
      background: #2d3748;
      color: #e2e8f0;
      border-color: #4a5568;
    }

    body.dark-mode .search-input:focus,
    body.dark-mode .form-input:focus {
      border-color: #00cc99;
    }

    body.dark-mode .website-item {
      border-bottom-color: rgba(74, 85, 104, 0.5);
    }

    body.dark-mode .website-item:hover {
      background: rgba(0, 204, 153, 0.1);
    }

    body.dark-mode .website-name {
      color: #e2e8f0;
    }

    body.dark-mode .website-url {
      color: #a0aec0;
    }

    body.dark-mode .form-group label {
      color: #e2e8f0;
    }

    body.dark-mode .custom-site-item {
      background: #2d3748;
    }

    body.dark-mode .custom-site-name {
      color: #e2e8f0;
    }

    body.dark-mode .custom-site-url {
      color: #a0aec0;
    }

    body.dark-mode .back-btn {
      color: #e2e8f0;
    }

    body.dark-mode .back-btn:hover {
      background: rgba(200, 200, 200, 0.8);
      color: #333;
    }

    .wallpaper-none.dark {
      background: #2d3748;
      color: #a0aec0;
    }
