:root{font-family:"Microsoft YaHei","PingFang SC",sans-serif;color:#343949;background:#e6eaef;font-synthesis:none;--ink:#262b40;--muted:#818896;--line:#e0e6eb;--accent:#354793;--paper:#fbfcfe}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid #3c51ad;outline-offset:2px}
.app-shell{height:100dvh;display:flex;flex-direction:column;overflow:hidden}.topbar{height:64px;flex:none;z-index:1200;display:flex;align-items:center;gap:16px;padding:0 22px;background:#1e2338;color:#eef2fa;box-shadow:0 2px 16px #161c2f30}.brand{display:flex;align-items:center;gap:10px;min-width:210px}.brand-mark{display:grid;place-items:center;width:37px;height:37px;border:1px solid #8c97be80;border-radius:11px;color:#b3bfe2;font-size:22px;background:#ffffff0c}.brand strong{font-size:18px;letter-spacing:.08em;display:block;line-height:1.2}.brand small{display:block;font:700 9px Georgia,serif;letter-spacing:.16em;color:#8f98b4;margin-top:3px}.panel-toggle{border:1px solid #ffffff28;color:#d5dbea;border-radius:8px;background:#ffffff0b;min-height:37px;padding:0 11px;display:flex;align-items:center;gap:7px}.panel-toggle:hover,.panel-toggle[aria-expanded="true"]{background:#ffffff17}.panel-toggle span:first-child{font-size:16px}.toggle-label{font-size:11px}
.global-search{display:flex;align-items:center;gap:9px;height:40px;max-width:455px;flex:1;margin:auto;background:#f6f8fc;color:#767d92;border:1px solid #ffffff52;border-radius:8px;padding:0 11px}.global-search>span{font-size:24px;line-height:1}.global-search input{width:100%;min-width:0;border:0;outline:0!important;color:var(--ink);background:transparent;font-size:12px}.global-search input::placeholder{color:#9499a5}.global-search kbd{font:11px sans-serif;background:#e5eaef;border-radius:4px;padding:3px 6px;color:#8a909c}.region-select{display:flex;align-items:center;gap:8px;background:#ffffff0b;border:1px solid #ffffff2b;border-radius:8px;padding:0 8px 0 12px;white-space:nowrap}.region-select span{color:#9da5bb;font-size:11px}.region-select select{height:38px;min-width:145px;border:0;background:transparent;color:#f5f8fc;outline:0;font-size:12px;cursor:pointer}.region-select option{color:#242a3f;background:#fff}
.workspace{display:flex;flex:1;min-height:0;position:relative}aside{width:332px;flex:none;background:#fbfcfe;display:flex;flex-direction:column;min-height:0;z-index:1001;border-right:1px solid #d7dce3;box-shadow:5px 0 24px #313b4f0d;transition:width .22s ease,opacity .16s ease;overflow:hidden}.panel-collapsed aside{width:0;opacity:0;border:0}.sidebar-heading{padding:23px 19px 13px;display:flex;justify-content:space-between;gap:10px;flex:none}.sidebar-heading>div{min-width:0}.eyebrow{font:700 9px Georgia,serif;letter-spacing:.14em;color:#9ca3b2}.sidebar-heading h1{font-size:21px;letter-spacing:.03em;line-height:1.25;margin:7px 0 4px;color:#292f42}.sidebar-heading p,.catalog-help{font-size:11px;line-height:1.65;color:#979da7;margin:0}.close-panel{align-self:start;display:grid;place-items:center;width:31px;height:31px;border-radius:8px;border:1px solid var(--line);background:#fff;color:#898f9c;font-size:20px}.sidebar-scroll{padding:0 18px 12px;overflow-y:auto;overscroll-behavior:contain;flex:1;min-height:0;scrollbar-color:#c4c9d3 transparent;scrollbar-width:thin}.sidebar-scroll::-webkit-scrollbar,.category-list::-webkit-scrollbar{width:5px}.sidebar-scroll::-webkit-scrollbar-thumb,.category-list::-webkit-scrollbar-thumb{background:#c4c9d3;border-radius:8px}.section-caption{display:flex;justify-content:space-between;align-items:center;margin:13px 0 10px}.section-caption strong{font-size:13px;color:#343b4c}.section-caption>span{font-size:10px;color:#9ca4b0}.section-caption>span:empty{display:none}.quick-section .section-caption span{font:700 9px Georgia,serif;letter-spacing:.1em}
.presets{display:grid;grid-template-columns:1fr 1fr;gap:7px}.preset{min-width:0;text-align:left;display:flex;align-items:center;gap:9px;border:1px solid #e2e8ed;border-radius:9px;background:#fff;padding:8px;min-height:53px;color:#40485d}.preset:hover,.preset.active{border-color:#97a4ca;background:#e7ecf4}.preset-icon{width:31px;height:31px;border-radius:9px;display:grid;place-items:center;flex:none;color:var(--preset-color);background:var(--preset-bg);font-size:17px;font-weight:bold}.preset strong{display:block;font-size:12px;line-height:1.3}.preset small{display:block;font-size:10px;color:#99a0ad;margin-top:3px;white-space:nowrap}.filter-section{padding-top:6px}.filter-actions{display:flex;gap:5px}.filter-actions button{flex:1;border:1px solid #dee3ea;background:#f5f8fa;color:#666e88;font-size:10px;border-radius:6px;padding:7px 2px}.filter-actions button:hover{border-color:#99a4c8;background:#ebeff7}.categories{margin-top:8px;border:1px solid #e1e7ed;border-radius:8px;background:#fff}.categories summary{cursor:pointer;list-style:none;padding:9px 10px;font-size:11px;font-weight:bold;color:#575f77}.categories summary::-webkit-details-marker{display:none}.categories summary::before{content:'▾';margin-right:6px;color:#98a1b2}.categories:not([open]) summary::before{content:'▸'}.categories summary span{float:right;font-size:10px;color:#a0a7b2;font-weight:normal}.category-list{display:grid;grid-template-columns:1fr 1fr;gap:1px 4px;padding:0 8px 8px;max-height:120px;overflow:auto;scrollbar-width:thin}.category{min-width:0;display:flex;align-items:center;gap:5px;border-radius:4px;padding:4px 1px;font-size:10px;white-space:nowrap;color:#6a7286}.category input,.story-filter input{accent-color:#3f53a0;margin:0}.category small{margin-left:auto;color:#a2a8b4;font-size:10px}.category-dot{display:inline-block;width:7px;height:7px;flex:none;border-radius:50%;background:var(--category-color)}.story-filter{display:flex;gap:6px;align-items:center;margin:10px 1px;color:#808899;font-size:10px}.catalog-section{border-top:1px solid #e6ebef;margin-top:7px}.catalog-help{margin:-3px 0 9px}.list{display:grid;grid-template-columns:1fr 1fr;gap:6px}.pet{position:relative;min-width:0;min-height:53px;display:flex;align-items:center;gap:8px;text-align:left;padding:6px;border:1px solid #e4e9ed;border-radius:8px;background:#fff;color:#444c5f}.pet:hover,.pet.selected{border-color:#8a99c6;background:#ecf1f8}.item-icon{width:31px;height:31px;flex:none;border-radius:8px;display:grid;place-items:center;background:color-mix(in srgb,var(--category-color) 14%,white);color:var(--category-color);font-size:16px;font-weight:bold}.item-copy{display:block;min-width:0;flex:1}.item-copy strong{font-size:11px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.item-copy small{display:block;font-size:9px;color:#999fac;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:3px}.pet-count{font-size:9px;color:#505e8f;white-space:nowrap;align-self:end}.empty-result{grid-column:1/-1;padding:15px 7px;font-size:11px;color:#959caa;line-height:1.6}.detail{margin:0 18px 10px;padding:10px 12px;border-radius:9px;background:#e8edf4;color:#6f788d;font-size:10px;line-height:1.55;max-height:115px;overflow:auto;flex:none}.detail b{font-size:12px;color:#3a466d}.detail p{margin:4px 0}footer{padding:0 19px 12px;color:#a5abb6;font-size:9px;line-height:1.5;white-space:nowrap}
main{position:relative;flex:1;min-width:0;overflow:hidden;background:#dfe6ed}#map{height:100%;background:#e1e8ef;outline:0}.map-caption,.map-controls,.map-status,.map-hint{position:absolute;z-index:800}.map-caption{top:20px;left:20px;display:flex;align-items:center;gap:10px;background:#fffff4ef;padding:10px 13px;border:1px solid #fff9;border-radius:10px;box-shadow:0 4px 18px #27324b10;pointer-events:none}.caption-icon{width:31px;height:31px;border-radius:8px;display:grid;place-items:center;background:#e4eaf3;color:#495da1;font-size:19px}.map-caption small{display:block;color:#999fac;font-size:9px}.map-caption strong{display:block;margin-top:2px;color:#39425b;font-size:13px}.caption-separator{height:24px;width:1px;background:#dfe6eb;margin:0 1px}.caption-help{font-size:10px;color:#8d95a6}.map-controls{right:20px;bottom:68px;display:flex;flex-direction:column;background:#fffff5f2;border:1px solid #ffffffb8;border-radius:9px;box-shadow:0 4px 15px #242d4115;overflow:hidden}.map-controls button{width:38px;height:37px;border:0;border-bottom:1px solid #e4eaef;background:transparent;color:#545f7d;font-size:19px}.map-controls button:last-child{border:0;font-size:21px}.map-controls button:hover{background:#e8eef6}.map-controls span{text-align:center;color:#9ba2af;font-size:9px;padding:4px 0;border-bottom:1px solid #e4eaef}.map-status{bottom:19px;left:20px;max-width:calc(100% - 100px);display:flex;align-items:center;gap:8px;padding:9px 11px;border-radius:8px;background:#fffff5ef;box-shadow:0 4px 15px #303c4d10;color:#757e8f;font-size:10px}.status-dot{width:7px;height:7px;background:#6a7cb8;border-radius:50%;flex:none}.map-status button{border:0;border-left:1px solid #dee3ea;padding:0 0 0 8px;background:none;color:#40549d;font-size:10px;white-space:nowrap}.map-hint{right:20px;bottom:20px;font:700 9px Georgia,serif;letter-spacing:.08em;color:#848ea6;pointer-events:none}.map-hint span{padding:0 3px}.leaflet-tooltip.pet-tooltip{border:0;background:#fffff6ef;border-radius:5px;box-shadow:0 2px 8px #151f3f30;font-size:11px;padding:3px 6px}.popup-title{font-size:14px;font-weight:bold;color:#223284}.popup-meta{font-size:11px;line-height:1.65;color:#565c77}.leaflet-popup-content{margin:12px 15px;min-width:170px;max-height:250px;overflow:auto}
@media(max-width:800px){.brand{min-width:auto}.brand small{display:none}.brand strong{font-size:15px}.topbar{gap:9px;padding:0 12px}.region-select span{display:none}.region-select select{min-width:100px}.global-search{max-width:none}.caption-help,.caption-separator{display:none}}
@media(max-width:620px){.topbar{height:57px}.brand{gap:5px}.brand-mark{width:31px;height:31px;font-size:18px}.brand strong{font-size:13px;white-space:nowrap}.panel-toggle{padding:0 9px}.toggle-label,.global-search kbd{display:none}.global-search{padding:0 8px;gap:5px}.global-search input{font-size:11px}.global-search>span{font-size:20px}.region-select{padding:0 4px}.region-select select{min-width:72px;width:90px;font-size:11px}.workspace aside{position:absolute;top:0;bottom:0;left:0;width:min(332px,88vw);box-shadow:8px 0 30px #1e263b30}.panel-collapsed aside{width:min(332px,88vw);transform:translateX(-105%);opacity:0;pointer-events:none}.sidebar-heading{padding-top:16px}.map-caption{top:12px;left:12px}.map-controls{right:12px;bottom:72px}.map-status{bottom:12px;left:12px;max-width:calc(100% - 70px);line-height:1.45}.map-hint{display:none}}
@media(prefers-reduced-motion:reduce){aside{transition:none}}
.searching .quick-section,.searching .filter-section{display:none}

.map-home{display:inline-flex;align-items:center;gap:7px;flex:none;white-space:nowrap;min-height:37px;padding:0 12px;color:#edf2f9;text-decoration:none;font-size:12px;font-weight:600;border:1px solid #ffffff38;border-radius:8px;background:#ffffff0b}
.map-home:hover{background:#ffffff1c;color:#fff}.map-home:focus-visible{outline:2px solid #a1b1e1;outline-offset:3px}
@media(max-width:620px){.topbar{display:grid;grid-template-columns:auto minmax(0,1fr) auto;grid-template-rows:auto auto;height:auto;min-height:96px;padding:8px 12px;gap:8px}.map-home{grid-column:1;grid-row:1;padding:0 9px}.brand{grid-column:2;grid-row:1;min-width:0}.brand strong{font-size:13px}.panel-toggle{grid-column:3;grid-row:1;justify-content:center}.global-search{grid-column:1/3;grid-row:2;width:100%;min-width:0;margin:0;height:36px}.region-select{grid-column:3;grid-row:2;padding:0 4px}.region-select select{height:34px}}
