* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
}

:root {
  --font-size-multiplier: 1;
  --td-bg-color-specialcomponent: #f8fafc;
  --top-header-height: 48px;
  --content-container-width: 100%;
  --content-max-width: 100%;
  --page-gutter: 15px;
  --u-shell-bg: #fefefe;
  --u-shell-panel: #ffffff;
  --u-shell-panel-soft: #f8fafc;
  --u-shell-line: #e5e7eb;
  --u-shell-line-strong: #dbe3ee;
  --u-primary: #2563eb;
  --u-primary-hover: #1d4ed8;
  --u-primary-soft: #eff6ff;
  --u-radius-sm: 0.625rem;
  --u-radius-md: 0.75rem;
  --u-radius-lg: 0.875rem;
  --u-radius-xl: 0.95rem;
  --u-scrollbar-size: 10px;
  --u-scrollbar-track: #f1f5f9;
  --u-scrollbar-thumb: #cbd5e1;
  --u-scrollbar-thumb-hover: #94a3b8;
  --u-scrollbar-thumb-border: #f1f5f9;
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--u-scrollbar-thumb) var(--u-scrollbar-track);
}

*::-webkit-scrollbar {
  width: var(--u-scrollbar-size);
  height: var(--u-scrollbar-size);
}

*::-webkit-scrollbar-track {
  background: var(--u-scrollbar-track);
}

*::-webkit-scrollbar-thumb {
  background: var(--u-scrollbar-thumb);
  border-radius: 9999px;
  border: 2px solid var(--u-scrollbar-thumb-border);
}

*::-webkit-scrollbar-thumb:hover {
  background: var(--u-scrollbar-thumb-hover);
}

.btn-size-sm {
  padding: 0.25rem 0.625rem;
  font-size: 0.875rem;
}

.tool-btn.btn-size-sm {
  min-height: 2rem;
}

.btn-size-md {
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
}

.tool-btn.btn-size-md {
  min-height: 2.25rem;
}

.btn-size-lg {
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
}
html {
  font-size: calc(16px * var(--font-size-multiplier));
}

:focus-visible {
  outline: none !important;
  outline-offset: 0 !important;
}

a,
button,
[role="button"],
.tool-card,
.nav-item {
  -webkit-tap-highlight-color: transparent;
}

a:focus,
a:active,
button:focus,
button:active,
[role="button"]:focus,
[role="button"]:active,
[tabindex]:not(input):not(select):not(textarea):focus,
[tabindex]:not(input):not(select):not(textarea):active {
  outline: none !important;
  outline-offset: 0 !important;
  box-shadow: none !important;
}

a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
[tabindex]:not(input):not(select):not(textarea):focus-visible {
  outline: none !important;
  outline-offset: 0 !important;
  box-shadow: none !important;
}

input:focus,
select:focus,
[tabindex][contenteditable="true"]:focus {
  outline: none !important;
  outline-offset: 0 !important;
}

input:focus-visible,
select:focus-visible,
[tabindex][contenteditable="true"]:focus-visible {
  outline: none !important;
  outline-offset: 0 !important;
}

html.dark .tool-page-main input[type="date"],
html.dark .tool-page-main input[type="time"],
html.dark .tool-page-main input[type="datetime-local"],
html[theme-mode="dark"] .tool-page-main input[type="date"],
html[theme-mode="dark"] .tool-page-main input[type="time"],
html[theme-mode="dark"] .tool-page-main input[type="datetime-local"] {
  color-scheme: dark;
}

button,
input[type="button"],
input[type="submit"],
input[type="reset"],
[role="button"] {
  cursor: pointer;
}

button:disabled,
input[type="button"]:disabled,
input[type="submit"]:disabled,
input[type="reset"]:disabled,
[role="button"][aria-disabled="true"] {
  cursor: not-allowed;
}

body {
  background: #f8fafc;
  color: #1f2937;
}

html.dark body,
html[theme-mode="dark"] body {
  background: #111827;
  color: #e2e8f0;
}

html.dark,
html[theme-mode="dark"] {
  --td-bg-color-specialcomponent: #1f2b3d;
  --u-scrollbar-track: rgba(15, 23, 42, 0.6);
  --u-scrollbar-thumb: rgba(100, 116, 139, 0.8);
  --u-scrollbar-thumb-hover: rgba(148, 163, 184, 0.9);
  --u-scrollbar-thumb-border: rgba(15, 23, 42, 0.6);
  background: #111827;
}

.layout-page {
  min-height: 100vh;
  padding-top: var(--top-header-height);
  background: var(--u-shell-bg);
  --layout-offset: 0px;
}

html.dark .layout-page,
html[theme-mode="dark"] .layout-page {
  background: #111827;
}

.layout-root {
  display: flex;
  width: 100%;
  max-width: none;
  margin: 0;
  min-height: calc(100vh - var(--top-header-height));
  position: relative;
  overflow-x: hidden;
  background: var(--u-shell-bg);
}

html.dark .layout-root,
html[theme-mode="dark"] .layout-root {
  background: var(--td-bg-color-specialcomponent, #1f2b3d);
}

.layout-sidebar {
  position: fixed;
  top: var(--top-header-height);
  left: 0;
  width: 208px;
  min-width: 208px;
  height: calc(100vh - var(--top-header-height));
  background: linear-gradient(180deg, #f8fafc 0%, #f4f7fb 100%);
  border-right: 1px solid var(--u-shell-line);
  display: flex;
  flex-direction: column;
  z-index: 30;
  overflow-x: hidden;
  overflow-y: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
  box-shadow: 8px 0 24px rgba(15, 23, 42, 0.04);
  transition: none;
}

.layout-sidebar::-webkit-scrollbar {
  width: 0;
  height: 0;
}

html.dark .layout-sidebar,
html[theme-mode="dark"] .layout-sidebar {
  background: linear-gradient(180deg, #0f172a 0%, #111827 100%) !important;
  border-right-color: rgba(51, 65, 85, 0.9) !important;
  box-shadow: 10px 0 28px rgba(2, 6, 23, 0.26) !important;
}

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

.layout-sidebar--hidden {
  border-right-color: transparent;
  overflow: hidden;
  transform: translateX(-100%);
}

.layout-sidebar--hidden .nav-group {
  opacity: 0;
  pointer-events: none;
}

.layout-sidebar .nav-group:first-of-type {
  padding-top: 8px;
}

.nav-group {
  padding: 0 8px 10px;
}

.nav-scroll {
  overflow: visible;
  flex: none;
}

.layout-sidebar--hidden .nav-scroll {
  overflow: hidden;
}

.nav-title {
  margin: 0 0 7px;
  padding-left: 12px;
  font-size: 0.65625rem;
  text-transform: uppercase;
  color: #94a3b8;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-align: left;
}

html.dark .nav-title,
html[theme-mode="dark"] .nav-title {
  color: #6b7280;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 2px;
  color: #475569;
  text-decoration: none;
  padding: 7px 11px;
  border-radius: 9px;
  margin-bottom: 3px;
  font-size: 0.9rem;
  border: 1px solid transparent;
  min-height: 2.5rem;
  background: transparent;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.nav-item:focus,
.nav-item:focus-visible {
  outline: none !important;
  outline-offset: 0;
}

.nav-item.active,
.nav-item:active,
.nav-item:hover {
  color: #111827;
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(226, 232, 240, 0.9);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.028);
}

.nav-item.active {
  color: var(--active-color, var(--u-primary));
  border-color: color-mix(
    in srgb,
    var(--active-color, var(--u-primary)) 16%,
    #e2e8f0
  );
  background: color-mix(
    in srgb,
    var(--active-color, var(--u-primary)) 6%,
    #ffffff
  );
  box-shadow: 0 3px 10px
    color-mix(in srgb, var(--active-color, var(--u-primary)) 7%, transparent);
}

html.dark .nav-item,
html[theme-mode="dark"] .nav-item {
  color: #cbd5e1;
}

html.dark .nav-item.active,
html.dark .nav-item:active,
html.dark .nav-item:hover,
html[theme-mode="dark"] .nav-item.active,
html[theme-mode="dark"] .nav-item:active,
html[theme-mode="dark"] .nav-item:hover {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(71, 85, 105, 0.74);
  box-shadow: 0 6px 14px rgba(2, 6, 23, 0.14);
}

html.dark .nav-item.active,
html[theme-mode="dark"] .nav-item.active {
  color: var(--active-color, #818cf8);
  border-color: color-mix(
    in srgb,
    var(--active-color, #818cf8) 18%,
    rgba(51, 65, 85, 0.7)
  );
  background: color-mix(
    in srgb,
    var(--active-color, #818cf8) 10%,
    rgba(51, 65, 85, 0.42)
  );
  box-shadow: 0 6px 14px
    color-mix(in srgb, var(--active-color, #818cf8) 7%, transparent);
}

.nav-icon-wrap {
  width: 22px;
  margin-right: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-icon {
  font-size: 0.8125rem;
  color: #94a3b8;
  transition: color 0.2s ease;
}

.nav-item:hover .nav-icon {
  color: #2563eb;
}

.nav-item.active .nav-icon {
  color: var(--active-color, #6366f1);
}

html.dark .nav-icon,
html[theme-mode="dark"] .nav-icon {
  color: #64748b;
}

html.dark .nav-item.active .nav-icon,
html[theme-mode="dark"] .nav-item.active .nav-icon {
  color: var(--active-color, #818cf8);
}

html.dark .nav-item:hover .nav-icon,
html[theme-mode="dark"] .nav-item:hover .nav-icon {
  color: #cbd5e1;
}

.nav-bottom {
  margin-top: 6px;
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 8px);
}

.layout-main {
  flex: 1;
  width: auto;
  min-height: calc(100vh - var(--top-header-height));
  min-width: 0;
  margin-left: 208px;
  position: relative;
  border-right: 0;
  background: transparent;
  transition: none;
}

.layout-main::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1px;
  background: var(--u-shell-line);
  pointer-events: none;
}

html.dark .layout-main,
html[theme-mode="dark"] .layout-main {
  border-right-color: transparent;
}

html.dark .layout-main::before,
html[theme-mode="dark"] .layout-main::before {
  background: transparent;
}

.layout-main--collapsed {
  margin-left: 0;
  width: 100%;
}

.layout-main--collapsed::before {
  left: 0;
}

.home-hero {
  position: relative;
  overflow: hidden;
  padding: 10px 20px 18px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 78%);
  border-bottom: 1px solid var(--u-shell-line);
}

.home-hero::after {
  display: none;
}

.home-hero__glow {
  display: none;
}

.home-hero__orb {
  position: absolute;
  border-radius: 9999px;
  filter: blur(72px);
}

.home-hero__orb--top {
  width: 16rem;
  height: 16rem;
  top: -4rem;
  right: 4%;
  background: rgba(255, 255, 255, 0.42) !important;
}

.home-hero__orb--bottom {
  width: 18rem;
  height: 18rem;
  bottom: -8rem;
  left: -4rem;
  background: rgba(196, 181, 253, 0.2) !important;
}

.home-hero > *:not(.home-hero__glow) {
  position: relative;
  z-index: 1;
}

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

html.dark .home-hero::after,
html[theme-mode="dark"] .home-hero::after {
  background: linear-gradient(
    90deg,
    rgba(71, 85, 105, 0),
    rgba(99, 102, 241, 0.35),
    rgba(71, 85, 105, 0)
  );
}

.hero-mobile-bar,
.hero-desktop-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-desktop-bar {
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 6px;
  position: relative;
  z-index: 40;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-mobile-bar {
  position: relative;
  z-index: 40;
}

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

.icon-btn,
.locale-btn {
  border: 1px solid var(--u-shell-line-strong);
  background: rgba(255, 255, 255, 0.98);
  color: #4b5563;
  height: 38px;
  border-radius: 10px;
  padding: 0 12px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  transition: all 0.25s ease;
}

.icon-btn {
  width: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.home-hero__actions .icon-btn i,
.home-hero__mobile-nav .icon-btn i {
  font-size: 1rem;
}

.font-btn {
  font-size: 0.9375rem;
  font-weight: 700;
}

.font-size-wrap {
  position: relative;
}

.font-size-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 160px;
  border-radius: 10px;
  border: 1px solid var(--u-shell-line);
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1);
  overflow: hidden;
  z-index: 2147483647;
}

.font-size-item {
  width: 100%;
  border: none;
  background: transparent;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #4b5563;
  font-size: 0.8125rem;
  cursor: pointer;
  text-align: left;
}

.font-size-item:hover {
  background: #f8fafc;
}

.font-size-item.is-active {
  color: #4f46e5;
  background: rgba(79, 70, 229, 0.08);
}

.font-size-item i {
  font-size: 0.75rem;
}

html.dark .font-size-menu,
html[theme-mode="dark"] .font-size-menu {
  border-color: rgba(100, 116, 139, 0.42);
  background: #111827;
}

html.dark .font-size-item,
html[theme-mode="dark"] .font-size-item {
  color: #cbd5e1;
}

html.dark .font-size-item:hover,
html[theme-mode="dark"] .font-size-item:hover {
  background: rgba(51, 65, 85, 0.46);
}

html.dark .font-size-item.is-active,
html[theme-mode="dark"] .font-size-item.is-active {
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.22);
}

.home-hero__actions .icon-btn:hover,
.home-hero__actions .locale-btn:hover,
.home-hero__mobile-nav .icon-btn:hover {
  background: #ffffff;
  border-color: #bfdbfe;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.08);
}

html.dark .icon-btn,
html.dark .locale-btn,
html[theme-mode="dark"] .icon-btn,
html[theme-mode="dark"] .locale-btn {
  border-color: rgba(71, 85, 105, 0.82);
  background: rgba(31, 43, 61, 0.96);
  color: #e2e8f0;
  box-shadow: 0 8px 22px rgba(2, 6, 23, 0.18);
}

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

.locale-btn {
  font-size: 0.875rem;
}

.hero-content {
  max-width: 40rem;
  margin: 4px auto 0;
  text-align: center;
}

.hero-title {
  margin: 0;
  color: #1f2937;
  letter-spacing: -0.03em;
  margin-bottom: 0.3rem;
  font-size: 1.5rem;
  line-height: 1.08;
  font-weight: 800;
}

.hero-desc {
  margin: 0 auto;
  margin-bottom: 0.65rem;
  color: #5b6475;
  line-height: 1.45;
  max-width: 34rem;
  white-space: normal;
  font-size: 0.94rem;
}

html.dark .hero-desc,
html[theme-mode="dark"] .hero-desc {
  color: #cbd5e1;
}

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

.home-hero__tooltip-trigger {
  display: inline-block;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: help;
}

.home-hero__tooltip--free .home-hero__tooltip-trigger {
  color: #db2777;
}

.home-hero__tooltip--safe .home-hero__tooltip-trigger {
  color: #2563eb;
}

.home-hero__tooltip--offline .home-hero__tooltip-trigger {
  color: #0f766e;
}

.home-hero__tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.home-hero__tooltip-panel {
  position: absolute;
  left: 50%;
  top: calc(100% + 6px);
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-4px);
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(199, 210, 254, 0.9);
  border-radius: var(--u-radius-md);
  background: rgba(255, 255, 255, 0.96);
  width: -moz-max-content;
  width: max-content;
  max-width: min(40rem, calc(100vw - 18rem));
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(12px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.home-hero__tooltip-panel::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -6px;
  width: 10px;
  height: 10px;
  border-left: 1px solid rgba(199, 210, 254, 0.9);
  border-top: 1px solid rgba(199, 210, 254, 0.9);
  background: rgba(255, 255, 255, 0.96);
  transform: translateX(-50%) rotate(45deg);
}

.home-hero__tooltip--free .home-hero__tooltip-panel {
  border-color: rgba(244, 114, 182, 0.35);
}

.home-hero__tooltip--safe .home-hero__tooltip-panel {
  border-color: rgba(96, 165, 250, 0.4);
}

.home-hero__tooltip--offline .home-hero__tooltip-panel {
  border-color: rgba(45, 212, 191, 0.4);
}

.home-hero__tooltip--free .home-hero__tooltip-panel::before {
  border-left-color: rgba(244, 114, 182, 0.35);
  border-top-color: rgba(244, 114, 182, 0.35);
}

.home-hero__tooltip--safe .home-hero__tooltip-panel::before {
  border-left-color: rgba(96, 165, 250, 0.4);
  border-top-color: rgba(96, 165, 250, 0.4);
}

.home-hero__tooltip--offline .home-hero__tooltip-panel::before {
  border-left-color: rgba(45, 212, 191, 0.4);
  border-top-color: rgba(45, 212, 191, 0.4);
}

.home-hero__tooltip:hover .home-hero__tooltip-panel,
.home-hero__tooltip:focus-within .home-hero__tooltip-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

html.dark .home-hero__tooltip--free .home-hero__tooltip-trigger,
html[theme-mode="dark"] .home-hero__tooltip--free .home-hero__tooltip-trigger {
  color: #f9a8d4;
}

html.dark .home-hero__tooltip--safe .home-hero__tooltip-trigger,
html[theme-mode="dark"] .home-hero__tooltip--safe .home-hero__tooltip-trigger {
  color: #93c5fd;
}

html.dark .home-hero__tooltip--offline .home-hero__tooltip-trigger,
html[theme-mode="dark"]
  .home-hero__tooltip--offline
  .home-hero__tooltip-trigger {
  color: #5eead4;
}

html.dark .home-hero__tooltip-panel,
html[theme-mode="dark"] .home-hero__tooltip-panel {
  border-color: rgba(99, 102, 241, 0.35);
  background: rgba(15, 23, 42, 0.94);
  color: #e2e8f0;
  box-shadow: 0 18px 36px rgba(2, 6, 23, 0.32);
}

html.dark .home-hero__tooltip-panel::before,
html[theme-mode="dark"] .home-hero__tooltip-panel::before {
  border-left-color: rgba(99, 102, 241, 0.35);
  border-top-color: rgba(99, 102, 241, 0.35);
  background: rgba(15, 23, 42, 0.94);
}

.hero-search-wrap {
  margin: 0.65rem auto 0;
  max-width: 38rem;
}

.hero-search-field {
  position: relative;
}

.hero-search {
  width: 100%;
  border: 1px solid var(--u-shell-line-strong);
  border-radius: 10px;
  padding: 10px 112px 10px 40px;
  background: #ffffff;
  color: #111827;
  box-shadow: none;
  min-height: 2.9rem;
  font-size: 0.96rem;
}

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

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

html.dark .hero-search,
html[theme-mode="dark"] .hero-search {
  border-color: rgba(71, 85, 105, 0.68);
  background: rgba(31, 43, 61, 0.92);
  color: #f8fafc;
  box-shadow: none;
}

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

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

html.dark .hero-search-action,
html[theme-mode="dark"] .hero-search-action {
  background: rgba(51, 65, 85, 0.8);
  color: #cbd5e1;
}

.hero-search-icon,
.hero-search-action,
.hero-search-clear {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.hero-search-icon {
  left: 14px;
  color: #94a3b8;
}

.hero-search-action,
.hero-search-clear {
  cursor: pointer;
  transition: all 0.2s ease;
}

.hero-search-action:hover {
  background: #e2e8f0;
  color: #1f2937;
}

.hero-search-clear:hover {
  color: #475569;
}

.hero-search-action {
  right: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  height: calc(100% - 2px);
  padding: 0 14px;
  border: none;
  border-radius: 0 9px 9px 0;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.875rem;
  font-weight: 600;
}

.hero-search-action-icon {
  display: none;
  font-size: 0.82rem;
}

.hero-search-action-text {
  display: inline;
}

.hero-search-clear {
  right: 84px;
  border: none;
  background: none;
  color: #94a3b8;
}

.hero-search-suggestions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.hero-search-suggestion {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  border-radius: 10px;
  padding: 5px 12px;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition: all 0.18s ease;
}

.hero-search-suggestion:hover {
  border-color: #cbd5e1;
  background: #f1f5f9;
  color: #1f2937;
}

html.dark .hero-search-action:hover,
html[theme-mode="dark"] .hero-search-action:hover {
  background: rgba(71, 85, 105, 0.82);
  color: #f8fafc;
}

html.dark .hero-search-suggestion,
html[theme-mode="dark"] .hero-search-suggestion {
  border-color: rgba(71, 85, 105, 0.72);
  background: rgba(51, 65, 85, 0.45);
  color: #cbd5e1;
}

html.dark .hero-search-suggestion:hover,
html[theme-mode="dark"] .hero-search-suggestion:hover {
  border-color: rgba(100, 116, 139, 0.85);
  background: rgba(71, 85, 105, 0.55);
  color: #f1f5f9;
}

.home-main-wrap {
  width: 100%;
  max-width: var(--content-container-width);
  margin: 0 auto;
  padding: 15px var(--page-gutter) 0;
  box-sizing: border-box;
}

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

.search-box {
  margin: 35px auto 15px auto;
  width: 100%;
  max-width: 1200px;
}

.category-page .category-top-search {
  margin-top: 0;
}

.home-main-search {
  margin-bottom: 18px;
}

.home-main-search__wrap {
  margin-top: 0;
}

.home-feed {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.home-panel {
  padding: 0 0 22px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  background: transparent;
  box-shadow: none;
}

.home-panel + .home-panel {
  padding-top: 18px;
}

.home-panel:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.home-panel__header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}

.home-panel__title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.home-panel__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--panel-accent, #2563eb) 14%, #ffffff);
  color: var(--panel-accent, #2563eb);
  border: 1px solid color-mix(in srgb, var(--panel-accent, #2563eb) 18%, #dbeafe);
  flex-shrink: 0;
}

html.dark .home-panel__icon,
html[theme-mode="dark"] .home-panel__icon {
  background: color-mix(
    in srgb,
    var(--panel-accent, #2563eb) 16%,
    rgba(17, 24, 39, 0.98)
  );
  color: color-mix(in srgb, var(--panel-accent, #2563eb) 72%, #eff6ff);
  border-color: color-mix(
    in srgb,
    var(--panel-accent, #2563eb) 20%,
    rgba(71, 85, 105, 0.72)
  );
}

.home-panel__title {
  margin: 0 0 4px;
  color: #0f172a;
  font-size: 1.08rem;
  font-weight: 700;
}

.home-panel__desc {
  margin: 0;
  color: #64748b;
  font-size: 0.88rem;
  line-height: 1.5;
}

.home-panel__notice {
  margin: -2px 0 12px;
  color: #9a3412;
  font-size: 0.8125rem;
}

.home-feed__grid {
  gap: 14px;
}

.home-article-viewer {
  margin-top: 0;
}

.home-article-viewer + .home-article-viewer {
  margin-top: 18px;
}

.home-article-viewer .tool-markdown-doc {
  margin-top: 0;
}

.home-panel--articles .tool-markdown-doc {
  padding-top: 0;
}

html.dark .home-panel,
html[theme-mode="dark"] .home-panel {
  border-bottom-color: rgba(71, 85, 105, 0.72);
}

html.dark .home-panel__title,
html[theme-mode="dark"] .home-panel__title,
html.dark .tool-markdown-title,
html[theme-mode="dark"] .tool-markdown-title {
  color: #f8fafc;
}

html.dark .home-panel__desc,
html[theme-mode="dark"] .home-panel__desc {
  color: #94a3b8;
}

html.dark .home-panel__notice,
html[theme-mode="dark"] .home-panel__notice {
  color: #fdba74;
}

.home-category-section {
  padding: 0 2px 1.2rem;
}

.home-category-section--with-border {
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--u-shell-line);
}

html.dark .home-category-section--with-border,
html[theme-mode="dark"] .home-category-section--with-border {
  border-bottom-color: rgba(100, 116, 139, 0.35);
}

.category-head,
.home-category__header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 0.95rem;
}

.home-category__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--u-radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

html.dark .home-category__icon,
html[theme-mode="dark"] .home-category__icon {
  box-shadow: 0 8px 18px rgba(2, 6, 23, 0.12);
}

.category-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

html.dark .category-title,
html[theme-mode="dark"] .category-title {
  color: #f1f5f9;
}

.category-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  font-size: 0.75rem;
  border: 1px solid rgba(226, 232, 240, 0.72);
  background: rgba(255, 255, 255, 0.52);
  color: #94a3b8;
  font-weight: 600;
  padding: 0 10px;
}

html.dark .category-count,
html[theme-mode="dark"] .category-count {
  border-color: rgba(100, 116, 139, 0.24);
  background: rgba(51, 65, 85, 0.24);
  color: #94a3b8;
}

.tool-grid {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.tool-card {
  display: block;
  text-decoration: none;
  border: 1px solid
    color-mix(in srgb, var(--tool-hover-color, #93c5fd) 14%, #e5e7eb);
  border-radius: 0.95rem;
  padding: 1.2rem;
  color: inherit;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--tool-hover-color, #93c5fd) 8%, #ffffff) 0%,
    #ffffff 72%
  );
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.tool-card--with-badge {
  padding-top: 1.85rem;
}

.tool-card__favorite {
  position: absolute;
  bottom: 0.62rem;
  right: 0.62rem;
  width: 28px;
  height: 28px;
  border-radius: 9999px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.86);
  color: #94a3b8;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(2px);
  transition: all 0.25s ease;
  z-index: 2;
}

.tool-card__badge {
  position: absolute;
  top: 0.52rem;
  right: 0.62rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.8rem;
  max-width: 4.8rem;
  padding: 0 0.65rem;
  height: 1.55rem;
  border-radius: 9999px;
  background: color-mix(in srgb, var(--tool-badge-color, #60a5fa) 12%, #ffffff);
  color: color-mix(in srgb, var(--tool-badge-color, #60a5fa) 80%, #1e293b);
  border: 1px solid color-mix(in srgb, var(--tool-badge-color, #60a5fa) 18%, #dbeafe);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  z-index: 3;
  pointer-events: none;
}

.tool-card:hover .tool-card__favorite {
  opacity: 1;
  transform: translateY(0);
}

.tool-card__favorite i {
  font-size: 0.75rem;
}

.tool-card__favorite:hover {
  color: #ef4444;
  border-color: rgba(248, 113, 113, 0.45);
}

.tool-card__favorite.is-active {
  color: #ef4444;
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(254, 242, 242, 0.95);
}

.tool-card__favorite--pinned {
  opacity: 1;
  transform: translateY(0);
}

.tool-card:hover {
  border-color: color-mix(in srgb, var(--tool-hover-color, #60a5fa) 28%, #bfdbfe);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

.tool-card--last-opened,
.tool-card--last-opened:hover {
  border-color: var(--tool-hover-color);
}

html.dark .tool-card,
html[theme-mode="dark"] .tool-card {
  border-color: rgba(71, 85, 105, 0.58);
  background: linear-gradient(
    180deg,
    rgba(31, 43, 61, 0.94) 0%,
    rgba(25, 36, 52, 0.96) 100%
  );
  box-shadow: 0 8px 18px rgba(2, 6, 23, 0.1);
}

html.dark .tool-card:hover,
html[theme-mode="dark"] .tool-card:hover {
  border-color: color-mix(
    in srgb,
    var(--tool-hover-color) 22%,
    rgba(148, 163, 184, 0.32)
  );
  background: linear-gradient(
    180deg,
    rgba(40, 55, 78, 0.9) 0%,
    rgba(31, 43, 61, 0.94) 100%
  );
  box-shadow: 0 10px 22px rgba(2, 6, 23, 0.12);
}

html.dark .tool-card--last-opened,
html.dark .tool-card--last-opened:hover,
html[theme-mode="dark"] .tool-card--last-opened,
html[theme-mode="dark"] .tool-card--last-opened:hover {
  border-color: var(--tool-hover-color);
}

.tool-card__header {
  display: flex;
  align-items: center;
  -moz-column-gap: 0.68rem;
       column-gap: 0.68rem;
  margin-bottom: 0.72rem;
}

.tool-card--with-badge .tool-card__header {
  padding-right: 0;
}

.tool-card__icon {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.875rem;
  border: 1px solid
    color-mix(in srgb, var(--tool-hover-color, #93c5fd) 15%, #e5e7eb);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tool-card__icon i {
  font-size: 1.04rem;
}

.tool-card:hover .tool-card__icon {
  background: color-mix(in srgb, var(--tool-hover-color) 10%, white);
}

.tool-card__title {
  margin: 0;
  color: #0f172a;
  font-size: 0.98rem;
  line-height: 1.32;
  font-weight: 680;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tool-card:hover .tool-card__title {
  color: var(--tool-hover-color);
}

.tool-card__desc {
  margin: 0;
  color: #64748b;
  font-size: 0.88rem;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

html.dark .tool-card__icon,
html[theme-mode="dark"] .tool-card__icon {
  border-color: rgba(71, 85, 105, 0.72);
  background: linear-gradient(
    180deg,
    rgba(71, 85, 105, 0.16) 0%,
    rgba(51, 65, 85, 0.1) 100%
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  color: color-mix(
    in srgb,
    var(--tool-hover-color) 84%,
    rgba(226, 232, 240, 0.06)
  ) !important;
}

html.dark .tool-card__badge,
html[theme-mode="dark"] .tool-card__badge {
  background: color-mix(in srgb, var(--tool-badge-color, #60a5fa) 16%, rgba(17, 24, 39, 0.96));
  color: color-mix(in srgb, var(--tool-badge-color, #60a5fa) 72%, #eff6ff);
  border-color: color-mix(in srgb, var(--tool-badge-color, #60a5fa) 20%, rgba(71, 85, 105, 0.72));
}

html.dark .tool-card__icon i,
html.dark .tool-card__icon svg,
html[theme-mode="dark"] .tool-card__icon i,
html[theme-mode="dark"] .tool-card__icon svg {
  color: inherit !important;
}

html.dark .tool-card__favorite,
html[theme-mode="dark"] .tool-card__favorite {
  border-color: rgba(100, 116, 139, 0.38);
  background: rgba(30, 41, 59, 0.8);
  color: #94a3b8;
}

html.dark .tool-card__favorite.is-active,
html[theme-mode="dark"] .tool-card__favorite.is-active {
  color: #fda4af;
  border-color: rgba(251, 113, 133, 0.45);
  background: rgba(127, 29, 29, 0.35);
}

html.dark .tool-card:hover .tool-card__icon,
html[theme-mode="dark"] .tool-card:hover .tool-card__icon {
  background: color-mix(
    in srgb,
    var(--tool-hover-color) 10%,
    rgba(51, 65, 85, 0.22)
  ) !important;
  color: color-mix(
    in srgb,
    var(--tool-hover-color) 72%,
    rgba(226, 232, 240, 0.12)
  ) !important;
}

html.dark .tool-card__title,
html[theme-mode="dark"] .tool-card__title {
  color: #f8fafc;
}

html.dark .tool-card:hover .tool-card__title,
html[theme-mode="dark"] .tool-card:hover .tool-card__title {
  color: color-mix(in srgb, var(--tool-hover-color) 48%, #f8fafc 52%);
}

html.dark .tool-card__desc,
html[theme-mode="dark"] .tool-card__desc {
  color: #94a3b8 !important;
}

.category-actions {
  margin-top: 1.4rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.home-category__btn {
  min-width: 8rem;
  justify-content: center;
  border-radius: 999px;
  padding: 0.66rem 1.2rem;
  font-weight: 600;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.load-more-btn {
  border: 1px solid rgba(59, 130, 246, 0.24);
  color: #ffffff;
  background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.16);
  cursor: pointer;
  transition: all 0.3s ease;
}

.load-more-btn:hover {
  border-color: rgba(37, 99, 235, 0.3);
  background: linear-gradient(135deg, #7cb6fb 0%, #2563eb 100%);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
}

.view-more-btn {
  border: 1px solid #dbe3ee;
  color: #334155;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
  transition: all 0.3s ease;
  text-decoration: none;
}

.view-more-btn:hover {
  background: #f8fbff;
  border-color: #bfdbfe;
  color: #2563eb;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.08);
}

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

html.dark .view-more-btn:hover,
html[theme-mode="dark"] .view-more-btn:hover {
  background: rgba(30, 41, 59, 0.98);
  border-color: rgba(96, 165, 250, 0.42);
  color: #eff6ff;
  box-shadow: 0 12px 24px rgba(30, 64, 175, 0.18);
}

html.dark .load-more-btn,
html[theme-mode="dark"] .load-more-btn {
  background: linear-gradient(
    135deg,
    rgba(96, 165, 250, 0.88) 0%,
    rgba(37, 99, 235, 0.84) 100%
  );
  border-color: rgba(96, 165, 250, 0.22);
  box-shadow: 0 8px 18px rgba(30, 64, 175, 0.2);
}

html.dark .load-more-btn:hover,
html[theme-mode="dark"] .load-more-btn:hover {
  background: linear-gradient(
    135deg,
    rgba(125, 178, 252, 0.9) 0%,
    rgba(37, 99, 235, 0.86) 100%
  );
  box-shadow: 0 12px 24px rgba(30, 64, 175, 0.24);
}

.site-footer {
  margin-top: 24px;
  padding: 20px 20px 20px;
  text-align: center;
  color: #4b5563;
  font-size: 0.8125rem;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  background: transparent;
}

html.dark .site-footer,
html[theme-mode="dark"] .site-footer {
  color: #cbd5e1;
  border-top-color: rgba(100, 116, 139, 0.2);
  background: linear-gradient(
    180deg,
    rgba(27, 42, 66, 0.9) 0%,
    rgba(22, 35, 58, 0.92) 100%
  );
}

.footer-shield {
  margin-right: 4px;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: #3b82f6;
}

html.dark .site-footer a,
html[theme-mode="dark"] .site-footer a {
  color: inherit;
}

html.dark .site-footer a:hover,
html[theme-mode="dark"] .site-footer a:hover {
  color: #a5b4fc;
}

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

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

.sidebar-mask {
  display: none;
}

.hero-mobile-bar {
  display: none;
}

.category-page .category-hero {
  position: relative;
  overflow: hidden;
  padding: 0.85rem 1rem 1.2rem;
  border-bottom: 1px solid var(--u-shell-line);
  border-radius: 0 0 0 0;
  width: 100%;
  box-sizing: border-box;
  background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
}

.category-page .layout-main {
  display: flex;
  flex-direction: column;
}

.category-page .home-hero__actions {
  position: absolute;
  top: 1.5rem;
  right: 0;
  z-index: 3;
  margin-bottom: 14px;
}

.category-page .home-hero__mobile-nav {
  margin-bottom: 0.75rem;
}

.category-page .category-hero::after {
  display: none;
}

.category-page .category-hero .icon-btn,
.category-page .category-hero .locale-btn {
  border: 1px solid var(--u-shell-line-strong);
  background: rgba(255, 255, 255, 0.98);
  color: #475569;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.category-page .category-hero .icon-btn:hover,
.category-page .category-hero .locale-btn:hover {
  border-color: #bfdbfe;
  background: #ffffff;
}

.category-page .category-hero .font-btn {
  font-size: 0.9375rem;
  font-weight: 700;
}

.category-page .category-hero .font-btn span {
  display: inline-block;
  line-height: 1;
}

.category-page .category-hero .locale-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

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

.category-page .layout-main.layout-main--collapsed .category-hero__inner {
  max-width: var(--content-container-width);
}

.category-page .category-hero__title-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.category-page .category-hero__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.22);
  border: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
  color: #ffffff;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.category-page .category-hero__menu-btn {
  display: none;
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.category-page .category-hero__text {
  min-width: 0;
}

.category-page .category-hero__title {
  margin: 0 0 0.25rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.375rem;
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 1px 1px rgba(15, 23, 42, 0.18);
}

.category-page .category-hero__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
}

.category-page .category-hero__desc {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  line-height: 1.5;
  opacity: 0.9;
}

.category-page .category-content-wrap {
  position: relative;
  flex: 1 0 auto;
  width: 100%;
  max-width: var(--content-container-width);
  margin: 0 auto;
  padding: 24px var(--page-gutter) 0;
  min-height: 420px;
  background: transparent;
  box-sizing: border-box;
}

.category-page .site-footer {
  margin-top: auto;
}

.category-page .category-tool-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.category-page .category-list-wrap {
  margin-top: 12px;
}

.category-page .category-groups-wrap {
  margin-top: 0;
}

.category-page .category-group {
  padding-bottom: 26px;
}

.category-page .category-group--spaced {
  margin-top: 22px;
}

.category-page .category-group__header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  border: none;
  background: transparent;
  text-align: left;
  padding: 0;
  margin-bottom: 12px;
  color: #475569;
  cursor: pointer;
}

.category-page .category-group__arrow {
  font-size: 0.6875rem;
  color: #9ca3af;
  transition: transform 0.2s ease;
}

.category-page .category-group__arrow.is-open {
  transform: rotate(90deg);
}

.category-page .category-group__tag-icon {
  color: #64748b;
  font-size: 0.875rem;
}

.category-page .category-group__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #334155;
}

.category-page .category-group__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(241, 245, 249, 0.95);
  color: #64748b;
  font-size: 0.75rem;
}

.category-page .category-empty__desc {
  margin: -6px 0 14px;
  color: #94a3b8;
}

.category-page .category-empty {
  border-radius: 14px;
  border: 1px solid var(--u-shell-line);
  background: rgba(255, 255, 255, 0.96);
  text-align: center;
  padding: 56px 20px;
  color: #64748b;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.category-page .category-empty__icon {
  font-size: 2.625rem;
  color: #cbd5e1;
  margin-bottom: 16px;
}

.category-page .category-empty__title {
  margin: 0 0 18px;
  color: #334155;
  font-size: 1.125rem;
  font-weight: 600;
}

.category-page .category-empty__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(129, 140, 248, 0.28);
  border-radius: 999px;
  min-width: 108px;
  height: 38px;
  color: #4f46e5;
  background: rgba(238, 242, 255, 0.88);
  text-decoration: none;
  cursor: pointer;
  font-size: 0.875rem;
}

.category-page .category-empty__btn:hover {
  background: rgba(224, 231, 255, 0.96);
}

.category-page .category-hero__inner--empty {
  padding-top: 24px;
  padding-bottom: 14px;
}

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

html.dark .category-page i[style*="--category-icon-color"],
html.dark .category-page span[style*="--category-icon-color"],
html[theme-mode="dark"] .category-page i[style*="--category-icon-color"],
html[theme-mode="dark"] .category-page span[style*="--category-icon-color"] {
  color: var(--category-icon-color) !important;
}

html.dark .category-page .category-empty,
html[theme-mode="dark"] .category-page .category-empty {
  border-color: rgba(100, 116, 139, 0.28);
  background: rgba(36, 54, 79, 0.72);
  color: #94a3b8;
}

html.dark .category-page .category-content-wrap,
html[theme-mode="dark"] .category-page .category-content-wrap {
  background: transparent;
}

html.dark .category-page .category-search-input,
html[theme-mode="dark"] .category-page .category-search-input {
  border-color: rgba(71, 85, 105, 0.82);
  background: rgba(15, 23, 42, 0.92);
  color: #e5e7eb;
  box-shadow: 0 8px 20px rgba(2, 6, 23, 0.18);
}

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

html.dark .category-page .category-search-input::placeholder,
html[theme-mode="dark"] .category-page .category-search-input::placeholder {
  color: #6b7280;
}

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

html.dark .category-page .category-search-input:focus,
html[theme-mode="dark"] .category-page .category-search-input:focus {
  border-color: rgba(96, 165, 250, 0.6);
  background: rgba(15, 23, 42, 0.96);
  box-shadow:
    0 8px 20px rgba(2, 6, 23, 0.24),
    0 0 0 4px rgba(59, 130, 246, 0.14);
}

html.dark .category-page .category-search-icon,
html.dark .category-page .category-search-clear,
html[theme-mode="dark"] .category-page .category-search-icon,
html[theme-mode="dark"] .category-page .category-search-clear {
  color: #6b7280;
}

html.dark .category-page .category-group__title,
html[theme-mode="dark"] .category-page .category-group__title {
  color: #cbd5e1;
}

html.dark .category-page .category-group__tag-icon,
html[theme-mode="dark"] .category-page .category-group__tag-icon {
  color: #94a3b8;
}

html.dark .category-page .category-group__count,
html[theme-mode="dark"] .category-page .category-group__count {
  background: rgba(51, 65, 85, 0.7);
  color: #94a3b8;
}

html.dark .category-page .category-empty__icon,
html[theme-mode="dark"] .category-page .category-empty__icon {
  color: #64748b;
}

html.dark .category-page .category-empty__title,
html[theme-mode="dark"] .category-page .category-empty__title {
  color: #e2e8f0;
}

html.dark .category-page .category-empty__btn,
html[theme-mode="dark"] .category-page .category-empty__btn {
  border-color: rgba(129, 140, 248, 0.36);
  color: #c7d2fe;
  background: rgba(51, 65, 85, 0.5);
}

html.dark .category-page .category-empty__btn:hover,
html[theme-mode="dark"] .category-page .category-empty__btn:hover {
  background: rgba(71, 85, 105, 0.56);
}

.no-flex-gap .hero-desktop-bar > * + * {
  margin-left: 10px;
}

.no-flex-gap .flex.gap-2 > * + *,
.no-flex-gap .inline-flex.gap-2 > * + * {
  margin-left: 0.5rem;
}

.no-flex-gap .flex.flex-col.gap-2 > * + *,
.no-flex-gap .inline-flex.flex-col.gap-2 > * + * {
  margin-top: 0.5rem;
  margin-left: 0;
}

.no-flex-gap .flex.flex-wrap.gap-2,
.no-flex-gap .inline-flex.flex-wrap.gap-2 {
  margin-top: -0.5rem;
  margin-left: -0.5rem;
}

.no-flex-gap .flex.flex-wrap.gap-2 > *,
.no-flex-gap .inline-flex.flex-wrap.gap-2 > * {
  margin-top: 0.5rem;
  margin-left: 0.5rem;
}

.no-flex-gap .flex.gap-3 > * + *,
.no-flex-gap .inline-flex.gap-3 > * + * {
  margin-left: 0.75rem;
}

.no-flex-gap .flex.flex-col.gap-3 > * + *,
.no-flex-gap .inline-flex.flex-col.gap-3 > * + * {
  margin-top: 0.75rem;
  margin-left: 0;
}

.no-flex-gap .flex.flex-wrap.gap-3,
.no-flex-gap .inline-flex.flex-wrap.gap-3 {
  margin-top: -0.75rem;
  margin-left: -0.75rem;
}

.no-flex-gap .flex.flex-wrap.gap-3 > *,
.no-flex-gap .inline-flex.flex-wrap.gap-3 > * {
  margin-top: 0.75rem;
  margin-left: 0.75rem;
}

.no-flex-gap .category-page .category-hero__title-row > * + * {
  margin-left: 14px;
}

.no-flex-gap .category-page .category-hero .locale-btn > * + * {
  margin-left: 6px;
}

.no-flex-gap .category-page .category-hero__title > * + * {
  margin-left: 6px;
}

.no-flex-gap .category-page .category-group__header > * + * {
  margin-left: 8px;
}

.no-flex-gap .nav-item > * + * {
  margin-left: 2px;
}

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

.no-flex-gap .category-head > * + *,
.no-flex-gap .home-category__header > * + * {
  margin-left: 10px;
}

.no-flex-gap .tool-card__header > * + * {
  margin-left: 0.68rem;
}

.no-flex-gap .home-category__btn > * + * {
  margin-left: 0.5rem;
}

.no-flex-gap .category-actions {
  margin-left: -8px;
  margin-right: -8px;
}

.no-flex-gap .category-actions > * {
  margin-left: 8px;
  margin-right: 8px;
  margin-top: 0.35rem;
  margin-bottom: 0.35rem;
}

@media (max-width: 1024px) {
  .tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-page .category-tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tool-card__favorite {
    display: none;
  }
}

@media (max-width: 768px) {
  .layout-sidebar {
    position: fixed;
    display: block;
    top: var(--top-header-height);
    left: 0;
    transform: translateX(-100%);
    width: 236px;
    min-width: 236px;
    height: calc(100vh - var(--top-header-height));
    padding-top: 8px;
  }

  .layout-sidebar.layout-sidebar--open {
    transform: translateX(0) !important;
  }

  .layout-sidebar.layout-sidebar--hidden {
    transform: translateX(-100%);
    width: 236px;
    min-width: 236px;
    border-right-color: #e5e7eb;
  }

  .nav-group {
    padding-left: 10px;
    padding-right: 10px;
  }

  .nav-title {
    padding-left: 12px;
  }

  .sidebar-mask {
    display: block;
    position: fixed;
    top: var(--top-header-height);
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 20;
  }

  .hero-mobile-bar {
    display: flex;
  }

  .home-main-wrap {
    padding-left: 18px;
  }

  .layout-main,
  .layout-main--collapsed {
    margin-left: 0;
  }

  .layout-main::before {
    left: 0;
  }

  .hero-desktop-bar {
    display: none;
  }

  .hero-search {
    padding: 8px 84px 8px 36px;
    min-height: 2.7rem;
    font-size: 0.9rem;
    border-radius: 0;
  }

  .hero-search-icon {
    left: 12px;
    font-size: 0.86rem;
  }

  .hero-search-action {
    right: 1px;
    min-width: 52px;
    padding: 0 8px;
    font-size: 0.82rem;
    border-radius: 0;
  }

  .hero-search-clear {
    right: 62px;
  }

  .category-page .category-hero {
    padding-top: 12px;
    padding-bottom: 1rem;
  }

  .category-page .home-hero__actions {
    position: static;
  }

  .category-page .home-hero__mobile-nav {
    margin-bottom: 0.75rem;
  }

  .category-page .home-hero__mobile-nav.hero-mobile-bar--menu-open {
    justify-content: flex-end;
  }

  .category-page .category-hero__title-row {
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.25rem;
  }

  .category-page .category-hero__menu-btn {
    display: inline-flex;
  }

  .category-page .category-hero__icon {
    display: none;
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
    border-radius: 12px;
  }

  .category-page .category-hero__title {
    font-size: 1.25rem;
  }

  .category-page .category-search-wrap {
    max-width: none;
  }

  .category-page .category-content-wrap {
    padding: 0 12px 0;
  }

  .category-page .category-group__title {
    font-size: 1rem;
  }

  .category-page .category-tool-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .category-page .category-empty {
    padding: 44px 16px;
  }

  .hero-title {
    font-size: 1.36rem;
    line-height: 1.1;
  }

  .hero-desc {
    font-size: 0.88rem;
  }

  .hero-search {
    border-radius: 0;
    min-height: 2.7rem;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  }

  .tool-grid {
    grid-template-columns: 1fr;
  }

  .home-panel {
    padding: 0 0 18px;
  }

  .home-panel + .home-panel {
    padding-top: 14px;
  }

  .home-main-search {
    margin-bottom: 14px;
  }

  .home-panel__header {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 14px;
  }

  .home-hero__tooltip-panel {
    display: none;
  }

  .home-category__btn {
    min-width: 7.4rem;
    padding: 0.68rem 1.15rem;
  }
}

@media (max-width: 420px) {
  .hero-search {
    padding: 8px 84px 8px 34px;
    min-height: 2.6rem;
    font-size: 0.84rem;
  }

  .hero-search-action {
    min-width: 52px;
    padding: 0 8px;
  }

  .hero-search-action-icon {
    display: none;
  }

  .hero-search-action-text {
    display: inline;
  }

  .hero-search-clear {
    right: 62px;
  }

  .hero-search-suggestions {
    gap: 8px;
    margin-top: 10px;
  }

  .hero-search-suggestion {
    padding: 4px 10px;
    font-size: 0.82rem;
  }
}

@media screen and (min-width: 768px) {
  :root {
    --content-container-width: 720px;
    --content-max-width: 690px;
  }
}

@media screen and (min-width: 992px) {
  :root {
    --content-container-width: 960px;
    --content-max-width: 930px;
  }
}

@media screen and (min-width: 1200px) {
  :root {
    --content-container-width: 1150px;
    --content-max-width: 1120px;
  }
}

@media screen and (min-width: 1400px) {
  :root {
    --content-container-width: 1330px;
    --content-max-width: 1300px;
  }
}

@media (max-width: 767px) {
  :root {
    --top-header-height: 48px;
    --page-gutter: 15px;
  }
}

@media (min-width: 768px) {
  .category-page .category-content-wrap {
    padding: 24px 24px 0;
  }

  .category-page .category-list-wrap,
  .category-page .category-groups-wrap {
    margin-top: 0;
  }

  .home-hero {
    padding-top: 0.6rem;
    padding-bottom: 1.4rem;
  }

  .hero-title {
    font-size: 1.72rem;
    line-height: 1.06;
  }

  .category-title {
    font-size: 1.25rem;
  }

  .tool-grid {
    gap: 16px;
  }

  .hero-desc {
    white-space: normal;
  }
}

