/* 文章详情页 — 阅读优先布局 */

.teyo-article-back {
    margin: 0 0 16px;
}

.teyo-article-back-link {
    display: inline-block;
    font-size: 14px;
    color: var(--teyo-primary, #0598db);
    text-decoration: none;
}

.teyo-article-back-link:hover {
    text-decoration: underline;
}

.teyo-article-wrap {
    margin-top: 80px;
    padding: 24px 0 48px;
    background: #fff;
    clear: both;
    position: relative;
    z-index: 2;
}

.teyo-article-container {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 20px;
}

.teyo-article-breadcrumb {
    margin-bottom: 24px;
}

.teyo-article-breadcrumb ol.breadcrumb {
    margin: 0;
    padding: 0;
    background: transparent;
    list-style: none;
    font-size: 0;
}

.teyo-article-breadcrumb .breadcrumb > li {
    display: inline-block;
    vertical-align: middle;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

.teyo-article-breadcrumb .breadcrumb > li + li:before {
    content: "";
    padding: 0;
}

.teyo-article-breadcrumb .breadcrumb a {
    color: #333;
    text-decoration: none;
}

.teyo-article-breadcrumb .breadcrumb a:hover {
    color: var(--teyo-primary, #0598db);
    text-decoration: underline;
}

.teyo-article-breadcrumb .breadcrumb .separator {
    margin: 0 10px;
    color: #d8d8d8;
}

.teyo-article-breadcrumb .breadcrumb .lastMenu {
    color: #999;
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

.teyo-article-main {
    margin: 0;
}

.teyo-article-header {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid #eef1f4;
}

.teyo-article-title {
    margin: 0 0 14px;
    font-size: 28px;
    line-height: 1.45;
    font-weight: 600;
    color: var(--teyo-text-dark, #333);
}

.teyo-article-meta {
    margin: 0;
    font-size: 14px;
    color: #999;
}

.teyo-article-meta time {
    font-style: normal;
}

.teyo-article-cover {
    margin: 0 0 28px;
    overflow: hidden;
    border-radius: 4px;
    background: #f5f5f5;
}

.teyo-article-cover img {
    display: block;
    width: 100%;
    max-height: 420px;
    object-fit: cover;
}

.teyo-article-lead {
    margin: 0 0 24px;
    padding: 0 0 0 14px;
    border-left: 3px solid var(--teyo-primary, #0598db);
    font-size: 17px;
    line-height: 1.85;
    color: #555;
}

.teyo-article-content {
    font-size: 16px;
    line-height: 1.9;
    color: var(--teyo-text-dark, #333);
    word-break: break-word;
}

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

.teyo-article-content p:last-child {
    margin-bottom: 0;
}

.teyo-article-content img {
    max-width: 100%;
    height: auto;
    margin: 1em auto;
    display: block;
    border-radius: 4px;
}

/* 推荐阅读 */
.teyo-article-more {
    padding: 40px 0 56px;
    background: var(--teyo-primary-light, #e6f5fc);
    clear: both;
    position: relative;
    z-index: 2;
}

.teyo-article-more-head {
    margin-bottom: 24px;
    text-align: center;
}

.teyo-article-more-head h2 {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 600;
    color: var(--teyo-text-dark, #333);
}

.teyo-article-more-head p {
    margin: 0;
    font-size: 14px;
    color: #888;
}

.teyo-article-more-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.teyo-article-more-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s, transform 0.2s;
}

.teyo-article-more-card:hover {
    text-decoration: none;
    color: inherit;
    box-shadow: 0 6px 20px rgba(5, 152, 219, 0.12);
    transform: translateY(-2px);
}

.teyo-article-more-thumb {
    display: block;
    position: relative;
    padding-top: 56%;
    overflow: hidden;
    background: #eee;
}

.teyo-article-more-thumb img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.teyo-article-more-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 14px 14px 16px;
}

.teyo-article-more-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin-bottom: 8px;
    font-size: 15px;
    line-height: 1.45;
    font-weight: 600;
    color: var(--teyo-text-dark, #333);
}

.teyo-article-more-desc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    flex: 1;
    margin-bottom: 10px;
    font-size: 13px;
    line-height: 1.55;
    color: #777;
}

.teyo-article-more-date {
    font-size: 12px;
    color: #aaa;
}

@media (max-width: 991px) {
    .teyo-article-more-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .teyo-article-wrap {
        margin-top: 56px;
        padding-top: 16px;
    }

    .teyo-article-container {
        padding: 0 16px;
    }

    .teyo-article-breadcrumb .breadcrumb .lastMenu {
        max-width: 160px;
    }

    .teyo-article-title {
        font-size: 22px;
    }

    .teyo-article-lead {
        font-size: 16px;
    }

    .teyo-article-more-list {
        grid-template-columns: 1fr;
    }

    .teyo-article-more-card {
        flex-direction: row;
    }

    .teyo-article-more-thumb {
        width: 120px;
        min-width: 120px;
        padding-top: 0;
        height: 90px;
    }

    .teyo-article-more-thumb img {
        position: static;
        width: 120px;
        height: 90px;
    }
}
