*, *::before, *::after { box-sizing: border-box; }
:root { color-scheme: light; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif; }
body { min-width: 320px; margin: 0; color: #14233a; background: #f4f8fc; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.search-header { border-bottom: 1px solid #e1e8f0; background: rgba(255, 255, 255, .96); }
.search-header-inner { width: min(1120px, calc(100% - 40px)); min-height: 68px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.search-brand img { display: block; width: 174px; height: auto; }
.search-header nav { display: flex; align-items: center; gap: 20px; color: #5f7085; font-size: 14px; font-weight: 700; }
.search-header nav a:hover, .search-header nav a[aria-current="page"] { color: #176ee8; }
.search-main { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 54px 0 64px; }
.search-hero { max-width: 760px; margin: 0 auto 46px; text-align: center; }
.search-kicker { margin: 0 0 8px; color: #176ee8; font-size: 14px; font-weight: 800; letter-spacing: .04em; }
.search-hero h1 { margin: 0; color: #11233a; font-size: clamp(32px, 6vw, 48px); line-height: 1.2; }
.search-hero > p:not(.search-kicker) { margin: 14px auto 0; color: #66778d; font-size: 16px; }
.resource-search-form { display: flex; max-width: 680px; margin: 28px auto 0; padding: 6px; border: 1px solid #cddcec; border-radius: 12px; background: #fff; box-shadow: 0 12px 34px rgba(38, 86, 140, .09); }
.resource-search-form:focus-within { border-color: #76aef7; box-shadow: 0 0 0 3px rgba(23, 110, 232, .1), 0 12px 34px rgba(38, 86, 140, .09); }
.resource-search-form input { min-width: 0; flex: 1; height: 48px; padding: 0 16px; border: 0; outline: 0; color: #14233a; background: transparent; font: inherit; }
.resource-search-form input::placeholder { color: #97a4b4; }
.resource-search-form button { min-width: 92px; height: 48px; padding: 0 22px; border: 0; border-radius: 8px; color: #fff; background: #1672ef; font: inherit; font-weight: 800; cursor: pointer; }
.resource-search-form button:hover { background: #0f63d6; }
.results-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.results-heading h2 { margin: 0; color: #172a44; font-size: 25px; line-height: 1.35; }
.results-heading p { margin: 5px 0 0; color: #77879a; font-size: 14px; }
.latest-link { flex: 0 0 auto; color: #176ee8; font-size: 14px; font-weight: 800; }
.resource-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.resource-card { min-width: 0; padding: 22px; border: 1px solid #dfe8f1; border-radius: 12px; background: #fff; box-shadow: 0 6px 22px rgba(35, 79, 128, .045); transition: border-color .2s, box-shadow .2s, transform .2s; }
.resource-card:hover { border-color: #a8c9f4; box-shadow: 0 10px 28px rgba(35, 79, 128, .09); transform: translateY(-2px); }
.resource-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; color: #8694a5; font-size: 12px; }
.provider-badge { display: inline-flex; align-items: center; min-height: 24px; padding: 0 9px; border-radius: 999px; color: #1e65c3; background: #eaf3ff; font-weight: 800; }
.provider-quark { color: #174fc9; background: #eef2ff; }
.provider-xunlei { color: #2269c9; background: #edf5ff; }
.resource-card h2 { margin: 0; color: #172a44; font-size: 18px; line-height: 1.45; overflow-wrap: anywhere; }
.resource-card h2 a:hover { color: #176ee8; }
.resource-card > p { display: -webkit-box; min-height: 72px; margin: 12px 0 16px; overflow: hidden; color: #66778d; font-size: 14px; line-height: 1.72; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.resource-open { color: #176ee8; font-size: 14px; font-weight: 800; }
.empty-state { grid-column: 1 / -1; margin: 0; padding: 46px 24px; border: 1px dashed #cbd8e7; border-radius: 12px; color: #748398; background: #fff; text-align: center; }
.search-footer { border-top: 1px solid #e1e8f0; background: #fff; }
.search-footer > div { width: min(1120px, calc(100% - 40px)); min-height: 62px; margin: 0 auto; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 18px; color: #718096; font-size: 13px; }
.search-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.search-footer a:hover { color: #176ee8; }
@media (max-width: 720px) {
  .search-main { padding: 38px 0 48px; }
  .search-hero { margin-bottom: 36px; }
  .resource-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .search-header-inner, .search-main, .search-footer > div { width: min(100% - 28px, 1120px); }
  .search-header-inner { min-height: 62px; }
  .search-brand img { width: 146px; }
  .search-header nav { gap: 12px; font-size: 13px; }
  .resource-search-form { padding: 5px; }
  .resource-search-form input { padding: 0 11px; }
  .resource-search-form button { min-width: 74px; padding: 0 14px; }
  .results-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .resource-card { padding: 18px; }
  .search-footer > div { padding: 18px 0; }
}
