    :root {
      --bg: #f4f7fb;
      --bg-alt: #ffffff;
      --primary: #4f46e5;
      --primary-soft: #eef2ff;
      --accent: #22c55e;
      --text: #111827;
      --text-muted: #6b7280;
      --border: #e5e7eb;
      --radius-lg: 18px;
      --radius-md: 12px;
      --shadow-soft: 0 18px 35px rgba(15, 23, 42, 0.09);
      --shadow-card: 0 14px 30px rgba(15, 23, 42, 0.06);
    }

    html[data-theme="dark"] {
      --bg: #020617;
      --bg-alt: #020617;
      --primary: #6366f1;
      --primary-soft: rgba(79, 70, 229, 0.16);
      --accent: #22c55e;
      --text: #e5e7eb;
      --text-muted: #9ca3af;
      --border: #1f2933;
      --shadow-soft: 0 18px 35px rgba(0, 0, 0, 0.7);
      --shadow-card: 0 14px 30px rgba(0, 0, 0, 0.7);
    }

    * {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
        "Segoe UI", sans-serif;
      color: var(--text);
      background:
        radial-gradient(circle at top left, #e0f2fe 0, transparent 40%),
        radial-gradient(circle at bottom right, #e0f2fe 0, transparent 45%),
        var(--bg);
    }

    html[data-theme="dark"] body {
      background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.16) 0, transparent 40%),
        radial-gradient(circle at bottom right, rgba(129, 140, 248, 0.16) 0, transparent 45%),
        var(--bg);
    }

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

    img {
      max-width: 100%;
      display: block;
    }

    .container {
      max-width: 1120px;
      margin: 0 auto;
      padding: 0 20px;
    }

    .site-header {
      position: sticky;
      top: 0;
      z-index: 20;
      backdrop-filter: blur(18px);
      background: rgba(244, 247, 251, 0.9);
      border-bottom: 1px solid rgba(209, 213, 219, 0.6);
    }

    html[data-theme="dark"] .site-header {
      background: rgba(15, 23, 42, 0.92);
      border-bottom: 1px solid rgba(30, 64, 175, 0.8);
    }

    .header-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 12px 20px;
      gap: 16px;
      position: relative;
    }

    .logo {
      display: inline-flex;
      align-items: center;
      text-decoration: none;
      padding: 0;
      border: none;
      background: none;
    }

    .logo-img {
      height: 52px;
      width: auto;
      display: block;
      user-select: none;
    }

    .main-nav {
      display: flex;
      align-items: center;
      gap: 18px;
      font-size: 0.95rem;
      color: var(--text-muted);
      flex-wrap: wrap;
    }

    .main-nav a {
      position: relative;
      padding: 4px 0;
    }

    .main-nav a::after {
      content: "";
      position: absolute;
      left: 0;
      bottom: -3px;
      width: 0;
      height: 2px;
      border-radius: 999px;
      background: linear-gradient(to right, var(--primary), var(--accent));
      transition: width 0.18s ease-out;
    }

    .main-nav a:hover::after {
      width: 100%;
    }

    .main-nav a.is-current::after {
      width: 100%;
    }

    .theme-switch {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      border: none;
      background: transparent;
      cursor: pointer;
      font-size: 0.8rem;
      color: var(--text-muted);
      padding: 0;
      border-radius: 999px;
      -webkit-tap-highlight-color: transparent;
    }

    .theme-switch:hover .theme-switch-track {
      box-shadow:
        0 6px 14px rgba(148, 163, 184, 0.55),
        0 0 0 1px rgba(148, 163, 184, 0.3);
    }

    .theme-switch:active .theme-switch-track {
      transform: scale(0.97);
    }

    .theme-switch:focus-visible .theme-switch-track {
      outline: 2px solid rgba(79, 70, 229, 0.7);
      outline-offset: 3px;
    }

    .theme-switch-track {
      width: 44px;
      height: 24px;
      border-radius: 999px;
      background: radial-gradient(circle at 30% 30%, #ffffff, rgba(148, 163, 184, 0.3));
      position: relative;
      display: inline-flex;
      align-items: center;
      padding: 3px;
      box-shadow:
        0 4px 10px rgba(148, 163, 184, 0.5),
        inset 0 0 0 1px rgba(148, 163, 184, 0.45);
      transition:
        background-color 0.22s cubic-bezier(0.22, 0.61, 0.36, 1),
        box-shadow 0.22s cubic-bezier(0.22, 0.61, 0.36, 1),
        transform 0.12s ease-out;
    }

    .theme-switch-thumb {
      width: 18px;
      height: 18px;
      border-radius: 999px;
      background: #ffffff;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 0.7rem;
      color: #4b5563;
      transform: translateX(0);
      box-shadow:
        0 3px 6px rgba(15, 23, 42, 0.35),
        0 0 0 1px rgba(148, 163, 184, 0.6);
      transition:
        transform 0.22s cubic-bezier(0.22, 0.61, 0.36, 1),
        background-color 0.22s ease-out,
        color 0.22s ease-out,
        box-shadow 0.22s ease-out;
    }

    .theme-switch:active .theme-switch-thumb {
      box-shadow:
        0 1px 3px rgba(15, 23, 42, 0.45),
        0 0 0 1px rgba(148, 163, 184, 0.7);
    }

    .theme-switch.is-dark .theme-switch-track {
      background: radial-gradient(circle at 30% 30%, rgba(248, 250, 252, 0.25), #4f46e5);
      box-shadow:
        0 8px 18px rgba(79, 70, 229, 0.7),
        inset 0 0 0 1px rgba(191, 219, 254, 0.5);
    }

    .theme-switch.is-dark .theme-switch-thumb {
      transform: translateX(20px);
      background: #020617;
      color: #e5e7eb;
      box-shadow:
        0 4px 10px rgba(15, 23, 42, 0.85),
        0 0 0 1px rgba(55, 65, 81, 0.9);
    }

    html[data-theme="dark"] .theme-switch-track {
      background: radial-gradient(circle at 30% 30%, rgba(248, 250, 252, 0.12), rgba(15, 23, 42, 0.9));
      box-shadow:
        0 4px 10px rgba(15, 23, 42, 0.7),
        inset 0 0 0 1px rgba(30, 64, 175, 0.6);
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 999px;
      padding: 10px 18px;
      font-size: 0.95rem;
      font-weight: 500;
      border: 1px solid transparent;
      cursor: pointer;
      transition:
        transform 0.1s ease-out,
        box-shadow 0.1s ease-out,
        background-color 0.12s ease-out,
        border-color 0.12s ease-out;
      white-space: nowrap;
      gap: 6px;
    }

    .btn-primary {
      background-image: linear-gradient(135deg, #4f46e5, #6366f1);
      color: #f9fafb;
      box-shadow: 0 16px 30px rgba(79, 70, 229, 0.32);
    }

    .btn-primary:hover {
      transform: translateY(-1px);
      box-shadow: 0 22px 38px rgba(79, 70, 229, 0.38);
    }

    html[data-theme="dark"] .btn-primary {
      box-shadow: 0 22px 40px rgba(15, 23, 42, 0.9);
    }

    .btn-ghost {
      background: rgba(255, 255, 255, 0.8);
      color: var(--text);
      border-color: rgba(148, 163, 184, 0.6);
    }

    .btn-ghost:hover {
      background: #ffffff;
      transform: translateY(-1px);
      box-shadow: 0 14px 32px rgba(148, 163, 184, 0.25);
    }

    html[data-theme="dark"] .btn-ghost {
      background: rgba(15, 23, 42, 0.9);
      color: var(--text);
      border-color: rgba(51, 65, 85, 0.9);
    }

    html[data-theme="dark"] .btn-ghost:hover {
      background: #020617;
      box-shadow: 0 14px 32px rgba(0, 0, 0, 0.75);
    }

    main {
      padding-bottom: 48px;
    }

    .section {
      padding: 32px 0 40px;
    }

    .section-header {
      display: flex;
      flex-wrap: wrap;
      align-items: flex-end;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 16px;
    }

    .section-header-main h2 {
      margin: 0 0 6px;
      font-size: 1.4rem;
    }

    .section-header-main p {
      margin: 0;
      color: var(--text-muted);
      max-width: 520px;
      font-size: 0.95rem;
    }

    .section-chip {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 0.8rem;
      padding: 4px 10px;
      border-radius: 999px;
      border: 1px solid rgba(148, 163, 184, 0.7);
      background: rgba(255, 255, 255, 0.96);
      color: var(--text-muted);
    }

    .section-chip span {
      width: 7px;
      height: 7px;
      border-radius: 999px;
      background: #4f46e5;
    }

    html[data-theme="dark"] .section-chip {
      background: rgba(15, 23, 42, 0.96);
      border-color: rgba(51, 65, 85, 0.9);
    }

    html[data-theme="dark"] .section-chip span {
      background: #6366f1;
    }

    .hero {
      padding: 48px 0 24px;
    }

    .hero-inner {
      display: grid;
      grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
      gap: 28px;
      align-items: center;
    }

    .hero-copy h1 {
      font-size: clamp(2.2rem, 4vw, 2.9rem);
      letter-spacing: -0.03em;
      margin: 0 0 10px;
    }

    .hero-copy p {
      margin: 0 0 14px;
      color: var(--text-muted);
      max-width: 520px;
      line-height: 1.55;
    }

    .hero-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 16px;
      margin-bottom: 4px;
    }

    .hero-panel {
      background: radial-gradient(circle at top left, #eef2ff, #ffffff);
      border-radius: var(--radius-lg);
      padding: 18px 18px 16px;
      box-shadow: var(--shadow-soft);
      border: 1px solid rgba(199, 210, 254, 0.8);
    }

    html[data-theme="dark"] .hero-panel {
      background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.9), #020617);
      border-color: rgba(37, 99, 235, 0.8);
    }

    .hero-panel-header {
      margin-bottom: 8px;
    }

    .hero-panel-title {
      margin: 0;
      font-size: 0.98rem;
      font-weight: 600;
    }

    .hero-panel-tagline {
      margin: 2px 0 0;
      font-size: 0.8rem;
      color: var(--text-muted);
    }

    .hero-404 .hero-copy h1 {
      display: flex;
      flex-wrap: wrap;
      align-items: baseline;
      gap: 10px;
    }

    .hero-404 .error-code {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 3px 10px;
      border-radius: 999px;
      font-size: 0.85rem;
      font-weight: 500;
      background: rgba(79, 70, 229, 0.1);
      color: #4f46e5;
    }

    html[data-theme="dark"] .hero-404 .error-code {
      background: rgba(37, 99, 235, 0.25);
      color: #c7d2fe;
    }

    .hero-404 .hero-copy p:last-of-type {
      margin-bottom: 0;
    }

    .hero-panel-title {
      margin: 0 0 4px;
      font-size: 1rem;
      font-weight: 600;
    }

    .hero-panel-subtitle {
      margin: 0 0 10px;
      font-size: 0.9rem;
      color: var(--text-muted);
    }

    .tools-filter {
      margin-top: 4px;
    }

    .filter-row {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      align-items: center;
    }

    .search-wrap {
      position: relative;
      flex: 1 1 320px;
      min-width: 0;
    }

    .search-input {
      width: 100%;
      padding: 8px 10px 8px 30px;
      border-radius: 999px;
      border: 1px solid var(--border);
      font-size: 0.9rem;
      outline: none;
      background: #ffffff;
      color: var(--text);
      box-shadow: 0 6px 14px rgba(148, 163, 184, 0.18);
    }

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

    html[data-theme="dark"] .search-input {
      background: #020617;
      border-color: #1f2937;
      box-shadow: 0 6px 16px rgba(0, 0, 0, 0.85);
    }

    html[data-theme="dark"] .search-input::placeholder {
      color: #64748b;
    }

    .search-icon {
      position: absolute;
      left: 10px;
      top: 50%;
      transform: translateY(-50%);
      font-size: 0.85rem;
      color: #9ca3af;
    }

    html[data-theme="dark"] .search-icon {
      color: #64748b;
    }

    .search-helper-text {
      margin-top: 8px;
      font-size: 0.82rem;
      color: var(--text-muted);
    }

    .search-helper-text span {
      font-weight: 500;
      color: #4f46e5;
    }

    html[data-theme="dark"] .search-helper-text span {
      color: #c7d2fe;
    }

    .search-dropdown {
      position: absolute;
      left: 0;
      top: calc(100% + 6px);
      width: 100%;
      max-height: 320px;
      overflow-y: auto;
      border-radius: 14px;
      border: 1px solid var(--border);
      background: #ffffff;
      box-shadow: 0 14px 32px rgba(148, 163, 184, 0.32);
      padding: 4px 0;
      display: none;
      z-index: 15;
    }

    .search-dropdown.visible {
      display: block;
    }

    html[data-theme="dark"] .search-dropdown {
      background: #020617;
      box-shadow: 0 18px 40px rgba(0, 0, 0, 0.9);
    }

    .search-item {
      padding: 7px 12px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      font-size: 0.9rem;
      cursor: pointer;
    }

    .search-item-main {
      display: flex;
      flex-direction: column;
      gap: 2px;
      min-width: 0;
    }

    .search-item-title {
      font-weight: 500;
      color: var(--text);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .search-item-subtitle {
      font-size: 0.8rem;
      color: var(--text-muted);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .search-item-meta {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 0.78rem;
      color: var(--text-muted);
      white-space: nowrap;
      flex-shrink: 0;
    }

    .search-item-meta-badge {
      padding: 2px 7px;
      border-radius: 999px;
      border: 1px solid #e5e7eb;
      background: #f9fafb;
      font-size: 0.75rem;
    }

    html[data-theme="dark"] .search-item-meta-badge {
      border-color: #1f2937;
      background: #020617;
    }

    .search-item:hover {
      background: #f3f4ff;
    }

    html[data-theme="dark"] .search-item:hover {
      background: rgba(30, 64, 175, 0.3);
    }

    .tool-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
      gap: 18px;
    }

    .tool-card {
      position: relative;
      padding: 16px 14px 14px;
      border-radius: var(--radius-md);
      background: rgba(255, 255, 255, 0.92);
      border: 1px solid var(--border);
      box-shadow: 0 10px 22px rgba(148, 163, 184, 0.14);
      transition:
        transform 0.1s ease-out,
        box-shadow 0.12s ease-out,
        border-color 0.12s ease-out,
        background-color 0.12s ease-out;
      overflow: hidden;
    }

    .tool-card h3 {
      margin: 0 0 4px;
      font-size: 1rem;
    }

    .tool-card p {
      margin: 0 0 10px;
      font-size: 0.88rem;
      color: var(--text-muted);
    }

    .tool-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 16px 32px rgba(148, 163, 184, 0.25);
      border-color: rgba(129, 140, 248, 0.9);
      background: #ffffff;
    }

    html[data-theme="dark"] .tool-card {
      background: rgba(15, 23, 42, 0.96);
      border-color: #1f2937;
      box-shadow: 0 18px 38px rgba(0, 0, 0, 0.9);
    }

    html[data-theme="dark"] .tool-card:hover {
      background: #020617;
      border-color: rgba(129, 140, 248, 0.9);
    }

    .tool-tag {
      display: inline-flex;
      align-items: center;
      padding: 3px 8px;
      border-radius: 999px;
      font-size: 0.75rem;
      background: var(--primary-soft);
      color: #4f46e5;
      font-weight: 500;
    }

    html[data-theme="dark"] .tool-tag {
      color: #c7d2fe;
    }

    .site-footer {
      border-top: 1px solid rgba(209, 213, 219, 0.7);
      padding: 20px 0 26px;
      background: rgba(248, 250, 252, 0.96);
    }

    html[data-theme="dark"] .site-footer {
      background: rgba(15, 23, 42, 0.98);
      border-top: 1px solid rgba(30, 64, 175, 0.8);
    }

    .footer-inner {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      font-size: 0.86rem;
      color: var(--text-muted);
    }

    .footer-brand {
      display: flex;
      flex-direction: column;
      gap: 2px;
    }

    .footer-brand .logo-wordmark {
      font-size: 1rem;
    }

    .footer-note {
      font-size: 0.8rem;
    }

    .footer-nav {
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
      align-items: center;
    }

    .footer-nav a {
      padding: 2px 0;
    }

    .footer-nav a:hover {
      color: var(--primary);
    }

    .footer-language {
      position: relative;
      display: flex;
      align-items: center;
    }

    .lang-toggle {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 6px 12px;
      border-radius: 999px;
      border: 1px solid rgba(148, 163, 184, 0.9);
      background: #ffffff;
      font-size: 0.86rem;
      cursor: pointer;
      color: var(--text-muted);
      box-shadow: 0 6px 12px rgba(15, 23, 42, 0.06);
    }

    .lang-toggle i.fa-globe {
      font-size: 0.9rem;
      color: #4f46e5;
    }

    .lang-toggle .lang-chevron {
      font-size: 0.75rem;
      transition: transform 0.15s ease-out;
    }

    .lang-toggle.is-open .lang-chevron {
      transform: rotate(180deg);
    }

    html[data-theme="dark"] .lang-toggle {
      background: #020617;
      border-color: #1f2937;
      box-shadow: 0 8px 18px rgba(0, 0, 0, 0.85);
    }

    html[data-theme="dark"] .lang-toggle i.fa-globe {
      color: #6366f1;
    }

    .lang-dropdown {
      position: absolute;
      bottom: calc(100% + 8px);
      right: 0;
      min-width: 100px;
      max-height: 260px;
      padding: 8px;
      border-radius: 14px;
      border: 1px solid var(--border);
      background: #ffffff;
      box-shadow: 0 16px 32px rgba(15, 23, 42, 0.18);
      display: none;
      overflow-y: auto;
      z-index: 30;
    }

    .lang-dropdown.is-open {
      display: block;
    }

    html[data-theme="dark"] .lang-dropdown {
      background: #020617;
      border-color: #1f2937;
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.92);
    }

    .lang-option {
      display: block;
      width: 100%;
      text-align: left;
      border: none;
      background: transparent;
      padding: 6px 8px;
      border-radius: 8px;
      font-size: 0.86rem;
      cursor: pointer;
      color: var(--text-muted);
    }

    .lang-option:hover {
      background: #eef2ff;
      color: var(--primary);
    }

    .lang-option.is-active {
      background: #e0ebff;
      color: #1d4ed8;
      font-weight: 500;
    }

    html[data-theme="dark"] .lang-option:hover {
      background: rgba(30, 64, 175, 0.35);
      color: #e5e7eb;
    }

    html[data-theme="dark"] .lang-option.is-active {
      background: rgba(37, 99, 235, 0.4);
      color: #e5e7eb;
    }

    .footer-meta {
      margin: 0;
      width: 100%;
      text-align: right;
      font-size: 0.78rem;
    }

    @media (max-width: 800px) {
      .header-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 20px 8px;
      }

      .theme-switch {
        position: absolute;
        right: 20px;
        top: 22px;
        transform: none;
      }

      .main-nav {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        border-top: 1px solid rgba(209, 213, 219, 0.7);
        padding-top: 8px;
        margin-top: 6px;
      }

      html[data-theme="dark"] .main-nav {
        border-top: 1px solid rgba(31, 41, 55, 0.9);
      }

      .hero-inner {
        grid-template-columns: minmax(0, 1fr);
      }

      .hero-panel {
        order: -1;
      }

      .lang-dropdown {
        right: auto;
        left: 0;
        width: 100%;
        max-width: 320px;
      }
    }

    @media (max-width: 520px) {
      .hero-actions {
        flex-direction: column;
        align-items: stretch;
      }

      .footer-inner {
        align-items: flex-start;
      }

      .footer-meta {
        text-align: left;
      }

      .footer-language {
        width: 100%;
      }

      .lang-dropdown {
        width: 100%;
        max-width: none;
      }
    }