/* 快速签名 · 咨询入口。类名全部带 ksqm- 前缀；色值沿用本站的深蓝、琥珀和奶油底。 */
.ksqm-sr { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0 }
.ksqm-icon { flex:none; display:block; width:1.15em; height:1.15em }

/* 页眉 H8：品牌条右端的圆角胶囊 */
.desk-header a.ksqm-pill {
    display:inline-flex; align-items:center; gap:10px; min-height:44px;
    padding:5px 20px 5px 6px; border-radius:999px; background:#15242f; color:#fff9e8;
    border:1px solid #15242f; box-shadow:inset 0 -3px #edbe55;
    font-size:15px; font-weight:750; letter-spacing:.02em; text-decoration:none; white-space:nowrap;
}
.ksqm-pill__dot { display:grid; place-items:center; width:32px; height:32px; border-radius:50%; background:#edbe55; color:#15242f }
.ksqm-pill__dot .ksqm-icon { width:18px; height:18px }
.desk-header a.ksqm-pill:focus-visible { outline:2px solid #15242f; outline-offset:3px }
@media(hover:hover) { .desk-header a.ksqm-pill:hover { background:#253745; box-shadow:inset 0 -4px #edbe55 } }
@media(prefers-reduced-motion:no-preference) { .desk-header a.ksqm-pill { transition:background-color .16s ease,box-shadow .16s ease } }
@media(max-width:760px) {
    .desk-header a.ksqm-pill { font-size:14px; padding-inline-end:16px }
}

/* 常驻件 P1：右下角圆形图标按钮 */
.ksqm-dock {
    position:fixed; z-index:30; display:grid; place-items:center; width:56px; height:56px; border-radius:50%;
    right:max(16px,env(safe-area-inset-right)); bottom:max(16px,env(safe-area-inset-bottom));
    background:#15242f; color:#edbe55; border:2px solid #edbe55; box-shadow:0 8px 22px #15242f59; text-decoration:none;
}
.ksqm-dock .ksqm-icon { width:26px; height:26px }
.ksqm-dock__tip {
    position:absolute; right:calc(100% + 10px); top:50%; transform:translateY(-50%); padding:7px 13px;
    border-radius:999px; background:#15242f; color:#fff9e8; font-size:14px; font-weight:700; white-space:nowrap;
    opacity:0; visibility:hidden; pointer-events:none;
}
.ksqm-dock:focus-visible { outline:3px solid #fff9e8; outline-offset:2px; box-shadow:0 0 0 6px #15242f }
.ksqm-dock:focus-visible .ksqm-dock__tip { opacity:1; visibility:visible }
@media(hover:hover) {
    .ksqm-dock:hover { background:#edbe55; color:#15242f; border-color:#15242f }
    .ksqm-dock:hover .ksqm-dock__tip { opacity:1; visibility:visible }
}
.ksqm-dock.is-away { opacity:0; visibility:hidden; pointer-events:none }
@media(prefers-reduced-motion:no-preference) {
    .ksqm-dock { transition:opacity .18s ease,visibility 0s,background-color .16s ease,color .16s ease }
    .ksqm-dock.is-away { transition:opacity .18s ease,visibility 0s .18s }
}
/* 页尾给圆钮留出位置，不让它压住页尾的链接和按钮 */
body.ksqm-has-dock .station-footer.edition-footer { padding-bottom:calc(clamp(24px,4.4vw,60px) + 64px + env(safe-area-inset-bottom)) }
@media print { .ksqm-dock { display:none } }

/* 按钮：首页备齐三格与文末卡片共用 */
.market-home a.ksqm-btn,.sign-post a.ksqm-btn {
    display:inline-flex; align-items:center; justify-content:center; gap:10px; min-height:48px; padding:10px 18px;
    border-radius:7px; background:#edbe55; color:#15242f; border:2px solid #edbe55;
    font-weight:800; font-size:1rem; line-height:1.3; text-decoration:none; width:fit-content; max-width:100%;
}
.market-home a.ksqm-btn:focus-visible { outline:3px solid #fff9e8; outline-offset:3px }
.sign-post a.ksqm-btn:focus-visible { outline:3px solid #15242f; outline-offset:3px }
@media(hover:hover) { .market-home a.ksqm-btn:hover { background:#fff0bf; border-color:#fff0bf } .sign-post a.ksqm-btn:hover { background:#253745; border-color:#253745 } }
.sign-post a.ksqm-btn--ink { background:#15242f; border-color:#15242f; color:#fff9e8 }
.sign-post a.ksqm-btn--ink .ksqm-icon { color:#edbe55 }

/* 首页 M2：办理前备齐三格 */
.ksqm-prep {
    padding:clamp(18px,3vw,34px); background:#fbf3dc; border:1px solid #e1d4ae;
    border-block-start:3px solid #edbe55; border-radius:4px 30px 4px 4px;
}
.market-home .ksqm-prep > h2::before {
    content:""; display:inline-block; width:1em; height:1em; margin-inline-end:.48em; vertical-align:-.12em;
    background:currentColor; color:var(--key,#74520b); clip-path:var(--section-mark-shape,none);
}
.ksqm-prep > h2 { margin:0 0 .3em }
.ksqm-prep p.ksqm-prep__lede { margin:0 0 clamp(16px,2.4vw,26px); max-width:42em; font-size:16px; line-height:1.7; color:var(--tone,#414e56) }
.ksqm-prep__board { display:grid; grid-template-columns:minmax(0,3fr) minmax(262px,1fr); align-items:stretch }
.ksqm-prep__cells {
    display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); margin:0; padding:0; list-style:none;
    background:#fff; border:1px solid #e1d4ae; border-inline-end:0; border-radius:3px 0 0 3px;
}
.ksqm-prep__cell { min-width:0; padding:clamp(14px,2vw,22px) clamp(14px,2vw,22px) clamp(8px,1.4vw,14px) }
.ksqm-prep__cell + .ksqm-prep__cell { border-inline-start:1px dashed #c9b377 }
.ksqm-prep__no {
    display:inline-block; margin-bottom:10px; padding:2px 20px 2px 12px; background:#edbe55; color:#15242f;
    font:800 15px/1.5 ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing:.04em;
    clip-path:polygon(0 0,100% 0,84% 100%,0 100%);
}
.ksqm-prep__cell h3 { margin:0 0 8px; font-size:1.1rem; color:#15242f }
.ksqm-prep__cell p { margin:0; font-size:.95rem; line-height:1.72 }
.market-home a.ksqm-prep__more {
    display:inline-flex; align-items:center; min-height:44px; margin-top:4px; font-size:.9rem; font-weight:700;
    color:#74520b; text-underline-offset:.22em;
}
.ksqm-prep__cta {
    display:flex; flex-direction:column; justify-content:center; gap:16px; min-width:0;
    padding:clamp(18px,2.6vw,28px) clamp(18px,2.2vw,26px) clamp(18px,2.6vw,28px) clamp(32px,3.6vw,44px);
    background:linear-gradient(130deg,#15242f,#253745); color:#fff9e8;
    clip-path:polygon(9% 0,100% 0,100% 100%,0 100%); border-radius:0 26px 3px 0;
}
.ksqm-prep__cta p { margin:0; font-size:1.02rem; line-height:1.65; color:#fff9e8 }
@media(max-width:940px) {
    .ksqm-prep__board { grid-template-columns:minmax(0,1fr) }
    .ksqm-prep__cells { border-inline-end:1px solid #e1d4ae; border-radius:3px 3px 0 0 }
    .ksqm-prep__cta { padding:clamp(18px,3vw,26px); clip-path:none; border-radius:0 0 3px 3px; flex-direction:row; align-items:center; justify-content:space-between; flex-wrap:wrap }
    .ksqm-prep__cta p { flex:1 1 15em }
}
@media(max-width:640px) {
    .ksqm-prep { border-radius:4px 22px 4px 4px }
    .ksqm-prep__cells { grid-template-columns:minmax(0,1fr) }
    .ksqm-prep__cell + .ksqm-prep__cell { border-inline-start:0; border-block-start:1px dashed #c9b377 }
    .ksqm-prep__cta { display:block }
    .ksqm-prep__cta p { margin-bottom:14px }
    .market-home .ksqm-prep a.ksqm-btn { width:100% }
}

/* 文章页 A2：文末卡片 */
.ksqm-endcard {
    clear:both; margin:clamp(30px,4vw,48px) 0 0; padding:clamp(18px,2.6vw,28px); background:#fbf3dc;
    border:1px solid #e1d4ae; border-inline-start:6px solid #edbe55; border-radius:3px 24px 3px 3px;
}
.ksqm-endcard__tag {
    display:inline-block; padding:2px 22px 2px 12px; background:#15242f; color:#ffdc86; font-size:13px; font-weight:800;
    letter-spacing:.06em; clip-path:polygon(0 0,100% 0,86% 100%,0 100%);
}
.sign-post .ksqm-endcard .ksqm-endcard__title { margin:.55em 0 .65em; font-size:1.25rem; line-height:1.45; color:#15242f }
.ksqm-endcard__asks { display:grid; gap:8px; margin:0 0 20px; padding:0; list-style:none }
.ksqm-endcard__asks li { position:relative; margin:0; padding-inline-start:26px; line-height:1.7 }
.ksqm-endcard__asks li::before {
    content:""; position:absolute; left:2px; top:.45em; width:13px; height:13px; background:#74520b;
    clip-path:var(--section-mark-shape,none);
}

/* 目录页/分类页 L1：列表头提示条 */
.ksqm-listbar {
    display:flex; align-items:center; flex-wrap:wrap; gap:6px 14px; min-height:52px; margin:0 0 18px;
    background:#fbf3dc; border-block:1px solid #e1d4ae;
}
.ksqm-listbar__tag {
    align-self:stretch; display:inline-flex; align-items:center; padding:0 24px 0 16px; background:#edbe55; color:#15242f;
    font-size:14px; font-weight:800; letter-spacing:.04em; clip-path:polygon(0 0,100% 0,88% 100%,0 100%);
}
.ksqm-listbar p { flex:1 1 17em; min-width:0; margin:0; padding-block:8px; font-size:.95rem; line-height:1.6 }
.edition-archive a.ksqm-listbar__link {
    display:inline-flex; align-items:center; gap:7px; min-height:44px; margin-inline-end:12px; padding:0 14px;
    border:1.5px solid #74520b; border-radius:999px; color:#74520b; font-weight:750; font-size:.95rem; text-decoration:none;
}
.edition-archive a.ksqm-listbar__link:focus-visible { outline:2px solid #15242f; outline-offset:3px }
@media(hover:hover) { .edition-archive a.ksqm-listbar__link:hover { background:#74520b; color:#fff9e8 } }
@media(max-width:640px) {
    .ksqm-listbar { padding-block-end:8px }
    .ksqm-listbar__tag { min-height:44px }
    .ksqm-listbar p { flex-basis:100%; padding-inline:14px }
    .edition-archive a.ksqm-listbar__link { margin-inline-start:14px }
}
