:root {
    color-scheme: light;
    --bg: #f4f6fa;
    --paper: #fff;
    --ink: #151d33;
    --muted: #59647a;
    --line: #dce2ee;
    --blue: #284fe0;
    --dark: #111e50;
    --radius: 22px;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 1rem/1.55 "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}
button, input, select { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid #5872f8; outline-offset: 3px; }
[hidden] { display: none !important; }
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.shell { width: min(1056px, 100% - 56px); margin-inline: auto; }
.skip-link {
    position: fixed;
    z-index: 3;
    top: 8px;
    left: 8px;
    transform: translateY(-200%);
    padding: 8px;
    background: var(--paper);
}
.skip-link:focus { transform: none; }
.icon-library { position: absolute; width: 0; height: 0; }
.icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: none;
}

.top { display: flex; align-items: center; justify-content: space-between; min-height: 80px; gap: 16px; }
.header-actions { display: flex; align-items: center; gap: 14px; min-width: 0; }
.top-my-lost, .nav-label { display: inline-flex; align-items: center; gap: 4px; }
.top-my-lost { min-height: 44px; color: #2144bb; font-size: .92rem; font-weight: 700; white-space: nowrap; }
.unread-clues {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    padding-inline: 4px;
    border-radius: 999px;
    background: #a82638;
    color: #fff;
    font-size: .72rem;
    font-weight: 750;
    line-height: 1.25rem;
}
.account-link {
    display: block;
    min-height: 44px;
    max-width: 9rem;
    padding: 10px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #2144bb;
    font-weight: 700;
    font-size: .92rem;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: .02em; }
.brand-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--blue);
    color: white;
}
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 46px;
    padding: 0 17px;
    border: 0;
    border-radius: 12px;
    background: var(--blue);
    color: white;
    font-weight: 750;
    white-space: nowrap;
}
.button:hover { background: #1d3ebb; }
.button:disabled { opacity: .65; cursor: wait; }
.submit-status:empty { margin: 0; }
.bottom { display: none; }

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 240px;
    padding: 39px 44px;
    border-radius: 26px;
    background: linear-gradient(112deg, #1a2d72 12%, #264ad8 78%, #345bec);
    color: white;
}
.hero-copy { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(1.9rem, 4.4vw, 3.06rem); line-height: 1.22; letter-spacing: -.055em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.hero-search { background: #fff; color: #2144bb; }
.hero-search:hover { background: #e4ecff; }
.hero-publish { background: #142766; border: 1px solid #aab7ee; }
.hero-publish:hover { background: #1a337f; }
.radar {
    position: absolute;
    right: 1%;
    top: 50%;
    transform: translateY(-50%);
    width: clamp(260px, 48%, 440px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: repeating-radial-gradient(circle, transparent 0 11%, #dbe5ff46 11.2% 11.5%, transparent 11.7% 17.5%);
    opacity: .76;
}
.radar::before, .radar::after { content: ""; position: absolute; border-radius: 50%; }
.radar::before { inset: 13%; background: conic-gradient(from 8deg, #b8d5ff52, transparent 24%); }
.radar::after { width: 10px; height: 10px; background: #d7e6ff; box-shadow: 0 0 19px 5px #c9d8ff; left: 68%; top: 29%; }
.radar-icon {
    position: absolute;
    inset: 39%;
    display: grid;
    place-items: center;
    border: 1px solid #d9e5ff8f;
    border-radius: 24%;
    background: #a9c5ff44;
    transform: rotate(-10deg);
}
.radar-icon .icon { width: 51%; height: 51%; stroke-width: 1.5; }

.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 20px;
    margin-top: 17px;
}
.field { min-width: 0; }
.field label, .field-label { display: block; margin-bottom: 6px; font-weight: 750; }
.field label span, .field-label span { color: var(--muted); font-size: .85rem; font-weight: 400; }
.field input:not([type=file]), .field select {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #cbd4e5;
    border-radius: 12px;
    background: #f7f8fb;
    color: var(--ink);
}
.field input::placeholder { color: #657087; }
.field .place-picker-label { margin-top: 9px; color: var(--muted); font-size: .85rem; font-weight: 400; }
.search-button { align-self: end; }
#query { scroll-margin-top: 12px; }
.search-more { grid-column: 1 / -1; }
.search-more summary { cursor: pointer; width: fit-content; padding: 3px 0; color: var(--muted); font-size: .88rem; }
.search-more .two { margin-top: 10px; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.two label { font-size: .91rem; }

.catalog { padding: 27px 0 45px; scroll-margin-top: 20px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.section-heading h2 { font-size: 1.4rem; letter-spacing: -.03em; }
.section-heading p, .ranking-note { color: var(--muted); font-size: .88rem; }
.ranking-note { margin: -4px 0 12px; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.card { display: block; overflow: hidden; min-width: 0; border: 1px solid var(--line); border-radius: 18px; background: white; }
.card:hover { box-shadow: 0 3px 14px #12245a15; }
.card-image { display: block; width: 100%; aspect-ratio: 1.4; object-fit: cover; background: #dfe7f2; }
.card-copy { padding: 12px 13px 13px; overflow-wrap: anywhere; }
.card-copy h3 { font-size: 1rem; }
.item-info { margin-top: 4px; color: var(--muted); font-size: .86rem; }
.item-score { margin-top: 5px; color: #2545b0; font-size: .86rem; }
.item-author { margin-top: 5px; color: #384a72; font-size: .86rem; }
.empty { padding: 20px; color: var(--muted); }
.text-link { color: #2144bb; text-decoration: underline; text-underline-offset: .2em; }
.empty .text-link { display: inline-block; margin-top: 6px; }
.empty-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 12px; }
.empty-actions .text-link { margin: 0; padding-block: 10px; }

.publish-page { max-width: 39rem; margin-inline: auto; padding: 8px 0 44px; }
.back-link { display: inline-block; margin-bottom: 13px; }
.page-heading { margin-bottom: 17px; }
.page-heading h1 { font-size: clamp(1.75rem, 4vw, 2.35rem); }
.page-heading p { color: var(--muted); }
.publish-form { display: grid; gap: 17px; padding: 20px; }
.account-page { max-width: 28rem; margin: 19px auto 0; padding-bottom: 44px; }
.account-form { display: grid; gap: 16px; padding: 20px; }
.logout-form { margin-top: 12px; }
.secondary-button { background: #e9eeff; color: #2144bb; }
.secondary-button:hover { background: #dbe4ff; }
.upload-box { padding: 17px; text-align: center; border: 1px dashed #aabbe9; border-radius: 16px; background: #f4f7ff; }
.photo-picker { position: relative; width: fit-content; margin-inline: auto; }
.photo-picker input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.photo-picker:focus-within .picker-button { outline: 3px solid #5872f8; outline-offset: 3px; }
.photo-picker:hover .picker-button { background: #1d3ebb; }
.field .picker-button { color: white; }
.field .picker-button span { color: white; font-size: 1rem; font-weight: 750; }
.photo-name { margin-top: 6px; overflow-wrap: anywhere; font-size: .9rem; }
.field-hint { color: var(--muted); font-size: .83rem; }
.upload-preview { display: block; max-width: 100%; max-height: 180px; margin: 12px auto 0; border-radius: 11px; }
.notice { padding: 12px 15px; margin-bottom: 14px; border-radius: 12px; }
.notice h2 { font-size: 1.1rem; }
.notice-error { background: #fff0f0; color: #8c2230; }
.notice-success { background: #e7f6ef; color: #14563c; }
.claim-panel { margin: 10px 0; padding: 15px; }
.claim-section { margin-top: 22px; }
.claim-section h2 { margin-bottom: 7px; font-size: 1.2rem; }
.claim-nav { margin-left: 12px; }
.claim-actions { margin-top: 12px; }
.claim-state { color: #2545b0; }
.claim-note { margin-top: 7px; overflow-wrap: anywhere; white-space: pre-wrap; }
.claim-row { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.claim-row span { color: var(--muted); }
.unread-report { border-color: #aab9fa; background: #f1f4ff; }
.unread-report span { color: #2144bb; font-weight: 700; }
.lost-links { display: flex; gap: 16px; margin: 12px 0; }
.lost-description { white-space: pre-wrap; overflow-wrap: anywhere; }
.claim-row strong { overflow-wrap: anywhere; }
.lost-clue { display: flex; gap: 14px; align-items: flex-start; }
.lost-clue img { width: 76px; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.lost-clue h3 { margin: 0; }
.lost-clue form { margin-top: 8px; }
.field textarea {
    box-sizing: border-box;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    resize: vertical;
    font: inherit;
}

.detail-image { display: block; width: 100%; max-height: 50dvh; object-fit: contain; border-radius: 11px; background: #f2f4fa; }

@media (max-width: 680px) {
    .shell { width: calc(100% - 28px); }
    .top { min-height: 67px; }
    .top-publish, .top-my-lost { display: none; }
    .brand-mark { width: 34px; height: 34px; }
    .account-link { max-width: 33vw; }
    .hero { min-height: 174px; border-radius: 21px; padding: 22px 18px; }
    .hero-actions .button { padding-inline: 11px; font-size: .88rem; }
    .radar { width: 240px; right: -96px; opacity: .62; }
    .search-form, .publish-form { padding: 13px; border-radius: 18px; }
    .search-form { gap: 8px; margin-top: 12px; }
    .search-button { padding-inline: 11px; }
    .catalog { padding-top: 22px; }
    .catalog, .publish-page, .account-page { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
    .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .card { border-radius: 15px; }
    .card-copy { padding: 9px 10px 10px; }
    .bottom {
        display: grid;
        grid-template-columns: 1fr 1fr 1.3fr;
        align-items: center;
        gap: 6px;
        position: fixed;
        z-index: 2;
        bottom: 0;
        inset-inline: 0;
        padding: 6px 14px calc(7px + env(safe-area-inset-bottom));
        border-top: 1px solid var(--line);
        background: #fffffffa;
    }
    .bottom a:not(.button) {
        display: grid;
        place-content: center;
        justify-items: center;
        gap: 2px;
        min-height: 48px;
        color: #455473;
        font-size: .79rem;
    }
    .bottom .button { font-size: .9rem; padding-inline: 7px; }
}

@media (max-width: 365px) {
    .search-button .icon { display: none; }
    .two { grid-template-columns: 1fr; }
}
