/* WEBSITE-ASK: “问问智库” card after articles, policy notes and publications. Shown only when the 问智库 panel is on the page (script). */
.ztc-ask-card {
    display: flex; align-items: center; justify-content: space-between; gap: 20px 28px; flex-wrap: wrap; width: min(1080px, calc(100% - 48px));
    margin: 40px auto 8px; padding: 20px 24px; background: #F4F8FC; border: 1px solid #DCE6EF; border-radius: 20px;
}
.ztc-ask-card[hidden] { display: none; }
.ztc-ask-card__text { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ztc-ask-card__text strong { display: block; color: #102A54; font-size: 17px; font-weight: 600; line-height: 1.5; }
.ztc-ask-card__text span:not(.ztc-ask-card__badge) { display: block; color: #5B6F86; font-size: 13px; line-height: 1.6; }
.ztc-ask-card__badge {
    flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 24px; padding: 0 8px; border-radius: 999px;
    background: var(--ztc-action, #008ED3); color: #fff; font: 700 12px/1 var(--ztc-font-sans, sans-serif); letter-spacing: .06em;
}
.ztc-ask-card__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ztc-ask-card__actions button {
    min-height: 40px; padding: 8px 14px; border: 1px solid rgba(0, 103, 180, .2); border-radius: 999px; background: #fff; color: #102A54;
    font-size: 14px; cursor: pointer; transition: border-color .2s, color .2s;
}
.ztc-ask-card__actions button.is-own { border-color: var(--ztc-action, #008ED3); color: var(--ztc-action, #008ED3); font-weight: 600; }
@media (hover: hover) { .ztc-ask-card__actions button:hover { border-color: var(--ztc-action, #008ED3); color: var(--ztc-action, #008ED3); } }
.ztc-ask-card__actions button:focus-visible { outline: 2px solid var(--ztc-action, #008ED3); outline-offset: 3px; }
@media (max-width: 760px) {
    .ztc-ask-card { width: calc(100% - 32px); margin-top: 28px; padding: 16px; }
    .ztc-ask-card__text strong { font-size: 16px; }
}
.ztc-ask-card__text strong{text-wrap:balance}
@media (max-width: 760px){.ztc-ask-card__text{align-items:flex-start}.ztc-ask-card__badge{margin-top:2px}}

/* 智库嵌入 v2（WEBSITE-EMBED-LOCAL-20261020.2）：一行式提问条、右栏小卡与星标。白底细线、主蓝只用在图标与焦点，与官网编辑式排版同一语言。 */
.ztc-askbar[hidden], .ztc-star[hidden] { display: none !important; }
.ztc-askbar {
    --ab-line: #dbe4ee; --ab-ink: #102a54; --ab-muted: #5b6f86; --ab-blue: var(--ztc-action, #0067b4);
    position: relative; display: grid; grid-template-columns: minmax(170px, .78fr) minmax(0, 2fr);
    grid-template-areas: "head form" "head chips" "head note"; column-gap: 34px; row-gap: 10px; align-items: center;
    margin: 52px 0 0; padding: 24px 28px 20px 32px; color: var(--ab-ink); background: #fff;
    border: 1px solid var(--ab-line); border-radius: 18px; box-shadow: 0 18px 44px -32px rgba(16, 42, 84, .34);
}
.ztc-askbar::before {
    content: ""; position: absolute; left: -1px; top: 24px; width: 3px; height: 30px; border-radius: 0 3px 3px 0; background: var(--ab-blue);
}
.ztc-askbar__head { grid-area: head; align-self: start; display: flex; align-items: flex-start; gap: 12px; padding-top: 2px; }
.ztc-askbar__mark { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--ab-blue); background: rgba(0, 142, 211, .08); }
.ztc-askbar__titles { display: grid; gap: 5px; min-width: 0; }
.ztc-askbar__title { color: var(--ab-ink); font: 600 18px/1.35 var(--ztc-serif, serif); letter-spacing: .01em; }
.ztc-askbar__brand { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; color: var(--ab-muted); font-size: 12px; line-height: 1.5; letter-spacing: .03em; }
.ztc-askbar__form { grid-area: form; min-width: 0; margin: 0; }
.ztc-askbar__field {
    display: flex; align-items: center; gap: 8px; min-height: 50px; padding: 5px 5px 5px 8px;
    border: 1px solid #cfd9e4; border-radius: 999px; background: #fbfcfe; transition: border-color .2s, box-shadow .2s, background .2s;
}
.ztc-askbar__field:focus-within { border-color: var(--ab-blue); background: #fff; box-shadow: 0 0 0 4px rgba(0, 142, 211, .1); }
.ztc-askbar__context {
    flex: none; display: inline-flex; align-items: center; gap: 1px; max-width: 44%; min-width: 0; padding: 4px 3px 4px 11px;
    border-radius: 999px; background: #edf3f9; color: #33507a; font-size: 12.5px; line-height: 1.4;
}
.ztc-askbar__context[hidden] { display: none; }
.ztc-askbar__context-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ztc-askbar__context button { flex: none; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #6a7f98; font-size: 15px; line-height: 22px; cursor: pointer; }
.ztc-askbar__context button:hover { background: rgba(16, 42, 84, .08); color: var(--ab-ink); }
.ztc-askbar__field input { flex: 1 1 0; width: 0; min-width: 0; height: 38px; text-overflow: ellipsis; padding: 0 2px; border: 0; outline: 0; background: transparent; color: var(--ab-ink); font-size: 15px; }
.ztc-askbar__field input::placeholder { color: #8a9bb0; }
.ztc-askbar__send { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--ab-blue); color: #fff; cursor: pointer; transition: transform .15s, background .2s; }
.ztc-askbar__send:active { transform: scale(.94); }
.ztc-askbar__chips { grid-area: chips; display: flex; flex-wrap: wrap; gap: 8px; }
.ztc-askbar__chips button {
    min-height: 32px; padding: 5px 13px; border: 1px solid var(--ab-line); border-radius: 999px; background: #fff;
    color: #2c4466; font-size: 13px; line-height: 1.4; cursor: pointer; transition: border-color .2s, color .2s, background .2s;
}
@media (hover: hover) {
    .ztc-askbar__send:hover { background: #00539a; }
    .ztc-askbar__chips button:hover { border-color: var(--ab-blue); color: var(--ab-blue); background: rgba(0, 142, 211, .04); }
}
.ztc-askbar__note { grid-area: note; margin: 0; color: #8193a8; font-size: 12px; line-height: 1.6; text-wrap: pretty; }
/* 放在文章正文栏里时，不继承正文段落间距与加粗颜色。 */
aside.ztc-askbar p.ztc-askbar__note { margin: 0; }
aside.ztc-askbar strong.ztc-askbar__title { color: var(--ab-ink); }
.ztc-askbar button:focus-visible, .ztc-askbar input:focus-visible { outline: 2px solid var(--ab-blue); outline-offset: 2px; }

/* 右栏小卡：与右栏“所属报告／在线阅读”同款白底细线卡。窄屏右栏移到正文下方时隐藏，由正文结尾的提问条承接。 */
.ztc-askbar--rail {
    grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "form" "chips" "note"; row-gap: 12px;
    margin: 0 0 18px; padding: 20px 18px 16px 20px; border-radius: 16px; box-shadow: none;
}
.ztc-askbar--rail::before { top: 20px; height: 26px; background: var(--ab-blue); }
.ztc-askbar--rail .ztc-askbar__mark { width: 30px; height: 30px; }
.ztc-askbar--rail .ztc-askbar__mark svg { width: 16px; height: 16px; }
.ztc-askbar--rail .ztc-askbar__title { font-size: 16px; }
.ztc-askbar--rail .ztc-askbar__context { display: none; }
.ztc-askbar--rail .ztc-askbar__field { min-height: 42px; padding-left: 14px; }
.ztc-askbar--rail .ztc-askbar__field input { font-size: 14px; }
.ztc-askbar--rail .ztc-askbar__send { width: 32px; height: 32px; }
.ztc-askbar--rail .ztc-askbar__chips { gap: 6px; }
.ztc-askbar--rail .ztc-askbar__chips button { min-height: 28px; padding: 3px 10px; font-size: 12.5px; }
.ztc-askbar--rail .ztc-askbar__note { display: none; }

/* 专题页：与阅读集合同宽；产品与咨询页：相关研究之后的一行；出版物：紧跟授权阅读入口。 */
.rk-ask { padding-top: 8px; padding-bottom: 48px; }
.rk-ask .ztc-askbar { margin-top: 0; }
.ztc-business-research .ztc-askbar { margin-top: 40px; }
.ztc-business-research--ask-only { padding: 24px 0 64px; }
.ztc-business-research--ask-only .ztc-askbar { margin-top: 0; }
.publication-ask-row .ztc-askbar { margin-top: 22px; }
/* 没有授权阅读入口的出版物：提问条紧跟简介（借用简介区的底部留白），与下一区块留足间距。 */
.publication-ask-row--solo { margin-top: -70px; padding-bottom: 104px; }
.publication-ask-row--solo .ztc-askbar { margin-top: 0; }
@media (max-width: 860px) { .publication-ask-row--solo { margin-top: -44px; padding-bottom: 80px; } }
@media (max-width: 640px) { .publication-ask-row--solo { margin-top: -40px; padding-bottom: 64px; } }

/* 无脚本或面板打不开时提问条保持 hidden：外层留白也一起收起（复核 N8；不支持 :has 的旧浏览器只多一段空白）。 */
.ztc-business-research--ask-only:not(:has(.ztc-askbar:not([hidden]))), .rk-ask:not(:has(.ztc-askbar:not([hidden]))),
.publication-ask-row:not(:has(.ztc-askbar:not([hidden]))) { display: none; }
@media (max-width: 1100px) { .ztc-askbar--rail { display: none !important; } }
@media (max-width: 760px) {
    .ztc-askbar { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "form" "chips" "note"; row-gap: 12px; margin-top: 34px; padding: 18px 16px 16px 20px; border-radius: 16px; }
    .ztc-askbar::before { top: 20px; }
    .ztc-askbar__head { align-items: center; }
    .ztc-askbar__titles { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
    .ztc-askbar__title { font-size: 17px; }
    .ztc-askbar__context { max-width: 38%; }
    .ztc-askbar__field input { font-size: 16px; }
    .ztc-askbar__chips { flex-wrap: nowrap; overflow-x: auto; margin-right: -16px; padding-right: 16px; scrollbar-width: none; }
    .ztc-askbar__chips::-webkit-scrollbar { display: none; }
    .ztc-askbar__chips button { flex: none; }
}

/* 星标：标题区“☆ 收藏”小按钮，点亮为品牌蓝“★ 已收藏”（加入成员“我的智库”书架）。 */
.ztc-star {
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 32px; padding: 0 13px 0 10px; vertical-align: middle;
    border: 1px solid var(--star-line, rgba(16, 42, 84, .18)); border-radius: 999px; background: var(--star-bg, #fff);
    color: var(--star-ink, #33507a); font: 500 13px/1 var(--ztc-sans, sans-serif); letter-spacing: .02em; white-space: nowrap; cursor: pointer;
    transition: color .2s, border-color .2s, background .2s, transform .15s;
}
.ztc-star svg { flex: none; width: 16px; height: 16px; }
.ztc-star svg path { fill: transparent; transition: fill .2s; }
@media (hover: hover) { .ztc-star:hover { color: var(--star-hover, var(--ztc-action, #0067b4)); border-color: currentColor; } }
.ztc-star:active { transform: scale(.96); }
.ztc-star:focus-visible { outline: 2px solid var(--ztc-action, #0067b4); outline-offset: 3px; }
.ztc-star.is-saved { color: var(--star-on, #008ed3); border-color: var(--star-on-line, rgba(0, 142, 211, .5)); background: var(--star-on-bg, rgba(0, 142, 211, .07)); }
.ztc-star.is-saved svg path { fill: currentColor; }
.ztc-star.is-busy { opacity: .55; pointer-events: none; }
.ztc-star__label { line-height: 1; }
/* 文章署名行：与“预计阅读”等同一行垂直居中；手机署名行改为竖排时靠左。 */
.is-insight-article .article-byline:has(> .ztc-star:not([hidden])) { align-items: center; }
.article-byline > button.ztc-star { justify-self: start; height: 30px; padding: 0 12px 0 9px; color: var(--star-ink, #33507a); font: 500 13px/1 var(--ztc-sans, sans-serif); border: 1px solid var(--star-line, rgba(16, 42, 84, .16)); border-radius: 999px; }
.article-byline > button.ztc-star.is-saved { color: var(--star-on, #008ed3); border-color: var(--star-on-line, rgba(0, 142, 211, .5)); }
/* 出版物首屏：与“在线阅读”等按钮同高同字重的线框胶囊。 */
.publication-hero-actions .ztc-star { --star-line: rgba(255, 255, 255, .55); --star-bg: transparent; --star-ink: #fff; --star-hover: #fff; --star-on: #fff; --star-on-line: #fff; --star-on-bg: rgba(255, 255, 255, .16); height: auto; min-height: 48px; gap: 7px; padding: 0 24px 0 20px; font: 700 14px/1 var(--ztc-sans, sans-serif); }
.publication-hero-actions .ztc-star svg { width: 18px; height: 18px; }
@media (max-width: 640px) { .publication-hero-actions .ztc-star { width: 100%; padding: 10px 12px; } }
.ztc-star-tip {
    position: absolute; z-index: 60; width: max-content; max-width: 260px; padding: 10px 12px; border-radius: 12px;
    background: #102a54; color: #fff; font-size: 13px; line-height: 1.55; box-shadow: 0 14px 30px rgba(16, 42, 84, .28);
}
.ztc-star-tip button { margin-left: 8px; padding: 0; border: 0; background: none; color: #8fd6f3; font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.ztc-knowledge-toast {
    position: fixed; left: 50%; bottom: 30px; z-index: 2147483000; padding: 10px 18px; border-radius: 999px;
    background: #102a54; color: #fff; font-size: 14px; line-height: 1.5; box-shadow: 0 12px 30px rgba(16, 42, 84, .25);
    transform: translate(-50%, 14px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
}
.ztc-knowledge-toast.is-shown { transform: translate(-50%, 0); opacity: 1; }
@media (prefers-reduced-motion: reduce) { .ztc-askbar__field, .ztc-star, .ztc-knowledge-toast { transition: none; } }
@media print { .ztc-askbar, .ztc-star, .ztc-star-tip, .ztc-knowledge-toast { display: none !important; } }
