.article-layout {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    min-width: 0;
    max-width: 1280px;
    margin: 20px auto;
    padding: 0 16px;
    box-sizing: border-box;
}

.article {
    flex: 1;
    background-color: #f6f8fa;
    padding: 24px;
    text-align: left;
    min-width: 0;

    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-sizing: border-box;
}


.article .a-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.article .a-header h1 {
    font-size: 26px;
    margin-bottom: 12px;
}

.article .meta-1 {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;

    font-size: 12px;
    color: #6e7781;
}

.article .meta-1 a,
.article .meta-1 span {
    white-space: nowrap;
}

.article .a-body {
    font-size: 16px;
    line-height: 1.8;
    color: #4b5563;
}

.article .a-body img {
    display: block;
    width: 40%;
    max-width: 400px;
    margin: 20px auto;
    border-radius: 8px;
}

.article-aside {
    width: 300px;
    flex-shrink: 0;

    display: flex;
    flex-direction: column;
    gap: 20px;
}

.article-aside>div {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    box-sizing: border-box;
}

.author-card {
    text-align: center;
}

.author-avatar img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
}

.author-name {
    font-size: 16px;
    margin-bottom: 6px;
}

.author-desc {
    font-size: 13px;
    color: #6e7781;
    margin-bottom: 12px;
}

.author-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

.stat-item {
    font-size: 12px;
}

.stat-num {
    font-weight: bold;
    display: block;
}

.card-title {
    font-size: 15px;
    margin-bottom: 12px;
}

.category-list,
.hot-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item,
.hot-item {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 8px;
}

.section-title {
    margin: 18px 0 10px;
    padding-left: 10px;
    border-left: 4px solid #e74c3c;
    color: #e74c3c;
    font-weight: 600;
}

.date {
    color: #999;
    font-size: 16px;
}

.content-list li {
    margin-bottom: 8px;
    line-height: 1.8;
    margin-left: 20px;
}

.learn-note {
    margin-top: 12px;
    padding: 10px 14px;
    background: #f5f7fa;
    border-left: 4px solid #5b9cff;
    color: #333;
    font-size: 14px;
}

.tip {
    color: #999;
    font-size: 12px;
    margin-left: 4px;
}

.content-list li ul {
    background: #f9f9f9;
    padding: 10px 14px;
    border-radius: 6px;
    margin-top: 6px;
}

code {
    font-family: Consolas, Monaco, "Courier New", monospace;
    background-color: #f5f7fa;
    color: #c7254e;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.95em;
    white-space: nowrap;
}

/* SQL / 命令型 code（强调） */
code.sql {
    background-color: #fff7e6;
    color: #b45f06;
    font-weight: 600;
}

/* 学习笔记中“关键词解释型 code” */
code.keyword {
    background-color: #eef5ff;
    color: #1e6bd6;
}

/* 防止 code 把行距撑太大 */
.content-list code {
    line-height: 1.4;
}

@media (max-width: 900px) {
    .article-layout {
        flex-direction: column;
    }

    .article-aside {
        width: 100%;
    }
}