.tech-page-head {
    margin-bottom: 1.1rem;
    padding-bottom: .7rem;
    border-bottom: 1px solid var(--bs-border-color, rgba(0, 0, 0, .1));
}
.tech-page-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 .3rem;
    color: var(--bs-body-color);
    display: flex;
    align-items: center;
    gap: .4rem;
}
.tech-page-desc {
    margin: 0;
    font-size: .9rem;
    color: var(--bs-secondary-color, #6c757d);
}

.tech-layout {
    align-items: flex-start;
}
.tech-side {
    position: sticky;
    top: 88px;
}

.tech-cat-panel {
    border: 1px solid var(--bs-border-color, rgba(0, 0, 0, .1));
    border-radius: .65rem;
    overflow: hidden;
    background: var(--bs-body-bg);
}
.tech-cat-head {
    padding: .6rem .85rem;
    font-weight: 600;
    font-size: .9rem;
    background: var(--bs-tertiary-bg, rgba(0, 0, 0, .03));
    border-bottom: 1px solid var(--bs-border-color, rgba(0, 0, 0, .1));
    color: var(--bs-body-color);
}
.tech-cat-list,
.tech-cat-sublist {
    list-style: none;
    margin: 0;
    padding: .35rem .4rem;
}
.tech-cat-sublist {
    padding: 0 0 .25rem 1.1rem;
}
.tech-cat-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .4rem;
    padding: .35rem .5rem;
    border-radius: .4rem;
    font-size: .85rem;
    color: var(--bs-body-color);
    text-decoration: none;
}
.tech-cat-link:hover {
    background: var(--bs-tertiary-bg, rgba(0, 0, 0, .04));
}
.tech-cat-link.active {
    background: var(--bs-primary);
    color: var(--bs-white, #fff);
}
.tech-cat-count {
    font-size: .75rem;
    opacity: .7;
}

.tech-crumb {
    font-size: .85rem;
    margin-bottom: .6rem;
    color: var(--bs-secondary-color, #6c757d);
}
.tech-crumb a {
    color: var(--bs-secondary-color, #6c757d);
    text-decoration: none;
}
.tech-crumb a:hover {
    color: var(--bs-primary);
}
.tech-crumb .sep {
    margin: 0 .35rem;
}
.tech-crumb .cur {
    color: var(--bs-body-color);
}

.tech-search {
    display: flex;
    gap: .4rem;
    margin-bottom: .85rem;
    max-width: 420px;
}

.tech-topbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem .9rem;
    padding: .55rem .75rem;
    margin-bottom: .9rem;
    border: 1px dashed var(--bs-border-color, rgba(0, 0, 0, .15));
    border-radius: .5rem;
    font-size: .85rem;
}
.tech-topbar-label {
    color: var(--bs-danger, #dc3545);
    font-weight: 600;
}
.tech-topbar a {
    color: var(--bs-body-color);
    text-decoration: none;
}
.tech-topbar a:hover {
    color: var(--bs-primary);
}

.tech-row {
    border: 1px solid var(--bs-border-color, rgba(0, 0, 0, .1));
    border-radius: .65rem;
    background: var(--bs-body-bg);
    overflow: hidden;
    transition: box-shadow .18s ease, transform .18s ease;
}
.tech-row + .tech-row {
    margin-top: .8rem;
}
.tech-row:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
    transform: translateY(-2px);
}
.tech-row-link {
    display: flex;
    align-items: stretch;
    gap: .9rem;
    padding: .75rem;
    color: inherit;
    text-decoration: none;
    height: 100%;
}
.tech-row-cover {
    flex: 0 0 200px;
    width: 200px;
    aspect-ratio: 16 / 10;
    border-radius: .45rem;
    overflow: hidden;
    background: var(--bs-tertiary-bg, rgba(0, 0, 0, .04));
}
.tech-row-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.tech-row-body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.tech-row-title {
    font-size: 1.02rem;
    font-weight: 600;
    margin: 0 0 .35rem;
    line-height: 1.45;
    color: var(--bs-body-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tech-row-sum {
    font-size: .84rem;
    color: var(--bs-secondary-color, #6c757d);
    margin: 0 0 .5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tech-row-meta {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: .8rem;
    font-size: .78rem;
    color: var(--bs-secondary-color, #6c757d);
}
.tech-row-top {
    padding: .05rem .4rem;
    border-radius: .3rem;
    font-size: .72rem;
    line-height: 1.5;
    background: var(--bs-danger, #dc3545);
    color: #fff;
    white-space: nowrap;
}
.tech-row-stat,
.tech-row-date {
    white-space: nowrap;
}

.tech-hot-panel {
    border: 1px solid var(--bs-border-color, rgba(0, 0, 0, .1));
    border-radius: .65rem;
    overflow: hidden;
    background: var(--bs-body-bg);
}
.tech-hot-head {
    padding: .6rem .85rem;
    font-weight: 600;
    font-size: .9rem;
    background: var(--bs-tertiary-bg, rgba(0, 0, 0, .03));
    border-bottom: 1px solid var(--bs-border-color, rgba(0, 0, 0, .1));
    color: var(--bs-body-color);
}
.tech-hot-list {
    list-style: none;
    margin: 0;
    padding: .3rem .45rem .5rem;
}
.tech-hot-list li {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .45rem .35rem;
    border-bottom: 1px dashed var(--bs-border-color, rgba(0, 0, 0, .08));
}
.tech-hot-list li:last-child {
    border-bottom: none;
}
.tech-hot-rank {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: .25rem;
    font-size: .72rem;
    font-weight: 600;
    background: var(--bs-tertiary-bg, rgba(0, 0, 0, .06));
    color: var(--bs-secondary-color, #6c757d);
}
.tech-hot-rank.is-top {
    background: var(--bs-danger, #dc3545);
    color: #fff;
}
.tech-hot-main {
    display: flex;
    align-items: baseline;
    gap: .5rem;
    min-width: 0;
    flex: 1 1 auto;
}
.tech-hot-main a {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: .84rem;
    line-height: 1.45;
    color: var(--bs-body-color);
    text-decoration: none;
}
.tech-hot-main a:hover {
    color: var(--bs-primary);
}
.tech-hot-meta {
    flex: 0 0 auto;
    margin-top: 0;
    margin-left: auto;
    font-size: .72rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    color: var(--bs-secondary-color, #6c757d);
}
.tech-hot-list li.is-current .tech-hot-main a {
    color: var(--bs-primary);
    font-weight: 600;
}
.tech-hot-empty {
    padding: 1rem .85rem;
    font-size: .85rem;
    color: var(--bs-secondary-color, #6c757d);
    text-align: center;
}

.tech-article {
    border: 1px solid var(--bs-border-color, rgba(0, 0, 0, .1));
    border-radius: .7rem;
    padding: 1.15rem 1.25rem 1.25rem;
    background: var(--bs-body-bg);
}
.tech-article-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 .5rem;
    color: var(--bs-body-color);
    line-height: 1.35;
}
.tech-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem 1rem;
    font-size: .82rem;
    color: var(--bs-secondary-color, #6c757d);
    margin-bottom: 1rem;
}
.tech-badge-top {
    padding: .05rem .4rem;
    border-radius: .3rem;
    font-size: .72rem;
    background: var(--bs-danger, #dc3545);
    color: #fff;
}
.tech-article-cover {
    margin: 0 0 1rem;
    border-radius: .5rem;
    overflow: hidden;
}
.tech-article-cover img {
    width: 100%;
    height: auto;
    display: block;
}
.tech-article-content {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--bs-body-color);
    word-wrap: break-word;
}
.tech-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: .4rem;
}
.tech-article-content h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.35rem;
    margin-bottom: .55rem;
    line-height: 1.5;
    padding-left: .6rem;
    border-left: 3px solid var(--bs-primary);
}
.tech-article-content h3 {
    font-size: 1.08rem;
    font-weight: 600;
    margin-top: 1.15rem;
    margin-bottom: .5rem;
    line-height: 1.5;
}
.tech-article-content h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: .45rem;
}
.tech-article-content pre {
    background: var(--bs-tertiary-bg, rgba(0, 0, 0, .04));
    padding: .85rem 1rem;
    border-radius: .45rem;
    overflow-x: auto;
    font-size: .875rem;
}
.tech-article-content code {
    background: var(--bs-tertiary-bg, rgba(0, 0, 0, .04));
    padding: .05rem .3rem;
    border-radius: .25rem;
}
.tech-article-content pre code {
    background: none;
    padding: 0;
}
.tech-article-content blockquote {
    margin: 1rem 0;
    padding: .5rem 1rem;
    border-left: 3px solid var(--bs-primary);
    background: var(--bs-tertiary-bg, rgba(0, 0, 0, .03));
    color: var(--bs-secondary-color, #6c757d);
}
.tech-article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: .9rem;
}
.tech-article-content th,
.tech-article-content td {
    border: 1px solid var(--bs-border-color, rgba(0, 0, 0, .12));
    padding: .45rem .6rem;
}

.tech-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .6rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--bs-border-color, rgba(0, 0, 0, .08));
}
.tech-act-btn {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .4rem .85rem;
    border-radius: 2rem;
    font-size: .875rem;
    border: 1px solid var(--bs-border-color, rgba(0, 0, 0, .15));
    background: transparent;
    color: var(--bs-body-color);
    cursor: pointer;
}
.tech-act-btn:hover {
    border-color: var(--bs-primary);
    color: var(--bs-primary);
}
.tech-act-btn.active {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    color: var(--bs-white, #fff);
}
.tech-act-btn.active:hover {
    color: var(--bs-white, #fff);
}
.tech-act-count {
    font-variant-numeric: tabular-nums;
    opacity: .85;
}
.tech-share {
    display: flex;
    align-items: center;
    gap: .35rem;
    margin-left: auto;
}
.tech-share-label {
    font-size: .85rem;
    color: var(--bs-secondary-color, #6c757d);
}
.tech-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--bs-border-color, rgba(0, 0, 0, .15));
    background: transparent;
    color: var(--bs-secondary-color, #6c757d);
    text-decoration: none;
    cursor: pointer;
}
.tech-share-btn:hover {
    border-color: var(--bs-primary);
    color: var(--bs-primary);
}

.tech-related {
    margin-top: 1.25rem;
    border: 1px solid var(--bs-border-color, rgba(0, 0, 0, .1));
    border-radius: .7rem;
    padding: 1rem 1.15rem;
    background: var(--bs-body-bg);
}
.tech-related-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 .6rem;
    color: var(--bs-body-color);
}
.tech-related-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.tech-related-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .35rem 0;
    border-bottom: 1px dashed var(--bs-border-color, rgba(0, 0, 0, .08));
    font-size: .9rem;
}
.tech-related-list li:last-child {
    border-bottom: none;
}
.tech-related-list a {
    color: var(--bs-body-color);
    text-decoration: none;
}
.tech-related-list a:hover {
    color: var(--bs-primary);
}
.tech-related-meta {
    color: var(--bs-secondary-color, #6c757d);
    font-size: .8rem;
    white-space: nowrap;
}

@media (max-width: 991.98px) {
    .tech-side {
        position: static;
    }
}
@media (max-width: 767.98px) {
    .tech-page-title {
        font-size: 1.25rem;
    }
    .tech-row-cover {
        flex: 0 0 112px;
        width: 112px;
        aspect-ratio: 16 / 11;
    }
    .tech-row-link {
        gap: .65rem;
        padding: .6rem;
    }
    .tech-row-title {
        font-size: .95rem;
    }
    .tech-row-meta {
        gap: .55rem;
        font-size: .74rem;
        flex-wrap: nowrap;
    }
    .tech-row-stat.is-opt {
        display: none;
    }
    .tech-article {
        padding: .9rem .85rem 1rem;
    }
    .tech-article-title {
        font-size: 1.3rem;
    }
    .tech-article-content {
        font-size: .95rem;
        line-height: 1.8;
    }
    .tech-article-content h2 {
        font-size: 1.14rem;
    }
    .tech-article-content h3 {
        font-size: 1.02rem;
    }
}
