:root {
      --navy: #16253f;
      --bg: #f4f2ed;
      --surface: #ffffff;
      --text: #1b2a41;
      --muted: #627086;
      --border: #d3d8e2;
      --chip-bg: #edf0ff;
      --chip-text: #4e5fb2;
      --accent: #2b5cab;
      /* list page: chips & tabs — warm paper + navy (matches bg / header) */
      --list-chip-bg: #ffffff;
      --list-chip-border: #e3dfd6;
      --list-chip-text: #3d4654;
      --list-chip-hover-bg: #f7f6f3;
      --list-chip-hover-border: #16253f;
      --list-chip-hover-text: #16253f;
      --list-chip-shadow: 0 2px 8px rgba(22, 37, 63, 0.06);
      --list-pill-bg: #e8e5de;
      --list-pill-border: #cfc9be;
      --list-pill-text: #3d4d62;
      --list-tab-rule: #d5cfc4;
      --list-tab-hover-bg: #ddd8cf;
      --list-tab-active-bg: #1a2d48;
      --list-tab-active-text: #f7f5f0;
      --result-list-gap: 22px;
      --result-card-padding: 26px 28px;
      --result-card-border: rgba(22, 37, 63, 0.11);
      --result-card-shadow: 0 6px 24px rgba(22, 37, 63, 0.055);
      --result-title-color: #1c2d42;
      --result-desc-color: #5c6678;
      --hero-curve: clamp(40px, 6vw, 72px);
    }

    * { box-sizing: border-box; }
    body {
      margin: 0;
      font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, Arial, sans-serif;
      font-size: 16.5px;
      font-weight: 400;
      background: var(--bg);
      color: var(--text);
      line-height: 1.75;
    }

    h1, h2, h3, h4 {
      font-family: Georgia, "Times New Roman", serif;
      letter-spacing: 0.01em;
      font-weight: 600;
    }
    a { color: inherit; text-decoration: none; }

    .container {
      width: min(1180px, calc(100% - 40px));
      margin: 0 auto;
    }

    .hero-shell {
      background: var(--navy);
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
      border-bottom-left-radius: var(--hero-curve);
      border-bottom-right-radius: var(--hero-curve);
    }
    .topbar {
      display: grid;
      grid-template-columns: auto 1fr auto auto;
      align-items: center;
      gap: 14px;
      padding: 14px 0;
      color: #fff;
    }
    .logo {
      display: inline-flex;
      align-items: center;
      gap: 3px;
      background: transparent;
      border-radius: 8px;
      padding: 5px 14px;
      font-weight: 800;
      font-size: 24px;
      white-space: nowrap;
      letter-spacing: 0.5px;
      transition: transform 0.2s ease;
    }

    .logo-part1 {
      background-image: linear-gradient(90deg, #ffffff 0%, #e0e0e0 100%);
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
      font-weight: 700;
    }

    .logo-dot {
      color: #ffd700;
      font-size: 12px;
      margin: 0 2px;
      animation: sparkle 2s ease-in-out infinite;
    }

    .logo-part2 {
      background-image: linear-gradient(90deg, #c084fc 0%, #e879f9 50%, #f0abfc 100%);
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
      font-weight: 700;
    }

    @keyframes sparkle {
      0%, 100% { opacity: 1; transform: scale(1); }
      50% { opacity: 0.7; transform: scale(0.9); }
    }

    .logo:hover {
      transform: scale(1.02);
    }

    .logo:hover .logo-part1 {
      filter: brightness(1.1);
    }

    .logo:hover .logo-part2 {
      filter: brightness(1.1);
    }
    .desktop-nav {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-left: 8px;
    }

    .search-top {
      width: min(340px, 100%);
      background: #e6f0ee;
      border: 1px solid #cadcd8;
      border-radius: 3px;
      min-height: 36px;
      display: flex;
      align-items: center;
      padding: 0 12px;
      color: #4c5563;
      font-size: 15px;
    }
    .page-title {
      margin: 0 0 10px;
      font-size: clamp(36px, 4vw, 52px);
      font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
      font-weight: 650;
      letter-spacing: 0.15px;
      color: #2b2f4f;
      text-align: center;
    }
    .page-sub-title {
        margin: 0 0 18px;
        color: #6b6b9a;
        font-size: 17px;
        text-align: center;
    }
    .page-sub {
      margin: 0 0 18px;
      color: #6b6b9a;
      font-size: 17px;
      text-align: center;
    }

    .search-section {
      padding: 26px 0 16px;
    }

    .page-main {
      padding-top: var(--site-header-offset);
    }
    .search-box {
      width: min(760px, 100%);
      margin: 0 auto;
      background: var(--surface);
      border: 1px solid rgba(22, 37, 63, 0.18);
      border-radius: 28px;
      min-height: 56px;
      display: flex;
      align-items: center;
      padding: 0 18px;
      color: #393939;
      font-size: 17px;
      box-shadow: 0 4px 18px rgba(22, 37, 63, 0.07);
      gap: 10px;
      transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

    .search-box:focus-within {
      border-color: rgba(22, 37, 63, 0.42);
      box-shadow:
        0 0 0 3px rgba(22, 37, 63, 0.1),
        0 6px 22px rgba(22, 37, 63, 0.08);
    }

    .search-box > form {
      display: flex;
      flex: 1;
      align-items: center;
      gap: 10px;
      min-width: 0;
      width: 100%;
      margin: 0;
    }
    .search-input {
      flex: 1;
      min-width: 0;
      border: none;
      outline: none;
      background: transparent;
      color: #393939;
      font-size: 17px;
      font-family: inherit;
      transition: color 0.2s ease;
    }

    .search-box .search-input:focus {
      color: #141d2b;
    }

    .search-input::placeholder {
      color: #7a8191;
    }

    .search-box .search-input::placeholder {
      opacity: 1;
      transition: opacity 0.22s ease, color 0.22s ease;
    }

    .search-box .search-input:focus::placeholder {
      opacity: 0.34;
      color: #9aa3b0;
    }
    .search-btn {
      width: 34px;
      height: 34px;
      border: none;
      border-radius: 50%;
      background: rgba(112, 73, 230, 0.12);
      color: #233a63;
      display: grid;
      place-items: center;
      cursor: pointer;
      transition: background-color 0.2s ease;
    }
    .search-btn:hover {
      background: rgba(112, 73, 230, 0.2);
    }
    .search-btn svg {
      width: 18px;
      height: 18px;
      fill: currentColor;
    }
    .search-hint {
      margin: 16px 0 10px;
      color: var(--muted);
      font-size: 15px;
      font-weight: 600;
    }
    .chip-row {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-bottom: 14px;
    }

    /* Common searches: light pills + clear hover */
    .chip-row .chip {
      border: 1px solid var(--list-chip-border);
      border-radius: 999px;
      background: var(--list-chip-bg);
      color: var(--list-chip-text);
      font-size: 14px;
      padding: 5px 12px;
      white-space: nowrap;
      cursor: pointer;
      transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
    }

    .chip-row .chip:hover {
      background: var(--list-chip-hover-bg);
      border-color: var(--list-chip-hover-border);
      color: var(--list-chip-hover-text);
      box-shadow: var(--list-chip-shadow);
      transform: translateY(-1px);
    }

    .chip-row .chip:active {
      transform: translateY(0);
      box-shadow: 0 1px 3px rgba(22, 37, 63, 0.05);
    }

    .chip-row .chip a:focus-visible {
      outline: 2px solid var(--navy);
      outline-offset: 2px;
      border-radius: 999px;
    }

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

    .filter-tabs {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      border-top: 1px solid var(--list-tab-rule);
      border-bottom: 1px solid var(--list-tab-rule);
      padding: 10px 0;
      margin-bottom: 14px;
    }
    .filter-list-tabs {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;

        border-bottom: 1px solid var(--list-tab-rule);
        padding: 10px 0;
        margin-bottom: 14px;
    }
    .tab {
      cursor: pointer;
      font-size: 15px;
      color: var(--muted);
      background: transparent;
      border: 1px solid transparent;
      border-radius: 6px;
      padding: 6px 11px;
      transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    }
    .tab:hover {
      background: var(--list-tab-hover-bg);
      color: var(--text);
      border-color: var(--list-pill-border);
    }
    .tab.active {
      background: var(--list-tab-active-bg);
      color: var(--list-tab-active-text);
      border-color: var(--list-tab-active-bg);
      font-weight: 600;
    }

    .result-list {
      display: grid;
      gap: var(--result-list-gap);
      padding: 8px 0 4px;
    }

    .result-card {
      background: var(--surface);
      border: 1px solid var(--result-card-border);
      border-radius: 16px;
      padding: var(--result-card-padding);
      box-shadow: var(--result-card-shadow);
      transition: opacity 0.22s ease, transform 0.22s ease, box-shadow 0.2s ease;
    }

    .result-card.is-hiding {
      opacity: 0;
      transform: translateY(4px);
      pointer-events: none;
    }

    .result-meta {
      margin: 0 0 8px;
      font-size: 13px;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: 0.08em;
    }

    .result-title {
      margin: 0 0 14px;
      color: var(--result-title-color);
      font-size: 26px;
      line-height: 1.38;
      font-weight: 600;
      font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
      letter-spacing: 0;
    }

    .result-desc {
      margin: 0;
      color: var(--result-desc-color);
      font-size: 17px;
      line-height: 1.75;
      letter-spacing: 0;
    }

    .pagination {
      display: flex;
      justify-content: center;
      gap: 8px;
      padding: 18px 0 8px;
    }
    .page-btn {
      min-width: 34px;
      height: 34px;
      border: 1px solid var(--result-card-border);
      border-radius: 6px;
      display: grid;
      place-items: center;
      background: #fff;
      color: var(--result-title-color);
      font-size: 15px;
    }
    .page-btn.active {
      background: var(--navy);
      border-color: var(--navy);
      color: #fff;
    }

    footer {
      margin-top: 16px;
      background: #eeece7;
      border-top: 1px solid #d8d4ca;
      padding: 16px 0 20px;
      color: #798193;
      font-size: 14px;
    }
    .footer-inner {
      display: flex;
      justify-content: space-between;
      gap: 16px;
      flex-wrap: wrap;
    }
    .footer-brand { display: grid; gap: 3px; }
    .footer-brand-title {
      font-size: 16px;
      font-weight: 700;
      color: #4f5c71;
    }
    .footer-brand-sub {
      font-size: 13px;
      color: #8c95a4;
    }

    @media (max-width: 640px) {
      .container { width: min(520px, calc(100% - 18px)); }
      .page-title { font-size: 40px; }
      .result-title { font-size: 22px; }
    }

/* Mobile drawer logo styles */
.drawer-head .logo .logo-part1 {
  background-image: linear-gradient(90deg, #1b2f57 0%, #3d5a80 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.drawer-head .logo .logo-part2 {
  background-image: linear-gradient(90deg, #9333ea 0%, #c084fc 50%, #e879f9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.drawer-head .logo .logo-dot {
  color: #ff6b6b;
}
