:root {
  --primary: #2563eb;
  --primary-600: #1d4ed8;
  --primary-50: #eff6ff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-900: #0f172a;
  --radius: 8px;
}

html {
  height: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f5f7fa;
  color: var(--gray-900);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Header */
header {
  width: 100%;
  height: 36px;
  background: rebeccapurple;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  font-family: Segoe UI, Helvetica Neue, Microsoft YaHei, sans-serif
}

.ab {
  height: 100%;
  width: 0px;
  display: flex;
  align-items: center
}

#products {
  display: flex;
  white-space: nowrap;
  align-items: center;
}
#products a {
  color: #fff;
  letter-spacing: 1px;
  padding: 4px;
  border-radius: 4px;
  font-size: small;
  text-decoration: none
}

#products a.cur {
  padding: 4px 8px;
  font-weight: bold
}

#products a.cur,
#products a:hover {
  color: rebeccapurple !important;
  background-color: #fff
}

#products>span {
  display: inline-block;
  width: 12px;
  text-align: center;
  color: #9370db
}

/* Search Hero Banner */
.search-hero {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-hero-content {
  background: linear-gradient(135deg, #e0f2fe 0%, #f0e6ff 100%);
  border-radius: 0px 0px 16px 16px;
  padding: 12px 6px 12px 6px;
  text-align: center;
  width: 100%;
  max-width: 1080px;
  margin-bottom: 6px;
}

.search-hero h1 {
  margin: 0 0 6px;
  font-size: x-large;
  font-weight: bold;
  color: var(--gray-900);
  letter-spacing: 2px;
}

.search-hero p {
  color: var(--gray-600);
  font-size: medium;
  margin: 0 auto 6px auto;
  letter-spacing: 0.5px;
}

.search-hero p a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.search-box {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.search-box input {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 18px 9px 36px;
  border: 1px solid var(--gray-300);
  border-radius: 999px;
  font-size: small;
  outline: none;
  background: var(--gray-50);
  transition: all 0.2s;
  letter-spacing: 1px;
}

.search-box input:focus {
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--gray-400);
}

/* Category tabs */
.category-bar {
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  padding: 12px 16px;
  position: sticky;
  top: 56px;
  z-index: 90;
}

.category-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-inner::-webkit-scrollbar {
  display: none;
}

.category-tab {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--gray-600);
  background: var(--gray-50);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.category-tab:hover {
  background: var(--gray-100);
  color: var(--gray-900);
}

.category-tab.active {
  background: var(--primary-50);
  color: var(--primary);
  border-color: rgba(37, 99, 235, 0.15);
  font-weight: 600;
}

/* Main */
.container {
  margin: 0 auto;
  width: 100%;
  max-width: 1080px;
  padding: 0px 12px;
  box-sizing: border-box;
  flex: 1;
}

.tool-section {
  margin-bottom: 24px;
}

.section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title::before {
  content: '';
  width: 3px;
  height: 16px;
  background: var(--primary);
  border-radius: 2px;
}

.tool-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(162px, 1fr));
  gap: 6px;
}


.tool-item {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  transition: all 0.15s;
  cursor: pointer;
}

.tool-item:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

.tool-icon {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--primary-50);
  color: var(--primary);
}

.tool-icon img {
  width: 60px;
  height: 60px;
  border-radius: 6px;
}

.tool-icon .primary {
  position: absolute;
  top: 0px;
  left: 0px;
}

.tool-info {
  flex: 1;
  min-width: 0;
  letter-spacing: 1px;
}

.tool-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tool-desc {
  font-size: x-small;
  color: var(--gray-500);
  margin: 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tool-tag {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 8px;
  font-size: 11px;
  color: var(--primary);
  background: var(--primary-50);
  border-radius: 999px;
}

/* Quote */
.quote-section {
  margin: 40px 0;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}

.quote-section p {
  margin: 0 0 10px;
  color: var(--gray-500);
  font-size: 14px;
}

.quote-section blockquote {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

/* Bottom CTA */
.bottom-cta {
  text-align: center;
  padding: 32px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-600) 100%);
  border-radius: var(--radius);
  color: #fff;
}

.bottom-cta h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.bottom-cta p {
  margin: 0 0 20px;
  font-size: 14px;
  opacity: 0.9;
}

.bottom-cta .btn {
  display: inline-flex;
  padding: 12px 28px;
  background: #fff;
  color: var(--primary);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
}

.bottom-cta .btn:hover {
  background: var(--gray-50);
  transform: translateY(-1px);
}

/* Footer */
.site-footer {
  font-size: small;
  color: var(--gray-400);
  border-top: 1px solid var(--gray-200);
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

/* Video tutorials */
#videos {
  margin-bottom: 12px;
}

.video-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(162px, 1fr));
  gap: 6px;
}

.video-item,
.article-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px;
  background: #fff;
  letter-spacing: 1px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  color: var(--gray-700);
  font-size: small;
}

.video-item::before {
  content: '▶';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-50);
  color: var(--primary);
  font-size: small;
  flex-shrink: 0;
}

.article-item::before {
  content: '📄';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-50);
  color: var(--primary);
  font-size: 12px;
  flex-shrink: 0;
}

.video-item:hover,
.article-item:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
  color: var(--primary);
}

@media (max-width: 575.98px) {
  .container {
    padding: 0px 6px;
  }

  .search-hero h1 {
    font-size: 24px;
    letter-spacing: 1px;
  }

  .search-hero p {
    font-size: 13px;
  }

  .tool-item {
    gap: 10px;
    padding: 10px;
  }

  .tool-icon {
    width: 48px;
    height: 48px;
  }

  .tool-icon img {
    width: 44px;
    height: 44px;
  }

  .site-footer {
    height: auto;
    padding: 8px 16px;
    text-align: center;
  }

  .site-footer div {
    line-height: 1.8;
  }
}