:root {
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
  color: #19333a;
  background: radial-gradient(circle at 8% 7%, #e7f5ee 0, transparent 29%), radial-gradient(circle at 94% 30%, #ecf7f2 0, transparent 25%), #f5f8f6;
  font-synthesis: none;
  --ease-settle: cubic-bezier(.22, 1, .36, 1);
  --ease-bounce: cubic-bezier(.2, 1.35, .42, 1);
  --content-width: 820px;
  --list-width: 1140px;
  --form-width: 720px;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid #a4d9cd;
  outline-offset: 2px;
}

.app-shell { min-height: 100vh; display: flex; flex-direction: column; }
.site-header { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid #dce9e3; box-shadow: 0 4px 18px #244b3b0b; }
.header-inner { max-width: var(--list-width); min-height: 72px; margin: auto; padding: 12px 30px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { border: 0; padding: 0; display: flex; gap: 10px; align-items: center; background: transparent; color: #163a39; }
.brand-mark { width: 42px; height: 42px; border-radius: 13px; background: #0f766e; color: white; display: grid; place-items: center; font-weight: 800; font-size: 22px; box-shadow: 0 5px 14px #0f766e30; }
.brand-name { font-size: 23px; font-weight: 800; letter-spacing: .04em; }
.brand-dot { color: #dd9855; }
.site-nav { display: flex; align-items: center; gap: 8px; }
.nav-link { border: 0; background: transparent; color: #57716f; min-height: 44px; padding: 10px 18px; border-radius: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.nav-icon { width: 18px; height: 18px; flex: none; }
.nav-link:hover, .nav-link.is-active:not(.nav-primary) { background: #eaf4ef; color: #0d6a62; }
.nav-primary { background: #0f766e; color: white; box-shadow: 0 5px 12px #0f766e24; }
.nav-primary:hover, .nav-primary.is-active { background: #0b645d; color: white; }

main { width: 100%; flex: 1; }
.container { max-width: var(--list-width); margin: auto; padding: 0 30px; }
.eyebrow { margin: 0 0 15px; color: #128070; font-size: 12px; font-weight: 800; letter-spacing: .16em; }
h1, h2, h3, p { margin-top: 0; }
.button { min-height: 44px; border-radius: 11px; padding: 10px 18px; font-weight: 750; border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.button.primary { color: white; background: #0f766e; box-shadow: 0 8px 15px #0f766e22; }
.button.primary:hover { background: #0b625a; }
.button.secondary { color: #0f766e; background: #ecf6f0; border-color: #d1e7da; }
.button.secondary:hover { background: #dff0e6; }

.listing { padding-top: 30px; padding-bottom: 56px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 19px; }
.section-head h2 { font-size: 25px; margin: 0 0 5px; letter-spacing: -.025em; }
.count { color: #66817b; font-size: 13px; background: #e9f1ec; border-radius: 99px; padding: 8px 11px; white-space: nowrap; }
.filter-bar { display: flex; gap: 9px; margin-bottom: 19px; }
.filter-tools { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.filter-tools .filter-bar { flex-wrap: wrap; }
.active-only { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; color: #59736d; font-size: 13px; font-weight: 650; cursor: pointer; white-space: nowrap; }
.active-only input { position: absolute; opacity: 0; pointer-events: none; }
.active-only-track { position: relative; width: 38px; height: 22px; border-radius: 99px; background: #cbd9d3; transition: background .18s; }
.active-only-track::after { content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px #21483c30; transition: transform .18s; }
.active-only input:checked + .active-only-track { background: #0f766e; }
.active-only input:checked + .active-only-track::after { transform: translateX(16px); }
.active-only input:focus-visible + .active-only-track { outline: 3px solid #a4d9cd; outline-offset: 2px; }
.filter-button { border: 1px solid #d9e7e0; background: white; color: #59736d; border-radius: 99px; min-height: 38px; padding: 7px 17px; font-weight: 650; }
.filter-button:hover { border-color: #9bcdbc; }
.filter-button.is-active { color: white; background: #145f59; border-color: #145f59; }
.item-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.item-card { min-width: 0; position: relative; display: flex; gap: 16px; background: #fff; border: 1px solid #e3ebe7; border-radius: 17px; padding: 18px; box-shadow: 0 5px 18px #28544709; }
.item-card:hover { border-color: #a8d5bd; }
.card-hitbox { position: absolute; inset: 0; width: 100%; border: 0; border-radius: inherit; background: transparent; cursor: pointer; }
.card-hitbox:focus-visible { outline: 3px solid #0f766e; outline-offset: 2px; }
.item-card.is-finished { opacity: .73; }
.item-body { flex: 1; min-width: 0; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.badge { padding: 4px 8px; border-radius: 6px; font-size: 11px; font-weight: 750; }
.badge.lost { color: #ad6413; background: #fff0d8; }
.badge.found { color: #0c756e; background: #e2f5ec; }
.badge.status { color: #6f807c; background: #f1f4f2; }
.item-card h3 { font-size: 18px; line-height: 1.4; margin: 0 0 8px; overflow-wrap: anywhere; }
.item-description { color: #66807a; font-size: 13px; line-height: 1.6; margin: 0 0 14px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.item-meta { display: flex; flex-wrap: wrap; gap: 7px 17px; color: #768d87; font-size: 12px; }
.item-thumb { position: relative; width: 112px; min-height: 112px; align-self: stretch; flex: none; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(140deg, #eef6ef, #e4f0e8); font-size: 58px; overflow: hidden; }
.item-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.empty { grid-column: 1 / -1; border: 1px dashed #cbded3; background: #fafdF9; text-align: center; border-radius: 17px; padding: 45px 20px; color: #66817b; }
.empty-icon { font-size: 40px; display: block; margin-bottom: 12px; }

.publish-wrap { max-width: var(--form-width); margin: 0 auto; padding: 34px 30px 60px; }
.page-intro { margin-bottom: 23px; }
.page-intro h1 { font-size: 31px; margin-bottom: 6px; }
.form-card { background: #fff; border: 1px solid #e2ebe5; border-radius: 18px; padding: 26px; box-shadow: 0 10px 30px #2854470b; }
.form-section + .form-section { border-top: 1px solid #edf2ee; margin-top: 25px; padding-top: 24px; }
.form-section h2 { font-size: 17px; margin-bottom: 17px; }
.type-switch { display: flex; gap: 10px; margin-bottom: 24px; }
.type-choice { flex: 1; min-height: 49px; border: 1px solid #dbe8e0; color: #4c7068; border-radius: 11px; background: #f9fbf9; font-weight: 750; }
.type-choice.is-active { border-color: #0f766e; color: #0f766e; background: #e9f6ee; box-shadow: inset 0 0 0 1px #0f766e; }
.claim-check-note { display: flex; gap: 9px; align-items: flex-start; margin: -8px 0 20px; padding: 11px 13px; border: 1px solid #f1d7a9; border-radius: 10px; background: #fff8e8; color: #80591d; font-size: 12px; line-height: 1.65; }
.claim-check-note[hidden] { display: none; }
.claim-check-note strong { flex: none; color: #9a6111; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 17px; }
.field { margin-bottom: 17px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { display: block; font-size: 13px; font-weight: 750; margin-bottom: 7px; }
.required { color: #cb684f; }
.input { width: 100%; min-height: 45px; background: #fbfcfb; border: 1px solid #dbe6de; border-radius: 9px; color: #19333a; padding: 10px 12px; }
.input::placeholder { color: #9aaca4; }
.input[aria-invalid="true"] { border-color: #d47767; background: #fffafa; }
textarea.input { min-height: 93px; resize: vertical; }
.field-error { color: #bc594e; font-size: 12px; margin: 5px 0 0; min-height: 0; }
.field-help { color: #738b82; font-size: 12px; margin: 7px 0 0; line-height: 1.5; }
.photo-row { display: flex; align-items: center; gap: 13px; flex-wrap: wrap; }
.photo-preview { width: 70px; height: 70px; border-radius: 9px; background: #eef5ef; border: 1px dashed #c3d9cb; display: grid; place-items: center; color: #789488; overflow: hidden; }
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.file-input { max-width: 260px; font-size: 12px; color: #5b756d; }
.privacy-note { padding: 11px 13px; color: #2e7469; background: #edf7f1; border: 1px solid #d7ebdd; border-radius: 9px; font-size: 12px; line-height: 1.6; margin-bottom: 16px; }
.form-error { display: none; padding: 11px 13px; border-radius: 9px; background: #fff0ec; color: #ad5549; margin: 6px 0 16px; font-size: 13px; }
.form-error.is-visible { display: block; }
.form-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 8px; }
.site-footer { max-width: var(--list-width); width: 100%; margin: auto; padding: 24px 30px; border-top: 1px solid #e6eeea; color: #8a9e96; font-size: 12px; display: flex; justify-content: space-between; gap: 12px; }
.toast { position: fixed; left: 50%; bottom: 25px; transform: translate(-50%, 15px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; background: #184842; color: white; border-radius: 10px; padding: 12px 18px; box-shadow: 0 10px 30px #123b3270; z-index: 10; max-width: min(90vw, 460px); text-align: center; font-size: 14px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.page-topbar { min-height: 58px; position: relative; display: flex; align-items: center; justify-content: center; padding: 8px 16px; background: #f9fbfa; border-bottom: 1px solid #e5eeeb; }
.page-topbar-inner { position: relative; width: 100%; max-width: var(--content-width); min-height: 42px; display: flex; align-items: center; justify-content: center; }
.page-topbar-detail .page-topbar-inner { max-width: 720px; }
.page-topbar h1 { margin: 0; font-size: 20px; font-weight: 700; }
.page-back, .page-home { position: absolute; top: 50%; transform: translateY(-50%); min-width: 44px; min-height: 44px; border: 0; background: transparent; color: #0f766e; }
.page-back { left: 12px; display: grid; place-items: center; }
.page-back svg { width: 22px; height: 22px; }
.page-home { right: 12px; font-size: 14px; }
.blank-page { min-height: 55vh; }
body[data-page="detail"] .site-footer,
body[data-page="search"] .site-footer,
body[data-page="my-posts"] .site-footer { display: none; }

@media (max-width: 760px) {
  .container { padding: 0 17px; }
  .header-inner { padding: 12px 17px; }
  .item-grid { grid-template-columns: 1fr; }
  .publish-wrap { padding: 25px 17px 45px; }
  .site-footer { padding: 20px 17px; }
}

@media (max-width: 480px) {
  .app-shell { padding-bottom: 74px; }
  .site-header { padding-top: env(safe-area-inset-top); }
  .header-inner { position: relative; min-height: 60px; padding: 9px 16px; justify-content: center; }
  .brand { position: relative; z-index: 1; }
  .brand-name { font-size: 19px; }
  .brand-mark { width: 35px; height: 35px; }
  .site-nav {
    position: fixed;
    z-index: 20;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 100%;
    max-width: 480px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    padding: 8px 16px calc(8px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid #e1ebe5;
    box-shadow: 0 -6px 18px #244b3b12;
  }
  .site-nav .nav-link { min-width: 0; min-height: 48px; padding: 4px 0; display: flex; flex-direction: column; gap: 3px; border-radius: 0; background: transparent; color: #60717a; font-size: 12px; font-weight: 400; box-shadow: none; }
  .site-nav .nav-link.is-active,
  .site-nav .nav-link.is-active:hover { background: transparent; color: #0f766e; font-weight: 700; }
  .site-nav .nav-icon { width: 22px; height: 22px; }
  .page-topbar { min-height: 54px; padding: 7px 14px; }
  .listing { padding-top: 20px; padding-bottom: 42px; }
  .section-head { display: block; position: relative; margin-bottom: 14px; }
  .section-head .eyebrow { margin-bottom: 8px; }
  .section-head h2 { font-size: 22px; margin-bottom: 5px; }
  .count { position: absolute; right: 0; top: 27px; padding: 6px 9px; font-size: 11px; }
  .filter-bar { gap: 7px; margin-bottom: 13px; }
  .filter-tools { align-items: center; gap: 8px; }
  .filter-tools .filter-bar { margin-bottom: 16px; }
  .active-only { min-height: 36px; margin-bottom: 16px; font-size: 12px; }
  .filter-button { min-height: 36px; padding: 6px 15px; font-size: 13px; }
  .item-grid { gap: 16px; }
  .item-card { padding: 16px; gap: 12px; border-radius: 16px; }
  .badges { gap: 6px; margin-bottom: 10px; }
  .item-card h3 { font-size: 16px; line-height: 1.45; margin-bottom: 8px; }
  .item-description { margin-bottom: 12px; font-size: 12.5px; line-height: 1.65; }
  .item-meta { gap: 6px 12px; font-size: 11.5px; line-height: 1.5; }
  .item-thumb { width: 76px; min-height: 76px; font-size: 42px; border-radius: 10px; }
  .publish-wrap { padding: 24px 13px 42px; }
  .page-intro { margin-bottom: 16px; }
  .publish-wrap .page-intro { margin-bottom: 21px; }
  .page-intro .eyebrow { margin-bottom: 8px; }
  .page-intro h1 { font-size: 25px; margin-bottom: 4px; }
  .form-card { padding: 18px; border-radius: 15px; }
  .form-section h2 { font-size: 15px; margin-bottom: 17px; }
  .form-section + .form-section { margin-top: 25px; padding-top: 24px; }
  .type-switch { gap: 8px; margin-bottom: 21px; }
  .claim-check-note { display: block; margin: -4px 0 16px; padding: 9px 10px; }
  .claim-check-note strong { display: block; margin-bottom: 2px; }
  .type-choice { min-width: 0; min-height: 44px; font-size: 14px; }
  .field-grid { grid-template-columns: 1fr; }
  .field { margin-bottom: 20px; }
  .field label { margin-bottom: 8px; }
  .input { min-height: 44px; font-size: 16px; }
  .publish-wrap .input { min-height: 48px; }
  textarea.input { min-height: 78px; }
  .publish-wrap textarea.input { min-height: 100px; }
  .photo-preview { width: 64px; height: 64px; }
  .photo-row { gap: 12px; }
  .file-input { max-width: calc(100% - 76px); }
  .field-help { margin-top: 8px; }
  .privacy-note { padding: 11px 12px; margin-bottom: 18px; }
  .form-actions { margin-top: 12px; }
  .form-actions .button { flex: 1; }
  .site-footer { flex-direction: column; padding: 15px 17px; gap: 4px; }
  .toast { bottom: calc(72px + env(safe-area-inset-bottom)); }
}

@media (min-width: 380px) and (max-width: 480px) {
  .field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; }
}

/* ── 第二阶段 · 首页搜索入口与搜索页 ───────────────────────────── */
.search-entry { width: 100%; display: flex; align-items: center; gap: 11px; margin-bottom: 10px; padding: 8px 10px 8px 16px; min-height: 52px; background: #fff; border: 1px solid #d9e7e0; border-radius: 14px; color: #66817b; text-align: left; box-shadow: 0 5px 18px #28544709; }
.search-entry:hover { border-color: #9bcdbc; color: #0d6a62; }
.search-entry-icon { width: 19px; height: 19px; flex: none; color: #0f766e; }
.search-entry-text { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: #19333a; font-size: 15px; }
.search-entry-text::placeholder { color: #78908a; opacity: 1; }
.search-entry-cta { flex: none; border: 0; font-size: 14px; font-weight: 750; color: #0f766e; background: #eaf4ef; border-radius: 9px; padding: 8px 15px; }
.search-entry-cta:hover { background: #dff0e6; }
.home-search-state { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 2px 18px; color: #66817b; font-size: 13px; line-height: 1.5; }
.home-search-state strong { color: #19333a; }
.home-search-state button { flex: none; border: 0; padding: 4px 0 4px 10px; background: transparent; color: #0f766e; font-weight: 750; }
.search-syntax { margin: 0 2px 12px; color: #758b86; font-size: 12px; line-height: 1.5; }
.search-error { margin: 0 2px 12px; color: #b14b42; font-size: 12px; line-height: 1.5; }

.page-wrap { width: 100%; max-width: var(--content-width); margin: 0 auto; padding: 30px 30px 60px; }
.search-intro { margin-bottom: 18px; padding: 21px 24px; border: 1px solid #dcece2; border-radius: 18px; background: linear-gradient(125deg, #e6f5eb, #f6faf3); }
.search-intro .eyebrow { margin-bottom: 8px; }
.search-intro h2 { margin: 0 0 5px; font-size: 25px; line-height: 1.35; }
.search-intro p:last-child { margin: 0; color: #5b746e; font-size: 13px; line-height: 1.6; }

.search-card { scroll-margin-top: 82px; background: #fff; border: 1px solid #e2ebe5; border-radius: 18px; padding: 20px; box-shadow: 0 10px 30px #2854470b; }
.search-row { display: flex; gap: 10px; }
.search-input { flex: 1; min-width: 0; min-height: 46px; }
.search-submit { flex: none; padding: 10px 24px; }
.search-filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 15px; }
.search-filters .filter-bar { margin-bottom: 0; }
.search-location { display: flex; align-items: center; gap: 8px; min-width: 0; }
.search-location label { font-size: 13px; font-weight: 750; color: #57716f; }
.search-location .input { width: 190px; min-height: 38px; padding: 7px 11px; font-size: 14px; }
.search-note { margin: 14px 0 0; color: #758b86; font-size: 12px; line-height: 1.6; }

.search-result-area { margin-top: 22px; scroll-margin-top: 82px; outline: none; }
.search-results-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 5px; }
.search-results-title { margin: 0; font-size: 20px; }
.search-edit { border: 0; background: transparent; color: #0f766e; padding: 7px 0 7px 12px; font-size: 13px; font-weight: 750; }
.search-edit:hover { color: #0b625a; text-decoration: underline; }
.search-summary { margin-bottom: 14px; }
.search-summary-line { margin: 0; color: #66817b; font-size: 13px; line-height: 1.7; }
.search-summary-line strong { color: #19333a; }
.search-start { border: 1px dashed #cbded3; background: #fafdf9; border-radius: 17px; padding: 26px 22px; }
.search-start-title { margin: 0 0 14px; color: #57716f; font-size: 14px; }
.search-start-sub { margin: 0 0 10px; color: #8a9e96; font-size: 12px; letter-spacing: .08em; }
.chip-row { display: flex; flex-wrap: wrap; gap: 9px; }
.chip { border: 1px solid #d9e7e0; background: #fff; color: #4c7068; border-radius: 99px; min-height: 38px; padding: 7px 17px; font-weight: 650; }
.chip:hover { border-color: #9bcdbc; color: #0d6a62; }
.search-empty { padding: 40px 22px; }
.empty-title { margin: 0 0 8px; color: #19333a; font-size: 15px; font-weight: 750; }
.empty-sub { margin: 0 0 18px; color: #758b86; font-size: 13px; line-height: 1.6; }
.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; }

@media (max-width: 760px) {
  .page-wrap { padding: 24px 17px 48px; }
}

@media (max-width: 480px) {
  .search-entry { min-height: 48px; padding: 7px 8px 7px 13px; gap: 9px; margin-bottom: 9px; }
  .search-entry-text { font-size: 14px; }
  .search-entry-cta { padding: 6px 12px; font-size: 13px; }
  .home-search-state { align-items: flex-start; margin-bottom: 14px; font-size: 12px; }
  .search-card { padding: 14px; border-radius: 15px; }
  .search-row { flex-direction: column; gap: 9px; }
  .search-submit { width: 100%; }
  .search-filters { flex-direction: column; align-items: stretch; gap: 10px; }
  .search-location { justify-content: space-between; }
  .search-location .input { width: auto; flex: 1; min-width: 0; }
  .search-start { padding: 20px 15px; }
  .page-wrap { padding: 20px 15px 34px; }
  .search-intro { padding: 17px 18px; border-radius: 15px; }
  .search-intro h2 { font-size: 21px; }
}

/* ── 第二阶段 · 物品详情 ─────────────────────────────────────── */
.detail-wrap { max-width: 720px; }
.detail-card { background: #fff; border: 1px solid #e3ebe7; border-radius: 18px; overflow: hidden; box-shadow: 0 10px 30px #2854470b; }
.detail-card.is-finished { border-color: #e0e9e4; }
.detail-head { padding: 20px 22px; background: linear-gradient(150deg, #edf7f1, #f8fbf9); border-bottom: 1px solid #e7efea; }
.detail-head .badges { margin-bottom: 10px; }
.detail-name { margin: 0 0 8px; font-size: 23px; line-height: 1.35; overflow-wrap: anywhere; }
.detail-published { margin: 0; color: #7b918b; font-size: 12px; }
.detail-photo { margin: 0; border-bottom: 1px solid #eef3ef; background: #f6faf7; }
.detail-photo img { display: block; width: 100%; max-height: 340px; object-fit: contain; }
.detail-photo-fallback { display: grid; place-items: center; height: 150px; font-size: 54px; background: linear-gradient(140deg, #eef6ef, #e4f0e8); border-bottom: 1px solid #eef3ef; }
.detail-list { margin: 0; padding: 6px 22px 20px; }
.detail-row { display: flex; gap: 14px; padding: 15px 0; border-bottom: 1px solid #f0f4f1; }
.detail-row:last-child { border-bottom: 0; padding-bottom: 4px; }
.detail-row dt { flex: none; width: 92px; color: #7b918b; font-size: 13px; line-height: 1.6; }
.detail-row dd { flex: 1; min-width: 0; margin: 0; color: #19333a; font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
.detail-finished-note { display: inline-block; margin-left: 8px; color: #7b918b; font-size: 12px; }
.detail-tip { margin: 16px 2px 0; color: #8a9e96; font-size: 12px; line-height: 1.7; }

.contact-card { margin-top: 14px; background: #fff; border: 1px solid #e3ebe7; border-radius: 18px; box-shadow: 0 10px 30px #2854470b; overflow: hidden; }
.contact-toggle { width: 100%; min-height: 56px; border: 0; background: transparent; padding: 14px 22px; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #0f766e; font-size: 15px; font-weight: 750; text-align: left; }
.contact-toggle:hover { background: #f4faf7; }
.contact-toggle svg { width: 17px; height: 17px; flex: none; transition: transform .18s; }
.contact-toggle.is-open svg { transform: rotate(90deg); }
.contact-panel { padding: 4px 22px 20px; border-top: 1px solid #eef3ef; }
.contact-label { margin: 16px 0 6px; color: #7b918b; font-size: 12px; font-weight: 750; letter-spacing: .06em; }
.contact-value { margin: 0 0 14px; color: #19333a; font-size: 17px; font-weight: 750; overflow-wrap: anywhere; user-select: text; }
.contact-warning { margin: 0 0 16px; padding: 10px 12px; background: #fff5e6; border: 1px solid #f6e0bb; border-radius: 9px; color: #94601b; font-size: 12px; line-height: 1.65; }
.contact-actions { display: flex; gap: 9px; }

@media (max-width: 480px) {
  .detail-head { padding: 16px; }
  .detail-name { font-size: 20px; }
  .detail-list { padding: 4px 14px 16px; }
  .detail-row { gap: 10px; padding: 12px 0; }
  .detail-row dt { width: 76px; font-size: 12px; }
  .detail-row dd { font-size: 13px; }
  .contact-toggle { min-height: 52px; padding: 12px 16px; font-size: 14px; }
  .contact-panel { padding: 2px 16px 16px; }
  .contact-value { font-size: 16px; }
  .detail-photo img { max-height: 240px; }
  .detail-photo-fallback { height: 120px; font-size: 44px; }
}

/* ── 第二阶段 · 我的发布 ─────────────────────────────────────── */
.my-posts-wrap { max-width: var(--list-width); }
.my-posts-summary { margin: 0 0 14px; color: #66817b; font-size: 13px; }
.my-posts-summary strong { color: #19333a; }
.my-posts-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.my-post-item { min-width: 0; display: flex; flex-direction: column; gap: 0; background: #fff; border: 1px solid #e3ebe7; border-radius: 17px; padding: 16px; box-shadow: 0 5px 18px #28544709; }
.my-post-item.is-new-post { border-color: #75bea8; box-shadow: 0 0 0 2px #bde6d7, 0 8px 24px #28544712; }
.my-post-item .item-card { border: 0; box-shadow: none; padding: 0; border-radius: 0; background: transparent; }
.similar-clues { margin-top: 14px; padding: 13px; border: 1px solid #d5e9de; border-radius: 12px; background: #f2faf5; }
.similar-clues-head { display: flex; gap: 8px; color: #285f55; font-size: 13px; line-height: 1.45; }
.similar-clues-head strong { color: #155f56; }
.similar-clues-head p { margin: 3px 0 0; color: #66817b; font-size: 11px; }
.similar-clues-list { display: grid; gap: 7px; margin-top: 10px; }
.similar-clue { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 9px 10px; border: 1px solid #dcebe3; border-radius: 9px; background: #fff; color: #19333a; text-align: left; }
.similar-clue:hover { border-color: #9bcdbc; background: #fbfefc; }
.similar-clue-main { min-width: 0; display: grid; gap: 2px; }
.similar-clue-main b, .similar-clue-main small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.similar-clue-main small { color: #758b86; font-size: 10px; }
.similar-clue-reason { color: #0f766e; font-size: 10px; }
.my-post-actions { display: flex; margin-top: 14px; padding-top: 14px; border-top: 1px solid #eef3ef; }
.my-post-actions .finish-button { width: 100%; }
.my-post-done { margin: 14px 0 0; padding-top: 13px; border-top: 1px solid #eef3ef; color: #7b918b; font-size: 12px; line-height: 1.6; }
.my-post-done span { color: #128070; font-weight: 800; }
.my-posts-foot { display: flex; justify-content: center; margin-top: 22px; }

@media (max-width: 760px) {
  .my-posts-list { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .my-posts-list { gap: 16px; }
  .my-post-item { padding: 13px; border-radius: 14px; }
  .similar-clue { grid-template-columns: minmax(0, 1fr) auto; }
  .similar-clue-reason { grid-column: 1 / -1; }
  .my-post-actions .finish-button { flex: 1; }
}

/* Gentle movement keeps the information readable while adding depth to the interface. */
@keyframes content-arrive {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.site-header { background: #ffffffeb; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.brand-mark { background: linear-gradient(150deg, #138d7e, #0b665f); transition: transform .4s var(--ease-bounce), box-shadow .35s var(--ease-settle); }
.nav-link, .filter-button, .type-choice, .button, .search-entry-cta, .page-back, .page-home, .contact-toggle, .similar-clue {
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .28s var(--ease-settle), transform .32s var(--ease-bounce);
}
.listing, .publish-wrap, .page-wrap { animation: content-arrive .48s var(--ease-settle) backwards; }
.item-grid > *, .my-posts-list > * { animation: content-arrive .46s var(--ease-settle) backwards; }
.item-grid > :nth-child(2), .my-posts-list > :nth-child(2) { animation-delay: 45ms; }
.item-grid > :nth-child(3), .my-posts-list > :nth-child(3) { animation-delay: 90ms; }
.item-grid > :nth-child(n+4), .my-posts-list > :nth-child(n+4) { animation-delay: 125ms; }
.item-card, .my-post-item, .form-card, .detail-card, .contact-card, .search-card {
  box-shadow: 0 7px 24px #2854470d, 0 1px 2px #28544708;
  transition: border-color .25s ease, box-shadow .36s var(--ease-settle), transform .38s var(--ease-bounce);
}
.item-card:focus-within, .my-post-item:focus-within { border-color: #81c8ad; box-shadow: 0 12px 30px #28544718; }
.search-entry { box-shadow: 0 7px 24px #2854470d; transition: border-color .22s ease, box-shadow .32s var(--ease-settle), transform .38s var(--ease-bounce); }
.search-entry:focus-within { border-color: #5ebfa2; box-shadow: 0 0 0 4px #75cdae29, 0 10px 26px #28544713; }
.input { transition: border-color .2s ease, background-color .2s ease, box-shadow .25s var(--ease-settle); }
.input:focus { border-color: #66bfa2; background: #fff; box-shadow: 0 0 0 4px #75cdae25; outline: none; }
.section-head h2, .page-intro h1, .detail-name { letter-spacing: -.035em; }
.badge, .count { box-shadow: inset 0 0 0 1px #ffffff70; }
.item-thumb img { transition: transform .55s var(--ease-settle); }

@media (hover: hover) {
  .brand:hover .brand-mark { transform: rotate(-7deg) scale(1.06); box-shadow: 0 9px 19px #0f766e36; }
  .item-card:hover, .my-post-item:hover { transform: translateY(-4px); border-color: #91d2b5; box-shadow: 0 17px 36px #28544718, 0 3px 8px #2854470b; }
  .item-card:hover .item-thumb img, .my-post-item:hover .item-thumb img { transform: scale(1.055); }
  .button:hover, .search-entry-cta:hover, .page-back:hover, .page-home:hover, .similar-clue:hover { transform: translateY(-2px); }
  .filter-button:hover, .type-choice:hover, .nav-link:hover { transform: translateY(-2px); }
}

/* The nested card in "My posts" shares the outer card's rounded hover surface. */
.my-post-item .item-card:is(:hover, :focus-within) { transform: none; border-color: transparent; box-shadow: none; }
.listing .item-card.is-disappearing { animation: none; opacity: 0; transform: translateY(-8px) scale(.98); pointer-events: none; transition: opacity .22s ease, transform .22s var(--ease-settle); }

@media (max-width: 480px) {
  .filter-tools { flex-wrap: wrap; gap: 0 12px; }
  /* A backdrop filter on this ancestor would anchor the fixed mobile nav to the header. */
  .site-header { background: #fffffff5; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .site-nav { background: #fffffff2; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
