/* Info page desktop adaptations; keep mobile styles unchanged */
.pt-pc-header {
    display: none;
}

.pt-info-menubar {
    display: none;
}

.pt-reading-last {
    display: block;
    width: 100%;
    margin-top: -7px;
    padding: 0 15px 15px calc(24vw + .3rem);
    overflow: hidden;
    color: #929297;
    font-size: 12px;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pt-reading-last a {
    display: none;
}

.pt-reading-last.has-record a {
    display: inline;
}

.pt-reading-last.has-record .pt-reading-last-empty {
    display: none;
}

.pt-reading-last:not(.has-record) .pt-reading-last-empty:empty::after {
    content: "\00a0";
}

.pt-reading-last a,
.pt-reading-last a:visited {
    color: #555;
}

.pt-reading-last a:hover {
    color: #f55;
}

.pt-intro-section {
    padding: 15px;
}

.pt-intro-title {
    margin-bottom: 10px;
    padding-left: 5px;
    border-left: 2px solid #f55;
}

.pt-intro-content {
    position: relative;
}

.pt-book-intro {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
}

.pt-intro-fade {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2.5em;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 88%);
}

.pt-intro-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 96px;
    margin: 4px 0 0 auto;
    padding: 4px 10px;
    border: 0;
    background: transparent;
    color: #f55;
    font-size: 14px;
    line-height: 1.4;
    cursor: pointer;
}

.pt-intro-section.is-expanded .pt-book-intro {
    display: block;
    overflow: visible;
}

.pt-intro-section.is-expanded .pt-intro-fade,
.pt-intro-section.no-toggle .pt-intro-fade,
.pt-intro-section.no-toggle .pt-intro-toggle {
    display: none;
}

@media (min-width: 768px) {
    .pt-pc-header {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
        background: #fff;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    }

    .pt-pc-header-inner {
        height: 64px;
        margin: 0 auto;
        padding: 0 16px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .pt-pc-logo {
        font-size: 24px;
        font-weight: 700;
        line-height: 1;
    }

    .pt-pc-menu {
        display: flex;
        align-items: center;
        gap: 18px;
    }

    .pt-pc-menu-item {
        font-size: 15px;
        color: #333;
        padding: 8px 12px;
        border-radius: 6px;
        transition: background-color .2s ease, color .2s ease;
    }

    .pt-pc-menu-item:visited {
        color: #333;
    }

    .pt-pc-menu-item:hover {
        color: #f55;
        background: #fff1f1;
    }

    .pt-info-mobile-header {
        display: none;
    }

    main {
        max-width: 960px;
        margin: 0 auto;
        padding: 76px 12px 16px;
    }

    .pt-info-menubar {
        display: flex;
        align-items: center;
        gap: 8px;
        height: 40px;
        padding: 0 12px;
        margin-bottom: 10px;
        border-radius: 8px;
        background: #fff;
        color: #777;
        font-size: 14px;
    }

    .pt-info-menu-item {
        color: #666;
    }

    .pt-info-menu-item:hover {
        color: #f55;
    }

    .pt-info-menu-sep {
        color: #aaa;
    }

    .pt-info-menu-current {
        color: #333;
        max-width: 70%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .pt-book-card,
    .pt-intro-section,
    .pt-chapter,
    .pt-comment-section,
    .pt-new,
    .pt-recomment {
        border-radius: 10px;
        margin-bottom: 12px;
    }

    .pt-book-card,
    .pt-intro-section {
        overflow: hidden;
    }

    .pt-reading-last {
        padding-left: 190px;
    }

    .pt-bookdetail img {
        width: 160px;
        height: 214px;
    }

    .pt-bookdetail .pt-btn {
        width: 120px;
        height: 38px;
        line-height: 38px;
        margin-right: 0;
        border-radius: 6px;
    }

    .pt-recomment-item > .flex-item {
        max-width: none !important;
        min-width: 0;
    }

    .pt-recomment-cont {
        display: flex !important;
        flex-wrap: wrap;
        align-items: stretch;
        justify-content: space-between;
        gap: 0;
    }

    .pt-recomment-item {
        flex: 0 0 calc(50% - 9px);
        max-width: calc(50% - 9px);
        width: calc(50% - 9px);
        min-width: 0;
        margin: 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .pt-recomment-item img {
        width: 100px;
        height: 136px;
    }
}

@media (min-width: 960px) {
    .pt-pc-header-inner,
    main {
        max-width: 960px;
    }

    main {
        padding-left: 0;
        padding-right: 0;
    }

    .pt-recomment-item {
        flex-basis: calc(33.3333% - 12px);
        max-width: calc(33.3333% - 12px);
        width: calc(33.3333% - 12px);
    }
}
