/* ===================== Article Container ===================== */
section.article-container {
    margin-top: 0;
}

section.article-container .article-content {
    background-color: #fff;
    padding: 20px 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.24);
    line-height: 1.8;
    margin-bottom: 30px;
}

.article_meta {
    margin: 15px 0;
    color: #666;
    font-size: 14px;
    display: flow-root;
}

.article_meta .meta-item {
    float: left;
    margin-right: 20px;
}

.article_meta .meta-item:last-of-type {
    margin-right: 0;
}

.article_meta .meta-item a:hover,
.article_meta .meta-item a:focus {
    color: var(--primary-dark);
}

.meta-icon {
    color: var(--primary-dark);
}

/* ===================== Article Content ===================== */
.article-content #content {
    max-width: 100%;
}

.article-content #content img {
    max-width: 100%;
    height: auto;
}

#content h2,
#content h3,
#content h4,
#content h5,
#content h6 {
    font-weight: bold;
    margin: 20px 0;
}

#content h2 {
    color: #333;
}

#content h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #e85a2a, #ffac87);
}

#content h3 {
    color: #555;
    position: relative;
    padding-left: 10px;
}

#content h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 70%;
    background: linear-gradient(180deg, #e85a2a, #ffac87);
    border-radius: 1px;
}

#content h4 {
    color: #777;
}

#content h4::after {
    content: '';
    display: block;
    width: 50px;
    height: 1px;
    background: linear-gradient(90deg, #e85a2a, transparent);
    opacity: 0.7;
}

/* ===================== Table of Contents ===================== */
.p-toc-double {
    padding: 20px 40px;
    margin-bottom: 30px;
    border-radius: 8px;
    background: #eeccd126;
    border: 1px solid #f0a0ac5e;
}

.p-toc__ttl {
    display: block;
    text-align: center;
    font-size: 1.3rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e85a2a;
}

.p-toc__list {
    list-style-type: decimal;
    padding-left: 20px;
    margin: 0 auto;
}

.p-toc__childList {
    list-style-type: lower-alpha;
    padding-left: 30px;
}

.p-toc__link {
    display: block;
    padding: 5px 0;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
}

.p-toc__link:hover {
    color: var(--primary-dark);
    transform: translateX(5px);
}

/* ===================== Tables ===================== */
#content table {
    width: 100%;
    max-width: 100%;
    margin: 30px auto;
    border-collapse: collapse;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    overflow: hidden;
}

thead tr.firstRow {
    background: linear-gradient(135deg, #f3a093, #949191);
    color: white;
}

th {
    padding: 8px;
    text-align: center;
    font-weight: bold;
    border: none;
    word-break: break-word;
}

td {
    padding: 8px;
    text-align: center;
    border-bottom: 1px solid #ecf0f1;
    transition: all 0.3s;
    word-break: break-word;
}

tbody tr:hover td {
    background-color: #f1f8ff;
}

tbody tr:nth-child(odd) {
    background-color: #f8f9fa;
}

tbody tr:nth-child(even) {
    background-color: #ffffff;
}

/* ===================== Article Tags ===================== */
.article_tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 15px 0;
}

.article_tags .tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 15px;
    background: linear-gradient(135deg, #ffffff, #f5f7fa);
    border: 1px solid var(--primary-dark);
    border-radius: 30px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.article_tags .tag:hover {
    background: linear-gradient(135deg, #fed2cb, #fcc2b9);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

/* ===================== Article Navigation ===================== */
.article_nav {
    width: 100%;
    margin: 40px auto;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    transition: all 0.3s ease;
}

.nav-container:hover {
    border: 1px solid #eeccc7;
    transform: translateY(-3px);
}

.nav-item {
    flex: 1;
    padding: 25px;
    display: flex;
    align-items: center;
    transition: background 0.3s;
}

.nav-item.prev {
    border-right: 1px solid #eee;
}

.nav-icon {
    font-size: 24px;
    color: var(--primary-dark);
    min-width: 40px;
}

.next .nav-icon {
    text-align: right;
}

.nav-content {
    flex: 1;
}

.nav-title {
    color: #333;
    font-weight: 600;
    font-size: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nav-item a.nav-title:hover {
    color: var(--primary-dark);
}

/* ===================== Related Posts ===================== */
/*.relateds {*/
/*    margin-bottom: 30px;*/
/*}*/

.relateds .tit {
    font-weight: bold;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--primary-dark);
    font-size: 1.2rem;
}

.relateds .items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.relateds .items .item {
    border-radius: 14px;
    border: 1px solid #eee0da;
    background: #ffffff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.15s ease-out, transform 0.15s ease-out;
    margin-bottom: 20px;
}

.relateds .items .item:hover {
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
    transform: translateY(-3px);
}

.relateds .items .item .img-wrap {
    height: 160px;
    overflow: hidden;
}

.relateds .items .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.relateds .items .item .conts {
    padding: 20px;
    flex: 1;
}

.relateds .items .item .conts a {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    line-height:20px;
    height: 40px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.relateds .items .item .conts a:hover,
.relateds .items .item .conts a:focus {
    color: var(--primary-dark);
}

.relateds .items .item .conts .desc {
    font-size: 13px;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    height: 50px;
    margin-bottom: 10px;
}

.relateds .items .item .conts .time {
    font-size: 12px;
    color: #999;
    text-align: right;
}

/* ===================== FAQ Section ===================== */
.faq-section {
    margin-top: 40px;
    margin-bottom: 30px;
}

.faq-section h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

.faq-item {
    margin-bottom: 16px;
    padding: 16px;
    border-radius: 12px;
    background: #fff7f3;
    border: 1px solid #f8aa8f;
}

.faq-question {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
}

.faq-answer {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-muted);
}

/* ===================== Responsive ===================== */
@media (max-width: 768px) {
    section.article-container .article-content {
        padding: 15px;
    }

    .relateds .items {
        grid-template-columns: 1fr;
    }

    .nav-container {
        flex-direction: column;
    }

    .nav-item.prev {
        border-right: none;
        border-bottom: 1px solid #eee;
    }

    #content table {
        margin: 15px auto;
    }
}
.article-content #content ul{
    list-style: inside;
}
.article-content #content ol{
    list-style:decimal;
    list-style-type: decimal;
    padding-left: 20px;
}