@charset "UTF-8";
/* ==========================================================================
   USDOC 技术博客样式（blog.html 专用）
   结构：深色 Hero → TL;DR 摘要 → 精选大卡 → 筛选 + 3 列卡片 → 主题 → FAQ → 深色收尾
   ========================================================================== */

footer { min-width: 0; margin-top: 0; }
footer .footer-grid { grid-template-columns: 1.7fr 1fr 1fr 1fr 1.1fr; gap: 40px; }
@media (max-width: 980px) {
    footer .footer-grid { grid-template-columns: 1fr 1fr; }
}

.b, .b *, .b *::before, .b *::after { box-sizing: border-box; }

.b {
    --b-brand: #2456e6;
    --b-brand-deep: #1c43c4;
    --b-soft: #eef3ff;
    --b-ink: #0d1117;
    --b-body: #4b5563;
    --b-muted: #6b7280;
    --b-line: #e8ebf0;
    --b-line2: #dde3ec;
    --b-dark: #060b1d;
    --b-wrap: 1200px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--b-ink);
    background: #fff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
.b-wrap { max-width: var(--b-wrap); margin: 0 auto; padding: 0 24px; }
.b a, .b a:hover, .b a:visited { text-decoration: none; color: inherit; }
.b figure { margin: 0; }
.b ul { margin: 0; padding: 0; list-style: none; }

/* ══════════════ 深色 Hero ══════════════ */
.b-hero {
    position: relative;
    overflow: hidden;
    padding: 34px 0 58px;
    background: linear-gradient(155deg, #070d21 0%, #0b1633 52%, #071026 100%);
    color: #fff;
}
.b-hero-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(760px 460px at 18% 0%, rgba(37, 99, 235, .30), rgba(37, 99, 235, 0) 68%),
        radial-gradient(680px 420px at 88% 12%, rgba(13, 148, 136, .22), rgba(13, 148, 136, 0) 70%),
        radial-gradient(520px 360px at 62% 100%, rgba(67, 56, 202, .24), rgba(67, 56, 202, 0) 72%);
}
.b-hero-in { position: relative; z-index: 1; text-align: center; }

.b-crumb {
    margin: 0 0 26px;
    font-size: 13px;
    color: rgba(255, 255, 255, .52);
}
.b-crumb a { color: rgba(255, 255, 255, .72); transition: color .16s ease; }
.b-crumb a:hover { color: #fff; }
.b-crumb span { margin: 0 7px; opacity: .5; }

.b-hero-kicker {
    margin: 0 0 14px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: #6ea0ff;
}
.b-hero h1 {
    margin: 0 auto 18px;
    max-width: 900px;
    font-size: 48px;
    line-height: 1.16;
    font-weight: 900;
    letter-spacing: -1.2px;
    background: linear-gradient(180deg, #fff 30%, #b9caf0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #fff;
}
.b-hero-sub {
    margin: 0 auto;
    max-width: 820px;
    font-size: 15.5px;
    line-height: 1.78;
    color: rgba(255, 255, 255, .68);
}

/* 数据看板 */
.b-stat {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin: 32px 0 24px;
    flex-wrap: wrap;
}
.b-stat li {
    min-width: 138px;
    padding: 15px 22px 13px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 10px;
    background: rgba(255, 255, 255, .055);
    backdrop-filter: blur(6px);
    text-align: center;
}
.b-stat b {
    display: block;
    font-size: 27px;
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
    letter-spacing: -.5px;
}
.b-stat span {
    display: block;
    margin-top: 3px;
    font-size: 12.5px;
    color: rgba(255, 255, 255, .56);
}

/* 标签云 */
.b-topics {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 9px;
    max-width: 940px;
    margin: 0 auto;
}
.b-topics button {
    padding: 6px 15px;
    border: 1px solid rgba(255, 255, 255, .17);
    border-radius: 100px;
    background: rgba(255, 255, 255, .04);
    font-family: inherit;
    font-size: 12.5px;
    color: rgba(255, 255, 255, .78);
    cursor: pointer;
    transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.b-topics button:hover { background: rgba(255, 255, 255, .13); color: #fff; border-color: rgba(255, 255, 255, .3); }
.b-topics button.is-on { background: var(--b-brand); border-color: var(--b-brand); color: #fff; }

/* ══════════════ TL;DR 摘要卡 ══════════════ */
.b-tldr-wrap { padding-top: 56px; }
.b-tldr {
    padding: 30px 34px 32px;
    border: 1px solid var(--b-line2);
    border-radius: 16px;
    background: linear-gradient(168deg, #fbfcff 0%, #f4f7fd 100%);
}
.b-tldr-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.b-tldr-badge {
    padding: 4px 10px;
    border-radius: 5px;
    background: #e4ecff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
    color: var(--b-brand);
}
.b-tldr-update { font-size: 12.5px; color: var(--b-muted); }
.b-tldr h2 {
    margin: 0 0 14px;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -.3px;
    color: var(--b-ink);
}
.b-tldr-lead {
    margin: 0 0 22px;
    font-size: 15px;
    line-height: 1.82;
    color: var(--b-body);
}
.b-tldr-lead b { color: var(--b-ink); font-weight: 700; }
.b-tldr-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 30px;
}
.b-tldr-grid li {
    position: relative;
    padding-left: 22px;
    font-size: 13.5px;
    line-height: 1.66;
    color: var(--b-body);
}
.b-tldr-grid li::before {
    content: '';
    position: absolute;
    left: 0;
    top: .42em;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #dcebdd url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='4 12 9 17 20 6'/%3E%3C/svg%3E") center/9px no-repeat;
}
.b-tldr-grid li b { color: var(--b-ink); font-weight: 600; }

/* ══════════════ 精选大卡 ══════════════ */
.b-articles { padding: 46px 24px 68px; }
.b-pick {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--b-line);
}
.b-pick-fig {
    display: block;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--b-line2);
    background: var(--b-soft);
}
.b-pick-fig img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.22,.61,.36,1); }
.b-pick:hover .b-pick-fig img { transform: scale(1.035); }
.b-pick-body { min-width: 0; }
.b-pick-tag {
    display: inline-block;
    margin-bottom: 13px;
    padding: 4px 10px;
    border-radius: 5px;
    background: var(--b-brand);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .03em;
    color: #fff;
}
.b-pick-body h2 {
    margin: 0 0 14px;
    font-size: 30px;
    line-height: 1.34;
    font-weight: 800;
    letter-spacing: -.5px;
    color: var(--b-ink);
    transition: color .16s ease;
}
.b-pick:hover .b-pick-body h2 { color: var(--b-brand); }
.b-pick-body > p {
    margin: 0 0 18px;
    font-size: 14.5px;
    line-height: 1.78;
    color: var(--b-body);
}

/* 元信息 */
.b-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 11px;
    font-size: 12.5px;
    color: var(--b-muted);
}
.b-meta .sep { width: 3px; height: 3px; border-radius: 50%; background: #ccd3de; }
.b-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    font-size: 13px;
    font-weight: 600;
    color: var(--b-brand);
    white-space: nowrap;
}
.b-more span { transition: transform .2s ease; }
a:hover .b-more span { transform: translateX(3px); }

/* ══════════════ 筛选条 ══════════════ */
.b-filter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 36px 0 26px;
    flex-wrap: wrap;
}
.b-filter-t { font-size: 13px; color: var(--b-muted); }
.b-nav { display: flex; flex-wrap: wrap; gap: 4px; }
.b-nav button {
    padding: 7px 14px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--b-body);
    cursor: pointer;
    transition: color .16s ease, background .16s ease, border-color .16s ease;
}
.b-nav button:hover { color: var(--b-brand); background: var(--b-soft); }
.b-nav button.is-on {
    color: var(--b-brand);
    background: var(--b-soft);
    border-color: #c7d7ff;
    font-weight: 600;
}

/* ══════════════ 3 列卡片 ══════════════ */
.b-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}
.b-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--b-line2);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
    transition: border-color .22s ease, box-shadow .26s ease, transform .26s ease;
}
.b-card:hover {
    border-color: #c3d3f7;
    box-shadow: 0 3px 10px rgba(13, 17, 23, .05), 0 20px 44px rgba(13, 17, 23, .10);
    transform: translateY(-4px);
}
.b-card-art {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--b-soft);
    border-bottom: 1px solid var(--b-line);
}
.b-card-art img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.22,.61,.36,1); }
.b-card:hover .b-card-art img { transform: scale(1.05); }
.b-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px 22px 22px;
}
.b-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 11px;
}
.b-cat {
    padding: 3px 8px;
    border-radius: 4px;
    background: var(--b-soft);
    font-size: 11.5px;
    font-weight: 600;
    color: var(--b-brand);
}
.b-date { font-size: 12px; color: var(--b-muted); font-variant-numeric: tabular-nums; }
.b-card-body h3 {
    margin: 0 0 10px;
    font-size: 17px;
    line-height: 1.5;
    font-weight: 700;
    color: var(--b-ink);
    transition: color .16s ease;
}
.b-card:hover .b-card-body h3 { color: var(--b-brand); }
.b-card-body > p {
    margin: 0 0 18px;
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--b-body);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.b-card-body .b-more { margin-top: auto; margin-left: 0; }

/* 空状态 */
.b-empty { display: none; padding: 64px 0; text-align: center; }
.b-empty.is-on { display: block; }
.b-empty b { display: block; margin-bottom: 7px; font-size: 16px; color: var(--b-body); }
.b-empty span { font-size: 13.5px; color: var(--b-muted); }

/* ══════════════ 通用区块标题 ══════════════ */
.b-sec-kicker {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--b-brand);
    text-align: center;
}
.b-sec-title {
    margin: 0 0 10px;
    font-size: 27px;
    font-weight: 800;
    letter-spacing: -.4px;
    color: var(--b-ink);
    text-align: center;
}
.b-sec-sub {
    margin: 0 0 34px;
    font-size: 14.5px;
    color: var(--b-muted);
    text-align: center;
}

/* ══════════════ 主题卡 ══════════════ */
.b-topics-sec { padding: 62px 0 66px; background: #f7f9fc; }
.b-tile-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}
.b-tile-grid a {
    display: block;
    padding: 20px 20px 18px;
    border: 1px solid var(--b-line2);
    border-radius: 12px;
    background: #fff;
    transition: border-color .2s ease, box-shadow .24s ease, transform .24s ease;
}
.b-tile-grid a:hover {
    border-color: #c3d3f7;
    box-shadow: 0 3px 8px rgba(13, 17, 23, .05), 0 14px 30px rgba(13, 17, 23, .08);
    transform: translateY(-3px);
}
.b-tile-ico {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 15px;
    border-radius: 12px;
    background: linear-gradient(145deg, var(--c1), var(--c2));
    box-shadow: 0 5px 14px -4px var(--c2), inset 0 1px 0 rgba(255, 255, 255, .28);
    transition: transform .24s cubic-bezier(.22,.61,.36,1), box-shadow .24s ease;
}
/* 顶部一抹高光，让色块有层次而不是平板 */
.b-tile-ico::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(160deg, rgba(255, 255, 255, .30), rgba(255, 255, 255, 0) 52%);
    pointer-events: none;
}
.b-tile-ico svg {
    position: relative;
    z-index: 1;
    width: 22px;
    height: 22px;
    fill: none;
    stroke: #fff;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.b-tile-grid a:hover .b-tile-ico {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 9px 20px -5px var(--c2), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.b-tile-grid b {
    display: block;
    margin-bottom: 5px;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--b-ink);
}
.b-tile-grid i {
    display: block;
    font-style: normal;
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--b-muted);
}

/* ══════════════ FAQ ══════════════ */
.b-faq-sec { padding: 62px 0 70px; background: #f7f9fc; }
.b-faq {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    max-width: 1100px;
    margin: 0 auto;
}
.b-faq details {
    border: 1px solid var(--b-line2);
    border-radius: 9px;
    background: #fff;
    transition: border-color .18s ease, box-shadow .2s ease;
}
.b-faq details:hover { border-color: #cfd9ea; }
.b-faq details[open] { border-color: #c3d3f7; box-shadow: 0 4px 16px rgba(36, 86, 230, .07); }
.b-faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    font-size: 14px;
    font-weight: 600;
    color: var(--b-ink);
    cursor: pointer;
    list-style: none;
}
.b-faq summary::-webkit-details-marker { display: none; }
.b-faq summary .chev {
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    border-right: 1.8px solid #9aa5b5;
    border-bottom: 1.8px solid #9aa5b5;
    transform: rotate(45deg);
    transition: transform .22s ease;
}
.b-faq details[open] summary .chev { transform: rotate(-135deg); }
.b-faq-a {
    padding: 0 18px 16px;
    border-top: 1px solid #f0f3f8;
}
.b-faq-a p {
    margin: 13px 0 0;
    font-size: 13.5px;
    line-height: 1.78;
    color: var(--b-body);
}

/* ══════════════ 深色收尾 ══════════════ */
.b-cta-sec {
    position: relative;
    overflow: hidden;
    padding: 66px 0 70px;
    background: radial-gradient(720px 380px at 50% 0%, #16265c 0%, #081029 62%, #050a1a 100%);
    text-align: center;
    color: #fff;
}
.b-cta-sec h2 {
    margin: 0 0 14px;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -.6px;
    color: #fff;
}
.b-cta-sec > .b-wrap > p {
    margin: 0 auto 28px;
    max-width: 620px;
    font-size: 15px;
    line-height: 1.76;
    color: rgba(255, 255, 255, .64);
}
.b-cta-btns { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.b-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    padding: 0 28px;
    border-radius: 7px;
    font-size: 14.5px;
    font-weight: 600;
    transition: background .16s ease, box-shadow .2s ease, transform .16s ease, border-color .16s ease;
}
.b-btn--main {
    background: var(--b-brand);
    color: #fff;
    box-shadow: 0 6px 20px -4px rgba(36, 86, 230, .55);
}
.b-btn--main:hover { background: #2f63f0; transform: translateY(-1px); box-shadow: 0 10px 26px -4px rgba(36, 86, 230, .62); }
.b-btn--ghost {
    border: 1px solid rgba(255, 255, 255, .24);
    color: #fff;
    background: rgba(255, 255, 255, .04);
}
.b-btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .4); }

/* ══════════════ 回到顶部 ══════════════ */
#backToTop {
    position: fixed;
    right: 28px;
    bottom: 34px;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 50%;
    background: #2456e6;
    color: #fff;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    box-shadow: 0 6px 20px -4px rgba(36, 86, 230, .5);
    transition: opacity .26s ease, transform .26s cubic-bezier(.22,.61,.36,1),
                visibility 0s linear .26s, background .16s ease, box-shadow .22s ease;
}
#backToTop svg {
    width: 20px;
    height: 20px;
    display: block;
}
#backToTop.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity .26s ease, transform .26s cubic-bezier(.22,.61,.36,1),
                visibility 0s linear 0s, background .16s ease, box-shadow .22s ease;
}
#backToTop:hover {
    background: #1c43c4;
    box-shadow: 0 10px 26px -4px rgba(36, 86, 230, .58);
    transform: translateY(-2px);
}
#backToTop:active { transform: translateY(0) scale(.95); }
#backToTop:focus-visible {
    outline: 2px solid #2456e6;
    outline-offset: 3px;
}

@media (max-width: 860px) {
    #backToTop { right: 16px; bottom: 22px; width: 40px; height: 40px; }
    #backToTop svg { width: 18px; height: 18px; }
}

/* ══════════════ 响应式 ══════════════ */
@media (max-width: 1080px) {
    .b-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .b-tile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
    .b-hero { padding: 26px 0 46px; }
    .b-hero h1 { font-size: 34px; letter-spacing: -.8px; }
    .b-hero-sub { font-size: 14.5px; }
    .b-stat li { min-width: 118px; padding: 12px 16px 10px; }
    .b-stat b { font-size: 22px; }
    .b-tldr-wrap { padding-top: 40px; }
    .b-tldr { padding: 24px 22px 26px; }
    .b-tldr h2 { font-size: 21px; }
    .b-tldr-grid { grid-template-columns: 1fr; }
    .b-pick { grid-template-columns: 1fr; gap: 24px; padding-bottom: 32px; }
    .b-pick-body h2 { font-size: 23px; }
    .b-articles { padding: 34px 24px 52px; }
    .b-grid { grid-template-columns: 1fr; }
    .b-tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .b-faq { grid-template-columns: 1fr; }
    .b-sec-title { font-size: 23px; }
    .b-topics-sec, .b-faq-sec { padding: 46px 0 50px; }
    .b-cta-sec { padding: 52px 0 56px; }
    .b-cta-sec h2 { font-size: 27px; }
    .b-filter { margin: 28px 0 20px; }
}
@media (max-width: 560px) {
    .b-hero h1 { font-size: 28px; }
    .b-stat { gap: 9px; }
    .b-stat li { min-width: 0; flex: 1 1 44%; }
    .b-tile-grid { grid-template-columns: 1fr; }
    .b-nav { gap: 2px; }
    .b-nav button { padding: 6px 10px; font-size: 12.5px; }
    .b-card-body { padding: 16px 18px 18px; }
    .b-card-body h3 { font-size: 16px; }
}

/* 减少动效 */
@media (prefers-reduced-motion: reduce) {
    .b-card, .b-card-art img, .b-pick-fig img, .b-tile-grid a,
    .b-btn, .b-more span, .b-faq summary .chev { transition: none !important; }
    .b-card:hover, .b-tile-grid a:hover, .b-btn--main:hover { transform: none; }
    .b-card:hover .b-card-art img, .b-pick:hover .b-pick-fig img { transform: none; }
}