/* Puxinnan visitor search — light, Google-style. Shared by tenant + main site. */
:root {
  --b-primary: #2563EB;
  --b-primary-2: #1D4ED8;
  --b-link: #1A56DB;
  --b-link-visited: #6D28D9;
  --b-url: #15803D;
  --b-ink: #1D2129;
  --b-ink-2: #4E5969;
  --b-ink-3: #86909C;
  --b-bg: #FCFDFF;
  --b-surface: #FFFFFF;
  --b-border: #E4E9F2;
  --b-chip: #F1F4FA;
  --b-shadow: 0 1px 2px rgba(23,35,60,.05), 0 10px 34px rgba(37,99,235,.07);
  --b-radius: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--b-bg); color: var(--b-ink); overflow-x: hidden;
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "PingFang SC", "Microsoft YaHei", "Noto Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
mark { background: #FEF08A; color: inherit; padding: 0 .08em; border-radius: 2px; }

/* decorative blobs */
.page { position: relative; min-height: 100dvh; display: flex; flex-direction: column; }
.page::before, .page::after {
  content: ""; position: fixed; border-radius: 50%; z-index: 0; pointer-events: none;
  background: radial-gradient(circle at 30% 30%, #DCE9FF, #EAF1FF 60%, transparent 72%);
}
.page::before { width: 460px; height: 460px; top: -160px; right: -140px; }
.page::after  { width: 520px; height: 520px; bottom: -220px; left: -180px; opacity: .8; }
.page > * { position: relative; z-index: 1; }

.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 20px; }
.wrap--wide { max-width: 1120px; }

/* brand */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { height: 34px; width: auto; max-width: 44px; object-fit: contain; display: block; }
.brand .name { font-size: 20px; font-weight: 600; letter-spacing: .2px; white-space: nowrap; }
.brand .name b { font-weight: 600; }

/* top bar (results page) */
.topbar { display: flex; align-items: center; gap: 12px; padding: 18px 0; }
.topbar .brand img { height: 28px; }
.topbar .brand .name { font-size: 17px; }

/* search box */
.searchbox { display: flex; width: 100%; }
.searchbox form { display: flex; width: 100%; }
.searchbox .field {
  flex: 1; display: flex; align-items: center; background: var(--b-surface);
  border: 1px solid var(--b-border); border-inline-end: 0;
  border-radius: 999px 0 0 999px; box-shadow: var(--b-shadow); padding-inline-start: 22px;
}
.searchbox input {
  flex: 1; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px;
  padding: 15px 12px 15px 0; color: var(--b-ink);
}
.searchbox input::placeholder { color: var(--b-ink-3); }
.searchbox button {
  border: 0; cursor: pointer; color: #fff; border-radius: 0 999px 999px 0;
  background: linear-gradient(135deg, var(--b-primary), var(--b-primary-2));
  padding: 0 30px; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--b-shadow);
}
.searchbox button svg { width: 20px; height: 20px; }
.searchbox:focus-within .field { border-color: #BFD3F5; }

/* hot chips */
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.chips__label { display: inline-flex; align-items: center; gap: 6px; color: var(--b-primary); font-size: 13px; font-weight: 500; white-space: nowrap; }
.chips__label svg { flex: none; }
.chips a {
  background: var(--b-chip); color: var(--b-ink-2); font-size: 13px; padding: 6px 14px; border-radius: 999px;
}
.chips a:hover { background: #E6ECF7; color: var(--b-ink); }

/* ---- homepage hero ---- */
.hero { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 40px 20px 12vh; }
.hero__brand { display: flex; align-items: center; gap: 16px; }
.hero__brand img { height: 52px; width: auto; max-width: 84px; object-fit: contain; }
.hero__brand .name { font-size: 38px; font-weight: 600; }
.hero__tagline { color: var(--b-ink-3); font-size: 15px; letter-spacing: .12em; margin-top: -8px; }
.hero .searchbox { max-width: 620px; }
.hero .chips { justify-content: center; max-width: 620px; }

/* ---- results ---- */
.results { padding-bottom: 40px; }
.results__summary { color: var(--b-ink-3); font-size: 13px; margin: 18px 0 16px; }

.result { display: flex; align-items: flex-start; gap: 18px; padding: 16px; border: 1px solid var(--b-border); border-radius: var(--b-radius); background: var(--b-surface); margin-bottom: 12px; }
.result:hover { border-color: #D3DEF1; box-shadow: var(--b-shadow); }
.result__main { min-width: 0; flex: 1; }
.result__head { display: flex; align-items: baseline; gap: 10px; }
.result__icon { flex: none; width: 20px; height: 20px; border-radius: 50%; object-fit: cover; background: var(--b-chip); align-self: center; }
.result__title { min-width: 0; color: var(--b-link); font-size: 17px; font-weight: 500; line-height: 1.4; }
.result:visited .result__title { color: var(--b-link-visited); }
.result__title:hover { text-decoration: underline; }
.result__date { flex: none; margin-inline-start: auto; color: var(--b-ink-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.result__url { color: var(--b-url); font-size: 12.5px; margin: 5px 0 6px; display: flex; align-items: center; gap: 4px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.result__url .sep { color: var(--b-ink-3); }
.result__snippet { color: var(--b-ink-2); font-size: 13.5px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.result__site { color: var(--b-ink-3); }

/* gallery: a row of thumbnails under the snippet, like a filmstrip */
.gallery-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.gallery-row__tile { flex: none; width: 60px; height: 60px; border-radius: 8px; overflow: hidden; background: var(--b-chip); }
.gallery-row__tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-row__count { font-style: normal; color: var(--b-ink-3); font-size: 12.5px; margin-inline-start: 4px; }

/* video / single-image results: one thumbnail to the right of the text */
.result__thumb { position: relative; flex: none; width: 150px; height: 96px; border-radius: 10px; overflow: hidden; background: var(--b-chip); }
.result__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.result__thumb-play {
  position: absolute; inset: 0; margin: auto; width: 32px; height: 32px; color: #fff; opacity: .92;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .55));
}
.result__thumb-dur {
  position: absolute; right: 6px; bottom: 6px; background: rgba(15, 23, 42, .75); color: #fff;
  font-style: normal; font-size: 11px; line-height: 1; padding: 3px 5px; border-radius: 4px;
  font-variant-numeric: tabular-nums;
}

.empty { text-align: center; padding: 64px 20px; }
.empty h2 { font-size: 18px; font-weight: 500; margin: 0 0 8px; }
.empty p { color: var(--b-ink-3); margin: 0; }

/* pagination */
.pager { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 30px 0 8px; flex-wrap: wrap; }
.pager a, .pager span, .pager button {
  min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--b-border); border-radius: 10px; background: var(--b-surface);
  color: var(--b-ink-2); font-size: 13px; font-variant-numeric: tabular-nums;
}
.pager a:hover { border-color: #CBD5E8; color: var(--b-ink); }
.pager .cur { background: linear-gradient(135deg, var(--b-primary), var(--b-primary-2)); color: #fff; border-color: transparent; font-weight: 500; }
.pager .gap { border: 0; background: transparent; color: var(--b-ink-3); min-width: 20px; }
.pager .nav { color: var(--b-ink-2); }
.pager .nav[aria-disabled="true"] { opacity: .4; pointer-events: none; }

/* suggest dropdown */
.suggest { position: relative; }
.suggest__list {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: var(--b-surface);
  border: 1px solid var(--b-border); border-radius: 16px; box-shadow: var(--b-shadow);
  overflow: hidden; z-index: 15;
}
.suggest__list a { display: block; padding: 11px 22px; font-size: 15px; }
.suggest__list a:hover, .suggest__list a.on { background: var(--b-chip); }

.site-footer { margin-top: auto; text-align: center; color: var(--b-ink-3); font-size: 12px; padding: 20px; }

@media (max-width: 640px) {
  .page::before { width: 260px; height: 260px; top: -110px; right: -90px; }
  .page::after { width: 300px; height: 300px; bottom: -160px; left: -120px; }
  .hero__brand { gap: 12px; }
  .hero__brand img { height: 46px; }
  .hero__brand .name { font-size: 26px; }
  .searchbox button { padding: 0 18px; }
  .searchbox .field { padding-inline-start: 16px; }
  .result__date { display: none; }
  .result__thumb { width: 92px; height: 68px; }
  .result__thumb-play { width: 22px; height: 22px; }
  .gallery-row__tile { width: 48px; height: 48px; }
  .topbar .brand .name { font-size: 15px; }
  .topbar .brand img { height: 24px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Default search presentation: spacious entry, focused results. */
:root { --b-bg: #F7F9FD; --b-ink: #182741; --b-ink-2: #536178; --b-ink-3: #6E7C91; --b-primary: #315FE9; --b-primary-2: #244DCD; --b-border: #E3E9F2; }
.page::before, .page::after { display: none; }
.page--home { background: radial-gradient(ellipse at 50% 22%, #EAF0FF 0, #F7F9FD 55%); }
.hero { padding: 64px 24px 14vh; gap: 28px; }
.hero__brand { gap: 18px; }
.hero__brand img { height: 60px; max-width: 72px; }
.hero__brand .name { font-size: clamp(30px, 4.5vw, 48px); line-height: 1.2; letter-spacing: -.04em; white-space: normal; overflow-wrap: anywhere; text-align: center; }
.hero__tagline { letter-spacing: .04em; color: var(--b-ink-2); font-size: 15px; margin-top: -12px; }
.hero .searchbox { max-width: 700px; margin-top: 14px; }
.searchbox form { padding: 6px; background: #fff; border: 1px solid #DFE6F1; border-radius: 18px; box-shadow: 0 6px 24px #1F3A6910; gap: 6px; }
.searchbox .field { min-width: 0; background: transparent; border: 0; box-shadow: none; padding-inline-start: 16px; border-radius: 12px; }
.searchbox input { min-width: 0; padding: 14px 8px 14px 0; font-size: 16px; width: 100%; }
.searchbox button { flex: none; border-radius: 12px; padding: 0 22px; background: var(--b-primary); box-shadow: none; transition: background .15s; }
.searchbox button:hover { background: var(--b-primary-2); }
.searchbox:focus-within form { border-color: #A8BDF6; box-shadow: 0 0 0 3px #315FE910, 0 6px 24px #1F3A6910; }
.chips { gap: 8px; margin-top: 18px; }
.chips a { border: 1px solid #E0E7F1; background: #FFFFFFB8; padding: 6px 13px; font-size: 12px; transition: background .15s; }
.chips a:hover { background: #EDF2FF; border-color: #B9C9FA; }
.chips__label { font-size: 12px; color: var(--b-ink-3); margin-inline-end: 4px; }
.page--results > header { padding-top: 16px; padding-bottom: 22px; }
.topbar { padding: 10px 0 20px; }
.topbar .brand .name { font-size: 20px; letter-spacing: -.02em; }
.results-search { max-width: 760px; }
.results__summary { font-size: 12px; letter-spacing: .01em; margin: 6px 0 18px; }
.results { padding-top: 2px; }
.result { border-radius: 16px; padding: 22px 24px; margin-bottom: 14px; gap: 24px; transition: border-color .15s, box-shadow .15s; }
.result:hover { border-color: #BFCDF0; box-shadow: 0 4px 18px #1F3A6909; }
.result__head { gap: 10px; }
.result__title { font-size: 18px; line-height: 1.5; font-weight: 600; }
.result__url { font-size: 12px; color: #4B6C63; margin: 8px 0; }
.result__snippet { font-size: 14px; line-height: 1.75; }
.result__thumb { width: 160px; height: 108px; border-radius: 12px; }
.result__date { font-size: 11px; }
mark { background: #EDF2FF; color: #254DC1; }
.gallery-row { gap: 8px; margin-top: 16px; }
.gallery-row__tile { width: 68px; height: 68px; border-radius: 10px; }
.suggest__list { border-radius: 14px; box-shadow: 0 8px 24px #17243B14; }
.suggest__list a { padding: 12px 22px; }
.pager .cur { background: var(--b-primary); }
.site-footer { font-size: 11px; padding: 24px; color: var(--b-ink-3); }
:focus-visible { outline: 2px solid var(--b-primary); outline-offset: 3px; }
.searchbox input:focus-visible { outline: 0; }
@media (max-width: 640px) {
  .hero { padding: 40px 20px 12vh; gap: 24px; }
  .hero__brand img { height: 46px; max-width: 54px; }
  .hero__brand { gap: 14px; }
  .hero__tagline { font-size: 13px; }
  .searchbox form { border-radius: 14px; padding: 5px; }
  .searchbox input { font-size: 16px; padding: 12px 6px 12px 0; }
  .searchbox .field { padding-inline-start: 12px; }
  .searchbox button { border-radius: 9px; padding: 0 16px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .result { padding: 18px; gap: 14px; }
  .result__title { font-size: 16px; }
  .result__snippet { font-size: 13px; }
  .result__thumb { width: 86px; height: 72px; }
  .result__url { display: block; white-space: nowrap; text-overflow: ellipsis; }
  .result__site { margin-inline-end: 5px; }
  .gallery-row__tile { width: 50px; height: 50px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
