:root {
    --front-bg: #f3f6f9;
    --front-panel: #ffffff;
    --front-panel-soft: #f8fafc;
    --front-border: rgba(20, 32, 50, 0.09);
    --front-border-strong: rgba(20, 32, 50, 0.14);
    --front-text: #172033;
    --front-muted: #667085;
    --front-faint: #98a2b3;
    --front-accent: #244061;
    --front-accent-deep: #16283d;
    --front-accent-soft: #edf3f8;
    --front-gold: #b58a47;
    --front-shadow: 0 18px 42px rgba(20, 32, 50, 0.07);
    --front-shadow-soft: 0 10px 24px rgba(20, 32, 50, 0.05);
}

/* Clean home page */
.clean-home-page {
    --clean-home-bg: #f6f8fb;
    --clean-home-panel: #ffffff;
    --clean-home-panel-soft: #f9fbff;
    --clean-home-text: #1f2937;
    --clean-home-muted: #6b7280;
    --clean-home-line: #e5eaf2;
    --clean-home-brand: #2563eb;
    --clean-home-brand-dark: #1d4ed8;
    --clean-home-green: #16a34a;
    --clean-home-amber: #d97706;
    --clean-home-shadow: 0 16px 40px rgba(35, 49, 77, .08);
    position: relative;
    min-height: 100vh;
    color: var(--clean-home-text);
    background-color: var(--clean-home-bg);
    background-image:
        radial-gradient(circle at 10% 8%, rgba(37, 99, 235, .14), transparent 28%),
        radial-gradient(circle at 90% 3%, rgba(20, 184, 166, .12), transparent 24%),
        radial-gradient(circle at 82% 72%, rgba(217, 119, 6, .07), transparent 24%),
        linear-gradient(rgba(37, 99, 235, .052) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, .044) 1px, transparent 1px),
        linear-gradient(135deg, rgba(37, 99, 235, .045) 0 1px, transparent 1px 36px),
        linear-gradient(180deg, rgba(255, 255, 255, .80) 0%, rgba(246, 248, 251, .44) 48%, rgba(246, 248, 251, .70) 100%);
    background-size:
        auto,
        auto,
        auto,
        32px 32px,
        32px 32px,
        42px 42px,
        auto;
    background-attachment: fixed;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

.clean-home-page a {
    color: inherit;
    text-decoration: none;
}

.clean-home-page main {
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 136px);
    background: transparent;
}

.clean-home-page main::before {
    content: none;
}

.clean-home-page main > * {
    position: relative;
    z-index: 1;
}

.clean-home-container {
    width: min(1400px, calc(100% - 32px));
    margin: 0 auto;
}

.clean-home-topbar {
    position: relative;
    z-index: 20;
    border-bottom: 1px solid rgba(229, 234, 242, .58);
    background: transparent;
    backdrop-filter: blur(10px);
}

.clean-home-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 24px;
}

.clean-home-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    font-size: 18px;
    font-weight: 700;
    white-space: nowrap;
}

.clean-home-brand-logo {
    width: auto;
    max-width: 180px;
    height: 34px;
    object-fit: contain;
}

.clean-home-nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4b5563;
    font-size: 14px;
}

.clean-home-nav-links a {
    padding: 8px 12px;
    border-radius: 8px;
}

.clean-home-nav-links a:hover {
    color: var(--clean-home-brand);
    background: #eff6ff;
}

.clean-home-hero {
    padding: 70px 0 46px;
    background: transparent;
}

.clean-home-search-hero {
    padding: 54px 0 10px;
}

.clean-home-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    align-items: center;
    gap: 48px;
}

.clean-home-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    padding: 5px 10px;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    color: var(--clean-home-brand-dark);
    background: #eff6ff;
    font-size: 13px;
    font-weight: 600;
}

.clean-home-hero h1 {
    max-width: 760px;
    margin: 0;
    font-size: 46px;
    line-height: 1.18;
    font-weight: 800;
    letter-spacing: 0;
}

.clean-home-lead {
    max-width: 660px;
    margin: 18px 0 28px;
    color: var(--clean-home-muted);
    font-size: 17px;
}

.clean-home-search {
    display: flex;
    align-items: center;
    width: min(650px, 100%);
    height: 58px;
    padding: 0 8px 0 18px;
    border: 1px solid #d9e4f5;
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--clean-home-shadow);
}

.clean-home-search-only {
    width: min(780px, 100%);
    margin: 0 auto;
}

.clean-home-search-keywords {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    width: min(780px, 100%);
    margin: 12px auto 0;
}

.clean-home-search-keywords a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 180px;
    padding: 5px 9px;
    border: 1px solid #e5edf8;
    border-radius: 999px;
    color: #64748b;
    background: rgba(255, 255, 255, .78);
    font-size: 12px;
    line-height: 1.2;
}

.clean-home-search-keywords a:hover {
    color: var(--clean-home-brand);
    border-color: #bfdbfe;
    background: #fff;
}

.clean-home-search-keywords span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.clean-home-search-keywords small {
    color: #94a3b8;
}

.clean-home-search i {
    color: #8aa0bd;
    font-size: 20px;
}

.clean-home-search input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: 0;
    padding: 0 14px;
    color: var(--clean-home-text);
    background: transparent;
    font-size: 16px;
}

.clean-home-search button {
    height: 42px;
    min-width: 86px;
    border: 0;
    border-radius: 9px;
    color: #fff;
    background: var(--clean-home-brand);
    font-weight: 700;
}

.clean-home-search button:hover {
    background: var(--clean-home-brand-dark);
}

.clean-home-quick-search {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    color: var(--clean-home-muted);
    font-size: 14px;
}

.clean-home-quick-search a {
    padding: 6px 10px;
    border: 1px solid #e3eaf5;
    border-radius: 999px;
    background: #fff;
}

.clean-home-quick-search a:hover {
    color: var(--clean-home-brand);
    border-color: #bfdbfe;
    background: #eff6ff;
}

.clean-home-featured {
    padding: 18px;
    border: 1px solid var(--clean-home-line);
    border-radius: 14px;
    background: rgba(255, 255, 255, .9);
    box-shadow: var(--clean-home-shadow);
}

.clean-home-featured-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    color: #111827;
    font-weight: 800;
}

.clean-home-featured-head i {
    color: var(--clean-home-amber);
}

.clean-home-featured-item {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
    padding: 12px 0;
    border-top: 1px solid #eef2f7;
}

.clean-home-featured-item span {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 8px;
    color: var(--clean-home-brand);
    background: #eff6ff;
    font-weight: 800;
}

.clean-home-featured-item strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
}

.clean-home-featured-item small {
    grid-column: 2;
    color: var(--clean-home-muted);
}

.clean-home-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: -22px;
}

.clean-home-stats div {
    padding: 18px 20px;
    border: 1px solid var(--clean-home-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(35, 49, 77, .06);
}

.clean-home-stats strong {
    display: block;
    font-size: 26px;
    line-height: 1.1;
    color: #111827;
}

.clean-home-stats span {
    display: block;
    margin-top: 6px;
    color: var(--clean-home-muted);
    font-size: 13px;
}

.clean-home-section {
    position: relative;
    padding: 30px 0 72px;
}

.clean-home-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.clean-home-section-head p {
    margin: 0 0 4px;
    color: var(--clean-home-brand);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.clean-home-section-head h2 {
    margin: 0;
    font-size: 26px;
    line-height: 1.25;
    font-weight: 800;
}

.clean-home-section-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--clean-home-brand);
    font-weight: 700;
}

.clean-home-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.clean-home-product-card {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;
    column-gap: 13px;
    row-gap: 5px;
    min-height: 136px;
    padding: 16px;
    border: 1px solid var(--clean-home-line);
    border-radius: 12px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .90), rgba(249, 251, 255, .78)),
        var(--clean-home-panel);
    box-shadow: 0 10px 28px rgba(35, 49, 77, .05);
    backdrop-filter: blur(8px);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.clean-home-product-card:hover {
    transform: translateY(-3px);
    border-color: #bfdbfe;
    box-shadow: var(--clean-home-shadow);
}

.clean-home-product-icon {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    grid-row: span 3;
    border: 1px solid #e5edf8;
    border-radius: 10px;
    color: #9aa8bc;
    background: #f8fafc;
    font-size: 22px;
}

.clean-home-product-icon img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
}

.clean-home-doc-count {
    min-width: 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.2;
}

.clean-home-product-card h3 {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    font-size: 16px;
    font-weight: 800;
}

.clean-home-product-card p {
    margin: 0;
    display: -webkit-box;
    overflow: hidden;
    color: var(--clean-home-muted);
    font-size: 13px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.clean-home-product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 18px 0;
}

.clean-home-product-tags span {
    padding: 4px 8px;
    border-radius: 7px;
    color: #475569;
    background: #f1f5f9;
    font-size: 12px;
}

.clean-home-product-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #eef2f7;
    color: var(--clean-home-muted);
    font-size: 13px;
}

.clean-home-product-foot i {
    color: var(--clean-home-brand);
}

.clean-home-bottom-grid {
    display: block;
    padding-bottom: 0;
}

.clean-home-panel {
    padding: 20px;
    border: 1px solid var(--clean-home-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(35, 49, 77, .05);
}

.clean-home-panel-head {
    margin-bottom: 10px;
}

.clean-home-ranking-list {
    display: grid;
    gap: 4px;
}

.clean-home-ranking-item {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid #eef2f7;
}

.clean-home-ranking-item > span {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 9px;
    color: #0f766e;
    background: #ccfbf1;
    font-weight: 800;
}

.clean-home-ranking-item strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
}

.clean-home-ranking-item small {
    display: block;
    margin-top: 2px;
    color: var(--clean-home-muted);
}

.clean-home-keyword-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.clean-home-keyword-cloud a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid #e3eaf5;
    border-radius: 999px;
    background: var(--clean-home-panel-soft);
}

.clean-home-keyword-cloud a:hover {
    color: var(--clean-home-brand);
    border-color: #bfdbfe;
    background: #eff6ff;
}

.clean-home-keyword-cloud small {
    color: var(--clean-home-muted);
}

.clean-home-empty {
    grid-column: 1 / -1;
    display: grid;
    place-items: center;
    min-height: 180px;
    padding: 24px;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    color: var(--clean-home-muted);
    background: #fff;
    text-align: center;
}

.clean-home-empty i {
    margin-bottom: 8px;
    color: #94a3b8;
    font-size: 28px;
}

.clean-home-empty-compact {
    min-height: 96px;
}

.clean-home-footer {
    border-top: 1px solid rgba(229, 234, 242, .58);
    background: transparent;
    backdrop-filter: blur(10px);
}

.clean-home-footer .clean-home-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 72px;
    color: var(--clean-home-muted);
    font-size: 13px;
}

.clean-home-footer strong {
    margin-right: 10px;
    color: var(--clean-home-text);
}

.clean-home-icp {
    color: var(--clean-home-muted);
    text-align: right;
}

.clean-home-icp:hover {
    color: var(--clean-home-brand);
}

@media (max-width: 992px) {
    .clean-home-hero-grid,
    .clean-home-bottom-grid {
        grid-template-columns: 1fr;
    }

    .clean-home-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .clean-home-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .clean-home-container {
        width: min(100% - 24px, 1400px);
    }

    .clean-home-nav-links {
        display: none;
    }

    .clean-home-hero {
        padding: 24px 0 12px;
    }

    .clean-home-hero h1 {
        font-size: 32px;
    }

    .clean-home-lead {
        font-size: 15px;
    }

    .clean-home-search {
        height: auto;
        flex-wrap: wrap;
        padding: 12px;
    }

    .clean-home-search input {
        height: 42px;
    }

    .clean-home-search button {
        width: 100%;
    }

    .clean-home-stats,
    .clean-home-product-grid {
        grid-template-columns: 1fr;
    }

    .clean-home-section-head,
    .clean-home-footer .clean-home-container {
        align-items: flex-start;
        flex-direction: column;
    }

    .clean-home-product-card {
        min-height: 0;
    }
}

body {
    font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(243, 246, 249, 0.96) 42%, var(--front-bg) 100%),
        radial-gradient(circle at 10% 0%, rgba(181, 138, 71, 0.08), transparent 30%);
    color: var(--front-text);
}

.navbar.bg-primary {
    background: linear-gradient(90deg, #132236 0%, #203956 58%, #2c4f73 100%) !important;
    box-shadow: 0 8px 28px rgba(14, 28, 45, 0.18);
}

.navbar-brand {
    font-weight: 800;
    letter-spacing: 0.02em;
}

.navbar .form-control {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.13);
    color: #fff;
}

.navbar .form-control::placeholder {
    color: rgba(255, 255, 255, 0.66);
}

.navbar .btn-light {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.92);
    color: var(--front-accent-deep);
}

.front-home-page {
    min-height: 100vh;
}

.manual-home-shell {
    padding: 30px 0 52px;
}

.manual-home-header {
    margin-bottom: 18px;
}

.manual-home-title-wrap {
    max-width: 720px;
}

.manual-home-kicker {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(36, 64, 97, 0.1);
    background: rgba(255, 255, 255, 0.72);
    color: var(--front-accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.manual-home-title {
    margin: 16px 0 10px;
    font-size: clamp(30px, 4vw, 40px);
    font-weight: 800;
    letter-spacing: 0;
}

.manual-home-desc {
    margin: 0;
    max-width: 620px;
    color: var(--front-muted);
    font-size: 15px;
    line-height: 1.8;
}

.manual-home-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
    gap: 24px;
    align-items: start;
}

.manual-home-products,
.manual-home-ranking {
    min-width: 0;
}

.manual-section-head {
    margin-bottom: 18px;
}

.manual-section-head h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.manual-product-card,
.manual-ranking-card,
.manual-empty-card,
.project-side-head,
.project-banner {
    border: 1px solid var(--front-border);
    background: var(--front-panel);
    box-shadow: var(--front-shadow-soft);
}

.manual-product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 22px;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.manual-product-card:hover {
    transform: translateY(-2px);
    border-color: rgba(36, 64, 97, 0.2);
    box-shadow: 0 18px 34px rgba(20, 32, 50, 0.1);
}

.manual-product-card-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.manual-product-icon-wrap {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 8px;
    border: 1px solid rgba(36, 64, 97, 0.08);
    background: linear-gradient(180deg, #f7fafc 0%, #edf3f8 100%);
    color: var(--front-accent);
    font-size: 28px;
}

.manual-product-icon-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.manual-product-slug {
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(36, 64, 97, 0.08);
    background: #f7fafc;
    color: var(--front-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.manual-product-card-body {
    padding-top: 18px;
    flex-grow: 1;
}

.manual-product-card-body h3 {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 800;
}

.manual-product-card-body p {
    margin: 0;
    color: var(--front-muted);
    line-height: 1.75;
}

.manual-product-card-footer {
    padding-top: 18px;
}

.manual-enter-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--front-accent);
    text-decoration: none;
    font-weight: 700;
}

.manual-enter-link i,
.manual-ranking-item > i {
    color: var(--front-gold);
}

.manual-ranking-card {
    border-radius: 8px;
    overflow: hidden;
}

.manual-ranking-item {
    display: grid;
    grid-template-columns: 38px 1fr 18px;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s ease;
}

.manual-ranking-item:last-child {
    border-bottom: 0;
}

.manual-ranking-item:hover {
    background: var(--front-panel-soft);
}

.manual-ranking-order {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--front-accent-soft);
    color: var(--front-accent);
    font-weight: 800;
}

.manual-ranking-title {
    font-weight: 700;
    line-height: 1.5;
}

.manual-ranking-meta,
.manual-ranking-empty {
    color: var(--front-muted);
    font-size: 13px;
}

.manual-ranking-empty {
    padding: 18px;
}

.manual-keyword-head {
    margin-top: 22px;
}

.manual-keyword-card {
    display: grid;
    gap: 8px;
}

.manual-keyword-item {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid var(--front-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    color: inherit;
    text-decoration: none;
    box-shadow: var(--front-shadow-soft);
    transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.manual-keyword-item:hover {
    transform: translateY(-1px);
    border-color: rgba(36, 64, 97, 0.2);
    background: #fff;
}

.manual-keyword-order {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: #fff7e8;
    color: var(--front-gold);
    font-size: 12px;
    font-weight: 800;
}

.manual-keyword-text {
    overflow: hidden;
    color: var(--front-text);
    font-size: 14px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.manual-keyword-count {
    color: var(--front-muted);
    font-size: 12px;
    font-weight: 700;
}

.manual-empty-card {
    text-align: center;
    padding: 52px 20px;
    border-radius: 8px;
}

.project-nav-wrap {
    position: sticky;
    top: 56px;
    z-index: 20;
    border-bottom: 1px solid var(--front-border);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    box-shadow: 0 8px 24px rgba(20, 32, 50, 0.04);
}

.manual-empty-card i {
    font-size: 42px;
    color: var(--front-muted);
}

.manual-empty-card h4 {
    margin: 18px 0 10px;
    font-weight: 800;
}

.manual-empty-card p {
    margin: 0;
    color: var(--front-muted);
    line-height: 1.8;
}

.tab-nav .nav-link {
    color: #465468;
    font-weight: 600;
    white-space: nowrap;
    border-radius: 7px;
    padding: 8px 16px;
    margin-right: 6px;
    font-size: 14px;
}

.tab-nav .nav-link:hover {
    background: var(--front-accent-soft);
}

.tab-nav .nav-link.active {
    background-color: var(--front-accent-deep) !important;
    color: white !important;
}

.project-tabbar {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 58px;
}

.project-tabbar-title {
    flex-shrink: 0;
    font-size: 18px;
    font-weight: 800;
    color: var(--front-text);
    letter-spacing: 0;
    padding-right: 14px;
    border-right: 1px solid rgba(148, 163, 184, 0.26);
}

.product-doc-shell {
    max-width: 1720px;
}

.product-doc-layout {
    align-items: flex-start;
}

.doc-sidebar {
    position: sticky;
    top: 132px;
    width: 280px;
    min-width: 280px;
    max-height: calc(100vh - 154px);
    overflow-y: auto;
    padding: 16px 12px;
    border: 1px solid var(--front-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--front-shadow-soft);
}

.doc-main {
    min-width: 0;
    padding: 34px 44px 28px;
    border: 1px solid var(--front-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--front-shadow);
}

.doc-ad {
    width: 236px;
    min-width: 236px;
    position: sticky;
    top: 132px;
}

.doc-ad-panel {
    margin-top: 14px;
    padding: 16px;
    border: 1px solid var(--front-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--front-shadow-soft);
}

.doc-toc-panel {
    max-height: calc(100vh - 154px);
    overflow-y: auto;
    padding: 14px 12px;
    border: 1px solid var(--front-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--front-shadow-soft);
}

.doc-toc-title {
    margin-bottom: 8px;
    padding: 0 4px 8px;
    border-bottom: 1px solid rgba(20, 32, 50, 0.08);
    color: #101928;
    font-size: 14px;
    font-weight: 700;
}

.doc-toc-link {
    display: block;
    width: 100%;
    min-height: 30px;
    padding: 6px 8px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #526173;
    font-size: 13px;
    line-height: 1.35;
    text-align: left;
    word-break: break-word;
    cursor: pointer;
}

.doc-toc-link:hover {
    background: var(--front-accent-soft);
    color: var(--front-accent-deep);
}

.doc-toc-link.level-2 {
    padding-left: 20px;
    color: #667085;
}

.tree-toggle {
    cursor: pointer;
    user-select: none;
    color: #475467;
    border-radius: 6px !important;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.tree-toggle:hover {
    background: var(--front-panel-soft);
    color: var(--front-accent);
}

.tree-item {
    cursor: pointer;
    min-height: 32px;
    padding: 6px 9px;
    border-radius: 6px;
    color: #3d4a5c;
    font-size: 14px;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.tree-item:hover {
    background: var(--front-accent-soft);
    color: var(--front-accent-deep);
}

.tree-item.active {
    background: var(--front-accent-deep);
    color: #fff;
}

.tree-item i,
.tree-toggle i {
    opacity: 0.76;
}

.doc-sidebar::-webkit-scrollbar {
    width: 4px;
}

.doc-sidebar::-webkit-scrollbar-thumb {
    background: #c2cad6;
    border-radius: 2px;
}

.doc-content {
    line-height: 1.9;
    color: #263243;
}

.doc-content h1 {
    scroll-margin-top: 112px;
    margin-bottom: 12px !important;
    color: #101928;
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 800;
    letter-spacing: 0;
}

.doc-content h2 {
    scroll-margin-top: 112px;
}

.doc-content .text-muted {
    color: var(--front-faint) !important;
}

.doc-content hr {
    margin: 20px 0 28px;
    border-color: rgba(20, 32, 50, 0.08);
    opacity: 1;
}

.doc-content img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

.doc-content p.wiki-sized-image-row {
    max-width: 100%;
}

.doc-content img.wiki-sized-image {
    display: block;
    margin-right: auto;
    margin-left: auto;
    height: auto;
    object-fit: contain;
}

.doc-content img.wiki-sized-image[data-width-unit="px"] {
    max-width: 100%;
}

.doc-content img.wiki-sized-image[data-width-unit="percent"] {
    max-width: 100%;
}

.doc-content img.doc-lightbox-trigger {
    cursor: zoom-in;
}

.image-lightbox-modal {
    --bs-modal-bg: #0f1722;
    background: rgba(8, 13, 20, 0.92);
}

.image-lightbox-modal .modal-content {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    background: #0f1722;
    color: #fff;
}

.image-lightbox-modal .modal-body {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    padding: 54px 76px 82px;
    overflow: hidden;
}

.image-lightbox-stage {
    display: grid;
    place-items: center;
    width: 100%;
    height: calc(100vh - 136px);
    min-height: 0;
    overflow: hidden;
    touch-action: none;
    user-select: none;
    cursor: grab;
}

.image-lightbox-stage.is-actual-size {
    place-items: center;
    overflow: hidden;
}

.image-lightbox-stage.is-dragging {
    cursor: grabbing;
}

.image-lightbox-stage img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
    background: #fff;
    transform-origin: center center;
    transition: transform 0.08s ease-out;
    will-change: transform;
    pointer-events: none;
}

.image-lightbox-stage.is-actual-size img {
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
}

.image-lightbox-stage.is-dragging img {
    transition: none;
}

.image-lightbox-close,
.image-lightbox-nav,
.image-lightbox-toolbar button {
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: background-color 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}

.image-lightbox-close:hover,
.image-lightbox-nav:hover:not(:disabled),
.image-lightbox-toolbar button:hover:not(:disabled),
.image-lightbox-toolbar button.active {
    border-color: rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.2);
}

.image-lightbox-close {
    position: fixed;
    top: 18px;
    right: 22px;
    z-index: 1084;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 999px;
}

.image-lightbox-nav {
    position: fixed;
    top: 50%;
    z-index: 1083;
    display: grid;
    width: 50px;
    height: 64px;
    place-items: center;
    border-radius: 10px;
    transform: translateY(-50%);
}

.image-lightbox-nav i {
    font-size: 28px;
}

.image-lightbox-prev {
    left: 18px;
}

.image-lightbox-next {
    right: 18px;
}

.image-lightbox-nav:disabled,
.image-lightbox-toolbar button:disabled {
    opacity: 0.38;
    cursor: not-allowed;
}

.image-lightbox-toolbar {
    position: fixed;
    left: 50%;
    bottom: 18px;
    z-index: 1084;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    max-width: calc(100vw - 28px);
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(16, 24, 36, 0.84);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.36);
    transform: translateX(-50%);
    backdrop-filter: blur(12px);
}

.image-lightbox-toolbar button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.image-lightbox-ratio {
    min-width: 52px;
    justify-content: center;
}

.image-lightbox-count {
    min-width: 58px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.back-top-button {
    position: fixed;
    right: 432px;
    bottom: 28px;
    z-index: 40;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(22, 93, 255, 0.18);
    border-radius: 999px;
    background: #fff;
    color: var(--front-accent-deep);
    box-shadow: 0 14px 34px rgba(20, 32, 50, 0.18);
    cursor: pointer;
}

.back-top-button:hover {
    background: var(--front-accent-deep);
    color: #fff;
}

.doc-content .wiki-mindmap {
    margin: 20px 0;
    padding: 18px;
    border: 1px solid rgba(20, 32, 50, 0.09);
    border-radius: 8px;
    background: #fbfcfe;
}

.doc-content .wiki-mindmap-canvas {
    overflow-x: auto;
    overflow-y: visible;
    padding-bottom: 4px;
}

.doc-content .wiki-mindmap svg {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: auto;
    font-family: "Microsoft YaHei", system-ui, sans-serif;
}

.doc-content .legacy-mindmap svg {
    min-width: 900px;
}

.doc-content .wiki-mindmap foreignObject {
    overflow: hidden;
}

.doc-content .wiki-mindmap foreignObject div {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    height: 100%;
    color: #172033;
    font-size: 14px;
    line-height: 1.4;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.doc-content .wiki-mindmap-node-text {
    display: flex;
    align-items: center;
    overflow: hidden;
}

.doc-content .wiki-image-grid {
    display: grid;
    grid-template-columns: repeat(var(--wiki-image-columns, 3), minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0;
}

.doc-content .wiki-image-grid.cols-2 {
    --wiki-image-columns: 2;
}

.doc-content .wiki-image-grid.cols-3 {
    --wiki-image-columns: 3;
}

.doc-content .wiki-image-grid.cols-4 {
    --wiki-image-columns: 4;
}

.doc-content .wiki-image-grid figure {
    margin: 0;
}

.doc-content .wiki-image-grid img {
    display: block;
    width: 100%;
}

.doc-content p:has(> img:nth-child(2)):not(:has(> :not(img))):not(.wiki-sized-image-row) {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    margin: 18px 0;
}

.doc-content p:has(> img:nth-child(2)):not(:has(> :not(img))):not(.wiki-sized-image-row) img {
    display: block;
    width: 100%;
    margin: 0;
}

.doc-content p {
    margin: 0 0 1em;
}

.doc-content ul,
.doc-content ol {
    margin: 0.7em 0 1.1em;
    padding-left: 1.6em;
}

.doc-content li {
    margin: 0.28em 0;
}

.doc-content li > p {
    margin: 0.35em 0;
}

.doc-content input[type="checkbox"] {
    margin-right: 8px;
    transform: translateY(1px);
}

.doc-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.2em 0;
    overflow: hidden;
    border: 1px solid var(--front-border);
    border-radius: 8px;
}

.doc-content table th,
.doc-content table td {
    border: 1px solid rgba(20, 32, 50, 0.09);
    padding: 10px 13px;
}

.doc-content table th {
    background: var(--front-panel-soft);
    color: #223047;
}

.doc-content pre {
    padding: 18px;
    border: 1px solid rgba(20, 32, 50, 0.08);
    border-radius: 8px;
    background: #f7f9fb;
    overflow-x: auto;
}

.doc-content pre code {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
}

.doc-content code {
    padding: 2px 6px;
    border-radius: 4px;
    background: #eef3f8;
    color: #244061;
    font-size: 0.92em;
}

.doc-content h2,
.doc-content h3,
.doc-content h4,
.doc-content h5,
.doc-content h6 {
    margin-top: 1.8em;
    margin-bottom: 0.7em;
    color: #172033;
    font-weight: 800;
    letter-spacing: 0;
}

.doc-content h2 {
    padding-bottom: 0.45em;
    border-bottom: 1px solid rgba(20, 32, 50, 0.08);
}

.doc-content a {
    color: var(--front-accent);
}

.doc-content blockquote {
    border-left: 4px solid var(--front-accent);
    padding: 10px 16px;
    margin: 1em 0;
    background: #f6f9fc;
    color: #56657a;
}

.doc-feedback-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 22px;
    border-top: 1px solid rgba(20, 32, 50, 0.07);
}

.doc-feedback-mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 34px;
    padding: 0 12px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--front-text);
    font-weight: 600;
    font-size: 14px;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.doc-feedback-mini i {
    color: var(--front-gold);
    font-size: 16px;
}

.doc-feedback-mini strong {
    font-size: 15px;
    font-weight: 800;
    color: var(--front-accent-deep);
}

.doc-feedback-mini.passive {
    color: var(--front-muted);
}

.doc-feedback-mini.passive strong {
    color: var(--front-text);
}

.doc-feedback-mini:hover:not(.passive) {
    color: var(--front-accent);
    background: var(--front-accent-soft);
    transform: translateY(-1px);
}

.doc-feedback-mini:disabled {
    opacity: 0.7;
}

.front-toast {
    position: fixed;
    right: 24px;
    bottom: 28px;
    z-index: 1085;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: min(420px, calc(100vw - 32px));
    padding: 12px 16px;
    border-radius: 8px;
    background: #ffffff;
    color: #172033;
    box-shadow: 0 16px 38px rgba(20, 32, 50, 0.18);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    animation: frontToastIn 0.2s ease-out;
}

.front-toast i {
    font-size: 18px;
}

.front-toast-success {
    border-left: 4px solid #18a058;
}

.front-toast-success i {
    color: #18a058;
}

.front-toast-error {
    border-left: 4px solid #d03050;
}

.front-toast-error i {
    color: #d03050;
}

@keyframes frontToastIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

mark {
    background-color: #fff3cd;
    padding: 1px 4px;
    border-radius: 2px;
}

.front-search-page {
    min-height: 100vh;
}

.search-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
    gap: 24px;
    align-items: end;
    margin-bottom: 22px;
}

.search-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--front-accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.search-head h1 {
    margin: 10px 0 8px;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: 0;
}

.search-head p {
    margin: 0;
    color: var(--front-muted);
}

.search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.search-loading,
.search-empty {
    display: grid;
    place-items: center;
    min-height: 240px;
    color: var(--front-muted);
    text-align: center;
}

.search-empty i {
    font-size: 42px;
    margin-bottom: 12px;
}

.search-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.search-summary span {
    padding: 6px 10px;
    border: 1px solid var(--front-border);
    border-radius: 999px;
    background: #fff;
    color: var(--front-muted);
    font-size: 13px;
    font-weight: 700;
}

.search-section {
    margin-top: 22px;
}

.search-section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.search-section-title h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
}

.search-section-title span {
    color: var(--front-muted);
    font-size: 13px;
}

.image-result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}

.search-product-tabs {
    display: flex;
    gap: 8px;
    margin: 0 0 14px;
    padding-bottom: 4px;
    overflow-x: auto;
}

.search-product-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid var(--front-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    color: #475467;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.search-product-tab strong {
    display: inline-grid;
    min-width: 24px;
    height: 22px;
    place-items: center;
    padding: 0 7px;
    border-radius: 999px;
    background: #eef2f7;
    color: #667085;
    font-size: 12px;
}

.search-product-tab.active {
    border-color: rgba(36, 64, 97, 0.28);
    background: var(--front-accent-deep);
    color: #fff;
}

.search-product-tab.active strong {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.image-result-card,
.doc-result-card {
    display: block;
    border: 1px solid var(--front-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    color: inherit;
    text-decoration: none;
    box-shadow: var(--front-shadow-soft);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.image-result-card:hover,
.doc-result-card:hover {
    transform: translateY(-2px);
    border-color: rgba(36, 64, 97, 0.22);
    box-shadow: 0 16px 34px rgba(20, 32, 50, 0.1);
}

.image-result-thumb {
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 9;
    border-bottom: 1px solid var(--front-border);
    background: var(--front-panel-soft);
    overflow: hidden;
}

.image-result-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.image-result-body,
.doc-result-card {
    padding: 16px;
}

.result-label {
    display: inline-flex;
    margin-bottom: 8px;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--front-accent-soft);
    color: var(--front-accent);
    font-size: 12px;
    font-weight: 800;
}

.result-label-content {
    background: #ecfdf3;
    color: #067647;
}

.image-result-card h3,
.doc-result-card h3 {
    margin: 0 0 8px;
    color: var(--front-text);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.42;
    display: -webkit-box;
    min-height: 45px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.result-path {
    margin: 0 0 8px;
    color: var(--front-muted);
    font-size: 13px;
}

.result-snippet {
    margin: 0;
    color: #465468;
    font-size: 13px;
    line-height: 1.55;
    display: -webkit-box;
    min-height: 60px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.doc-result-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.doc-result-card {
    min-height: 184px;
}

.search-pagination {
    margin-top: 18px;
}

.doc-content img.search-image-hit {
    outline: 4px solid rgba(181, 138, 71, 0.45);
    box-shadow: 0 0 0 8px rgba(181, 138, 71, 0.16);
    scroll-margin-top: 140px;
}

@media (max-width: 1199px) {
    .manual-home-grid {
        grid-template-columns: 1fr;
    }

    .product-doc-layout {
        flex-direction: column;
    }

    .doc-sidebar {
        position: static;
        width: 100%;
        min-width: 0;
        max-height: 360px;
    }

    .doc-main {
        width: 100%;
    }

    .doc-ad {
        display: none;
    }

    .doc-result-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .back-top-button {
        right: auto;
        left: 18px;
        bottom: 18px;
    }

    .doc-result-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .navbar .container-fluid {
        gap: 12px;
        align-items: flex-start;
        flex-direction: column;
    }

    .navbar .d-flex.align-items-center {
        width: 100%;
        gap: 10px;
    }

    .navbar form {
        flex: 1;
        margin-right: 0 !important;
    }

    .manual-home-shell {
        padding-top: 24px;
    }

    .manual-home-title {
        font-size: 28px;
    }

    .project-tabbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 12px 0;
    }

    .project-tabbar-title {
        padding-right: 0;
        border-right: 0;
    }

    .project-nav-wrap {
        position: static;
    }

    .product-doc-shell {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .doc-main {
        padding: 26px 20px 22px;
    }

    .doc-content h1 {
        font-size: 26px;
    }

    .doc-feedback-bar {
        justify-content: center;
    }

    .doc-content .wiki-image-grid,
    .doc-content p:has(> img:nth-child(2)):not(:has(> :not(img))):not(.wiki-sized-image-row) {
        grid-template-columns: 1fr;
    }

    .search-head {
        grid-template-columns: 1fr;
    }

    .search-form {
        grid-template-columns: 1fr;
    }

    .search-section-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .doc-result-grid {
        grid-template-columns: 1fr;
    }
}
