:root {
    --nav-brand: #2f78b6;
    --nav-brand-dark: #235d91;
    --nav-ink: #172033;
    --nav-muted: #64748b;
    --nav-line: rgba(148, 163, 184, .24);
    --nav-page: 1240px;
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body.nav-home-page {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: var(--nav-ink);
    background: linear-gradient(135deg, #f2faff 0%, #fff 48%, #f5f7fb 100%);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Microsoft Yahei", sans-serif;
    -webkit-font-smoothing: antialiased;
}
body.nav-home-page::before { content: ""; position: fixed; z-index: -1; inset: 0; pointer-events: none; background: radial-gradient(circle at 5% 12%, rgba(186, 230, 253, .2), transparent 30rem); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
img, svg { display: block; }
.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; }

.nav-simple-shell { min-height: 100vh; display: flex; flex-direction: column; }
.nav-simple-header { width: min(calc(100% - 48px), var(--nav-page)); height: 70px; margin: 0 auto; display: flex; align-items: center; }
.nav-simple-brand { display: inline-flex; align-items: center; gap: 9px; color: var(--nav-ink); font-size: 14px; font-weight: 650; }
.nav-simple-brand img { width: 30px; height: 30px; object-fit: cover; border-radius: 9px; }

.nav-simple-main { width: min(calc(100% - 48px), var(--nav-page)); flex: 1; margin: 0 auto; display: flex; flex-direction: column; }
.nav-simple-hero { width: min(900px, 100%); margin: 52px auto 0; text-align: center; }
.nav-simple-kicker { width: fit-content; margin: 0 auto 24px; padding: 6px 14px; color: var(--nav-brand); background: rgba(255, 255, 255, .76); border: 1px solid #cceafa; border-radius: 999px; font-size: 12px; font-weight: 650; letter-spacing: .04em; }
.nav-simple-hero h1 { margin: 0; color: #111827; font-size: clamp(42px, 5vw, 66px); line-height: 1.08; letter-spacing: -.06em; font-weight: 720; }
.nav-simple-subtitle { margin: 18px 0 0; color: var(--nav-muted); font-size: 16px; line-height: 1.7; }
.nav-simple-search { width: min(860px, 100%); min-height: 70px; margin: 28px auto 0; padding: 8px; display: flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .76); border: 1px solid rgba(255, 255, 255, .9); border-radius: 16px; box-shadow: 0 14px 32px rgba(15, 23, 42, .08); backdrop-filter: blur(14px); transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease; }
.nav-simple-search:focus-within { border-color: #c8e9fa; box-shadow: 0 16px 34px rgba(37, 99, 235, .13); transform: translateY(-1px); }
.nav-simple-search > svg { width: 20px; height: 20px; margin-left: 12px; flex: 0 0 20px; color: #94a3b8; }
.nav-simple-search input { min-width: 0; height: 54px; flex: 1; padding: 0 10px; border: 0; outline: 0; color: #334155; background: #fff; border-radius: 12px; font-size: 15px; }
.nav-simple-search input::placeholder { color: #a8b4c5; }
.nav-simple-search kbd { display: inline-flex; gap: 4px; align-items: center; padding: 6px 8px; color: #94a3b8; background: #f1f5f9; border-radius: 7px; font-size: 10px; }
.nav-simple-search button { min-width: 146px; height: 54px; padding: 0 24px; color: #fff; background: var(--nav-brand); border: 0; border-radius: 12px; box-shadow: 0 10px 22px rgba(47, 120, 182, .25); cursor: pointer; font-size: 15px; font-weight: 650; transition: background .2s ease, transform .25s ease, box-shadow .25s ease; }
.nav-simple-search button:hover { background: var(--nav-brand-dark); box-shadow: 0 14px 28px rgba(35, 93, 145, .3); transform: translateY(-1px); }
.nav-simple-hint { min-height: 16px; margin-top: 8px; color: #a1aec0; font-size: 10px; visibility: hidden; }

.nav-recommend { width: min(860px, 100%); margin: clamp(170px, 20vh, 260px) auto 0; padding: 0 0 10px; }
.nav-recommend-head { margin-bottom: 9px; }
.nav-recommend-head h2 { margin: 0; color: #1e293b; font-size: 17px; font-weight: 680; letter-spacing: -.02em; }
.nav-site-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.nav-site-card { min-width: 0; overflow: hidden; border: 1px solid var(--nav-line); border-radius: 16px; background: rgba(255, 255, 255, .92); box-shadow: 0 1px 2px rgba(15, 23, 42, .035), 0 8px 20px -12px rgba(15, 23, 42, .17); transition: border-color .2s ease, box-shadow .25s ease, transform .25s ease; }
.nav-site-card:hover { border-color: rgba(148, 163, 184, .46); box-shadow: 0 6px 16px -10px rgba(15, 23, 42, .22); transform: translateY(-2px); }
.nav-site-card-link { display: block; padding: 12px; }
.nav-card-cover { height: 106px; display: grid; place-items: center; overflow: hidden; border-radius: 11px; background: linear-gradient(135deg, color-mix(in srgb, var(--site-accent, #a5d8f2) 28%, white), #f8fafc 76%); }
.nav-card-cover img, .nav-card-cover span { width: 56px; height: 56px; display: grid; place-items: center; object-fit: contain; border-radius: 15px; background: #fff; box-shadow: 0 6px 16px rgba(15, 23, 42, .08); }
.nav-card-cover span { color: var(--nav-brand); font-size: 24px; font-weight: 700; }
.nav-site-card header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.nav-site-card h3 { min-width: 0; margin: 0; overflow: hidden; color: #1e293b; font-size: 15px; line-height: 1.4; font-weight: 680; text-overflow: ellipsis; white-space: nowrap; }
.nav-site-card header svg { width: 14px; height: 14px; flex: 0 0 14px; fill: none; stroke: #94a3b8; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.nav-site-card p { display: -webkit-box; min-height: 42px; margin: 7px 0 0; overflow: hidden; color: #64748b; font-size: 11px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.nav-site-card small { display: block; margin-top: 8px; overflow: hidden; color: #a0aec0; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.nav-empty-state { min-height: 180px; display: grid; grid-column: 1 / -1; place-content: center; justify-items: center; color: var(--nav-muted); border: 1px solid var(--nav-line); border-radius: 16px; background: rgba(255, 255, 255, .86); }
.nav-empty-state img { width: 38px; height: 38px; margin-bottom: 10px; border-radius: 11px; opacity: .72; }
.nav-empty-state p { margin: 0; font-size: 12px; }
.nav-no-results { padding: 30px 0 10px; display: flex; justify-content: center; align-items: center; gap: 13px; color: var(--nav-muted); font-size: 12px; }
.nav-no-results[hidden] { display: none !important; }
.nav-no-results button { padding: 0; color: var(--nav-brand); background: transparent; border: 0; cursor: pointer; font-size: 11px; }
.nav-simple-footer { width: min(860px, calc(100% - 48px)); min-height: 64px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #94a3b8; font-size: 10px; }
.nav-simple-footer .footer-legal-links { display: inline-flex; align-items: center; gap: 12px; }
.nav-simple-footer .footer-legal-links a:hover { color: var(--nav-brand); }

@media (max-width: 760px) {
    .nav-simple-header { width: calc(100% - 32px); height: 58px; }
    .nav-simple-main { width: calc(100% - 32px); }
    .nav-simple-hero { margin-top: 64px; }
    .nav-simple-kicker { margin-bottom: 20px; font-size: 11px; }
    .nav-simple-hero h1 { max-width: 100%; font-size: clamp(38px, 10.5vw, 44px); letter-spacing: -.07em; white-space: nowrap; }
    .nav-simple-subtitle { margin-top: 14px; font-size: 14px; }
    .nav-simple-search { width: 100%; max-width: 100%; min-height: 60px; margin-top: 24px; padding: 6px; overflow: hidden; border-radius: 14px; }
    .nav-simple-search > svg { margin-left: 9px; }
    .nav-simple-search input { width: 0; height: 46px; padding: 0 5px; font-size: 13px; }
    .nav-simple-search kbd { display: none; }
    .nav-simple-search button { min-width: 78px; height: 46px; padding: 0 8px; flex: 0 0 78px; border-radius: 10px; font-size: 12px; }
    .nav-recommend { margin-top: 112px; padding-bottom: 4px; }
    .nav-site-grid { grid-template-columns: 1fr; gap: 9px; }
    .nav-site-card-link { padding: 10px; display: grid; grid-template-columns: 84px minmax(0, 1fr); column-gap: 11px; }
    .nav-card-cover { width: 84px; height: 84px; grid-row: 1 / span 4; }
    .nav-card-cover img, .nav-card-cover span { width: 45px; height: 45px; border-radius: 12px; font-size: 20px; }
    .nav-site-card header { margin-top: 1px; }
    .nav-site-card p { min-height: 35px; margin-top: 5px; }
    .nav-site-card small { margin-top: 5px; }
    .nav-simple-footer { width: calc(100% - 32px); min-height: 78px; gap: 14px; font-size: 9px; }
}
@media (max-width: 760px) {
    .nav-simple-hero { margin-top: 52px; }
    .nav-recommend { margin-top: 84px; }
    .nav-simple-footer { min-height: 72px; padding: 10px 0; }
}
@media (max-width: 380px) {
    .nav-simple-header, .nav-simple-main { width: calc(100% - 24px); }
    .nav-simple-hero h1 { font-size: clamp(36px, 11vw, 42px); white-space: normal; }
    .nav-simple-search button { min-width: 74px; flex-basis: 74px; padding: 0 6px; }
    .nav-site-card-link { grid-template-columns: 76px minmax(0, 1fr); column-gap: 10px; }
    .nav-card-cover { width: 76px; height: 76px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; } }
