/* ==========================================================================
   像素工坊 · Photoshop 快捷键页  page.css  v20261030b
   上半部分：ds- 设计系统（由 extract_ds.py 从 flytext 的 page.css 提取）
   下半部分：本页专属（hero 键帽视觉 / 检索器 / 新手段 / 数据说明）
   ========================================================================== */
.ds-page { --ds-red: #cc3333;
    --ds-red-dark: #a61f1f;
    --ds-red-soft: #fff1f1;
    --ds-blue: #3b82f6;
    --ds-blue-soft: #eff6ff;
    --ds-green: #10b981;
    --ds-green-soft: #ecfdf5;
    --ds-orange: #f59e0b;
    --ds-orange-soft: #fffbeb;
    --ds-purple: #8b5cf6;
    --ds-purple-soft: #f5f3ff;
    --ds-ink: #1f2937;
    --ds-muted: #667085;
    --ds-border: #eee4e4;
    --ds-card: #ffffff;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    color: var(--ds-ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif; }
.ds-page * { box-sizing: border-box; }
.wpb_raw_code:has(.ds-page) { margin-bottom: 0; }
.ds-page a, .ds-page button { -webkit-tap-highlight-color: transparent; }
.ds-page [id^="ds-"],
.ds-page [id="pdf-scanner-tool"],
.ds-page [id="pdf-scanner-hero"] { scroll-margin-top: 96px; }
.ds-page h1, .ds-page h2, .ds-page h3, .ds-page h4 { color: var(--ds-ink); }
.ds-page p { margin: 0; }
.ds-hero { padding: 64px 0 44px; }
.ds-hero-grid { display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 40px;
    align-items: center; }
.ds-eyebrow { display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 14px;
    border: 1px solid rgba(204, 51, 51, .16);
    border-radius: 999px;
    background: rgba(255, 255, 255, .82);
    color: var(--ds-red-dark);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important; }
.ds-eyebrow i { color: var(--ds-red); font-size: 13px; }
.ds-hero h1 { margin: 22px 0 18px;
    color: var(--ds-ink);
    font-size: 52px;
    line-height: 1.12;
    letter-spacing: -1.4px;
    font-weight: 850; }
.ds-hero h1 span { display: block;
    margin-top: 10px;
    font-size: .58em;
    line-height: 1.28;
    letter-spacing: -.6px;
    background: linear-gradient(90deg, var(--ds-red), #e05252);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent; }
.ds-hero-desc { max-width: 640px;
    margin: 0;
    color: var(--ds-muted);
    font-size: 16px;
    line-height: 1.78; }
.ds-hero-badges { display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none; }
.ds-hero-badges li { display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid #f0e5e5;
    border-radius: 10px;
    background: rgba(255, 255, 255, .86);
    color: #4b5563;
    font-size: 13px;
    font-weight: 700;
    line-height: 1; }
.ds-hero-badges i { color: var(--ds-red); font-size: 12px; }
.ds-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.ds-hero-side { position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 340px;
    padding: 30px 0; }
.ds-paper-stack { position: relative; width: 300px; height: 300px; }
.ds-paper-card { position: absolute;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(31, 41, 55, .14); }
.ds-paper-card--src { top: 8px;
    left: 8px;
    width: 210px;
    height: 272px;
    background: #fff;
    border: 1px solid #eee3e3;
    transform: rotate(-5deg); }
.ds-paper-card--scan { right: 4px;
    bottom: 4px;
    width: 210px;
    height: 272px;
    background: linear-gradient(160deg, #fdf8ec, #f1e6cd);
    border: 1px solid #e6d9bd;
    transform: rotate(4deg);
    box-shadow: 0 24px 50px rgba(120, 82, 36, .22); }
.ds-paper-lines { position: absolute; inset: 18px 16px auto; display: grid; gap: 8px; }
.ds-paper-lines i { display: block;
    height: 7px;
    border-radius: 3px;
    background: #e9e3e1; }
.ds-paper-card--src .ds-paper-lines i:nth-child(1) { width: 52%; height: 11px; background: #cfc7c5; }
.ds-paper-card--src .ds-paper-lines i:nth-child(2) { width: 78%; }
.ds-paper-card--src .ds-paper-lines i:nth-child(4) { width: 62%; }
.ds-paper-card--scan .ds-paper-lines i { background: rgba(120, 96, 60, .26); }
.ds-paper-card--scan .ds-paper-lines i:nth-child(1) { width: 52%; height: 11px; background: rgba(90, 68, 36, .45); }
.ds-paper-card--scan .ds-paper-lines i:nth-child(2) { width: 78%; }
.ds-paper-card--scan .ds-paper-lines i:nth-child(4) { width: 62%; }
.ds-paper-card--scan::after { content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 70% 12%, rgba(255, 255, 255, .5), transparent 55%),
        linear-gradient(90deg, rgba(120, 82, 36, .12), transparent 12%, transparent 88%, rgba(120, 82, 36, .12));
    pointer-events: none; }
.ds-paper-tag { position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 4px 9px;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em; }
.ds-paper-card--src .ds-paper-tag { background: #f3eeec; color: #8b807e; }
.ds-paper-card--scan .ds-paper-tag { background: rgba(166, 31, 31, .9); color: #fff; }
.ds-paper-badge { position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 12px 30px rgba(78, 20, 20, .18);
    color: var(--ds-red-dark);
    font-size: 12.5px;
    font-weight: 800;
    white-space: nowrap;
    z-index: 3; }
.ds-paper-badge i { font-size: 11px; }
.ds-page .ds-btn { display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none !important;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease; }
.ds-page .ds-btn:hover { transform: translateY(-1px); }
.ds-page .ds-btn i { font-size: 13px; }
.ds-btn-primary { background: linear-gradient(135deg, var(--ds-red), #e44949);
    color: #fff !important;
    box-shadow: 0 12px 24px rgba(204, 51, 51, .22); }
.ds-btn-primary:hover { background: linear-gradient(135deg, var(--ds-red-dark), var(--ds-red)); color: #fff !important; }
.ds-btn-ghost { border-color: rgba(204, 51, 51, .22);
    background: #fff;
    color: var(--ds-red-dark) !important; }
.ds-btn-ghost:hover { background: var(--ds-red-soft); }
.ds-btn-soft { border-color: rgba(204, 51, 51, .16);
    background: var(--ds-red-soft);
    color: var(--ds-red-dark) !important; }
.ds-btn-soft:hover { background: #ffe7e7; }
.ds-page .ds-section { padding: 14px 0; }
.ds-card-section { padding: 34px 34px 30px;
    border: 1px solid #f1e8e6;
    border-radius: 26px;
    background: var(--ds-card);
    box-shadow: 0 18px 44px rgba(31, 41, 55, .05); }
.ds-section-head { display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px; }
.ds-section-kicker { display: inline-flex;
    align-items: center;
    margin-bottom: 8px;
    color: var(--ds-red);
    font-size: 12.5px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase; }
.ds-section-head h2 { margin: 0;
    font-size: 28px;
    line-height: 1.25;
    letter-spacing: -.4px;
    font-weight: 800; }
.ds-section-head p { max-width: 780px;
    margin: 9px 0 0;
    color: var(--ds-muted);
    font-size: 14.5px;
    line-height: 1.7; }
.ds-section-actions { display: flex; flex-shrink: 0; gap: 10px; }
.ds-shell { position: relative;
    overflow: hidden;
    padding: 12px;
    border: 1px solid #f0e6e4;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(31, 41, 55, .06); }
.ds-shell #pscan-root { display: block; }
.ds-tips { display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
    color: var(--ds-muted);
    font-size: 12.5px; }
.ds-tips li { display: flex;
    align-items: center;
    gap: 8px;
    margin: 0; }
.ds-tips li::before { content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ds-red);
    flex: 0 0 auto; }
.ds-tips b { color: var(--ds-ink); font-weight: 700; }
.ds-flow { display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: flow; }
.ds-flow li { position: relative;
    margin: 0;
    padding: 22px 20px 20px;
    border: 1px solid #f2e9e7;
    border-radius: 18px;
    background: linear-gradient(180deg, #fff, #fffdfd);
    counter-increment: flow; }
.ds-flow li::after { content: counter(flow, decimal-leading-zero);
    position: absolute;
    top: 16px;
    right: 18px;
    color: #f3dede;
    font-size: 26px;
    font-weight: 900;
    line-height: 1; }
.ds-flow-icon { display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 12px;
    border-radius: 12px;
    background: var(--ds-red-soft);
    color: var(--ds-red);
    font-size: 16px; }
.ds-flow h3 { margin: 0 0 8px;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -.2px; }
.ds-flow p { margin: 0;
    color: var(--ds-muted);
    font-size: 13.5px;
    line-height: 1.72; }
.ds-flow b { color: var(--ds-ink); }
.ds-features { display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px; }
.ds-feature { padding: 22px 20px;
    border: 1px solid #f2e9e7;
    border-radius: 18px;
    background: #fff;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.ds-feature:hover { transform: translateY(-2px);
    border-color: #ecd8d6;
    box-shadow: 0 16px 34px rgba(31, 41, 55, .07); }
.ds-feature-icon { display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 14px;
    border-radius: 12px;
    font-size: 16px; }
.ds-ico-red { background: var(--ds-red-soft); color: var(--ds-red); }
.ds-ico-blue { background: var(--ds-blue-soft); color: var(--ds-blue); }
.ds-ico-green { background: var(--ds-green-soft); color: #059669; }
.ds-ico-orange { background: var(--ds-orange-soft); color: #d97706; }
.ds-ico-purple { background: var(--ds-purple-soft); color: #7c3aed; }
.ds-feature h3 { margin: 0 0 8px;
    font-size: 15.5px;
    font-weight: 800;
    letter-spacing: -.2px; }
.ds-feature p { margin: 0;
    color: var(--ds-muted);
    font-size: 13.5px;
    line-height: 1.72; }
.ds-feature-tag { display: inline-block;
    margin-top: 12px;
    padding: 3px 8px;
    border-radius: 6px;
    background: #f7f1f0;
    color: #9a7c79;
    font-size: 11.5px;
    font-weight: 700; }
.ds-table-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid #f2e9e7; }
.ds-table { width: 100%;
    min-width: 620px;
    margin: 0;
    border-collapse: collapse;
    background: #fff;
    font-size: 13.5px; }
.ds-table th,
.ds-table td { padding: 13px 16px;
    border-bottom: 1px solid #f5eeec;
    text-align: left;
    vertical-align: top; }
.ds-table thead th { background: #fdf9f8;
    color: #6b5b58;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: .02em;
    white-space: nowrap; }
.ds-table tbody tr:last-child td { border-bottom: 0; }
.ds-table tbody tr:hover { background: #fffbfa; }
.ds-table b { font-weight: 800; }
.ds-table code { padding: 2px 6px;
    border-radius: 5px;
    background: #f6efee;
    color: #a04a4a;
    font-size: 12px;
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; }
.ds-note { display: flex;
    gap: 14px;
    padding: 18px 20px;
    border: 1px solid #f3e2c8;
    border-radius: 16px;
    background: #fffaf0; }
.ds-note-icon { flex: 0 0 auto;
    color: #d97706;
    font-size: 18px;
    line-height: 1.4; }
.ds-note h3 { margin: 0 0 6px; font-size: 15px; font-weight: 800; }
.ds-note p { margin: 0; color: #7a6a55; font-size: 13.5px; line-height: 1.75; }
.ds-note p + p,
.ds-note ul + p,
.ds-note p + ul { margin-top: 9px; }
.ds-note ul { margin: 8px 0 0; padding-left: 18px; color: #7a6a55; font-size: 13.5px; line-height: 1.75; }
.ds-note li { margin: 0 0 4px; }
.ds-privacy { display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px; }
.ds-privacy div { padding: 18px;
    border: 1px solid #eef0ea;
    border-radius: 16px;
    background: linear-gradient(180deg, #fbfdf9, #fff); }
.ds-privacy b { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 800; }
.ds-privacy p { margin: 0; color: var(--ds-muted); font-size: 13px; line-height: 1.7; }
.ds-privacy i { color: #16a34a; margin-right: 6px; }
.ds-faq { display: grid; gap: 10px; }
.ds-faq details { border: 1px solid #f2e9e7;
    border-radius: 14px;
    background: #fff;
    transition: border-color .18s ease, box-shadow .18s ease; }
.ds-faq details[open] { border-color: #e9d3d1;
    box-shadow: 0 12px 28px rgba(31, 41, 55, .06); }
.ds-faq summary { display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    cursor: pointer;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--ds-ink);
    list-style: none; }
.ds-faq summary::-webkit-details-marker { display: none; }
.ds-faq summary::after { content: "+";
    margin-left: auto;
    color: #c3a9a6;
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
    transition: transform .18s ease; }
.ds-faq details[open] summary::after { content: "−"; color: var(--ds-red); }
.ds-qa { padding: 0 18px 18px; }
.ds-qa p { margin: 0; color: var(--ds-muted); font-size: 13.5px; line-height: 1.8; }
.ds-qa p + p { margin-top: 8px; }
.ds-qa b { color: var(--ds-ink); }
.ds-related { display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px; }
.ds-related a { display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border: 1px solid #f2e9e7;
    border-radius: 16px;
    background: #fff;
    text-decoration: none !important;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.ds-related a:hover { transform: translateY(-2px);
    border-color: #e9d3d1;
    box-shadow: 0 14px 30px rgba(31, 41, 55, .07); }
.ds-related-icon { display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border-radius: 12px;
    background: var(--ds-red-soft);
    color: var(--ds-red);
    font-size: 17px; }
.ds-related b { display: block; color: var(--ds-ink); font-size: 14.5px; font-weight: 800; }
.ds-related span { color: var(--ds-muted); font-size: 12.5px; }
.ds-prose { max-width: 880px; }
.ds-prose > *:first-child { margin-top: 0; }
.ds-prose h3 { margin: 32px 0 10px;
    font-size: 18px;
    line-height: 1.45;
    letter-spacing: -.2px;
    font-weight: 800; }
.ds-prose h3:first-child { margin-top: 0; }
.ds-prose p { margin: 0 0 12px;
    color: var(--ds-muted);
    font-size: 14.5px;
    line-height: 1.85; }
.ds-prose p:last-child { margin-bottom: 0; }
.ds-prose b,
.ds-prose strong { color: var(--ds-ink);
    font-weight: 700; }
.ds-prose ol,
.ds-prose ul { margin: 0 0 16px;
    padding-left: 22px;
    color: var(--ds-muted);
    font-size: 14.5px;
    line-height: 1.85; }
.ds-prose li { margin: 0 0 9px; }
.ds-prose li::marker { color: var(--ds-red);
    font-weight: 700; }
.ds-prose li b { color: var(--ds-ink); }
.ds-prose code { padding: 2px 6px;
    border-radius: 5px;
    background: #f7f3f2;
    color: var(--ds-red-dark);
    font-size: .92em; }
.ds-prose .ds-table-wrap { margin: 18px 0 22px; }
.ds-prose .ds-note { margin: 18px 0 0; }
.ds-note + .ds-prose,
.ds-table-wrap + .ds-prose { margin-top: 24px; }
.ds-card-section > h3:not([class]) { margin: 30px 0 10px;
    font-size: 18px;
    line-height: 1.45;
    letter-spacing: -.2px;
    font-weight: 800; }
.ds-section-head + h3:not([class]) { margin-top: 2px; }
.ds-card-section > p:not([class]) { margin: 0 0 12px;
    color: var(--ds-muted);
    font-size: 14.5px;
    line-height: 1.85; }
.ds-card-section > p:not([class]):last-child { margin-bottom: 0; }
.ds-card-section > p:not([class]) b { color: var(--ds-ink);
    font-weight: 700; }
.ds-card-section > ul:not([class]),
.ds-card-section > ol:not([class]) { margin: 0 0 16px;
    padding-left: 22px;
    color: var(--ds-muted);
    font-size: 14.5px;
    line-height: 1.85; }
.ds-card-section > ul:not([class]) li,
.ds-card-section > ol:not([class]) li { margin: 0 0 9px; }
.ds-card-section > ul:not([class]) li::marker,
.ds-card-section > ol:not([class]) li::marker { color: var(--ds-red);
    font-weight: 700; }
.ds-card-section > p:not([class]) code,
.ds-card-section > ul:not([class]) code,
.ds-card-section > ol:not([class]) code { padding: 2px 6px;
    border-radius: 5px;
    background: #f7f3f2;
    color: var(--ds-red-dark);
    font-size: .92em; }
.ds-card-section > h3:not([class]) + p:not([class]) { margin-top: 0; }
@media (max-width: 1024px) {
    .ds-hero-grid { grid-template-columns: 1fr; gap: 8px; }
    .ds-hero h1 { font-size: 38px; }
    .ds-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ds-privacy { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ds-related { grid-template-columns: 1fr; }
}
@media (max-width: 782px) {
    .ds-hero { padding: 40px 0 26px; }
    .ds-hero h1 { font-size: 30px; letter-spacing: -.6px; }
    .ds-hero h1 span { font-size: .62em; }
    .ds-hero-desc { font-size: 15px; }
    .ds-hero-side { min-height: 260px; margin-top: 10px; }
    .ds-paper-stack { transform: scale(.82); }
    .ds-card-section { padding: 22px 18px 20px; border-radius: 20px; }
    .ds-section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
    .ds-section-head h2 { font-size: 22px; }
    .ds-flow,
    .ds-features,
    .ds-privacy { grid-template-columns: 1fr; }
    .ds-shell { padding: 8px; border-radius: 18px; }
    .ds-tips { gap: 8px 16px; }
    .ds-table th, .ds-table td { padding: 11px 12px; }
}
.fl-hero .ds-paper-badge { top: auto;
        left: auto;
        right: 0;
        bottom: -6px;
        transform: none; }

/* ==========================================================================
   像素工坊 · Photoshop 快捷键页  page.css
   在 ds- 设计系统之上，只加这一页需要的东西：
   1. hero 右栏的键帽视觉（换 logo 和品牌色即可复用到 LR / 达芬奇）
   2. 检索器（一屏高，列表内部滚动）
   3. 新手必记卡片、数据说明块、右下角回搜按钮
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Hero 右栏 · 键帽视觉
   -------------------------------------------------------------------------- */
.sc-hv {
    position: relative;
    width: 100%;
    max-width: 392px;
    margin: 0 auto;
}

.sc-hv-card {
    position: relative;
    padding: 22px 24px 24px;
    border-radius: 18px;
    border: 1px solid var(--ds-border);
    background:
        radial-gradient(circle at 1px 1px, #e8dcdc 1px, transparent 0) 0 0 / 15px 15px,
        #fffdfb;
    box-shadow: 0 18px 40px -28px rgba(31, 41, 55, .38);
    overflow: hidden;
}

.sc-hv-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 26px;
}

/* 换软件时只改这两个变量 */
.sc-hv-logo {
    --brand-bg: #001e36;
    --brand-fg: #31a8ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background: var(--brand-bg);
    color: var(--brand-fg);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -.4px;
    line-height: 1;
    flex: 0 0 auto;
}

.sc-hv-brandname {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ds-ink);
}

.sc-hv-brandname span {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: var(--ds-muted);
    letter-spacing: .02em;
}

.sc-hv-keys {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
    padding: 6px 0;
}

.sc-hv-k {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 74px;
    height: 64px;
    padding: 0 16px;
    border-radius: 11px;
    border: 1px solid #e2d6d6;
    border-bottom: 3px solid #d6c5c5;
    background: linear-gradient(180deg, #fff, #f8f4f3);
    color: #4b5563;
    font-size: 17px;
    font-weight: 600;
    line-height: 1;
    transition: transform .18s ease, border-bottom-width .18s ease, background .18s ease;
}

.sc-hv-k.is-mod {
    color: var(--ds-red-dark);
    background: linear-gradient(180deg, #fff, #fdf3f3);
    border-color: #f0d7d7;
    border-bottom-color: #e8c9c9;
}

/* 主键下陷 + 结果卡亮起，4s 一轮 */
.sc-hv-k.is-press {
    animation: sc-press 4s cubic-bezier(.4, 0, .2, 1) infinite;
}

@keyframes sc-press {
    0%, 62%, 100% {
        transform: translateY(0);
        border-bottom-width: 3px;
        background: linear-gradient(180deg, #fff, #f8f4f3);
    }
    70%, 88% {
        transform: translateY(2px);
        border-bottom-width: 1px;
        background: linear-gradient(180deg, #fff1f1, #fde5e5);
    }
}

.sc-hv-plus {
    font-size: 15px;
    color: #cbbfbf;
    font-weight: 500;
}

.sc-hv-result {
    padding: 13px 15px;
    border-radius: 11px;
    border: 1px solid var(--ds-border);
    background: #fff;
    animation: sc-glow 4s ease-in-out infinite;
}

@keyframes sc-glow {
    0%, 62%, 100% { border-color: var(--ds-border); box-shadow: none; }
    70%, 88% { border-color: #f2c9c9; box-shadow: 0 0 0 3px var(--ds-red-soft); }
}

.sc-hv-rname {
    font-size: 15px;
    font-weight: 600;
    color: var(--ds-ink);
    line-height: 1.3;
}

.sc-hv-ren {
    margin-top: 2px;
    font-size: 11.5px;
    color: var(--ds-muted);
    letter-spacing: .02em;
}

.sc-hv-rmeta {
    display: flex;
    gap: 6px;
    margin-top: 9px;
}

.sc-hv-rmeta span {
    padding: 2px 7px;
    border-radius: 5px;
    background: #faf7f6;
    color: #8b837f;
    font-size: 10.5px;
}

@media (prefers-reduced-motion: reduce) {
    .sc-hv-k.is-press, .sc-hv-result { animation: none; }
}

@media (max-width: 1024px) {
    .sc-hv { max-width: 340px; margin-top: 28px; }
    .sc-hv-k { min-width: 64px; height: 56px; font-size: 15px; }
}

/* --------------------------------------------------------------------------
   2. 检索器 · 一屏高，列表内部滚动
   -------------------------------------------------------------------------- */
.sc-finder {
    --sc-red: #cc3333;
    --sc-red-dark: #a61f1f;
    --sc-red-soft: #fff1f1;
    --sc-soft: #faf7f6;
    --sc-line: #f4eeee;
    --sc-amber: #b45309;
    --sc-amber-soft: #fffbeb;

    display: flex;
    flex-direction: column;
    height: clamp(620px, calc(100dvh - 118px), 1000px);
    min-height: 0;
}

/* 工具条：软件选卡 + 平台切换 */
.sc-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--ds-border);
    margin-bottom: 14px;
}

.sc-tabs {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.sc-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: 8px;
    border: 1px solid transparent;
    color: var(--ds-muted);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: .16s;
}

.sc-tab:hover { background: var(--sc-soft); color: var(--ds-ink); }

.sc-tab.is-on {
    background: #fff;
    border-color: var(--ds-border);
    color: var(--ds-ink);
    box-shadow: 0 1px 2px rgba(31, 41, 55, .05);
}

.sc-tab.is-on::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--sc-red);
}

.sc-tab.is-off {
    opacity: .4;
    cursor: default;
    pointer-events: none;
}

.sc-tab.is-off::after {
    content: "即将";
    padding: 1px 5px;
    border-radius: 4px;
    background: #f4f0ee;
    color: #b8b0ab;
    font-size: 10px;
    font-weight: 400;
}

.sc-plat {
    display: inline-flex;
    padding: 3px;
    border: 1px solid var(--ds-border);
    border-radius: 9px;
    background: var(--sc-soft);
}

.sc-plat button {
    padding: 5px 13px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--ds-muted);
    font-size: 12.5px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: .16s;
}

.sc-plat button.is-on {
    background: #fff;
    color: var(--ds-ink);
    box-shadow: 0 1px 2px rgba(31, 41, 55, .08);
}

/* 搜索行 */
.sc-searchrow {
    display: flex;
    gap: 10px;
    align-items: stretch;
    flex: 0 0 auto;
}

.sc-field {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    height: 50px;
    border: 1.5px solid var(--ds-border);
    border-radius: 11px;
    background: #fff;
    transition: .16s;
}

.sc-field:focus-within {
    border-color: var(--sc-red);
    box-shadow: 0 0 0 4px var(--sc-red-soft);
}

.sc-field svg { flex: 0 0 auto; color: #b8b0ab; }

.sc-field input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 14.5px;
    font-family: inherit;
    color: var(--ds-ink);
    height: 100%;
}

.sc-field input::placeholder { color: #b8b0ab; }

.sc-clear {
    border: 0;
    background: transparent;
    color: #b8b0ab;
    font-size: 18px;
    line-height: 1;
    padding: 4px;
    cursor: pointer;
    display: none;
}

.sc-field.has-val .sc-clear { display: block; }

.sc-rec {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 18px;
    height: 50px;
    border: 1.5px solid var(--ds-border);
    border-radius: 11px;
    background: #fff;
    color: var(--ds-ink);
    font-size: 13.5px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: .16s;
}

.sc-rec:hover { border-color: var(--sc-red); color: var(--sc-red-dark); }
.sc-rec .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sc-red); }

.sc-rec.is-on {
    background: var(--sc-red);
    border-color: var(--sc-red);
    color: #fff;
}

.sc-rec.is-on .dot { background: #fff; animation: sc-pulse 1s infinite; }

@keyframes sc-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

.sc-hint {
    margin: 8px 2px 0;
    font-size: 12px;
    color: #98a2b3;
    min-height: 18px;
    flex: 0 0 auto;
}

.sc-hint b { color: var(--sc-red-dark); font-weight: 600; }

/* 筛选 chips */
.sc-chips {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    align-items: center;
    margin: 10px 0 12px;
    flex: 0 0 auto;
}

.sc-chip {
    padding: 5px 12px;
    border: 1px solid var(--ds-border);
    border-radius: 999px;
    background: #fff;
    color: var(--ds-muted);
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: .16s;
}

.sc-chip:hover { border-color: #e2d2d2; color: var(--ds-ink); }

.sc-chip.is-on {
    background: var(--sc-red-soft);
    border-color: #f2c9c9;
    color: var(--sc-red-dark);
}

.sc-chip.is-on::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--sc-red);
    margin-right: 6px;
    vertical-align: middle;
}

.sc-count {
    margin-left: auto;
    font-size: 12px;
    color: #98a2b3;
    white-space: nowrap;
}

/* 主体：侧栏 + 列表 */
.sc-body {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: 196px minmax(0, 1fr);
    gap: 22px;
}

.sc-side {
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-right: 4px;
    border-right: 1px solid var(--ds-border);
}

.sc-side::-webkit-scrollbar { width: 5px; }
.sc-side::-webkit-scrollbar-thumb { background: #ece2e2; border-radius: 3px; }

.sc-cat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 10px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--ds-muted);
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    text-align: left;
    width: 100%;
    cursor: pointer;
    transition: .14s;
}

.sc-cat:hover { background: var(--sc-soft); color: var(--ds-ink); }

.sc-cat.is-on {
    background: var(--sc-red-soft);
    color: var(--sc-red-dark);
    font-weight: 600;
}

.sc-cat em {
    font-style: normal;
    font-size: 11.5px;
    color: #b8b0ab;
    font-variant-numeric: tabular-nums;
}

.sc-listcol {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.sc-listwrap {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    padding-right: 6px;
}

.sc-morebar {
    flex: 0 0 auto;
    position: relative;
    display: none;
    padding: 6px 0 0;
    text-align: center;
}

.sc-morebar.is-on { display: block; }

.sc-morebar::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -26px;
    height: 26px;
    background: linear-gradient(rgba(255, 255, 255, 0), #fff);
    pointer-events: none;
}

.sc-listwrap::-webkit-scrollbar { width: 7px; }
.sc-listwrap::-webkit-scrollbar-thumb { background: #ece2e2; border-radius: 4px; }
.sc-listwrap::-webkit-scrollbar-thumb:hover { background: #dfd2d2; }

/* 列表行 */
.sc-row {
    display: grid;
    grid-template-columns: 186px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 14px;
    padding: 8px 10px;
    border-radius: 8px;
    border-bottom: 1px solid var(--sc-line);
    transition: .13s;
}

.sc-row:hover { background: var(--sc-soft); }
.sc-row.is-fav { background: #fffdf5; }
.sc-row.is-fav:hover { background: #fffbea; }

.sc-keys {
    display: flex;
    align-items: center;
    gap: 3px;
    flex-wrap: wrap;
}

.sc-kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 27px;
    padding: 0 7px;
    border-radius: 6px;
    background: linear-gradient(180deg, #fff, #faf8f7);
    border: 1px solid #e6dbdb;
    border-bottom: 2px solid #ded1d1;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    line-height: 1;
    white-space: nowrap;
}

.sc-kbd.is-mod {
    color: var(--sc-red-dark);
    background: linear-gradient(180deg, #fff, #fdf3f3);
    border-color: #f0d7d7;
    border-bottom-color: #e8c9c9;
}

.sc-plus { font-size: 10.5px; color: #cbc0c0; padding: 0 1px; }

.sc-desc {
    display: inline-block;
    max-width: 100%;
    padding: 3px 7px;
    border-radius: 5px;
    background: #f7f4f3;
    color: var(--ds-muted);
    font-size: 11.5px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sc-name {
    min-width: 0;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--ds-ink);
    word-break: break-word;
}

.sc-alias {
    margin-top: 1px;
    font-size: 10.5px;
    color: #a8a29e;
    font-weight: 400;
    line-height: 1.35;
}

.sc-tags {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.sc-tag {
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 11px;
    white-space: nowrap;
    background: var(--sc-soft);
    color: var(--ds-muted);
}

.sc-tag.hot { background: var(--sc-amber-soft); color: var(--sc-amber); }
.sc-tag.ctx { background: #f2f6fd; color: #3d6fa8; }

.sc-act { display: flex; gap: 4px; opacity: 0; transition: .14s; }
.sc-row:hover .sc-act { opacity: 1; }

.sc-ico {
    width: 27px;
    height: 27px;
    border: 1px solid var(--ds-border);
    border-radius: 7px;
    background: #fff;
    color: #b8b0ab;
    font-size: 12px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    cursor: pointer;
}

.sc-ico:hover { color: var(--sc-red); border-color: #f0caca; }

.sc-row.is-fav .sc-ico.fav { opacity: 1; color: var(--sc-red); }

.sc-group {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 13px 10px 5px;
    font-size: 11px;
    font-weight: 700;
    color: #a8a29e;
    letter-spacing: .08em;
}

.sc-group::after { content: ""; flex: 1; height: 1px; background: var(--sc-line); }

.sc-more {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 22px;
    border: 1px solid var(--ds-border);
    border-radius: 999px;
    background: #fff;
    color: var(--ds-muted);
    font-size: 12.5px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: .15s;
    box-shadow: 0 2px 10px -6px rgba(31, 41, 55, .3);
}

.sc-more:hover {
    border-color: #f0caca;
    color: var(--sc-red-dark);
    background: var(--sc-red-soft);
}

.sc-empty {
    padding: 48px 20px;
    text-align: center;
    color: #b8b0ab;
    font-size: 13.5px;
}

.sc-empty b {
    display: block;
    color: var(--ds-muted);
    font-size: 14.5px;
    font-weight: 600;
    margin-bottom: 6px;
}

/* toast */
.sc-toast {
    position: fixed;
    left: 50%;
    bottom: 32px;
    transform: translate(-50%, 14px);
    background: #1f2937;
    color: #fff;
    padding: 9px 18px;
    border-radius: 10px;
    font-size: 13px;
    opacity: 0;
    pointer-events: none;
    transition: .22s;
    z-index: 9999;
}

.sc-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* 右下角回搜按钮 */
.sc-fab {
    position: fixed;
    left: auto;
    right: 20px;
    bottom: 40px;
    z-index: 9990;
    display: block;
    padding: 44px 9px 16px 10px;
    text-align: center;
    border: 1px solid #eee4e4;
    border-radius: 14px;
    background: rgba(255, 255, 255, .97);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: #1f2937;
    font-size: 12.5px;
    font-weight: 600;
    font-family: inherit;
    letter-spacing: .1em;
    writing-mode: vertical-rl;
    box-shadow: 0 8px 26px -12px rgba(31, 41, 55, .28), 0 1px 3px rgba(31, 41, 55, .06);
    opacity: 0;
    pointer-events: none;
    transform: translateX(110%);
    transition: transform .26s ease, opacity .26s ease, border-color .16s;
}

.sc-fab.is-on {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.sc-fab:hover { border-color: #f0caca; color: #a61f1f; }

.sc-fab svg {
    position: absolute;
    top: 14px;
    left: 50%;
    margin-left: -8px;
    color: #cc3333;
}

/* 点过「加载更多」之后：放弃一屏高度，让外层页面跟着变长 */
.sc-finder.is-expanded {
    height: auto !important;
    max-height: none;
}

.sc-finder.is-expanded .sc-listwrap {
    overflow: visible;
    padding-right: 0;
}

.sc-finder.is-expanded .sc-listwrap::-webkit-scrollbar { display: none; }

.sc-finder.is-expanded .sc-side {
    overflow: visible;
    max-height: none;
    align-self: start;
    position: sticky;
    top: 108px;
}

.sc-finder.is-expanded .sc-morebar::before { display: none; }

/* --------------------------------------------------------------------------
   3. 新手必记 12 键
   -------------------------------------------------------------------------- */
.sc-starter {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.sc-st {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px 16px;
    border: 1px solid var(--ds-border);
    border-radius: 11px;
    background: #fff;
    transition: .16s;
}

.sc-st:hover { border-color: #f0d3d3; box-shadow: 0 6px 18px -12px rgba(204, 51, 51, .5); }

.sc-st-keys {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 0 0 auto;
}

.sc-st .sc-kbd {
    min-width: 22px;
    height: 24px;
    padding: 0 5px;
    font-size: 11px;
    border-bottom-width: 2px;
}

.sc-st .sc-plus { font-size: 9.5px; }

.sc-st-body { min-width: 0; }

.sc-st-name {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ds-ink);
    line-height: 1.35;
}

.sc-st-why {
    margin-top: 2px;
    font-size: 11.5px;
    color: var(--ds-muted);
    line-height: 1.4;
}

/* --------------------------------------------------------------------------
   4. 数据说明
   -------------------------------------------------------------------------- */
.sc-note {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 4px;
}

.sc-note-item {
    padding: 16px 18px;
    border-radius: 11px;
    border: 1px solid var(--ds-border);
    background: #fffdfb;
}

.sc-note-item h3 {
    margin: 0 0 6px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ds-ink);
}

.sc-note-item p {
    font-size: 12.5px;
    line-height: 1.65;
    color: var(--ds-muted);
}

.sc-note-item code {
    padding: 1px 5px;
    border-radius: 4px;
    background: #f7f4f3;
    border: 1px solid #efe7e5;
    font-size: 11.5px;
    color: #8a5a5a;
}

/* --------------------------------------------------------------------------
   5. 响应式
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .sc-starter, .sc-note { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 782px) {
    .sc-finder {
        height: auto;
        min-height: 0;
    }

    .sc-body {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .sc-side {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 6px;
        padding: 0 0 4px;
        border-right: 0;
        border-bottom: 1px solid var(--ds-border);
        max-height: none;
    }

    .sc-side::-webkit-scrollbar { display: none; }

    .sc-cat {
        width: auto;
        flex: 0 0 auto;
        border: 1px solid var(--ds-border);
        padding: 6px 12px;
        font-size: 12.5px;
    }

    .sc-cat em { display: none; }

    .sc-listwrap {
        overflow: visible;
        max-height: none;
        padding-right: 0;
    }

    .sc-searchrow { flex-wrap: wrap; }

    .sc-field { height: 46px; }
    .sc-field input { font-size: 14px; }

    .sc-rec {
        width: 100%;
        justify-content: center;
        height: 44px;
    }

    .sc-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 7px 10px;
        padding: 11px 6px;
    }

    .sc-name { grid-column: 1; grid-row: 1; font-size: 13.5px; }
    .sc-act { grid-column: 2; grid-row: 1; opacity: 1; align-self: start; margin-top: 1px; }
    .sc-keys { grid-column: 1; grid-row: 2; }
    .sc-tags { grid-column: 2; grid-row: 2; justify-content: flex-end; }

    .sc-kbd { min-width: 24px; height: 25px; font-size: 11.5px; }

    .sc-starter, .sc-note { grid-template-columns: 1fr; }

    .sc-tabs { flex-wrap: nowrap; overflow-x: auto; }
    .sc-tabs::-webkit-scrollbar { display: none; }
    .sc-tab { flex: 0 0 auto; }

    .sc-count { margin-left: 0; }

    .sc-fab {
        padding: 38px 6px 13px 7px;
        font-size: 11.5px;
    }

    .sc-fab svg { top: 12px; }
}

/* --------------------------------------------------------------------------
   6. 细节覆盖
   -------------------------------------------------------------------------- */
.sc-hv .ds-paper-badge {
    top: auto;
    left: auto;
    right: -6px;
    bottom: -14px;
    transform: none;
}

.sc-hv .ds-paper-badge b {
    color: var(--ds-red);
    font-weight: 600;
}

.sc-noscript {
    margin-top: 16px;
    padding: 20px 22px;
    border: 1px dashed #e8d8d8;
    border-radius: 12px;
    background: #fffdfb;
    color: var(--ds-muted);
    font-size: 13.5px;
    line-height: 1.75;
}

.sc-noscript a {
    color: var(--ds-red-dark);
    font-weight: 600;
}

.sc-noscript b {
    color: var(--ds-ink);
    font-weight: 600;
}

/* hero 标题：ds 系统里 h1 span 是 block 副标题，这里要内联红色高亮 */
#shortcuts-hero h1 span {
    display: inline;
    margin-top: 0;
    font-size: 1em;
    line-height: inherit;
    letter-spacing: inherit;
    background: linear-gradient(90deg, var(--ds-red), #e05252);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

@media (max-width: 1024px) {
    #shortcuts-hero h1 span { display: inline; font-size: 1em; }
}

/* 移动端 hero 视觉收小，别把首屏撑太高 */
@media (max-width: 782px) {
    .sc-hv { max-width: 300px; }
    .sc-hv-card { padding: 16px 18px 18px; }
    .sc-hv-brand { margin-bottom: 16px; }
    .sc-hv-keys { margin-bottom: 16px; gap: 6px; }
    .sc-hv-k { min-width: 58px; height: 50px; font-size: 14px; }
    .sc-hv-logo { width: 32px; height: 32px; font-size: 14px; }
    .sc-hv-result { padding: 11px 13px; }
    .sc-hv-rname { font-size: 14px; }
    .sc-hv .ds-paper-badge { right: -2px; bottom: -12px; font-size: 11.5px; padding: 7px 12px; }
}

/* FAQ 正文：ds 系统只定义了 details / summary，正文没有样式，这里补齐。
   PS 页用 <details><p>，其他工具页用 <details><div class="ds-qa"><p>，两种都覆盖。 */
.ds-page .ds-faq details > p,
.ds-page .ds-faq .ds-qa {
    padding: 0 18px 17px;
    margin: 0;
    color: var(--ds-muted);
    font-size: 13.5px;
    line-height: 1.82;
}

.ds-page .ds-faq .ds-qa > p { margin: 0; }
.ds-page .ds-faq .ds-qa > p + p { margin-top: 10px; }
.ds-page .ds-faq details b { color: var(--ds-ink); font-weight: 600; }
.ds-page .ds-faq details code {
    padding: 1px 5px;
    border-radius: 4px;
    background: #f7f4f3;
    border: 1px solid #efe7e5;
    font-size: 12px;
    color: #8a5a5a;
}

/* FAQ 正文里的站内内链 */
.ds-page .ds-faq details a {
    color: var(--ds-red-dark);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    text-decoration-color: rgba(166, 31, 31, .35);
    transition: text-decoration-color .16s, color .16s;
}

.ds-page .ds-faq details a:hover {
    color: var(--ds-red);
    text-decoration-color: var(--ds-red);
}
