:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  color: #243247;
  background: #f5f8fc;
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body { margin: 0; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.portal-shell { width: min(100%, 920px); margin: 0 auto; padding: max(18px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom)); }
.portal-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 48px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 17px; font-weight: 700; letter-spacing: .01em; }
.brand-mark { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 9px; color: #fff; background: #2b86c8; font-size: 24px; line-height: 1; }
.header-note { color: #8290a1; font-size: 12px; white-space: nowrap; }

.search-section { padding: 84px 0 48px; text-align: center; }
.eyebrow { margin: 0 0 12px; color: #2b86c8; font-size: 11px; font-weight: 700; letter-spacing: .22em; }
h1 { margin: 0; font-size: clamp(27px, 6vw, 38px); font-weight: 700; letter-spacing: -.025em; line-height: 1.35; }
.lead { margin: 12px 0 31px; color: #7d8a9b; font-size: 14px; }
.search-form { display: flex; align-items: center; width: min(100%, 610px); min-height: 55px; margin: 0 auto; padding: 5px 5px 5px 19px; border: 1px solid #dbe5ef; border-radius: 14px; background: #fff; box-shadow: 0 11px 30px rgb(38 81 121 / 7%); text-align: left; }
.search-icon { color: #96a5b4; font-family: Arial, sans-serif; font-size: 26px; line-height: 1; }
.search-form input { flex: 1; min-width: 0; margin-left: 9px; border: 0; outline: 0; color: #243247; background: transparent; font-size: 15px; }
.search-form input::placeholder { color: #a2adba; }
.search-form button { align-self: stretch; min-width: 88px; border: 0; border-radius: 10px; color: #fff; background: #2b86c8; font-weight: 600; cursor: pointer; transition: background .15s ease, transform .15s ease; }
.search-form button:hover { background: #1b72b3; }
.search-form button:active { transform: scale(.97); }
.search-error { min-height: 20px; margin: 7px 0 0; color: #a53c3c; font-size: 12px; }

.links-section { padding: 0 0 45px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.section-heading h2 { margin: 0; font-size: 18px; font-weight: 700; }
.section-heading span { color: #9aa6b5; font-size: 12px; }
.link-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.site-link { display: flex; align-items: center; gap: 12px; min-height: 74px; padding: 13px; border: 1px solid #e6edf4; border-radius: 13px; background: #fff; font-size: 14px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.site-link:hover { border-color: #c0d7eb; box-shadow: 0 6px 18px rgb(41 92 138 / 9%); transform: translateY(-2px); }
.site-link:active { transform: translateY(0); }
.site-icon { display: grid; flex: none; place-items: center; width: 42px; height: 42px; border-radius: 12px; font-size: 20px; font-weight: 700; }
.icon-baidu { color: #3179d9; background: #e9f2ff; }.icon-bing { color: #178e96; background: #e4f7f4; }.icon-zhihu { color: #287ed9; background: #eaf3ff; }.icon-douban { color: #27845f; background: #e9f7ef; }
.icon-netease { color: #d4574d; background: #fff0ee; }.icon-sohu { color: #dc5d46; background: #fff0eb; }.icon-sina { color: #c85857; background: #fff1f1; }.icon-bili { color: #2d9fc4; background: #eaf8fc; }
.portal-footer { padding-top: 28px; border-top: 1px solid #e7edf4; color: #a4afbb; font-size: 12px; text-align: center; }
.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; }
:where(a, button, input):focus-visible { outline: 3px solid #237cbb; outline-offset: 3px; }

@media (max-width: 640px) {
  .portal-shell { padding-right: 16px; padding-left: 16px; }
  .header-note { display: none; }
  .search-section { padding: 71px 0 43px; }
  .lead { margin-bottom: 25px; }
  .link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .site-link { min-height: 69px; padding: 10px; gap: 9px; font-size: 13px; }
  .site-icon { width: 38px; height: 38px; border-radius: 10px; font-size: 18px; }
}

@media (max-width: 360px) {
  .search-form { padding-left: 12px; }
  .search-form button { min-width: 68px; }
  .site-link { gap: 6px; font-size: 12px; }
  .site-icon { width: 34px; height: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  .site-link, .search-form button { transition: none; }
}
