/* 超级签站 · 咨询入口（类名一律带 cjq- 前缀）
   五处：页眉右端圆角胶囊、页眉下吸顶细条、首页横向服务卡、文章中段一行、目录页列表中间一行。 */

:root {
    --cjq-strip-h: 40px;           /* 吸顶细条的高度，锚点跳转和侧栏粘性定位都按它让位 */
    scroll-padding-top: calc(var(--aq-header-height, 75px) + var(--cjq-strip-h) + 16px);
}
.cjq-btn, .cjq-pill, .cjq-strip-link, .cjq-inline-link { text-decoration: none; }

/* ---------- 页眉：品牌条右端的圆角胶囊 ---------- */
.station-nav a.cjq-pill {
    display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 20px 0 15px;
    border: 0; border-radius: 999px; background: var(--accent, #762d53); color: #fffaf1;
    font-size: 15px; font-weight: 700; letter-spacing: .04em; white-space: nowrap;
    box-shadow: 0 1px 0 rgba(53, 36, 54, .28), inset 0 0 0 1px rgba(255, 250, 241, .16);
    transition: background-color .15s;
}
.station-nav a.cjq-pill:hover { background: #5b2140; color: #fffaf1; text-decoration: none; }
.station-nav a.cjq-pill:focus-visible { outline: 3px solid #4d8ed1; outline-offset: 3px; }
.cjq-pill-icon { flex: none; }

/* ---------- 常驻件：页眉下吸顶细条（滚动后出现） ---------- */
.cjq-strip {
    position: fixed; z-index: 11; top: var(--aq-header-height, 75px); left: 0; right: 0;
    height: var(--cjq-strip-h); background: #5b2140; color: #fbeee6;
    transform: translateY(-100%); visibility: hidden; opacity: 0;
    transition: transform .22s ease, opacity .22s ease, visibility 0s linear .22s;
}
.cjq-strip.is-on { transform: none; visibility: visible; opacity: 1; transition-delay: 0s; }
.cjq-strip-in { display: flex; align-items: center; justify-content: center; gap: 14px; height: 100%; }
.cjq-strip-in p { margin: 0; font-size: 14px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cjq-strip-short { display: none; }
.cjq-strip-link {
    flex: none; display: inline-flex; align-items: center; min-height: 28px; padding: 0 14px; border-radius: 999px;
    background: #fbeee6; color: #5b2140; font-size: 13px; font-weight: 700;
}
.cjq-strip-link:hover { background: #fff; color: #5b2140; }
.cjq-strip-link:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* 吸顶细条出现以后，文档页和目录页左侧的粘性栏让到细条下面 */
.nb-toc, .nb-tree {
    top: calc(var(--aq-header-height, 75px) + var(--cjq-strip-h) + 20px);
    max-height: calc(100vh - var(--aq-header-height, 75px) - var(--cjq-strip-h) - 40px);
}

/* ---------- 首页主装置：横向服务卡 ---------- */
.cjq-ask { margin: clamp(34px, 5vw, 62px) 0 0; min-width: 0; }
.cjq-ask-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.cjq-kicker { margin: 0 0 4px; color: var(--accent); font-size: 14px; font-weight: 700; letter-spacing: .14em; }
.cjq-ask h2 { margin: 0; }
.cjq-ctl { display: none; align-items: center; gap: 8px; flex: none; }
.cjq-js .cjq-ctl { display: flex; }
.cjq-arrow {
    display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%;
    border: 1px solid var(--accent); background: transparent; color: var(--accent);
}
.cjq-arrow:hover:not(:disabled) { background: var(--accent); color: #fffaf1; }
.cjq-arrow:disabled { opacity: .35; cursor: default; }
.cjq-arrow:focus-visible { outline: 3px solid #4d8ed1; outline-offset: 3px; }
.cjq-count { min-width: 3.6em; text-align: center; color: var(--tone); font-size: 14px; font-variant-numeric: tabular-nums; }
.cjq-count b { color: var(--accent); font-size: 17px; }

.cjq-track {
    display: flex; gap: 16px; margin: 0; padding: 6px 2px 16px; list-style: none;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 2px;
    scrollbar-width: thin; scrollbar-color: var(--accent) #eadccd;
}
.cjq-track:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.cjq-track::-webkit-scrollbar { height: 8px; }
.cjq-track::-webkit-scrollbar-track { background: #eadccd; border-radius: 4px; }
.cjq-track::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }
.cjq-card {
    position: relative; flex: 0 0 clamp(250px, 29.5%, 340px); scroll-snap-align: start;
    display: flex; flex-direction: column; padding: 20px 20px 18px;
    background: var(--surface); border: 1px solid var(--rule); border-top: 5px solid var(--accent);
    border-radius: 4px 4px 16px 16px; box-shadow: 0 2px 0 rgba(118, 45, 83, .10);
}
.cjq-no {
    position: absolute; top: 12px; right: 16px; color: #e3cfc9; font: 700 34px/1 Georgia, "Times New Roman", serif;
    letter-spacing: -.02em; user-select: none;
}
.cjq-card h3 { margin: 0 0 8px; padding-right: 2.7em; font-size: 19px; line-height: 1.4; color: var(--ink); }
.cjq-card p { margin: 0 0 10px; font-size: 15px; line-height: 1.75; color: var(--tone); }
.cjq-ask-line { color: var(--ink); }
.cjq-ask-line b { display: block; margin-bottom: 2px; color: var(--accent); font-size: 13px; letter-spacing: .12em; }
.cjq-card-act { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--rule); }
.cjq-btn {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 8px;
    background: var(--accent); color: #fffaf1; font-weight: 700; font-size: 15px; letter-spacing: .06em;
}
.cjq-btn:hover { background: #5b2140; color: #fffaf1; }
.cjq-btn:focus-visible { outline: 3px solid #4d8ed1; outline-offset: 3px; }
.cjq-more { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 650; color: var(--accent); }

/* ---------- 文章页：正文中段一行内联 ---------- */
.nb-text .cjq-inline {
    display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 34px 0 -6px; padding: 8px 14px 8px 10px;
    border: 1px solid var(--rule); border-left: 4px solid var(--accent); border-radius: 0 10px 10px 0;
    background: var(--surface); font-size: 15px; line-height: 1.7;
}
.cjq-inline-mark {
    flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
    background: var(--accent); color: #fffaf1; font-size: 14px; font-weight: 700; line-height: 1;
}
.cjq-inline-text { flex: 1 1 14em; min-width: 0; color: var(--ink); }
.cjq-inline-link {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; color: var(--accent);
    font-weight: 700; text-decoration: underline; text-underline-offset: .22em;
}
.cjq-inline-link:hover { color: #5b2140; }
.cjq-inline-link:focus-visible { outline: 3px solid #4d8ed1; outline-offset: 2px; }

/* ---------- 目录页 / 分类页：列表中间插一行 ---------- */
.nb-index li.cjq-row {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px;
    margin: 6px 0; padding: 12px 18px; border: 1px dashed var(--accent); border-radius: 10px; background: var(--surface);
}
.nb-index li + li.cjq-row { border-top: 1px dashed var(--accent); }
.nb-index li.cjq-row + li { border-top: 0; }
.cjq-row-text { flex: 1 1 14em; min-width: 0; margin: 0 !important; font-size: 15px !important; line-height: 1.6 !important; color: var(--ink) !important; }
.cjq-row-text b { display: block; font-weight: 700; color: var(--ink); }
.cjq-row-text span { color: var(--tone); font-size: 14px; }

/* ---------- 窄屏 ---------- */
@media (max-width: 820px) {
    .cjq-card { flex-basis: clamp(250px, 44%, 340px); }
}
@media (max-width: 600px) {
    :root { --cjq-strip-h: 38px; }
    .station-nav a.cjq-pill { min-height: 40px; padding: 0 16px 0 12px; font-size: 14px; }
    .cjq-ask-head { align-items: flex-start; flex-direction: column; gap: 10px; }
    .cjq-ctl { align-self: flex-end; margin-top: -6px; }
    .cjq-card { flex-basis: 80%; }
    .cjq-strip-long { display: none; }
    .cjq-strip-short { display: inline; }
    .cjq-strip-in { gap: 10px; justify-content: space-between; }
    .cjq-strip-in p { font-size: 13px; }
    .nb-text .cjq-inline { margin-top: 28px; }
}
@media (max-width: 880px) {
    /* 窄屏上左侧栏不再粘性定位，不需要为细条让位 */
    .nb-toc, .nb-tree { top: auto; max-height: none; }
}
@media (prefers-reduced-motion: reduce) {
    .cjq-strip { transition: none; }
    .station-nav a.cjq-pill { transition: none; }
}
