
.locale-switch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}
.locale-switch-btn__label {
  line-height: 1;
}
.locale-switch-btn__caret {
  font-size: 0.625rem;
  line-height: 1;
  opacity: 0.8;
}
.locale-switch-btn--icon {
  padding: 0;
}
.locale-switch-btn--icon .locale-switch-btn__icon {
  font-size: 1rem;
  line-height: 1;
}
.no-flex-gap .locale-switch-btn > * + * {
  margin-left: 6px;
}


.top-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.6rem;
  min-height: var(--top-header-height);
  padding: 0 var(--page-gutter);
  border-bottom: 1px solid #e5e7eb;
  background: rgba(247, 249, 252, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(226, 232, 240, 0.9);
}
.top-header-left {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex-shrink: 0;
}
.top-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: #0f172a;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.top-brand img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  flex-shrink: 0;
}
.top-brand span {
  white-space: nowrap;
  font-size: 0.9rem;
}
.left-nav-collapse,
.mobile-nav-toggle {
  width: 32px;
  height: 32px;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  background: #ffffff;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}
.left-nav-collapse:hover,
.mobile-nav-toggle:hover {
  border-color: #bfdbfe;
  color: #2563eb;
  background: #f8fbff;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.08);
}
.top-menu-box {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  flex: 1;
  min-width: 0;
  margin-left: auto;
}
.top-header-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-left: 8px;
}
.top-header-controls .icon-btn,
.top-header-controls .locale-btn {
  width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  border-radius: 8px;
}
.top-header-controls .locale-btn {
  gap: 0;
}
.top-header-controls .locale-btn i {
  margin: 0;
}
.top-header-controls .icon-btn i {
  font-size: 1rem;
  line-height: 1;
}
.menu-item {
  padding: 7px 10px;
  border-radius: 999px;
  color: #475569;
  text-decoration: none;
  font-size: 0.84375rem;
  font-weight: 600;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}
.menu-item:hover {
  color: #2563eb;
  background: #eff6ff;
}
.menu-item.active {
  color: #2563eb;
  background: #eff6ff;
  box-shadow: inset 0 0 0 1px #dbeafe;
}
.mobile-nav-toggle {
  display: none;
}
.no-flex-gap .top-header-left > * + * {
  margin-left: 6px;
}
.no-flex-gap .top-brand > * + * {
  margin-left: 6px;
}
.no-flex-gap .top-menu-box > * + * {
  margin-left: 2px;
}
.no-flex-gap .top-header > .top-menu-box + .top-header-controls {
  margin-left: calc(8px + 0.6rem);
}
.no-flex-gap .top-header-controls > * + * {
  margin-left: 6px;
}
html.dark .top-header,
html[theme-mode="dark"] .top-header {
  border-bottom-color: rgba(17, 24, 39, 0.96);
  background: rgba(17, 24, 39, 0.96);
  box-shadow: 0 1px 0 rgba(17, 24, 39, 0.96);
}
html.dark .top-brand,
html[theme-mode="dark"] .top-brand {
  color: #f8fafc;
}
html.dark .top-brand img,
html[theme-mode="dark"] .top-brand img,
html.dark .left-nav-collapse,
html.dark .mobile-nav-toggle,
html[theme-mode="dark"] .left-nav-collapse,
html[theme-mode="dark"] .mobile-nav-toggle {
  border-color: rgba(71, 85, 105, 0.82);
  background: rgba(31, 43, 61, 0.96);
  color: #cbd5e1;
  box-shadow: 0 8px 18px rgba(2, 6, 23, 0.18);
}
html.dark .left-nav-collapse:hover,
html.dark .mobile-nav-toggle:hover,
html[theme-mode="dark"] .left-nav-collapse:hover,
html[theme-mode="dark"] .mobile-nav-toggle:hover {
  border-color: rgba(96, 165, 250, 0.42);
  background: rgba(45, 60, 84, 0.96);
  color: #eff6ff;
}
html.dark .menu-item,
html[theme-mode="dark"] .menu-item {
  color: #cbd5e1;
}
html.dark .top-header-controls .icon-btn,
html.dark .top-header-controls .locale-btn,
html[theme-mode="dark"] .top-header-controls .icon-btn,
html[theme-mode="dark"] .top-header-controls .locale-btn {
  border-color: rgba(71, 85, 105, 0.82);
  background: rgba(31, 43, 61, 0.96);
  color: #cbd5e1;
  box-shadow: 0 8px 18px rgba(2, 6, 23, 0.18);
}
html.dark .top-header-controls .icon-btn:hover,
html.dark .top-header-controls .locale-btn:hover,
html[theme-mode="dark"] .top-header-controls .icon-btn:hover,
html[theme-mode="dark"] .top-header-controls .locale-btn:hover {
  border-color: rgba(96, 165, 250, 0.42);
  background: rgba(45, 60, 84, 0.96);
  color: #eff6ff;
}
html.dark .menu-item:hover,
html.dark .menu-item.active,
html[theme-mode="dark"] .menu-item:hover,
html[theme-mode="dark"] .menu-item.active {
  color: #93c5fd;
  background: rgba(31, 43, 61, 0.96);
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.18);
}
@media (max-width: 767px) {
.top-header {
    min-height: var(--top-header-height);
    padding: 0 var(--page-gutter);
}
.top-brand span,
  .left-nav-collapse,
  .top-menu-box {
    display: none;
}
.top-header-controls {
    margin-left: auto;
    gap: 4px;
}
.no-flex-gap .top-header > .top-menu-box + .top-header-controls {
    margin-left: auto;
}
.no-flex-gap .top-header-controls > * + * {
    margin-left: 4px;
}
.no-flex-gap .top-header > .top-header-controls + .mobile-nav-toggle,
  .no-flex-gap .top-header > .top-menu-box + .mobile-nav-toggle {
    margin-left: calc(4px + 0.6rem);
}
.mobile-nav-toggle {
    display: inline-flex;
    margin-left: 4px;
}
.top-brand img {
    width: 28px;
    height: 28px;
}
}

.subpage-shell .layout-main {
  display: flex;
  flex-direction: column;
}

.subpage-header {
  position: relative;
  overflow: hidden;
  padding: 0.95rem 1rem 1.2rem;
  border-bottom: 1px solid #e5e7eb;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  margin-bottom: 0;
  box-sizing: border-box;
  width: 100%;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.subpage-header-inner {
  width: 100%;
  max-width: var(--content-container-width);
  margin: 0 auto;
  padding: 0 var(--page-gutter);
  box-sizing: border-box;
  position: relative;
  z-index: 2;
}

.subpage-shell .layout-main.layout-main--collapsed .subpage-header-inner {
  max-width: var(--content-container-width);
}

.subpage-header--recent {
  background: linear-gradient(180deg, #f4fbff 0%, #ffffff 100%);
}

.subpage-header--latest {
  background: linear-gradient(180deg, #fff9ed 0%, #ffffff 100%);
}

.subpage-header--search {
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.subpage-header--favorites {
  background: linear-gradient(180deg, #fff5f8 0%, #ffffff 100%);
}

.subpage-header--collections {
  background: linear-gradient(180deg, #faf6ff 0%, #ffffff 100%);
}

.subpage-header--contact {
  background: linear-gradient(180deg, #f4f9ff 0%, #ffffff 100%);
}

.subpage-glow {
  display: none;
}

.subpage-mobile-bar {
  display: none;
  position: relative;
  z-index: 2;
}

.subpage-desktop-actions {
  justify-content: flex-end;
  position: absolute;
  top: 2rem;
  right: 0;
  z-index: 50;
  margin-bottom: 0;
}

.subpage-mobile-actions,
.subpage-desktop-actions .hero-actions {
  gap: 10px;
}

.subpage-header .icon-btn,
.subpage-header .locale-btn {
  border-color: #dbe3ee;
  background: rgba(255, 255, 255, 0.98);
  color: #475569;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.subpage-header .icon-btn:hover,
.subpage-header .locale-btn:hover {
  border-color: #bfdbfe;
  background: #ffffff;
}

.subpage-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #0f172a;
  margin-top: 0.45rem;
}

.no-flex-gap .subpage-title-wrap > * + * {
  margin-left: 0.75rem;
}

.no-flex-gap .subpage-title-main-head > * + * {
  margin-left: 0.5rem;
}

.no-flex-gap .subpage-title-main h1 > * + * {
  margin-left: 0.5rem;
}

.no-flex-gap .subpage-clear-btn > * + *,
.no-flex-gap .subpage-btn > * + * {
  margin-left: 6px;
}

.no-flex-gap .subpage-toolbar > * + * {
  margin-left: 14px;
}

.no-flex-gap .subpage-toolbar-actions > * + *,
.no-flex-gap .subpage-contact-actions > * + *,
.no-flex-gap .subpage-log-summary > * + * {
  margin-left: 8px;
}

.no-flex-gap .recent-page-title-row > * + *,
.no-flex-gap .search-page-title-row > * + *,
.no-flex-gap .favorites-page-title-row > * + *,
.no-flex-gap .collections-page-title-row > * + *,
.no-flex-gap .contact-page-title-row > * + * {
  margin-left: 0.75rem;
}

.no-flex-gap .recent-page-title > * + * {
  margin-left: 0.375rem;
}

.no-flex-gap .recent-page-clear-btn > * + * {
  margin-left: 0.25rem;
}

.no-flex-gap .favorites-page-title > * + *,
.no-flex-gap .search-page-title > * + *,
.no-flex-gap .collections-page-title > * + *,
.no-flex-gap .contact-page-title > * + * {
  margin-left: 0.5rem;
}

.no-flex-gap .subpage-primary-link > * + *,
.no-flex-gap .subpage-collection-meta > * + *,
.no-flex-gap .subpage-collection-tool > * + * {
  margin-left: 8px;
}

.no-flex-gap .subpage-collection-head > * + *,
.no-flex-gap .subpage-contact-head > * + *,
.no-flex-gap .subpage-changelog-head > * + * {
  margin-left: 12px;
}

.no-flex-gap .subpage-collection-head-left > * + *,
.no-flex-gap .subpage-log-head-left > * + * {
  margin-left: 10px;
}

.no-flex-gap .subpage-contact-wrap > * + * {
  margin-top: 14px;
}

.no-flex-gap .subpage-log-head > * + * {
  margin-left: 8px;
}

.no-flex-gap .subpage-log-summary span > * + * {
  margin-left: 4px;
}

.no-flex-gap .subpage-log-group-title > * + *,
.no-flex-gap .subpage-log-pagination-actions > * + * {
  margin-left: 6px;
}

.no-flex-gap .subpage-log-group li > * + * {
  margin-left: 8px;
}

.no-flex-gap .subpage-log-pagination > * + * {
  margin-left: 10px;
}

.no-flex-gap .subpage-results-hint > * + * {
  margin-left: 10px;
}

.subpage-title-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.subpage-title-icon i {
  font-size: 1.25rem;
  color: #2563eb;
}

.subpage-title-menu-btn {
  display: none;
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.subpage-title-main {
  min-width: 0;
  flex: 1;
}

.subpage-title-main-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.subpage-title-main h1 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.15;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.subpage-title-main p {
  margin: 0.15rem 0 0;
  color: #6b7280;
  font-size: 0.95rem;
  line-height: 1.5;
}

.subpage-count {
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  line-height: 1.4;
  border: 1px solid #dbeafe;
  background: #eff6ff;
  color: #2563eb;
}

html.dark .subpage-title-icon,
html[theme-mode="dark"] .subpage-title-icon {
  background: rgba(17, 24, 39, 0.96);
  border-color: rgba(71, 85, 105, 0.82);
  box-shadow: 0 8px 18px rgba(2, 6, 23, 0.18);
}

html.dark .subpage-inline-title,
html[theme-mode="dark"] .subpage-inline-title,
html.dark .subpage-title-main h1,
html[theme-mode="dark"] .subpage-title-main h1 {
  color: #f8fafc;
}

html.dark .subpage-count,
html[theme-mode="dark"] .subpage-count {
  border-color: rgba(96, 165, 250, 0.28);
  background: rgba(30, 41, 59, 0.96);
  color: #93c5fd;
}

html.dark .recent-page-main .subpage-title-icon i,
html[theme-mode="dark"] .recent-page-main .subpage-title-icon i {
  color: #22d3ee;
}

html.dark .latest-page-main .subpage-title-icon i,
html[theme-mode="dark"] .latest-page-main .subpage-title-icon i {
  color: #fbbf24;
}

html.dark .favorites-page-main .subpage-title-icon i,
html[theme-mode="dark"] .favorites-page-main .subpage-title-icon i {
  color: #f472b6;
}

html.dark .collections-page-main .subpage-title-icon i,
html[theme-mode="dark"] .collections-page-main .subpage-title-icon i {
  color: #c084fc;
}

html.dark .contact-page-main .subpage-title-icon i,
html[theme-mode="dark"] .contact-page-main .subpage-title-icon i {
  color: #93c5fd;
}

html.dark .category-page .subpage-title-icon i,
html[theme-mode="dark"] .category-page .subpage-title-icon i {
  color: #60a5fa;
}

.subpage-main-wrap {
  width: 100%;
  max-width: var(--content-container-width);
  padding: 24px var(--page-gutter) 0;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0 auto;
  position: relative;
  box-sizing: border-box;
}

.subpage-inline-head {
  margin-bottom: 18px;
}

.subpage-inline-title-wrap {
  margin-top: 0;
}

.subpage-inline-title-main {
  min-width: 0;
}

.subpage-inline-title {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  color: #0f172a;
  font-size: 1.5rem;
  line-height: 1.15;
  font-weight: 700;
}

.subpage-inline-search {
  margin: 0 auto 14px;
}

.subpage-inline-local-search {
  width: 100%;
  max-width: 20rem;
  margin-left: auto;
  flex: 0 0 auto;
}

.subpage-shell .home-main-wrap {
  background: transparent;
}

.subpage-shell .home-main-wrap.recent-page-main,
.subpage-shell .home-main-wrap.favorites-page-main,
.subpage-shell .home-main-wrap.collections-page-main,
.subpage-shell .home-main-wrap.contact-page-main {
  background: transparent;
}

html.dark .subpage-shell .home-main-wrap,
html[theme-mode="dark"] .subpage-shell .home-main-wrap {
  background: transparent;
}

.subpage-clear-btn {
  border: 1px solid rgba(248, 113, 113, 0.32);
  background: #fff5f5;
  color: #dc2626;
  border-radius: 8px;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.subpage-clear-btn:hover {
  background: #fee2e2;
}

.subpage-notice {
  margin-bottom: 12px;
  border-radius: 12px;
  border: 1px solid rgba(129, 140, 248, 0.32);
  background: rgba(99, 102, 241, 0.1);
  color: #4338ca;
  padding: 10px 14px;
  font-size: 0.875rem;
}

.subpage-toolbar {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.subpage-toolbar--favorites {
  margin-top: 8px;
}

.subpage-toolbar-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.subpage-search-wrap {
  flex: 1;
  min-width: min(100%, 360px);
  max-width: 320px;
  margin-left: auto;
}

.subpage-search-wrap--favorites {
  width: 100%;
}

.subpage-toolbar--favorites .subpage-toolbar-actions {
  order: 2;
}

.subpage-toolbar--favorites .subpage-search-wrap--favorites {
  order: 1;
}

.subpage-search-floating {
  width: 100%;
  z-index: 10;
}

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

.subpage-search-input {
  width: 100%;
  padding: 0.5rem 2rem 0.5rem 2.25rem;
  border-radius: 0.875rem;
  border: 1px solid #dbe3ee;
  background: #ffffff;
  color: #1f2937;
  outline: none;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease;
  font-size: 0.875rem;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.subpage-search-input::-moz-placeholder {
  color: #9ca3af;
}

.subpage-search-input::placeholder {
  color: #9ca3af;
}

.subpage-search-input:hover {
  background: transparent;
}

.subpage-search-input:focus {
  background: #ffffff;
  border-color: rgba(59, 130, 246, 0.7);
  box-shadow:
    0 2px 10px rgba(37, 99, 235, 0.06),
    0 0 0 4px rgba(37, 99, 235, 0.08);
}

.subpage-search-input:focus,
.subpage-search-input:focus-visible {
  outline: none !important;
  outline-offset: 0;
}

.subpage-search-icon,
.subpage-search-clear {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  color: #9ca3af;
}

.subpage-search-icon {
  left: 12px;
  pointer-events: none;
}

.subpage-search-clear {
  right: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 4px;
}

.subpage-search-clear:hover {
  color: #6b7280;
}

.subpage-content-with-floating-search {
  margin-top: 12px;
}

.recent-page-header,
.latest-page-header {
  padding: 0.75rem 1rem 1rem;
  margin-bottom: 0;
  border-bottom-color: #e5e7eb;
}

.recent-page-header-inner,
.latest-page-header-inner {
  max-width: var(--content-container-width);
  margin: 0 auto;
}

.recent-page-desktop-actions,
.latest-page-desktop-actions {
  top: 1.5rem;
  right: 0;
}

.recent-page-title-row,
.latest-page-title-row {
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.recent-page-title-icon,
.latest-page-title-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.recent-page-title-icon {
  border: 1px solid #e0f2fe;
}

.latest-page-title-icon {
  border: 1px solid #fde68a;
}

.recent-page-title-icon i {
  font-size: 1.25rem;
  color: #0891b2;
}

.latest-page-title-icon i {
  font-size: 1.25rem;
  color: #d97706;
}

.recent-page-title-main,
.latest-page-title-main {
  color: #0f172a;
}

.recent-page-title-head,
.latest-page-title-head {
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.recent-page-title,
.latest-page-title {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  flex-wrap: wrap;
  color: #0f172a;
  font-size: 1.25rem;
  line-height: 1.2;
  font-weight: 700;
  text-shadow: none;
}

.recent-page-count,
.latest-page-count {
  padding: 0 0.5rem;
  background: #eff6ff;
  border-color: #dbeafe;
  color: #2563eb;
}

.recent-page-clear-btn {
  margin-left: auto;
  padding: 0.25rem 0.5rem;
  gap: 0.25rem;
  border-radius: 0.5rem;
  border-color: rgba(248, 113, 113, 0.32);
  background: #fff5f5;
}

.recent-page-clear-btn:hover {
  background: #fee2e2;
}

.recent-page-clear-btn i {
  font-size: 0.75rem;
}

.recent-page-desc,
.latest-page-desc {
  margin: 0;
  color: #64748b;
  font-size: 0.875rem;
  line-height: 1.5;
  opacity: 1;
}

.recent-page-main,
.latest-page-main {
  padding-left: 0;
  padding-right: 0;
  background: transparent;
}

.recent-page-search-wrap {
  width: 100%;
  z-index: 10;
}

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

.recent-page-search-input {
  width: 100%;
  padding: 0.5rem 2rem 0.5rem 2.25rem;
  border-radius: 0.875rem;
  border: 1px solid #dbe3ee;
  background: #ffffff;
  color: #1f2937;
  font-size: 0.875rem;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.recent-page-search-input:hover {
  background: transparent;
}

.recent-page-search-input:focus {
  background: #ffffff;
  border-color: rgba(59, 130, 246, 0.7);
  box-shadow:
    0 2px 10px rgba(37, 99, 235, 0.06),
    0 0 0 4px rgba(37, 99, 235, 0.08);
}

.recent-page-search-icon,
.recent-page-search-clear {
  color: #9ca3af;
}

.recent-page-search-icon {
  left: 12px;
}

.recent-page-search-clear {
  right: 8px;
}

.recent-page-search-clear:hover {
  color: #6b7280;
}

.search-page-grid {
  margin-top: 0.5rem;
}

.search-page-header {
  color: #1f2937;
  padding-top: 0.5rem;
  padding-bottom: 1.6rem;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.search-page-header::after {
  display: none;
}

.search-page-hero-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 1rem;
}

.search-page-hero-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  padding: 0.6rem 0.9rem;
  border: 1px solid #dbe3ee;
  border-radius: 0.875rem;
  background: rgba(255, 255, 255, 0.98);
  color: #4b5563;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.search-page-hero-back:hover {
  background: #ffffff;
  border-color: #bfdbfe;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.08);
}

.search-page-hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.search-page-header .search-page-hero-action-btn,
.search-page-header .search-page-hero-action-btn.locale-switch-btn {
  border-color: #dbe3ee;
  background: rgba(255, 255, 255, 0.98);
  color: #4b5563;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.search-page-header .search-page-hero-action-btn:hover,
.search-page-header .search-page-hero-action-btn.locale-switch-btn:hover {
  background: #ffffff;
  border-color: #bfdbfe;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.08);
}

.search-page-title-row {
  display: block;
  margin-top: 0.35rem;
}

.search-page-title-row .subpage-title-menu-btn {
  display: none !important;
}

.search-page-title-main {
  color: #1f2937;
  flex: none;
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
}

.search-page-hero-content {
  width: min(100%, 42rem);
  margin: 0 auto;
  text-align: center;
}

.search-page-title-main .search-page-title {
  display: block;
  width: 100%;
  text-align: center;
  justify-content: initial;
  gap: 0;
}

.search-page-title {
  display: block;
  width: 100%;
  margin: 0.15rem 0 0.95rem;
  text-align: center;
  color: #1f2937;
  text-shadow: none;
  letter-spacing: -0.03em;
  font-size: 1.5rem;
  line-height: 1.12;
  font-weight: 700;
}

.search-page-search-box {
  position: relative;
  width: 100%;
  max-width: 42rem;
  margin: 0.875rem auto;
}

.search-page-search-input {
  width: 100%;
  padding: 0.95rem 3rem 0.95rem 2.75rem;
  border: 1px solid #dbe3ee;
  border-radius: 1rem;
  background: #ffffff;
  color: #111827;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  min-height: 3.45rem;
}

.search-page-search-input::-moz-placeholder {
  color: #94a3b8;
}

.search-page-search-input::placeholder {
  color: #94a3b8;
}

.search-page-search-input:focus {
  border-color: rgba(59, 130, 246, 0.72);
  box-shadow:
    0 8px 24px rgba(37, 99, 235, 0.08),
    0 0 0 4px rgba(37, 99, 235, 0.08);
}

.search-page-global-search {
  margin: 12px auto 0;
  max-width: 1200px;
}

.search-page-search-icon {
  left: 16px;
}

.search-page-search-clear {
  right: 14px;
}

.search-page-tip {
  margin: 0.9rem 0 0;
  color: #7b8190;
  opacity: 0.9;
  font-size: 0.875rem;
}

.search-page-title-main .search-page-tip {
  color: #7b8190;
}

.search-page-content {
  margin-top: 0.5rem;
}

.search-page-content mark.tool-card__mark {
  border-radius: 0.25rem;
  padding: 0 0.2rem;
  color: #1f2937;
  background: #fde68a;
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.35);
}

.search-page-content mark.tool-card__mark--name {
  font-weight: 600;
}

.search-page-content mark.tool-card__mark--desc {
  background: #fef3c7;
  font-weight: 500;
}

.search-page-main {
  background: transparent;
}

.no-flex-gap .search-page-hero-nav > * + * {
  margin-left: 12px;
}

.no-flex-gap .search-page-hero-actions > * + * {
  margin-left: 10px;
}

.favorites-page-header,
.collections-page-header,
.contact-page-header {
  padding: 0.75rem 1rem 1rem;
  margin-bottom: 0;
  border-bottom-color: #e5e7eb;
}

.favorites-page-header-inner,
.collections-page-header-inner,
.contact-page-header-inner {
  max-width: var(--content-container-width);
  margin: 0 auto;
}

.favorites-page-desktop-actions,
.collections-page-desktop-actions,
.contact-page-desktop-actions {
  top: 1.5rem;
  right: 0;
}

.favorites-page-title-row,
.collections-page-title-row,
.contact-page-title-row {
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.favorites-page-title-icon,
.collections-page-title-icon,
.contact-page-title-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.favorites-page-title-icon i,
.collections-page-title-icon i,
.contact-page-title-icon i {
  font-size: 1.5rem;
}

.favorites-page-title-icon {
  border: 1px solid #fbcfe8;
}

.favorites-page-title-icon i {
  color: #e11d48;
}

.collections-page-title-icon {
  border: 1px solid #ddd6fe;
}

.collections-page-title-icon i {
  color: #7c3aed;
}

.contact-page-title-icon {
  border: 1px solid #dbeafe;
}

.contact-page-title-icon i {
  color: #2563eb;
}

.favorites-page-title-main,
.collections-page-title-main,
.contact-page-title-main {
  color: #0f172a;
}

.favorites-page-title-head,
.collections-page-title-head,
.contact-page-title-head {
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.favorites-page-title,
.collections-page-title,
.contact-page-title {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  color: #0f172a;
  font-size: 1.5rem;
  line-height: 1.2;
  font-weight: 700;
  text-shadow: none;
}

.favorites-page-count,
.collections-page-count {
  padding: 0 0.5rem;
  background: #eff6ff;
  border-color: #dbeafe;
  color: #2563eb;
}

.favorites-page-desc,
.collections-page-desc,
.contact-page-desc {
  margin: 0;
  color: #64748b;
  font-size: 0.875rem;
  line-height: 1.5;
  opacity: 1;
}

.favorites-page-main,
.collections-page-main,
.contact-page-main {
  padding-left: 12px;
  padding-right: 12px;
  background: #ffffff;
}

.favorites-page-toolbar {
  margin-top: 0.5rem;
  margin-bottom: 12px;
}

.favorites-page-search-wrap,
.collections-page-search-wrap {
  width: 100%;
  z-index: 10;
}

.collections-page-search-wrap {
  margin-top: 0.75rem;
}

.favorites-page-search-box,
.collections-page-search-box {
  position: relative;
  width: 100%;
}

.favorites-page-search-input,
.collections-page-search-input {
  width: 100%;
  padding: 0.5rem 2rem 0.5rem 2.25rem;
  border-radius: 0.875rem;
  border: 1px solid #dbe3ee;
  background: #ffffff;
  color: #1f2937;
  font-size: 0.875rem;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.favorites-page-search-input:hover,
.collections-page-search-input:hover {
  background: transparent;
}

.favorites-page-search-input:focus,
.collections-page-search-input:focus {
  background: #ffffff;
  border-color: rgba(59, 130, 246, 0.7);
  box-shadow:
    0 2px 10px rgba(37, 99, 235, 0.06),
    0 0 0 4px rgba(37, 99, 235, 0.08);
}

.favorites-page-search-icon,
.favorites-page-search-clear,
.collections-page-search-icon,
.collections-page-search-clear {
  color: #9ca3af;
}

.favorites-page-search-icon,
.collections-page-search-icon {
  left: 12px;
}

.favorites-page-search-clear,
.collections-page-search-clear {
  right: 8px;
}

.favorites-page-search-clear:hover,
.collections-page-search-clear:hover {
  color: #6b7280;
}

.subpage-btn {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  border: 1px solid #dbe3ee;
  background: rgba(255, 255, 255, 0.98);
  color: #475569;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.subpage-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.subpage-btn:hover:not(:disabled) {
  border-color: #bfdbfe;
  color: #1d4ed8;
  background: #f8fbff;
}

.subpage-btn--danger {
  border-color: rgba(251, 113, 133, 0.42);
  color: #be123c;
  background: rgba(255, 241, 242, 0.85);
}

.subpage-btn--danger:hover:not(:disabled) {
  border-color: rgba(244, 63, 94, 0.52);
  color: #9f1239;
  background: rgba(255, 228, 230, 0.95);
}

.subpage-btn--primary {
  border-color: rgba(59, 130, 246, 0.3);
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
}

.subpage-btn--primary:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%);
}

.subpage-hidden-input {
  display: none;
}

.subpage-list-wrap,
.subpage-collections-wrap,
.subpage-contact-wrap {
  flex: 1;
}

.subpage-tool-grid {
  gap: 12px;
  margin-top: 8px;
}

.subpage-results-hint {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  color: #64748b;
  font-size: 0.875rem;
}

.subpage-empty {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  text-align: center;
  padding: 40px 20px;
  color: #475569;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.subpage-empty--small {
  min-height: 260px;
}

.subpage-empty h2 {
  margin: 0;
  font-size: 1.5rem;
  color: #1f2937;
}

.subpage-empty p {
  margin: 10px 0 18px;
  max-width: 560px;
  line-height: 1.65;
}

.subpage-empty-icon {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.subpage-empty-icon i {
  font-size: 1.75rem;
}

.subpage-primary-link {
  border-radius: 999px;
  text-decoration: none;
  color: #ffffff;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.subpage-primary-link:hover {
  color: #ffffff;
}

.subpage-collections-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.subpage-collections-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.subpage-collection-card {
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 20px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.subpage-collection-card:hover {
  border-color: rgba(203, 213, 225, 0.95);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.subpage-collection-head {
  width: 100%;
  border: 0;
  background: transparent;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 18px 16px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.subpage-collection-head:hover {
  background: #f8fafc;
}

.subpage-collection-head-left {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

.subpage-collection-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.subpage-collection-icon i {
  font-size: 1.25rem;
}

.subpage-collection-text h3 {
  margin: 0;
  color: #1f2937;
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 700;
  text-align: left;
}

.subpage-collection-text p {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 0.875rem;
  line-height: 1.7;
  text-align: left;
}

.subpage-collection-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  padding-top: 2px;
}

.subpage-collection-count {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  color: #64748b;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(248, 250, 252, 0.92);
  font-weight: 600;
}

.subpage-collection-meta .fa-chevron-down {
  color: #94a3b8;
  transition: transform 0.2s ease;
}

.subpage-collection-meta .fa-chevron-down.is-open {
  transform: rotate(180deg);
}

.subpage-collection-body {
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  padding: 14px 16px 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  background: #f8fafc;
}

.subpage-collection-tool {
  text-decoration: none;
  color: #334155;
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease,
    color 0.2s ease;
}

.subpage-collection-tool:hover {
  background: #ffffff;
  transform: translateY(-1px);
}

.subpage-collection-tool-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.subpage-collection-tool-icon i {
  font-size: 0.9375rem;
}

.subpage-collection-tool-name {
  font-size: 0.875rem;
  line-height: 1.4;
  font-weight: 600;
}

.subpage-contact-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  align-items: stretch;
}

.subpage-contact-grid::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(
    180deg,
    rgba(226, 232, 240, 0),
    rgba(226, 232, 240, 1),
    rgba(226, 232, 240, 0)
  );
  transform: translateX(-50%);
}

.subpage-contact-wrap {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.subpage-contact-card {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.subpage-contact-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.subpage-contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.5rem;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.14);
}

.subpage-contact-icon--wechat {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.subpage-contact-icon--email {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
}

.subpage-contact-head h3 {
  margin: 0;
  color: #1f2937;
  font-size: 1.125rem;
  font-weight: 700;
}

.subpage-contact-head p {
  margin: 2px 0 0;
  color: #64748b;
  font-size: 0.875rem;
}

.subpage-contact-label {
  margin: 0;
  color: #64748b;
  font-size: 0.875rem;
  font-weight: 600;
}

.subpage-contact-body {
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.85);
  padding: 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.subpage-contact-body--wechat {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border-color: rgba(134, 239, 172, 0.5);
}

.subpage-contact-body--email {
  background: linear-gradient(135deg, #fff7ed 0%, #fef3c7 100%);
  border-color: rgba(251, 191, 36, 0.42);
}

.subpage-contact-value {
  margin: 10px 0 0;
  color: #0f172a;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
  word-break: break-all;
}

.subpage-contact-value--email {
  margin-bottom: auto;
  padding-bottom: 24px;
}

.subpage-contact-body-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.subpage-contact-copy-btn {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.subpage-contact-copy-btn--wechat {
  border-color: rgba(134, 239, 172, 0.78);
  color: #16a34a;
}

.subpage-contact-copy-btn--wechat:hover:not(:disabled) {
  background: #f0fdf4;
  border-color: rgba(74, 222, 128, 0.95);
  color: #15803d;
}

.subpage-contact-copy-btn--email {
  border-color: rgba(253, 224, 71, 0.72);
  color: #d97706;
}

.subpage-contact-copy-btn--email:hover:not(:disabled) {
  background: #fff7ed;
  border-color: rgba(251, 191, 36, 0.92);
  color: #b45309;
}

.subpage-contact-send-btn {
  width: 100%;
  min-height: 54px;
  margin-top: auto;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(90deg, #f59e0b 0%, #f97316 100%);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.18);
}

.subpage-contact-send-btn:hover {
  color: #ffffff;
  background: linear-gradient(90deg, #ea580c 0%, #f97316 100%);
  box-shadow: 0 14px 28px rgba(249, 115, 22, 0.22);
}

.subpage-contact-qrcode {
  margin: auto 0 0;
  display: flex;
  justify-content: center;
}

.subpage-contact-qrcode-inner {
  padding: 12px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}

.subpage-contact-qrcode img {
  width: 144px;
  height: 144px;
  display: block;
  border-radius: 8px;
}

.subpage-changelog {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.subpage-changelog-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.subpage-changelog-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, #65a30d 0%, #16a34a 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.125rem;
}

.subpage-changelog-head h2 {
  margin: 0;
  color: #1f2937;
  font-size: 1.5rem;
  line-height: 1.25;
}

.subpage-changelog-list {
  display: grid;
  gap: 16px;
}

.subpage-log-card {
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}

.subpage-log-head {
  width: 100%;
  border: 0;
  background: rgba(248, 250, 252, 0.72);
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.subpage-log-head:hover {
  background: #f3f4f6;
}

.subpage-log-head-left {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.subpage-log-date {
  color: #334155;
  font-size: 0.875rem;
  font-weight: 600;
}

.subpage-log-summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #64748b;
  font-size: 0.75rem;
}

.subpage-log-summary span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.subpage-log-summary .is-added {
  color: #16a34a;
}

.subpage-log-summary .is-fixed {
  color: #2563eb;
}

.subpage-log-summary .is-improved {
  color: #d97706;
}

.subpage-log-arrow {
  color: #94a3b8;
  transition: transform 0.2s ease;
}

.subpage-log-arrow.is-open {
  transform: rotate(180deg);
}

.subpage-log-body {
  padding: 12px;
  display: grid;
  gap: 12px;
  background: transparent;
}

.subpage-log-group-title {
  margin: 0 0 6px;
  font-size: 1rem;
  line-height: 1.4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.subpage-log-group-title.is-added {
  color: #16a34a;
}

.subpage-log-group-title.is-fixed {
  color: #2563eb;
}

.subpage-log-group-title.is-improved {
  color: #d97706;
}

.subpage-log-group ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.subpage-log-group li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: #334155;
  line-height: 1.65;
  font-size: 1rem;
}

.subpage-log-group li i {
  font-size: 0.6875rem;
  margin-top: 6px;
  color: #22c55e;
  flex-shrink: 0;
}

.subpage-log-pagination {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.subpage-log-pagination p {
  margin: 0;
  font-size: 0.8125rem;
  color: #64748b;
}

.subpage-log-pagination-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.subpage-log-page-btn {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  border: 1px solid rgba(226, 232, 240, 0.88);
  background: rgba(255, 255, 255, 0.9);
  color: #475569;
  min-width: 34px;
  height: 32px;
  border-radius: 8px;
  padding: 0 10px;
  font-size: 0.8125rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.subpage-log-page-btn:hover:not(:disabled) {
  border-color: rgba(165, 180, 252, 0.75);
  color: #4338ca;
}

.subpage-log-page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.subpage-log-page-btn.is-active {
  border-color: rgba(132, 204, 22, 0.75);
  background: linear-gradient(135deg, #84cc16 0%, #22c55e 100%);
  color: #ffffff;
}

.subpage-footer {
  margin-top: 24px;
}

.subpage-footer.site-footer {
  padding: 2rem 0 1rem;
}

.subpage-footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  text-align: center;
  color: #64748b;
  font-size: 0.75rem;
}

.subpage-footer-line {
  margin: 0;
}

.subpage-footer-line + .subpage-footer-line {
  margin-top: 8px;
}

.subpage-footer-nowrap {
  white-space: nowrap;
}

.subpage-footer-sep {
  margin: 0 8px;
  color: #cbd5e1;
}

@media (min-width: 768px) {
  .subpage-header {
    padding-top: 1rem;
    padding-right: 1rem;
    padding-left: 1rem;
    padding-bottom: 1.35rem;
  }

  .subpage-desktop-actions {
    top: 0.95rem;
  }

  .subpage-title-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
  }

  .subpage-title-icon i {
    font-size: 1.5rem;
  }

  .subpage-title-main h1 {
    font-size: 1.875rem;
  }

  .subpage-title-main p {
    font-size: 1rem;
  }

  .subpage-main-wrap {
    padding-left: 24px;
    padding-right: 24px;
  }

  .subpage-title-wrap {
    margin-top: 0;
    gap: 0.85rem;
  }

  .no-flex-gap .subpage-title-wrap > * + * {
    margin-left: 0.85rem;
  }

  .subpage-toolbar--favorites {
    position: relative;
    justify-content: flex-start;
    padding-right: calc(20rem + 1rem);
  }

  .favorites-page-toolbar {
    margin-top: 0;
  }

  .subpage-toolbar--favorites .subpage-toolbar-actions {
    order: 1;
  }

  .subpage-toolbar--favorites .subpage-search-wrap--favorites {
    order: 2;
    position: absolute;
    top: 0;
    right: 0;
    width: auto;
    min-width: 0;
    max-width: none;
    margin-left: 0;
  }

  .subpage-search-floating {
    position: absolute;
    top: 0;
    right: 1.5rem;
    width: auto;
  }

  .subpage-search-box {
    width: 20rem;
  }

  .search-page-title-main .search-page-search-box {
    width: min(100%, 42rem);
    max-width: 42rem;
  }

  .search-page-content {
    margin-top: 0.75rem;
  }

  .subpage-content-with-floating-search {
    margin-top: 3.5rem;
  }

  .subpage-tool-grid {
    gap: 24px;
  }

  .subpage-footer.site-footer {
    padding-top: 2.25rem;
    padding-bottom: 1.5rem;
  }

  .subpage-footer-content {
    font-size: 0.875rem;
  }

  .recent-page-header,
  .latest-page-header {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .recent-page-title-row,
  .latest-page-title-row {
    gap: 1.5rem;
    margin-top: 0;
  }

  .no-flex-gap .recent-page-title-row > * + *,
  .no-flex-gap .latest-page-title-row > * + * {
    margin-left: 1.5rem;
  }

  .recent-page-title-icon,
  .latest-page-title-icon {
    width: 4rem;
    height: 4rem;
  }

  .recent-page-title-icon i,
  .latest-page-title-icon i {
    font-size: 1.875rem;
  }

  .recent-page-title,
  .latest-page-title {
    gap: 0.75rem;
    font-size: 1.875rem;
  }

  .no-flex-gap .recent-page-title > * + *,
  .no-flex-gap .latest-page-title > * + * {
    margin-left: 0.75rem;
  }

  .recent-page-clear-btn {
    margin-left: 0;
    padding: 0.25rem 0.75rem;
    gap: 0.5rem;
  }

  .no-flex-gap .recent-page-clear-btn > * + * {
    margin-left: 0.5rem;
  }

  .recent-page-main,
  .latest-page-main {
    padding-left: 24px;
    padding-right: 24px;
  }

  .recent-page-search-wrap {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    width: auto;
  }

  .recent-page-search-box {
    width: 20rem;
  }

  .favorites-page-header,
  .collections-page-header,
  .contact-page-header {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .favorites-page-title-row,
  .collections-page-title-row,
  .contact-page-title-row {
    gap: 1.5rem;
    margin-top: 0;
  }

  .no-flex-gap .favorites-page-title-row > * + *,
  .no-flex-gap .collections-page-title-row > * + *,
  .no-flex-gap .contact-page-title-row > * + * {
    margin-left: 1.5rem;
  }

  .favorites-page-title-icon,
  .collections-page-title-icon,
  .contact-page-title-icon {
    width: 4rem;
    height: 4rem;
  }

  .favorites-page-title-icon i,
  .collections-page-title-icon i,
  .contact-page-title-icon i {
    font-size: 1.875rem;
  }

  .favorites-page-title,
  .collections-page-title,
  .contact-page-title {
    gap: 0.75rem;
    font-size: 1.875rem;
  }

  .no-flex-gap .favorites-page-title > * + *,
  .no-flex-gap .collections-page-title > * + *,
  .no-flex-gap .contact-page-title > * + * {
    margin-left: 0.75rem;
  }

  .favorites-page-main,
  .collections-page-main,
  .contact-page-main {
    padding-left: 24px;
    padding-right: 24px;
  }

  .favorites-page-search-box,
  .collections-page-search-box {
    width: 20rem;
  }

  .collections-page-search-wrap {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    width: auto;
    margin-top: 0;
  }

}

html.dark .subpage-notice,
html[theme-mode="dark"] .subpage-notice {
  border-color: rgba(129, 140, 248, 0.38);
  background: rgba(79, 70, 229, 0.22);
  color: #c7d2fe;
}

html.dark .subpage-btn,
html[theme-mode="dark"] .subpage-btn {
  border-color: rgba(100, 116, 139, 0.42);
  background: rgba(30, 41, 59, 0.5);
  color: #e2e8f0;
}

html.dark .subpage-search-input,
html[theme-mode="dark"] .subpage-search-input {
  border-color: rgba(71, 85, 105, 0.82);
  background: rgba(15, 23, 42, 0.94);
  color: #e2e8f0;
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.18);
}

html.dark .subpage-search-input::-moz-placeholder, html[theme-mode="dark"] .subpage-search-input::-moz-placeholder {
  color: #94a3b8;
}

html.dark .subpage-search-input::placeholder,
html.dark .subpage-search-icon,
html.dark .subpage-search-clear,
html[theme-mode="dark"] .subpage-search-input::placeholder,
html[theme-mode="dark"] .subpage-search-icon,
html[theme-mode="dark"] .subpage-search-clear {
  color: #94a3b8;
}

html.dark .subpage-search-input:hover,
html[theme-mode="dark"] .subpage-search-input:hover {
  background: transparent;
}

html.dark .subpage-search-input:focus,
html[theme-mode="dark"] .subpage-search-input:focus {
  background: rgba(15, 23, 42, 0.96);
  border-color: rgba(96, 165, 250, 0.62);
  box-shadow:
    0 12px 28px rgba(2, 6, 23, 0.24),
    0 0 0 4px rgba(37, 99, 235, 0.14);
}

html.dark .recent-page-header,
html.dark .latest-page-header,
html[theme-mode="dark"] .recent-page-header,
html[theme-mode="dark"] .latest-page-header {
  border-bottom-color: #374151;
}

html.dark .recent-page-search-input,
html[theme-mode="dark"] .recent-page-search-input {
  border-color: rgba(71, 85, 105, 0.82);
  background: rgba(15, 23, 42, 0.94);
  color: #e2e8f0;
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.18);
}

html.dark .recent-page-search-input::-moz-placeholder, html[theme-mode="dark"] .recent-page-search-input::-moz-placeholder {
  color: #94a3b8;
}

html.dark .recent-page-search-input::placeholder,
html.dark .recent-page-search-icon,
html.dark .recent-page-search-clear,
html[theme-mode="dark"] .recent-page-search-input::placeholder,
html[theme-mode="dark"] .recent-page-search-icon,
html[theme-mode="dark"] .recent-page-search-clear {
  color: #94a3b8;
}

html.dark .recent-page-search-input:hover,
html[theme-mode="dark"] .recent-page-search-input:hover {
  background: transparent;
}

html.dark .recent-page-search-input:focus,
html[theme-mode="dark"] .recent-page-search-input:focus {
  background: rgba(15, 23, 42, 0.96);
  border-color: rgba(96, 165, 250, 0.62);
  box-shadow:
    0 12px 28px rgba(2, 6, 23, 0.24),
    0 0 0 4px rgba(37, 99, 235, 0.14);
}

html.dark .favorites-page-header,
html.dark .collections-page-header,
html.dark .contact-page-header,
html[theme-mode="dark"] .favorites-page-header,
html[theme-mode="dark"] .collections-page-header,
html[theme-mode="dark"] .contact-page-header {
  border-bottom-color: rgba(75, 85, 99, 0.35);
}

html.dark .favorites-page-search-input,
html.dark .collections-page-search-input,
html[theme-mode="dark"] .favorites-page-search-input,
html[theme-mode="dark"] .collections-page-search-input {
  border-color: rgba(71, 85, 105, 0.82);
  background: rgba(15, 23, 42, 0.94);
  color: #e2e8f0;
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.18);
}

html.dark .favorites-page-search-input::-moz-placeholder, html.dark .collections-page-search-input::-moz-placeholder, html[theme-mode="dark"] .favorites-page-search-input::-moz-placeholder, html[theme-mode="dark"] .collections-page-search-input::-moz-placeholder {
  color: #94a3b8;
}

html.dark .favorites-page-search-input::placeholder,
html.dark .favorites-page-search-icon,
html.dark .favorites-page-search-clear,
html.dark .collections-page-search-input::placeholder,
html.dark .collections-page-search-icon,
html.dark .collections-page-search-clear,
html[theme-mode="dark"] .favorites-page-search-input::placeholder,
html[theme-mode="dark"] .favorites-page-search-icon,
html[theme-mode="dark"] .favorites-page-search-clear,
html[theme-mode="dark"] .collections-page-search-input::placeholder,
html[theme-mode="dark"] .collections-page-search-icon,
html[theme-mode="dark"] .collections-page-search-clear {
  color: #94a3b8;
}

html.dark .favorites-page-search-input:hover,
html.dark .collections-page-search-input:hover,
html[theme-mode="dark"] .favorites-page-search-input:hover,
html[theme-mode="dark"] .collections-page-search-input:hover {
  background: transparent;
}

html.dark .favorites-page-search-input:focus,
html.dark .collections-page-search-input:focus,
html[theme-mode="dark"] .favorites-page-search-input:focus,
html[theme-mode="dark"] .collections-page-search-input:focus {
  background: rgba(15, 23, 42, 0.96);
  border-color: rgba(96, 165, 250, 0.62);
  box-shadow:
    0 12px 28px rgba(2, 6, 23, 0.24),
    0 0 0 4px rgba(37, 99, 235, 0.14);
}

html.dark .subpage-clear-btn,
html[theme-mode="dark"] .subpage-clear-btn {
  border-color: rgba(248, 113, 113, 0.4);
  background: rgba(127, 29, 29, 0.36);
  color: #fecaca;
}

html.dark .subpage-btn:hover:not(:disabled),
html[theme-mode="dark"] .subpage-btn:hover:not(:disabled) {
  border-color: rgba(129, 140, 248, 0.48);
  background: rgba(51, 65, 85, 0.72);
}

html.dark .subpage-btn--danger,
html[theme-mode="dark"] .subpage-btn--danger {
  border-color: rgba(251, 113, 133, 0.4);
  background: rgba(190, 24, 93, 0.2);
  color: #fda4af;
}

html.dark .subpage-header .icon-btn,
html.dark .subpage-header .locale-btn,
html[theme-mode="dark"] .subpage-header .icon-btn,
html[theme-mode="dark"] .subpage-header .locale-btn {
  border-color: rgba(71, 85, 105, 0.82);
  background: rgba(31, 43, 61, 0.96);
  color: #f8fafc;
}

html.dark .subpage-header .icon-btn:hover,
html.dark .subpage-header .locale-btn:hover,
html[theme-mode="dark"] .subpage-header .icon-btn:hover,
html[theme-mode="dark"] .subpage-header .locale-btn:hover {
  border-color: rgba(96, 165, 250, 0.42);
  background: rgba(45, 60, 84, 0.96);
}

html.dark .subpage-header,
html[theme-mode="dark"] .subpage-header {
  background-color: #0f172a !important;
  background-image: linear-gradient(180deg, #111827 0%, #0f172a 100%) !important;
  border-bottom-color: rgba(51, 65, 85, 0.9);
}

html.dark .search-page-header,
html[theme-mode="dark"] .search-page-header {
  background-color: #0f172a !important;
  background-image: linear-gradient(180deg, #111827 0%, #0f172a 100%) !important;
}

html.dark .search-page-header::after,
html[theme-mode="dark"] .search-page-header::after {
  display: none;
}

html.dark .search-page-title,
html[theme-mode="dark"] .search-page-title {
  color: #e5e7eb;
}

html.dark .search-page-header .search-page-hero-back,
html.dark .search-page-header .search-page-hero-action-btn,
html.dark .search-page-header .search-page-hero-action-btn.locale-switch-btn,
html[theme-mode="dark"] .search-page-header .search-page-hero-back,
html[theme-mode="dark"] .search-page-header .search-page-hero-action-btn,
html[theme-mode="dark"]
  .search-page-header
  .search-page-hero-action-btn.locale-switch-btn {
  border-color: rgba(71, 85, 105, 0.82);
  background: rgba(17, 24, 39, 0.96);
  color: #e2e8f0;
  box-shadow: 0 8px 22px rgba(2, 6, 23, 0.2);
}

html.dark .search-page-header .search-page-hero-back:hover,
html.dark .search-page-header .search-page-hero-action-btn:hover,
html.dark
  .search-page-header
  .search-page-hero-action-btn.locale-switch-btn:hover,
html[theme-mode="dark"] .search-page-header .search-page-hero-back:hover,
html[theme-mode="dark"] .search-page-header .search-page-hero-action-btn:hover,
html[theme-mode="dark"]
  .search-page-header
  .search-page-hero-action-btn.locale-switch-btn:hover {
  background: rgba(30, 41, 59, 0.98);
  border-color: rgba(96, 165, 250, 0.42);
}

html.dark .search-page-search-input,
html[theme-mode="dark"] .search-page-search-input {
  border-color: rgba(71, 85, 105, 0.82);
  background: rgba(15, 23, 42, 0.94);
  color: #f8fafc;
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.22);
}

html.dark .search-page-search-input::-moz-placeholder, html[theme-mode="dark"] .search-page-search-input::-moz-placeholder {
  color: #94a3b8;
}

html.dark .search-page-search-icon,
html.dark .search-page-search-clear,
html.dark .search-page-search-input::placeholder,
html.dark .search-page-tip,
html[theme-mode="dark"] .search-page-search-icon,
html[theme-mode="dark"] .search-page-search-clear,
html[theme-mode="dark"] .search-page-search-input::placeholder,
html[theme-mode="dark"] .search-page-tip {
  color: #94a3b8;
}

html.dark .search-page-title-main .search-page-tip,
html[theme-mode="dark"] .search-page-title-main .search-page-tip {
  color: #94a3b8;
}

html.dark .search-page-search-input:focus,
html[theme-mode="dark"] .search-page-search-input:focus {
  border-color: rgba(96, 165, 250, 0.62);
  box-shadow:
    0 12px 28px rgba(2, 6, 23, 0.24),
    0 0 0 4px rgba(37, 99, 235, 0.14);
}

html.dark .search-page-content mark.tool-card__mark,
html[theme-mode="dark"] .search-page-content mark.tool-card__mark {
  color: #0f172a;
  background: #fcd34d;
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.4);
}

html.dark .search-page-content mark.tool-card__mark--desc,
html[theme-mode="dark"] .search-page-content mark.tool-card__mark--desc {
  color: #0f172a;
  background: #fde68a;
}

html.dark .subpage-header--recent .subpage-title-icon i,
html[theme-mode="dark"] .subpage-header--recent .subpage-title-icon i {
  color: #06b6d4;
}

html.dark .subpage-header--latest .subpage-title-icon i,
html[theme-mode="dark"] .subpage-header--latest .subpage-title-icon i {
  color: #fbbf24;
}

html.dark .subpage-header--favorites .subpage-title-icon i,
html[theme-mode="dark"] .subpage-header--favorites .subpage-title-icon i {
  color: #ec4899;
}

html.dark .subpage-header--collections .subpage-title-icon i,
html[theme-mode="dark"] .subpage-header--collections .subpage-title-icon i {
  color: #a855f7;
}

html.dark .subpage-header--contact .subpage-title-icon i,
html[theme-mode="dark"] .subpage-header--contact .subpage-title-icon i {
  color: #8b5cf6;
}

html.dark .subpage-empty,
html.dark .subpage-collection-card,
html[theme-mode="dark"] .subpage-empty,
html[theme-mode="dark"] .subpage-collection-card,
html[theme-mode="dark"] .subpage-contact-card,
html[theme-mode="dark"] .subpage-changelog,
html.dark .subpage-contact-card,
html.dark .subpage-changelog {
  border-color: rgba(71, 85, 105, 0.72);
  background: rgba(17, 24, 39, 0.92);
}

html.dark .subpage-contact-card,
html.dark .subpage-changelog,
html[theme-mode="dark"] .subpage-contact-card,
html[theme-mode="dark"] .subpage-changelog {
  border-color: transparent;
  background: transparent;
}

html.dark .subpage-empty h2,
html.dark .subpage-collection-text h3,
html.dark .subpage-contact-head h3,
html.dark .subpage-contact-value,
html.dark .subpage-changelog-head h2,
html[theme-mode="dark"] .subpage-empty h2,
html[theme-mode="dark"] .subpage-collection-text h3,
html[theme-mode="dark"] .subpage-contact-head h3,
html[theme-mode="dark"] .subpage-contact-value,
html[theme-mode="dark"] .subpage-changelog-head h2 {
  color: #e2e8f0;
}

html.dark .subpage-empty p,
html.dark .subpage-collection-text p,
html.dark .subpage-contact-head p,
html.dark .subpage-contact-label,
html.dark .subpage-log-pagination p,
html[theme-mode="dark"] .subpage-empty p,
html[theme-mode="dark"] .subpage-collection-text p,
html[theme-mode="dark"] .subpage-contact-head p,
html[theme-mode="dark"] .subpage-contact-label,
html[theme-mode="dark"] .subpage-log-pagination p {
  color: #94a3b8;
}

html.dark .subpage-empty-icon,
html[theme-mode="dark"] .subpage-empty-icon {
  background: rgba(100, 116, 139, 0.22);
  border: 1px solid rgba(148, 163, 184, 0.28);
  color: #93c5fd;
}

html.dark .favorites-page-main .subpage-empty-icon,
html[theme-mode="dark"] .favorites-page-main .subpage-empty-icon {
  background: rgba(244, 114, 182, 0.16);
  border-color: rgba(244, 114, 182, 0.32);
  color: #f472b6;
}

html.dark .subpage-primary-link,
html[theme-mode="dark"] .subpage-primary-link {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.24);
}

html.dark .subpage-primary-link:hover,
html[theme-mode="dark"] .subpage-primary-link:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

html.dark .subpage-results-hint,
html[theme-mode="dark"] .subpage-results-hint {
  color: #94a3b8;
}

html.dark .subpage-log-card,
html[theme-mode="dark"] .subpage-log-card {
  border-color: rgba(100, 116, 139, 0.4);
  background: rgba(15, 23, 42, 0.42);
}

html.dark .subpage-contact-body,
html[theme-mode="dark"] .subpage-contact-body {
  border-color: rgba(100, 116, 139, 0.45);
}

html.dark .subpage-contact-grid::after,
html[theme-mode="dark"] .subpage-contact-grid::after {
  background: linear-gradient(
    180deg,
    rgba(100, 116, 139, 0),
    rgba(100, 116, 139, 0.65),
    rgba(100, 116, 139, 0)
  );
}

html.dark .subpage-contact-body--wechat,
html[theme-mode="dark"] .subpage-contact-body--wechat {
  background: linear-gradient(
    135deg,
    rgba(21, 128, 61, 0.24) 0%,
    rgba(15, 118, 110, 0.22) 100%
  );
}

html.dark .subpage-contact-body--email,
html[theme-mode="dark"] .subpage-contact-body--email {
  background: linear-gradient(
    135deg,
    rgba(180, 83, 9, 0.24) 0%,
    rgba(180, 83, 9, 0.18) 100%
  );
}

html.dark .subpage-contact-qrcode-inner,
html[theme-mode="dark"] .subpage-contact-qrcode-inner {
  background: rgba(255, 255, 255, 0.9);
}

html.dark .subpage-contact-copy-btn,
html[theme-mode="dark"] .subpage-contact-copy-btn {
  border-color: rgba(100, 116, 139, 0.52);
  background: rgba(15, 23, 42, 0.56);
  color: #e2e8f0;
  box-shadow: 0 1px 2px rgba(2, 6, 23, 0.24);
}

html.dark .subpage-contact-copy-btn--wechat,
html[theme-mode="dark"] .subpage-contact-copy-btn--wechat {
  border-color: rgba(74, 222, 128, 0.46);
  background: rgba(21, 128, 61, 0.2);
  color: #86efac;
}

html.dark .subpage-contact-copy-btn--wechat:hover:not(:disabled),
html[theme-mode="dark"] .subpage-contact-copy-btn--wechat:hover:not(:disabled) {
  border-color: rgba(74, 222, 128, 0.64);
  background: rgba(21, 128, 61, 0.3);
  color: #bbf7d0;
}

html.dark .subpage-contact-copy-btn--email,
html[theme-mode="dark"] .subpage-contact-copy-btn--email {
  border-color: rgba(251, 191, 36, 0.48);
  background: rgba(180, 83, 9, 0.22);
  color: #fcd34d;
}

html.dark .subpage-contact-copy-btn--email:hover:not(:disabled),
html[theme-mode="dark"] .subpage-contact-copy-btn--email:hover:not(:disabled) {
  border-color: rgba(251, 191, 36, 0.66);
  background: rgba(180, 83, 9, 0.32);
  color: #fde68a;
}

html.dark .subpage-contact-send-btn,
html[theme-mode="dark"] .subpage-contact-send-btn {
  color: #ffffff;
}

html.dark .subpage-contact-send-btn:hover,
html[theme-mode="dark"] .subpage-contact-send-btn:hover {
  color: #ffffff;
}

html.dark .subpage-log-head,
html[theme-mode="dark"] .subpage-log-head {
  background: rgba(30, 41, 59, 0.6);
}

html.dark .subpage-log-body,
html[theme-mode="dark"] .subpage-log-body {
  background: rgb(48, 60, 81);
}

html.dark .subpage-log-date,
html[theme-mode="dark"] .subpage-log-date {
  color: #e2e8f0;
}

html.dark .subpage-log-summary,
html[theme-mode="dark"] .subpage-log-summary {
  color: #94a3b8;
}

html.dark .subpage-log-group li,
html[theme-mode="dark"] .subpage-log-group li {
  color: #cbd5e1;
}

html.dark .subpage-log-page-btn,
html[theme-mode="dark"] .subpage-log-page-btn {
  border-color: rgba(100, 116, 139, 0.48);
  background: rgba(30, 41, 59, 0.6);
  color: #e2e8f0;
}

html.dark .subpage-footer-content,
html[theme-mode="dark"] .subpage-footer-content {
  color: #cbd5e1;
}

html.dark .subpage-footer-sep,
html[theme-mode="dark"] .subpage-footer-sep {
  color: #64748b;
}

html.dark .subpage-collection-count,
html[theme-mode="dark"] .subpage-collection-count {
  border-color: rgba(100, 116, 139, 0.42);
  background: rgba(51, 65, 85, 0.45);
  color: #cbd5e1;
}

html.dark .subpage-collection-body,
html[theme-mode="dark"] .subpage-collection-body {
  border-top-color: rgba(100, 116, 139, 0.35);
  background: rgba(15, 23, 42, 0.2);
}

html.dark .subpage-collection-tool,
html[theme-mode="dark"] .subpage-collection-tool {
  color: #cbd5e1;
}

html.dark .subpage-collection-head:hover,
html[theme-mode="dark"] .subpage-collection-head:hover {
  background: rgba(51, 65, 85, 0.28);
}

html.dark .subpage-collection-tool-icon,
html[theme-mode="dark"] .subpage-collection-tool-icon {
  background: rgba(30, 41, 59, 0.82);
  box-shadow: none;
}

html.dark .subpage-collection-tool:hover,
html[theme-mode="dark"] .subpage-collection-tool:hover {
  background: rgba(51, 65, 85, 0.58);
}

@media (max-width: 1024px) {
  .subpage-collections-grid,
  .subpage-contact-grid {
    grid-template-columns: 1fr;
  }

  .subpage-collections-column {
    gap: 16px;
  }

  .subpage-collection-body {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .subpage-contact-grid::after {
    display: none;
  }
}

@media (max-width: 640px) {
  .subpage-collection-head {
    padding: 16px;
    gap: 12px;
  }

  .subpage-collection-head-left {
    gap: 12px;
  }

  .subpage-collection-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .subpage-collection-icon i {
    font-size: 1.125rem;
  }

  .subpage-collection-text h3 {
    font-size: 0.9375rem;
  }

  .subpage-collection-text p {
    font-size: 0.8125rem;
    line-height: 1.65;
  }

  .subpage-collection-body {
    grid-template-columns: 1fr;
    padding: 12px 14px 14px;
    gap: 8px;
  }

  .subpage-collection-tool {
    padding: 8px 10px;
  }
}

@media (max-width: 768px) {
  .subpage-header {
    padding-top: 0.75rem;
    padding-bottom: 1.75rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .subpage-header-inner {
    max-width: none;
  }

  .subpage-mobile-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
  }

  .subpage-mobile-bar.hero-mobile-bar--menu-open {
    justify-content: flex-end;
  }

  .subpage-desktop-actions {
    display: none;
  }

  .subpage-title-main h1 {
    font-size: 1.5rem;
  }

  .subpage-title-wrap {
    margin-top: 1rem;
    gap: 0.75rem;
  }

  .subpage-title-menu-btn {
    display: inline-flex;
  }

  .subpage-title-icon {
    display: none;
  }

  .subpage-main-wrap {
    padding-left: 12px;
    padding-right: 12px;
  }

  .subpage-inline-local-search {
    width: 100%;
    flex: 1 1 100%;
    max-width: none;
    margin-left: 0;
    margin-top: 0.25rem;
  }

  .search-page-header {
    padding-top: 0.6rem;
    padding-bottom: 1.2rem;
  }

  .search-page-hero-nav {
    margin-bottom: 0.8rem;
  }

  .search-page-hero-actions {
    gap: 8px;
  }

  .search-page-hero-actions .font-btn {
    display: none;
  }

  .search-page-title-row {
    display: block;
    margin-top: 0.6rem;
  }

  .search-page-title {
    margin: 0.2rem 0 1rem;
    font-size: 1.35rem;
  }

  .search-page-title-main {
    max-width: none;
  }

  .search-page-search-input {
    min-height: 3.1rem;
    border-radius: 1.15rem;
    font-size: 1rem;
  }

  .search-page-content {
    margin-top: 0.75rem;
  }

  .subpage-title-icon {
    width: 40px;
    height: 40px;
  }

  .subpage-title-icon i {
    font-size: 1.0625rem;
  }

  .subpage-search-wrap {
    max-width: none;
    min-width: 100%;
  }

  .subpage-empty {
    padding: 30px 16px;
  }

  .subpage-log-pagination {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 767px) {
  /* 最近使用：移动端搜索框与上方渐变头部分离 */
  .recent-page-search-wrap {
    margin-top: 1.25rem;
  }
}

@media (min-width: 768px) {
  .search-page-header {
    padding-top: 0.75rem;
    padding-bottom: 1.8rem;
  }

  .search-page-title {
    font-size: 1.8rem;
  }

  .search-page-search-input {
    font-size: 1.125rem;
  }
}

