/* 第三批（执行方案 B-4，2026-11-14）：财税黄页。大类页按方向二（事项卡片、每卡先露 3 条、右栏问财小云 AI），
   文章页加所属事项、依据条数和收藏。只用站点已有的变量；紫色只给“问财小云 AI”。 */
:root{--cxy-yp-violet:var(--cxy-violet,#8B5CF6);--cxy-yp-violet-ink:#5B3DC4;--cxy-yp-violet-tint:color-mix(in srgb,var(--cxy-yp-violet) 9%,#fff);--cxy-yp-green:#047857;--cxy-yp-green-tint:#ECFDF5;--cxy-yp-card:#F5F8FC}

/* 资源中心首页：第一层级核心目录（CSS Subgrid 统一行高与基线） */
.cxy-yp-directory{margin:8px 0 48px}
.cxy-yp-directory-head{display:flex;align-items:flex-end;justify-content:space-between;flex-wrap:wrap;gap:8px 24px;margin-bottom:24px}
.cxy-yp-directory-head h2{font-size:26px;line-height:1.35;color:var(--cxy-heading);margin:0;letter-spacing:-.015em}
.cxy-yp-directory-head p{color:var(--ztc-text-muted);font-size:14.5px;line-height:1.65;margin:0}
.cxy-yp-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.cxy-yp-cat{
  grid-row:span 3;display:grid;grid-template-rows:auto 1fr auto;grid-template-rows:subgrid;row-gap:8px;
  background:#fff;border:1px solid var(--ztc-border);border-radius:16px;padding:20px 22px;
  color:var(--ztc-text);text-decoration:none;
  transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease;
}
a.cxy-yp-cat:hover,a.cxy-yp-cat:focus-visible{border-color:color-mix(in srgb,var(--ztc-action) 45%,white);background:#fff;box-shadow:0 12px 26px -18px rgba(11,31,58,.22);transform:translateY(-1px)}
.cxy-yp-cat strong{font-size:17.5px;line-height:1.4;font-weight:700;color:var(--cxy-heading)}
.cxy-yp-cat > span{font-size:13.5px;line-height:1.65;color:var(--ztc-text-muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-clamp:2;overflow:hidden}
.cxy-yp-cat small{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-top:10px;border-top:1px solid color-mix(in srgb,var(--ztc-border) 70%,transparent);font-size:13.5px;color:var(--ztc-action);font-weight:500;font-variant-numeric:tabular-nums}
.cxy-yp-cat small i{font-style:normal;transition:transform .16s ease}
a.cxy-yp-cat:hover small i{transform:translateX(2px)}
.cxy-yp-cat.is-pending{background:var(--cxy-yp-card);border:1px dashed var(--cxy-line-soft)}
.cxy-yp-cat.is-pending small{color:var(--ztc-text-muted);font-weight:400;justify-content:flex-start}
.cxy-yp-cat.is-pending small a{color:var(--cxy-link)}
.cxy-yp-ways{
  display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px 24px;
  margin-top:22px;padding:14px 20px;border:1px solid var(--ztc-border);border-radius:14px;background:var(--cxy-yp-card);
}
.cxy-yp-stages{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px}
.cxy-yp-stages > span,.cxy-yp-city-jump > span{font-size:13.5px;font-weight:500;color:var(--ztc-text-muted);white-space:nowrap}
.cxy-yp-stage-pills{display:flex;flex-wrap:wrap;flex-wrap:balance;gap:6px}
.cxy-yp-stage-pills a{display:inline-flex;align-items:center;min-height:32px;padding:0 12px;border:1px solid var(--ztc-border);border-radius:999px;background:#fff;color:var(--cxy-text);font-size:13.5px;text-decoration:none;transition:border-color .14s ease,color .14s ease,background-color .14s ease}
.cxy-yp-stage-pills a:hover,.cxy-yp-stage-pills a:focus-visible{border-color:var(--ztc-action);background:var(--ztc-tint-info-bg);color:var(--ztc-action)}
.cxy-yp-city-jump{display:inline-flex;align-items:center;gap:10px;margin:0}

/* 大类页 */
.cxy-yp-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:40px;align-items:start;margin-top:8px}
.cxy-yp-tools{display:flex;flex-wrap:wrap;align-items:center;gap:12px 20px;margin-bottom:20px}
.cxy-yp-find{flex:1 1 280px}
.cxy-yp-find input{width:100%;min-width:0;border:1px solid var(--ztc-border);background:#fff;border-radius:999px;padding:12px 20px;font:inherit;font-size:16px;color:var(--ztc-text)}
.cxy-yp-find input:focus-visible{outline:2px solid var(--ztc-action);outline-offset:2px}
.cxy-yp-tools p{margin:0;color:var(--ztc-text-muted);font-size:14px}
.cxy-yp-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start}
.cxy-yp-card{background:var(--cxy-yp-card);border-radius:18px;padding:22px 24px 18px;scroll-margin-top:110px}
.cxy-yp-card:target{box-shadow:0 0 0 2px var(--ztc-action)}
.cxy-yp-card header{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.cxy-yp-card h2{font-size:19px;line-height:1.5;color:var(--cxy-heading);margin:0}
.cxy-yp-card header span{flex:none;font-size:14px;color:var(--ztc-text-muted)}
.cxy-yp-q{font-size:14px;line-height:1.7;color:var(--ztc-text-muted);margin:4px 0 8px}
.cxy-yp-list{list-style:none;margin:0;padding:0}
.cxy-yp-list li{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:10px 0;border-top:1px solid var(--cxy-line-soft)}
.cxy-yp-list li a{color:var(--ztc-text);line-height:1.7;overflow-wrap:anywhere}
.cxy-yp-list li a:hover,.cxy-yp-list li a:focus-visible{color:var(--ztc-action)}
.cxy-yp-list li small{flex:none;font-size:13px;color:var(--ztc-text-muted)}
.cxy-yp-more summary{cursor:pointer;list-style:none;color:var(--ztc-action);font-size:15px;font-weight:500;padding:10px 0 2px}
.cxy-yp-more summary::-webkit-details-marker{display:none}
.cxy-yp-chev{display:inline-block;margin-left:6px;transition:transform .2s}
.cxy-yp-chev::after{content:'⌄'}
.cxy-yp-more[open] .cxy-yp-chev{transform:rotate(180deg)}
.cxy-yp-more[open] summary{border-bottom:0}
.cxy-yp-empty{background:var(--cxy-yp-card);border-radius:18px;padding:24px}
.cxy-yp-empty h2{font-size:19px;margin:0 0 6px;color:var(--cxy-heading)}
.cxy-yp-empty a{color:var(--cxy-link)}
.cxy-yp-cat.is-pending small a:hover,.cxy-yp-empty a:hover{color:var(--cxy-link-hover)}
.cxy-yp-aside{display:flex;flex-direction:column;gap:16px;position:sticky;top:110px}
.cxy-yp-aside section{background:#fff;border:1px solid var(--cxy-line-soft);border-radius:18px;padding:20px 22px}
.cxy-yp-aside h2{font-size:17px;line-height:1.5;color:var(--cxy-heading);margin:0 0 12px}
.cxy-yp-ask h2::before{content:'';display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--cxy-yp-violet);margin-right:8px;vertical-align:middle}
.cxy-yp-ask a{display:block;background:var(--cxy-yp-violet-tint);color:var(--cxy-yp-violet-ink);border-radius:12px;padding:10px 14px;line-height:1.6;margin-top:8px}
.cxy-yp-ask a:hover,.cxy-yp-ask a:focus-visible{background:color-mix(in srgb,var(--cxy-yp-violet) 15%,#fff)}
.cxy-yp-first a{display:block;color:var(--ztc-text);line-height:1.7;padding:6px 0}
.cxy-yp-first a:hover,.cxy-yp-first a:focus-visible{color:var(--ztc-action)}
.cxy-yp-others p{display:flex;flex-wrap:wrap;gap:6px 14px;margin:0}
.cxy-yp-others a{color:var(--ztc-action);line-height:1.8}

/* 文章页：在黄页里的位置、依据条数、收藏 */
.cxy-yp-strip{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;margin:4px 0 24px;font-size:14px}
.cxy-yp-strip nav{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px;color:var(--ztc-text-muted)}
.cxy-yp-strip nav a{color:var(--ztc-action)}
.cxy-yp-chip{background:var(--cxy-yp-green-tint);color:var(--cxy-yp-green);border-radius:999px;padding:4px 12px;line-height:1.6}
.cxy-yp-save-wrap{display:inline-flex;align-items:center;gap:8px;margin-left:auto;max-width:100%}
.cxy-yp-save{
  --bookmark-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 2.5a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v12l-5-3-5 3z' fill='none' stroke='black' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E");
  --bookmark-ink:#64748B;
  display:inline-flex;align-items:center;justify-content:center;flex:none;box-sizing:border-box;
  width:32px;height:32px;padding:0;border:1px solid #DCE4ED;border-radius:8px;
  appearance:none;background:#fff;color:transparent;font-size:0;line-height:0;cursor:pointer;
}
.cxy-yp-save[hidden]{display:none}
.cxy-yp-save::before{
  content:"";width:16px;height:16px;background-color:var(--bookmark-ink);
  -webkit-mask:var(--bookmark-mask) center / contain no-repeat;
  mask:var(--bookmark-mask) center / contain no-repeat;
}
.cxy-yp-save:hover{--bookmark-ink:#1B6EF3;background:#EFF6FF;border-color:#BFDBFE}
.cxy-yp-save[aria-pressed="true"]{
  --bookmark-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 2.5a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v12l-5-3-5 3z' stroke='black' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E");
  --bookmark-ink:#1B6EF3;background:#EFF6FF;border-color:#93C5FD;
}
.cxy-yp-save:disabled{opacity:.6;cursor:wait}
.cxy-yp-save:focus-visible{outline:2px solid var(--ztc-action);outline-offset:2px}
.cxy-yp-save-status{font-size:13px;line-height:1.5;color:var(--ztc-text-muted);overflow-wrap:anywhere}
.cxy-yp-save-status:empty{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
@media (forced-colors:active){
  .cxy-yp-save::before{forced-color-adjust:none;background-color:ButtonText}
  .cxy-yp-save[aria-pressed="true"]::before{background-color:Highlight}
}
.cxy-yp-points{background:#fff;border:1px solid var(--cxy-line-soft);border-radius:18px;padding:20px 22px;margin:24px 0}
.cxy-kb-aside .cxy-yp-points{margin:16px 0}
.cxy-yp-points h2{font-size:17px;line-height:1.5;color:var(--cxy-heading);margin:0 0 8px}
.cxy-yp-src{list-style:none;margin:0 0 4px;padding:0}
.cxy-yp-src li{padding:8px 0;border-top:1px solid var(--cxy-line-soft);line-height:1.6}
.cxy-yp-src li:first-child{border-top:0}
.cxy-yp-src a{color:var(--ztc-text);overflow-wrap:anywhere}
.cxy-yp-src small{display:block;font-size:13px;color:var(--ztc-text-muted)}
.cxy-yp-follow h3{font-size:15px;color:var(--cxy-heading);margin:12px 0 4px}
.cxy-yp-follow h3::before{content:'';display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--cxy-yp-violet);margin-right:8px;vertical-align:middle}
.cxy-yp-follow a{display:block;background:var(--cxy-yp-violet-tint);color:var(--cxy-yp-violet-ink);border-radius:12px;padding:9px 14px;line-height:1.6;margin-top:8px;font-size:15px}
.cxy-yp-same{margin:40px 0 0}
.cxy-yp-same-list{list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:0;padding:0}
.cxy-yp-same-list a{display:flex;flex-direction:column;gap:4px;height:100%;background:var(--cxy-yp-card);border-radius:14px;padding:14px 16px;color:var(--ztc-text);line-height:1.6}
.cxy-yp-same-list a:hover,.cxy-yp-same-list a:focus-visible{color:var(--ztc-action)}
.cxy-yp-same-list small{font-size:13px;color:var(--ztc-text-muted)}
.cxy-yp-same-more{margin:14px 0 0}
.cxy-yp-same-more a{color:var(--ztc-action);font-weight:500}

@media (max-width:1100px){.cxy-yp-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.cxy-yp-layout{grid-template-columns:minmax(0,1fr) 300px;gap:28px}}
@media (max-width:900px){.cxy-yp-layout{grid-template-columns:1fr}.cxy-yp-aside{position:static}.cxy-yp-cards{grid-template-columns:1fr}.cxy-yp-same-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){.cxy-yp-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.cxy-yp-cat{padding:16px}.cxy-yp-cat strong{font-size:17px}.cxy-yp-directory-head h2{font-size:24px}.cxy-yp-card{padding:18px 18px 14px}.cxy-yp-same-list{grid-template-columns:1fr}.cxy-yp-save-wrap{margin-left:0}}
@media (prefers-reduced-motion:reduce){.cxy-yp-cat,.cxy-yp-chev{transition:none}}
