/* 官网的资料入口、目录与阅读返回。所有正文和链接在增强前已经可用。 */
.cxy-home-entry .cxy-slogan {visibility:hidden;transition:none;transform:none}
.cxy-home-entry .cxy-slogan.is-on {visibility:visible}
.cxy-home-discovery {
  display:grid;max-width:552px;margin:22px 0 0;
  border:1px solid #cbdce9;border-radius:12px;background:rgba(255,255,255,.9);
  box-shadow:0 3px 12px rgba(23,66,103,.04);
}
.cxy-home-discovery a {display:flex;align-items:center;min-width:0;min-height:44px;color:var(--cxy-text,#24344d);border-radius:5px;font-size:15px;line-height:1.45;text-decoration:none}
.cxy-home-discovery .cxy-home-discovery-title {
  gap:9px;min-height:45px;padding:0 15px;background:linear-gradient(90deg,#edf6fd,#f8fbfe);
  border-bottom:1px solid #dbe6ee;border-radius:11px 11px 0 0;color:var(--cxy-heading,#0b1f3a);font-size:17px;font-weight:700
}
.cxy-home-discovery-title svg:first-child {color:#1769a5}
.cxy-home-discovery-title svg:last-child,.cxy-home-discovery div a svg:last-child {margin-inline-start:auto;color:#526e82}
.cxy-home-discovery div {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:3px 10px}
.cxy-home-discovery div a {gap:9px;padding:0 9px}
.cxy-home-discovery div a:nth-child(-n+2) {border-bottom:1px solid #e4edf3;border-radius:0}
.cxy-home-discovery div a svg:first-child {color:#3581a5;flex:none}
.cxy-home-discovery a:hover,.cxy-home-discovery a:focus-visible {background-color:#ebf4fb;color:#075989}
.cxy-home-discovery a:active {background-color:#deecf7}
.cxy-read-tools a:hover {color:var(--cxy-link-hover)}
.cxy-yp-menu {display:grid;gap:4px;margin:16px 0 0;padding-top:12px;border-top:1px solid var(--cxy-border,#d9e4ee)}
.cxy-yp-menu p {margin:0;font-size:14px;color:var(--cxy-text-secondary,#4a5a70)}
.cxy-yp-menu-main,.cxy-yp-menu details div {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 10px}
.cxy-yp-menu a,.cxy-yp-menu summary {display:flex;align-items:center;min-height:44px;color:var(--cxy-heading,#0b1f3a);font-size:16px;font-weight:500;text-decoration:none;cursor:pointer}
.cxy-yp-menu a:hover,.cxy-yp-menu summary:hover {color:var(--cxy-sky,#006ed6)}
.cxy-yp-menu summary::after,.cxy-read-directory summary::after {content:'⌄';margin-left:8px;speak:never}
.cxy-yp-menu details[open] summary::after,.cxy-read-directory[open] summary::after {transform:rotate(180deg)}
.cxy-yp-menu--drawer {margin:4px 18px 14px}
.cxy-yp-menu--drawer details {padding:0}
.cxy-yp-menu--drawer summary {justify-content:flex-start}
.ztc-panel:has(.cxy-yp-menu details[open]) {max-height:calc(100dvh - 92px);overflow-y:auto;overscroll-behavior:contain}
.cxy-read-tools {display:flex;align-items:flex-start;flex-wrap:wrap;gap:5px 20px;margin:0 0 14px;font-size:14px;color:var(--cxy-text-secondary,#4a5a70)}
.cxy-read-tools>a,.cxy-read-directory>summary {display:inline-flex;align-items:center;min-height:44px;gap:6px;color:inherit;text-decoration:none;cursor:pointer}
.cxy-read-tools>a {color:var(--cxy-sky,#006ed6);font-weight:500}
.cxy-read-directory>summary {list-style:none}
.cxy-yp-menu summary::-webkit-details-marker,.cxy-read-directory summary::-webkit-details-marker {display:none}
.cxy-read-directory[open] {flex-basis:100%}
.cxy-read-directory .cxy-content-bar {margin:0 0 10px}
.cxy-reading-body .cxy-yp-strip {margin:0 0 12px}
.cxy-reading-body .cxy-resource-meta {margin:0 0 16px}
.cxy-home-entry + .cxy-trust {margin-top:0}
.cxy-browse-layout.cxy-yp-layout {display:block}
.cxy-browse-layout>.cxy-yp-aside {position:static;margin:42px 0 0;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:20px;align-items:start}
.cxy-browse [hidden],.cxy-browse-layout [hidden] {display:none!important}
.cxy-browse-head {display:flex;align-items:center;justify-content:space-between;gap:12px 30px;border-bottom:1px solid var(--cxy-border,#d9e4ee)}
.cxy-browse button,.cxy-browse select,.cxy-browse input {font:inherit}
.cxy-browse button {cursor:pointer}
.cxy-browse-modes {display:flex;gap:26px}
.cxy-browse-modes button {color:var(--cxy-text-secondary,#4a5a70);background:none;border:0;border-bottom:3px solid transparent;padding:10px 1px;min-height:55px;font-size:18px;font-weight:500}
.cxy-browse-modes button[aria-pressed=true] {border-color:var(--cxy-sky,#006ed6);color:var(--cxy-sky,#006ed6)}
.cxy-browse-search {display:flex;align-items:center;gap:9px;padding:0 14px;min-height:44px;border:1px solid var(--cxy-border,#d9e4ee);border-radius:12px;color:var(--cxy-text-secondary,#4a5a70);background:white}
.cxy-browse-search:focus-within {outline:2px solid var(--cxy-sky,#006ed6);outline-offset:2px}
.cxy-browse-search input {margin:0;padding:0;border:0;outline:0!important;width:clamp(155px,18vw,255px);min-height:42px;min-width:0;color:var(--cxy-heading,#0b1f3a);background:transparent;font-size:16px}
.cxy-browse-cities {display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:16px 0 0}
.cxy-browse-city-picker {display:inline-flex;align-items:center;gap:10px;margin:0;font-size:14px;font-weight:500;color:var(--cxy-text-secondary,#4a5a70)}
.cxy-browse-cities button,.cxy-browse-group-buttons button {text-align:left;min-height:44px;border:0;padding:8px 13px;background:transparent;color:var(--cxy-text-secondary,#4a5a70);font-size:16px;border-radius:12px}
.cxy-browse-cities button[aria-pressed=true],.cxy-browse-group-buttons button[aria-pressed=true] {background:var(--cxy-tint,#eaf5ff);color:var(--cxy-sky,#006ed6);font-weight:700}
.cxy-browse-grid {display:grid;grid-template-columns:minmax(185px,22%) minmax(0,1fr);gap:clamp(24px,5vw,72px);margin:24px 0}
.cxy-browse-grid:not(:has(.cxy-browse-index:not([hidden]))) {display:block}
.cxy-browse-index {align-self:start;position:sticky;top:100px}
.cxy-browse-index label,.cxy-browse-count {display:block;margin:0 0 10px;font-size:14px;color:var(--cxy-text-secondary,#4a5a70)}
.cxy-browse-group-buttons {display:grid;gap:2px}
.cxy-browse-index select {display:none;min-height:44px;max-width:100%;padding:6px 26px 6px 10px;border-radius:9px;background:white;color:var(--cxy-heading,#0b1f3a);border:1px solid var(--cxy-border,#d9e4ee)}
.has-many-groups .cxy-browse-group-buttons {display:none}
.has-many-groups .cxy-browse-index select {display:block}
.cxy-browse-section {padding-bottom:22px}
.cxy-browse-section h2 {margin:0 0 6px;font-size:24px;line-height:1.4;color:var(--cxy-heading,#0b1f3a)}
.cxy-browse-section ul {margin:0;padding:0;list-style:none}
.cxy-browse-section li {border-bottom:1px solid var(--cxy-border,#d9e4ee);scroll-margin-top:110px}
.cxy-browse-section li>a {display:flex;justify-content:space-between;align-items:center;gap:14px;min-height:56px;padding:9px 5px;font-size:17px;line-height:1.6;text-decoration:none;color:var(--cxy-text,#24344d)}
.cxy-browse-section li>a:hover,.cxy-browse-section li>a:focus-visible {color:var(--cxy-sky,#006ed6);background:var(--cxy-surface-subtle,#f5faff)}
.cxy-browse-section small {flex:none;color:var(--cxy-text-secondary,#4a5a70);font-size:14px}
/* 两条返回路径共用同一标记效果：网址里的事项锚点，或历史记录还原的资料行。 */
:root:has(:is(.cxy-matter-list li,[data-yp-item],[data-directory-item],.cxy-resource-card):target) {
  scroll-behavior:auto;
}
:is(.cxy-matter-list li,[data-yp-item],[data-directory-item],.cxy-resource-card):target,
.cxy-returned-row {
  animation:cxy-return-highlight 2.4s ease-out;
}
@keyframes cxy-return-highlight {
  0%,32% {background-color:#DDEEFF;box-shadow:inset 3px 0 #83B7F3}
}
.cxy-browse-section li:is(:target,.cxy-returned-row)>a {background:transparent}
@media(prefers-reduced-motion:reduce){
  :is(.cxy-matter-list li,[data-yp-item],[data-directory-item],.cxy-resource-card):target,
  .cxy-returned-row {animation:none;background-color:#EEF5FF;box-shadow:inset 3px 0 #83B7F3}
}
.cxy-browse-more {min-height:44px;padding:5px 0;color:var(--cxy-sky,#006ed6);border:0;background:none;font-weight:500}
.cxy-route-progress {position:fixed;inset:0 0 auto;z-index:9999;height:3px;pointer-events:none;background:var(--cxy-sky,#006ed6);transform-origin:left;animation:cxy-route-wait 4s cubic-bezier(.16,.76,.12,1) forwards}
.cxy-route-progress[hidden] {display:none}
@keyframes cxy-route-wait {from{transform:scaleX(.05)}to{transform:scaleX(.88)}}
.cxy-home-discovery a:focus-visible,.cxy-yp-menu :is(a,summary):focus-visible,.cxy-browse :is(a,button,select):focus-visible,.cxy-read-tools :is(a,summary):focus-visible {outline:2px solid var(--cxy-sky,#006ed6);outline-offset:3px}
:is(.cxy-matter-list,[data-yp-item],[data-directory-item],.cxy-resource-card) a:focus-visible,
a:is(.cxy-resource-card,.cxy-yp-cat):focus-visible {outline:2px solid #3971A3;outline-offset:-1px;box-shadow:none}
@media(max-width:760px){
  .cxy-home-discovery {margin-top:14px}
  .cxy-home-discovery div {padding:2px 6px}
  .cxy-home-discovery div a {gap:6px;padding:0 7px}
  .cxy-browse-head {align-items:stretch;flex-direction:column-reverse;gap:3px}
  .cxy-browse-modes {gap:22px}
  .cxy-browse-modes button {min-height:48px;font-size:17px}
  .cxy-browse-search input {width:100%}
  .cxy-browse-grid {display:block;margin:14px 0}
  .cxy-browse-index {position:static;display:flex;align-items:center;gap:12px;margin-bottom:14px}
  .cxy-browse-index label {flex:none;margin:0}
  .cxy-browse-index select {display:block;min-width:0}
  .cxy-browse-group-buttons {display:none}
  .cxy-browse-section h2 {font-size:21px}
  .cxy-browse-section li>a {min-height:52px;padding:9px 0;gap:8px}
  .cxy-browse-cities {gap:2px;margin-top:10px}
  .cxy-browse-cities button {padding:8px 11px}
  .cxy-browse-layout>.cxy-yp-aside {margin-top:24px}
  main .cxy-content-hero.cxy-hero--reading,main .cxy-resource-hero.cxy-content-hero,main .cxy-resource-hero.cxy-directory-hero {min-height:0;padding-top:88px;padding-bottom:18px}
  main .cxy-content-hero.cxy-hero--reading h1#page-title,main .cxy-resource-hero.cxy-content-hero h1#page-title {line-height:1.38;margin-bottom:9px}
  main .cxy-content-hero.cxy-hero--reading .cxy-hero-meta {margin-top:8px}
  .ztc-section.cxy-resource-section:has(.cxy-reading-body),.ztc-section.cxy-resource-section:has([data-yp-root]) {padding-top:12px}
  .cxy-kb-wrap.cxy-reading-body {padding-top:10px}
  .cxy-read-tools {gap:2px 18px;margin-bottom:4px}
  .cxy-reading-body .cxy-yp-strip {margin:0 0 6px}
  .cxy-reading-body .cxy-resource-meta {margin:0 0 8px}
}
@media(prefers-reduced-motion:reduce){.cxy-route-progress {animation:none;transform:scaleX(.4)}}
@media print {.cxy-home-discovery,.cxy-browse-index,.cxy-browse-head,.cxy-browse-cities,.cxy-browse-more,.cxy-read-tools,.cxy-route-progress{display:none!important}.cxy-browse-grid{display:block}}

.cxy-read-tools.cxy-read-end {margin:28px 0 0;padding:12px 0;border-top:1px solid var(--cxy-border,#d9e4ee)}
