﻿.article-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    margin-top:15px;
}

.article-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    text-decoration: none;
    color: #333;
    padding: 10px;
    transition: background 0.3s ease;
    border-bottom: 1px solid #eee;
}

    .article-item:hover {
        background-color: #f9f9f9;
    }

.article-image {
    flex-shrink: 0;
}

    .article-image img {
        width: 120px;
        height: 120px;
        object-fit: cover;
        border-radius: 8px;
    }

.article-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.article-title {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.4;
    font-weight: bold;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-desc {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.detail img {
    max-width: 90%;
    height: auto;
    padding: 15px 0;
    transition: transform 0.3s ease;
}

.detail a:link {
    color: #007bff !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

.detail a:hover {
    text-decoration: underline !important;
}

.detail a:visited {
    color: #6610f2 !important;
}

.detail ol, .detail ul, .detail dl {
    padding: 0 40px;
}
.detail h1,
.detail h2,
.detail h3,
.detail h4,
.detail h5,
.detail p {
    margin: 0.4em 0
}


.detail h1 {
    margin-top: 0.9em;
    font-weight: 700;
    font-size: 1.6em;
}

.detail h2 {
    margin-top: 0.8em;
    font-weight: 600;
    font-size: 1.2em;
}

.detail h3 {
    margin-top: 0.7em;
    font-weight: 500;
    font-size: 1.1em;
}


.detail img:hover {
    transform: scale(1.05);
}

.detail table {
    width: 98%;
    max-width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    background-color: #fff;
    border: 1px solid #e0d4b0;
    table-layout: fixed;
    word-wrap: break-word;
}

.detail .table-title {
    display: block;
    text-align: center;
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 10px;
    color: #000;
}

.detail table thead th {
    background-color: #20c700;
    color: #ffffff;
    font-weight: bold;
    padding: 12px 15px;
    border: 1px solid #e0d4b0;
    text-align: center;
}

.detail table td {
    padding: 10px 15px;
    border: 1px solid #e0d4b0;
    vertical-align: middle;
}

    .detail table td:last-child {
        text-align: center;
    }

.detail table .stars {
    color: #f1c40f;
    font-size: 18px;
    text-shadow: 0.5px 0.5px 0px #000;
}

.detail table tbody tr:hover {
    background-color: #fff9c4;
}

.detail code {
    background-color: #f0f0f0;
    color: #c7254e;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
    font-size: 90%;
    white-space: pre-wrap;
    word-wrap: break-word;
    word-break: break-all;
    max-width: 100%;
    display: inline-block;
    vertical-align: middle;
}

.l2 {
    column-count: 2;
    column-gap: 0.6rem;
}
