.article-detail-page {
    --detail-blue: #3b6ff5;
    --detail-ink: #2d3039;
    --detail-muted: #6c7484;
    --detail-bg: #f0f2f5;
    --detail-line: #eef0f4;
    --detail-red: #d73c3c;
    background: var(--detail-bg);
    color: var(--detail-ink);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
    font-size: 15px;
}

.article-site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    box-shadow: 0 1px 0 rgb(0 0 0 / 5%), 0 2px 8px rgb(0 0 0 / 4%);
}

.article-site-nav .tt-topbar,
.article-site-nav .tt-tabs {
    position: static;
    border: 0;
    background: transparent;
}

.article-site-nav .tt-topbar-inner,
.article-site-nav .tt-tabs-inner {
    max-width: none;
    padding-inline: 0;
}

.article-site-nav .tt-topbar-inner {
    height: 60px;
}

.article-site-nav .tt-logo {
    color: var(--detail-ink);
    font-size: 18px;
}

.article-site-nav .tt-tab {
    padding-inline: 12px;
}

.article-site-nav .tt-tab.active,
.article-site-nav .tt-tab:hover {
    color: var(--detail-blue);
    border-color: var(--detail-blue);
}

.article-site-nav .tt-btn {
    background: #edf2ff;
    color: #315cc8 !important;
    border-radius: 5px;
}

.article-site-nav .tt-btn:hover {
    background: #e0e9ff;
    color: #24479f !important;
}

.article-detail {
    width: 100%;
    margin: 0 auto;
    padding: 24px 12px 40px;
}

.article-detail [hidden] {
    display: none !important;
}

.article-detail :focus-visible {
    outline: 2px solid var(--detail-blue);
    outline-offset: 3px;
}

.article-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.article-detail-main,
.article-detail-sidebar {
    min-width: 0;
}

.article-detail-sidebar {
    display: grid;
    gap: 24px;
}

.article-surface,
.article-widget {
    border: 1px solid rgb(0 0 0 / 4%);
    background: #fff;
    box-shadow: 0 1px 3px rgb(0 0 0 / 3%);
}

.article-surface {
    border-radius: 12px;
}

.article-panel {
    padding: 24px;
}

.article-overview h1 {
    margin: 0;
    color: var(--detail-ink);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.article-overview-details {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    margin: 24px 0;
}

.article-cover {
    display: grid;
    position: relative;
    min-width: 0;
    overflow: hidden;
    aspect-ratio: 3 / 2;
    place-items: center;
    border-radius: 8px;
    background: linear-gradient(145deg, #304060, #536f9e);
    color: #e9effb;
    font-size: 54px;
}

.article-cover:hover {
    color: #fff;
}

.article-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-cover-controls {
    position: absolute;
    inset: 10px auto auto 10px;
    z-index: 1;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fc625d;
    box-shadow: 20px 0 #fdbc40, 40px 0 #35cd4b;
}

.article-overview-info {
    min-width: 0;
}

.article-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 8px;
    margin: 0;
    padding: 8px;
    border-radius: 8px;
    background: #f3f6fe;
    color: var(--detail-muted);
    font-size: 14px;
    line-height: 1.8;
    list-style: none;
    overflow-wrap: anywhere;
}

.article-meta a {
    color: #315cc8;
    text-decoration: none;
}

.article-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-right: 4px;
    padding: 2px 6px;
    border-radius: 4px;
    background: #fff;
    color: #315cc8;
    font-size: 12px;
}

.article-label-vip {
    background: #fff4da;
    color: #795515;
}

.article-download {
    display: grid;
    gap: 8px;
    margin-top: 8px;
    scroll-margin-top: 115px;
}

.article-file-name {
    margin: 0;
    color: var(--detail-muted);
    font-size: 13px;
    overflow-wrap: anywhere;
}

.article-price-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3px 14px;
    margin: 0;
    padding: 7px 10px;
    border-radius: 8px;
    background: #fef7e9;
    list-style: none;
}

.article-price-list li {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    color: #565e70;
    font-size: 13px;
}

.article-price-list li::before {
    width: 8px;
    height: 8px;
    margin-right: 2px;
    border-radius: 50%;
    background: currentColor;
    content: "";
}

.article-price-list .article-price-member {
    color: #08765c;
}

.article-price-list .article-price-premium {
    color: #8a5709;
}

.article-price-list a,
.article-side-plans a {
    color: inherit;
    text-decoration: none;
}

.article-price-list a:hover,
.article-side-plans a:hover {
    text-decoration: underline;
}

.article-purchase-actions,
.article-download-actions,
.article-share,
.article-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.article-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 39px;
    max-width: 100%;
    padding: 7px 22px;
    border: 1px solid transparent;
    border-radius: 8px;
    font: inherit;
    font-size: 14px;
    line-height: 1.45;
    text-align: center;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.article-action-primary {
    background: linear-gradient(135deg, #ed4444, var(--detail-red));
    box-shadow: 0 4px 14px rgb(239 68 68 / 28%);
    color: #fff;
}

.article-action-primary:hover {
    background: #c63131;
    color: #fff;
}

.article-action-dark {
    background: #252832;
    color: #fff;
}

.article-action-dark:hover {
    background: #151923;
    color: #fff;
}

.article-action-secondary {
    background: #edf2ff;
    color: #315cc8;
}

.article-action-secondary:hover {
    background: #dfe9ff;
    color: #264eb0;
}

.article-action:disabled {
    opacity: .65;
    cursor: wait;
}

.article-action-pill {
    width: 100%;
    border-radius: 999px;
}

.article-download-status {
    color: var(--detail-muted);
    font-size: 13px;
}

.article-section-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 24px;
}

.article-section-bar .article-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 19px;
    border: 2px solid #dce5fd;
    border-radius: 24px;
    background: #fff;
    color: #315cc8;
    font: inherit;
    font-weight: 600;
    line-height: 1.2;
}

.article-section-bar .article-tab:hover {
    background: #f3f6fe;
    border-color: var(--detail-blue);
}

.article-section-bar .article-tab.active {
    border-color: transparent;
    background: linear-gradient(135deg, var(--detail-blue), #325ed0);
    box-shadow: 0 4px 15px rgb(59 111 245 / 28%);
    color: #fff;
}

.article-reading-inner {
    min-width: 0;
    scroll-margin-top: 115px;
}

.article-detail .article-content {
    min-width: 0;
    color: var(--detail-ink);
    font-size: 16px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.article-detail .article-content p {
    margin-bottom: 20px;
}

.article-detail .article-content > :first-child {
    margin-top: 0;
}

.article-detail .article-content > :last-child {
    margin-bottom: 0;
}

.article-detail .article-content :is(h2, h3, h4, h5, h6) {
    margin: 1.5em 0 .7em;
    color: var(--detail-ink);
    line-height: 1.4;
}

.article-detail .article-content h2 {
    padding-bottom: 8px;
    border-bottom: 2px solid #dce5fd;
    font-size: 20px;
}

.article-detail .article-content h3 {
    padding-left: 12px;
    border-left: 4px solid var(--detail-blue);
    font-size: 17px;
}

.article-detail .article-content a {
    color: #315cc8;
}

.article-detail .article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.article-detail .article-content .article-lead-image img {
    width: 100%;
}

.article-detail .article-content :is(figure, pre) {
    max-width: 100%;
}

.article-detail .article-content table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
}

.article-detail .article-content blockquote,
.article-summary {
    padding: 12px 16px;
    border-left: 3px solid var(--detail-blue);
    border-radius: 6px;
    background: #f8f9fb;
}

.article-access {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    margin-top: 20px;
    padding: 16px;
    border: 1px solid #dce5fd;
    border-radius: 8px;
    background: #f6f8ff;
}

.article-access-icon {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 8px;
    background: #e7eeff;
    color: #315cc8;
    font-size: 19px;
}

.article-access h3 {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 600;
}

.article-access-price {
    margin: 0 0 10px;
    color: var(--detail-muted);
}

.article-access-price strong {
    color: var(--detail-red);
}

.article-end {
    display: grid;
    gap: 12px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--detail-line);
}

.article-share-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.article-end-author {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--detail-muted);
    font-size: 14px;
}

.article-end-author .article-author-avatar {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
    border-width: 1px;
    font-size: 13px;
}

.article-share .article-action {
    min-height: 32px;
    padding: 5px 9px;
    font-size: 13px;
}

.article-like-count {
    padding: 5px 9px;
    border-radius: 7px;
    background: #fff0f1;
    color: #b93142;
    font-size: 13px;
}

.article-tags {
    color: var(--detail-muted);
}

.article-tags a {
    padding: 4px 9px;
    border-radius: 5px;
    background: #f0f3f9;
    color: var(--detail-ink);
    font-size: 13px;
    text-decoration: none;
}

.article-faq {
    margin: 0;
    padding: 0 0 0 22px;
}

.article-faq li {
    margin-bottom: 2px;
    padding: 12px 16px;
    background: #eef5ff;
}

.article-faq p {
    margin: 4px 0 0;
    color: var(--detail-muted);
}

.article-widget {
    position: relative;
    overflow: hidden;
    padding: 20px;
    border-radius: 8px;
}

.article-widget h2 {
    position: relative;
    margin: 0 0 16px;
    padding-bottom: 9px;
    font-size: 16px;
    font-weight: 600;
}

.article-widget h2::after {
    position: absolute;
    inset: auto auto 0 0;
    width: 30px;
    height: 3px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--detail-blue), #d9e4ff);
    content: "";
}

.article-author-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.article-author-profile strong {
    min-width: 0;
    overflow-wrap: anywhere;
}

.article-author-avatar {
    display: grid;
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    place-items: center;
    overflow: hidden;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #e9effc;
    box-shadow: 0 2px 8px rgb(28 40 66 / 15%);
    color: #4e73c6;
    font-size: 22px;
}

.article-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-author-stats {
    display: flex;
    margin: 0;
    text-align: center;
}

.article-author-stats div {
    display: flex;
    flex: 1;
    flex-direction: column-reverse;
}

.article-author-stats dt {
    color: var(--detail-muted);
    font-size: 12px;
    font-weight: 400;
}

.article-author-stats dd {
    margin: 0;
    font-size: 19px;
    font-weight: 600;
}

.article-side-price {
    margin: -20px -20px 16px;
    padding: 20px 14px 12px;
    background: #fdf4e4;
    text-align: center;
}

.article-side-price-main {
    padding: 8px;
    border-radius: 6px;
    background: #33333a;
    color: #fff;
}

.article-side-price-main strong {
    font-size: 20px;
}

.article-download-ribbon {
    position: absolute;
    top: 14px;
    right: -28px;
    z-index: 1;
    width: 108px;
    transform: rotate(45deg);
    background: #64616a;
    color: #fff;
    font-size: 12px;
    line-height: 22px;
    text-align: center;
}

.article-side-plans {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px 12px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.article-side-plans li {
    display: grid;
    color: var(--detail-red);
}

.article-side-plans a {
    color: #865814;
    font-size: 12px;
}

.article-side-preview {
    margin-top: 12px;
    background: #f0f2f5;
    color: #4f5767;
}

.article-side-meta {
    margin: 14px 0 0;
    color: var(--detail-muted);
    font-size: 13px;
}

.article-side-meta div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 0;
    border-top: 1px solid var(--detail-line);
}

.article-side-meta dt {
    flex: none;
    font-weight: 400;
}

.article-side-meta dd {
    margin: 0;
    text-align: end;
    overflow-wrap: anywhere;
}

.article-side-meta a {
    color: #315cc8;
    text-decoration: none;
}

.article-ranking {
    scroll-margin-top: 150px;
}

.article-ranking-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.article-ranking-list a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-block: 4px;
    color: var(--detail-ink);
    text-decoration: none;
}

.article-ranking-list a:hover,
.article-ranking-list a[aria-current] {
    color: #315cc8;
}

.article-ranking-name {
    min-width: 0;
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.article-ranking-number {
    display: grid;
    flex: 0 0 28px;
    min-height: 24px;
    place-items: center;
    border-radius: 8px;
    background: #eef0f5;
    color: #5d6676;
    font-size: 12px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.article-ranking-list li:nth-child(1) .article-ranking-number {
    background: linear-gradient(135deg, #c73529, #e74424);
    color: #fff;
}

.article-ranking-list li:nth-child(2) .article-ranking-number {
    background: linear-gradient(135deg, #ff9a21, #ffc35a);
    color: #4b3106;
}

.article-ranking-list li:nth-child(3) .article-ranking-number {
    background: linear-gradient(135deg, #70b84c, #a2cf66);
    color: #244012;
}

.article-related {
    margin: 0;
    padding: 0;
    list-style: none;
}

.article-related li + li {
    margin-top: 11px;
}

.article-related li a {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
}

.article-related a,
.article-related-card {
    color: var(--detail-ink);
    text-decoration: none;
}

.article-related a:hover,
.article-related-card:hover {
    color: #315cc8;
}

.article-related-media {
    position: relative;
    display: grid;
    overflow: hidden;
    aspect-ratio: 3 / 2;
    place-items: center;
    border-radius: 6px;
    background: #edf2fb;
    color: #5574a6;
    font-size: 19px;
}

.article-related-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-related-info strong,
.article-related-info > span {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow-wrap: anywhere;
}

.article-related-info strong {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
}

.article-related-info time,
.article-related-info > span {
    margin-top: 6px;
    color: var(--detail-muted);
    font-size: 12px;
}

.article-related-info time {
    display: block;
}

.article-recommendations {
    margin-top: 24px;
}

.article-recommendations h2 {
    position: relative;
    margin: 0 0 16px;
    padding-left: 14px;
    font-size: 20px;
    font-weight: 700;
}

.article-recommendations h2::before {
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 0;
    width: 4px;
    border-radius: 4px;
    background: linear-gradient(var(--detail-blue), #ec4899);
    content: "";
}

.article-related-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.article-related-card {
    overflow: hidden;
}

.article-related-card .article-related-media {
    border-radius: 0;
}

.article-related-card .article-related-info {
    display: block;
    padding: 12px;
}

.article-pagination {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.article-pagination-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    min-height: 64px;
    padding: 12px;
    color: var(--detail-ink);
    text-decoration: none;
}

.article-pagination-link:hover {
    border-color: #c6d5fc;
    color: #315cc8;
}

.article-pagination-link > .bi {
    display: grid;
    flex: 0 0 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    background: #edf2ff;
    color: #315cc8;
}

.article-pagination-link > span {
    flex: 1;
    min-width: 0;
    text-align: right;
}

.article-pagination-link small,
.article-pagination-link strong {
    display: block;
}

.article-pagination-link small {
    color: var(--detail-muted);
}

.article-pagination-link strong {
    overflow: hidden;
    font-size: 15px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.article-next {
    grid-column: 2;
}

.article-next > span {
    text-align: left;
}

@media (min-width: 576px) {
    .article-detail {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .article-detail {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .article-detail {
        max-width: 960px;
    }

    .article-site-nav {
        padding: 0 max(12px, calc((100vw - 936px) / 2));
    }

    .article-site-nav .tt-tabs {
        flex: 1 1 auto;
        min-width: 0;
        padding-left: 20px;
    }

    .article-site-nav .tt-search {
        flex: 0 1 176px;
        min-width: 70px;
        margin-inline: 16px;
    }

    .article-detail-grid {
        grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
    }

    .article-overview-split {
        grid-template-columns: minmax(0, 1fr) minmax(0, 2.02fr);
    }

    .article-related-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .article-detail {
        max-width: 1320px;
    }

    .article-site-nav {
        padding-inline: max(12px, calc((100vw - 1296px) / 2));
    }
}

@media (max-width: 991px) {
    .article-site-nav .tt-topbar-inner {
        height: auto;
        min-height: 60px;
        padding-inline: 12px;
        flex-wrap: wrap;
    }

    .article-site-nav .tt-tabs {
        order: 4;
        flex: 0 0 100%;
    }

    .article-site-nav .tt-tab {
        padding-block: 8px;
    }
}

@media (max-width: 430px) {
    .article-site-nav .tt-logo {
        max-width: 100%;
        white-space: normal;
    }

    .article-site-nav .tt-user {
        column-gap: 8px;
    }

    .article-site-nav .tt-btn {
        padding-inline: 8px;
    }
}

@media (max-width: 575px) {
    .article-detail {
        padding: 10px 9px 24px;
    }

    .article-panel,
    .article-widget {
        padding: 16px;
    }

    .article-side-price {
        margin: -16px -16px 14px;
    }

    .article-detail-grid,
    .article-detail-sidebar {
        gap: 12px;
    }

    .article-overview h1 {
        font-size: 21px;
    }

    .article-overview-details {
        gap: 12px;
        margin-block: 16px;
    }

    .article-cover {
        max-height: 245px;
    }

    .article-meta {
        font-size: 12px;
    }

    .article-section-bar {
        margin-bottom: 16px;
    }

    .article-section-bar .article-tab {
        padding: 7px 11px;
        font-size: 14px;
    }

    .article-action {
        min-height: 40px;
        padding-inline: 12px;
    }

    .article-pagination {
        grid-template-columns: minmax(0, 1fr);
    }

    .article-next {
        grid-column: auto;
    }
}
