/* 全站公共样式：顶栏 + Logo + 工具页 SEO 区 */

site-header,
#site-header {
  display: block;
  min-height: 4rem;
}

.site-header {
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid #f3f4f6;
  position: sticky;
  top: 0;
  z-index: 40;
}

.site-header .site-header__nav,
.site-header__nav {
  display: block;
  height: auto;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  gap: 0.75rem;
}

.site-header__toggle {
  display: flex;
  align-items: center;
}

.site-header__menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.5rem;
  border: 0;
  border-radius: 0.375rem;
  background: transparent;
  color: #374151;
  cursor: pointer;
}

.site-header__menu-btn:hover {
  color: #2563eb;
  background: #f3f4f6;
}

.site-header__menu-btn:focus {
  outline: none;
}

.site-header__menu-btn:focus-visible {
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

.site-header__menu-btn svg {
  width: 1.5rem;
  height: 1.5rem;
  display: block;
}

.site-header__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #111827;
  flex-shrink: 0;
}

.site-header__brand img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: block;
}

.site-header__brand-name {
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.site-header__links {
  display: none;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.125rem;
}

.site-header__link {
  color: #374151;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25rem;
  text-decoration: none;
  transition: color 0.15s, background-color 0.15s;
  white-space: nowrap;
}

.site-header__link:hover {
  color: #2563eb;
  background-color: #f3f4f6;
}

.site-header__link.active {
  color: #1d4ed8;
  font-weight: 600;
  background-color: #eff6ff;
}

.site-header__link--hot {
  color: #b45309;
  background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
  font-weight: 700;
  box-shadow: inset 0 0 0 1px #fcd34d;
}

.site-header__link--hot:hover {
  color: #92400e;
  background: linear-gradient(180deg, #fef3c7 0%, #fde68a 100%);
}

.site-header__link--hot.active {
  color: #92400e;
  background: linear-gradient(180deg, #fde68a 0%, #fcd34d 100%);
}

.site-header__link-text {
  display: inline-block;
  vertical-align: middle;
}

.site-header__star {
  display: inline-block;
  width: 0.95rem;
  height: 0.95rem;
  margin-left: 0.2rem;
  vertical-align: -0.12em;
  fill: #f59e0b;
  flex-shrink: 0;
}

.site-header__mobile-hot {
  color: #b45309 !important;
  font-weight: 700;
  background: #fffbeb;
}

.site-header__mobile-hot .site-header__star {
  margin-left: 0.35rem;
}

.site-header__spacer {
  width: 2.5rem;
  flex-shrink: 0;
}

.site-header__mobile {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border-top: 1px solid #f3f4f6;
  z-index: 50;
}

.site-header__mobile.active {
  display: block;
}

.site-header__mobile a {
  display: block;
  padding: 0.75rem 1rem;
  color: #374151;
  text-decoration: none;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.875rem;
  transition: background-color 0.15s, color 0.15s;
}

.site-header__mobile a:hover {
  background-color: #f9fafb;
  color: #2563eb;
}

.site-header__mobile a.active {
  color: #1d4ed8;
  background-color: #eff6ff;
  font-weight: 600;
}

@media (min-width: 640px) {
  .site-header__nav {
    padding: 0 1.5rem;
  }
}

@media (min-width: 768px) {
  .site-header__toggle,
  .site-header__spacer,
  .site-header__mobile,
  .site-header__mobile.active {
    display: none !important;
  }

  .site-header__links {
    display: flex;
  }
}

@media (min-width: 1024px) {
  .site-header__nav {
    padding: 0 2rem;
  }
}

@media print {
  .site-header,
  #site-header {
    display: none !important;
  }
}

/* Logo：圆形，对齐原蓝底圆标 */
img[alt="28工具 Logo"] {
  border-radius: 50%;
}

/* 工具页 SEO 标题区 / 正文区 */

.page-seo-intro {
  max-width: 48rem;
  margin: 0 0 1.5rem;
}

.page-seo-intro h1,
.page-seo-intro .page-seo-title {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 700;
  color: #111827;
}

.page-seo-intro p,
.page-seo-intro .page-seo-desc {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.625;
  color: #4b5563;
}

@media (min-width: 768px) {
  .page-seo-intro h1,
  .page-seo-intro .page-seo-title {
    font-size: 1.875rem;
    line-height: 2.25rem;
  }

  .page-seo-intro p,
  .page-seo-intro .page-seo-desc {
    font-size: 1rem;
    line-height: 1.625;
  }
}

.page-seo-body {
  max-width: 48rem;
  margin: 2.5rem 0 0;
  font-size: 0.875rem;
  line-height: 1.625;
  color: #4b5563;
}

.page-seo-body h2 {
  margin: 1.25rem 0 0.75rem;
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 600;
  color: #111827;
}

.page-seo-body h2:first-child {
  margin-top: 0;
}

.page-seo-body h3 {
  margin: 0.75rem 0 0.25rem;
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 500;
  color: #1f2937;
}

.page-seo-body p {
  margin: 0 0 0.75rem;
}

.page-seo-body ul {
  list-style: disc;
  margin: 0.25rem 0 0;
  padding-left: 1.25rem;
}

.page-seo-body li {
  margin: 0.25rem 0;
}

.page-seo-body a {
  color: #2563eb;
}

.page-seo-body a:hover {
  text-decoration: underline;
}

@media print {
  .page-seo-intro,
  .page-seo-body {
    display: none !important;
  }
}
