:root {
    --ink: #16233a;
    --ink-2: #3d4c66;
    --ink-3: #6b7893;
    --brand: #1f5eff;
    --brand-deep: #0f3ecb;
    --brand-soft: #e9f0ff;
    --teal: #0f8a72;
    --teal-soft: #e4f6f1;
    --gold: #c9962a;
    --bg: #f5f7fb;
    --card: #fff;
    --line: #e2e8f4;
    --radius: 14px;
    --shadow: 0 1px 2px rgba(22, 35, 58, .05), 0 8px 24px rgba(22, 35, 58, .06);
    --amber: #b96b00;
    --amber-soft: #fff4e0;
}

.crumbs {
    font-size: 13px;
    color: var(--ink-3);
    padding: 14px 0 0
}

.crumbs ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center
}

.crumbs li+li::before {
    content: "/";
    margin-right: 6px;
    color: #b8c2d6
}

.crumbs a {
    color: var(--ink-3);
}

.crumbs [aria-current] {
    color: var(--ink);
    font-weight: 600
}

main {
    padding: 18px 0 56px
}

.page-head {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 26px;
    border-top: 4px solid var(--teal);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center
}

@media (max-width:720px) {
    .page-head {
        grid-template-columns: 1fr
    }
}

h1 {
    font-size: 24px;
    margin: 10px 0 8px
}

.q-tag {
    display: inline-flex;
    font-size: 12px;
    font-weight: 600;
    color: #0a5c4c;
    background: var(--teal-soft);
    padding: 4px 10px;
    border-radius: 999px
}

.page-head p.desc {
    font-size: 14px;
    color: var(--ink-2);
    margin-right: 50px
}

.head-stats {
    display: flex;
    gap: 26px
}

.stat {
    text-align: center;
    min-width: 84px
}

.stat b {
    display: block;
    font-size: 26px;
    color: var(--teal);
    line-height: 1.3
}

.stat span {
    font-size: 12.5px;
    color: var(--ink-3)
}

.tools {
    margin-top: 16px;
    display: grid;
    gap: 12px
}

.search-box {
    position: relative
}

.search-box input {
    width: 100%;
    min-height: 48px;
    font-size: 16px;
    font-family: inherit;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px 44px;
    background: var(--card);
    box-shadow: var(--shadow)
}

.search-box input:focus {
    border-color: var(--brand);
    outline: none
}

.search-box .s-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ink-3)
}

.clear-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 0;
    background: none;
    color: var(--ink-3);
    font-size: 16px;
    cursor: pointer;
    display: none
}

.clear-btn.show {
    display: block
}

.cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px
}

.cat {
    min-height: 44px;
    padding: 6px 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--ink-2);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background .15s
}

.cat[aria-pressed="true"] {
    background: var(--teal);
    border-color: var(--teal);
    color: #fff
}

.cat:hover {
    text-decoration: none;
    opacity: .92
}

.count-line {
    margin-top: 16px;
    font-size: 13px;
    color: var(--ink-3)
}

.count-line b {
    color: var(--teal)
}

.case-list {
    list-style: none;
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px
}

.case-item {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: border-color .15s, box-shadow .15s
}

.case-item:hover {
    border-color: #bfd9d1;
    box-shadow: 0 2px 4px rgba(22, 35, 58, .06), 0 14px 32px rgba(22, 35, 58, .10)
}

.case-link {
    display: flex;
    flex-direction: column;
    min-height: 56px;
    color: inherit
}

.case-link:hover {
    text-decoration: none
}

.case-link:hover .case-title {
    color: var(--brand-deep)
}

.thumb {
    width: 100%;
    border-radius: 0;
    overflow: hidden;
    position: relative;
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 12px 14px
}

.case-title {
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.case-snippet {
    font-size: 13px;
    color: var(--ink-2);
    margin-top: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.case-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px
}

.tag {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--brand-deep);
    background: var(--brand-soft);
    border-radius: 999px;
    padding: 2px 9px
}

.tag.win {
    color: #0a5c4c;
    background: var(--teal-soft)
}

.case-foot {
    margin-top: auto;
    padding-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--ink-3)
}

.case-go {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--teal)
}

.case-item.soon .thumb {
    filter: saturate(.55)
}

.case-item.soon .case-go {
    color: var(--ink-3)
}

.case-item.hide {
    display: none
}

.demo-pill {
    font-size: 11px;
    font-weight: 700;
    color: var(--gold);
    border: 1px dashed var(--gold);
    border-radius: 6px;
    padding: 1px 8px
}

.empty {
    display: none;
    background: var(--card);
    border: 1px dashed var(--line);
    border-radius: 12px;
    padding: 36px 20px;
    text-align: center;
    color: var(--ink-3);
    font-size: 14px;
    margin-top: 14px
}

.empty.show {
    display: block
}

.empty .btn-mini {
    margin-top: 12px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 10px;
    border: 1px solid var(--brand);
    background: #fff;
    color: var(--brand-deep);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit
}


@media (max-width:1199px) {
    .case-list {
        grid-template-columns: repeat(3, minmax(0, 1fr))
    }
}

@media (max-width:860px) {
    .case-list {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
}

@media (max-width:520px) {
    .case-list {
        gap: 12px
    }


    .case-title {
        font-size: 14px
    }

    .case-snippet {
        -webkit-line-clamp: 3
    }

    .head-stats {
        gap: 14px
    }
}

@media (max-width:1199px) {
    .case-list {
        grid-template-columns: repeat(3, minmax(0, 1fr))
    }
}

@media (max-width:860px) {
    .case-list {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
}

@media (max-width:520px) {
    .case-list {
        gap: 12px
    }


    .case-title {
        font-size: 14px
    }

    .case-snippet {
        -webkit-line-clamp: 3
    }

    .head-stats {
        gap: 14px
    }
}

.q-head {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 26px 26px 22px;
    border-top: 4px solid var(--teal)
}

.q-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #0a5c4c;
    background: var(--teal-soft);
    padding: 4px 10px;
    border-radius: 999px
}

.q-tag.ok {
    margin-left: 8px;
    color: var(--teal)
}

h1 {
    font-size: 25px;
    line-height: 1.45;
    margin: 12px 0 10px;
    letter-spacing: .2px
}

.q-meta {
    font-size: 13px;
    color: var(--ink-3);
    display: flex;
    flex-wrap: wrap;
    gap: 16px
}

.q-meta time {
    font-variant-numeric: tabular-nums
}

.answer-card {
    margin-top: 18px;
    background: linear-gradient(180deg, #eefaf6, #ffffff);
    border: 1px solid #bfe8dd;
    border-radius: var(--radius);
    padding: 20px 22px;
    position: relative
}

.answer-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 4px 0 0 4px;
    background: linear-gradient(180deg, var(--teal), var(--brand))
}

.answer-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--teal);
    letter-spacing: 2px;
    margin-bottom: 12px
}

.answer-main {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.5;
}

.copy-row {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 18px;
    border-radius: 10px;
    border: 1px solid var(--teal);
    background: var(--teal);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: background .15s, transform .1s;
    font-family: inherit
}

.btn:hover {
    background: #0b6f5c;
    text-decoration: none
}

.btn:active {
    transform: scale(.98)
}

.btn-ghost {
    background: #fff;
    color: var(--brand-deep);
    border-color: #c7d6f5
}

.btn-ghost:hover {
    background: var(--brand-soft)
}

.main-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 28px;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px 26px;
    margin-top: 20px;
    scroll-margin-top: 84px;
}

.section h2 {
    font-size: 19px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
}

.section h2 .idx {
    flex: none;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: var(--teal-soft);
    color: var(--ink-3);
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 800
}

.section p {
    color: var(--ink-2);
    margin-bottom: 10px
}

.section p:last-child {
    margin-bottom: 0
}

mark {
    background: #ffefb8;
    color: #6b4a00;
    padding: 0 3px;
    border-radius: 3px
}

.disclaimer {
    margin-top: 20px;
    border: 1px dashed #d4dcec;
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--ink-3);
    background: #fbfcff
}

.disclaimer strong {
    color: var(--amber)
}

.side-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px 20px;
}

.hot-list {
    list-style: none;
    font-size: 14px;
    display: grid;
    gap: 2px
}

.hot-list a {
    display: flex;
    align-items: center;
    padding: 8px 6px;
    min-height: 44px;
    color: var(--ink-2);
    border-radius: 8px
}

.hot-list a:hover {
    background: #eef2fa;
    text-decoration: none;
    color: var(--brand-deep)
}

.hot-rank {
    flex: none;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: #eef2fa;
    color: var(--ink-3);
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 700;
    margin-right: 10px
}

.hot-list li:nth-child(-n+2) .hot-rank {
    background: var(--teal);
    color: #fff
}

.faq-toast {
    position: fixed;
    left: 50%;
    top: 40%;
    transform: translate(-50%, 16px);
    background: #1c2b47;
    color: #fff;
    font-size: 14px;
    padding: 11px 20px;
    border-radius: 999px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s, transform .25s;
    z-index: 90;
    max-width: 88vw;
    text-align: center;
    border: 0;
}

.faq-toast.is-show {
    opacity: 1;
    transform: translate(-50%, 0);
}