/* 资讯文章后台编辑增强 */
.ripro-news-editor-box {
    padding: 4px 0;
}
.ripro-news-editor-box .description {
    margin: 0 0 14px;
    color: #646970;
}
.ripro-md-import {
    margin-top: 16px;
    padding: 14px;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    background: #f6f7f7;
}
.ripro-md-import-head {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 10px;
}
.ripro-md-import-head span {
    color: #646970;
    font-size: 12px;
}
#ripro-md-source {
    width: 100%;
    margin-top: 10px;
    font-family: Consolas, Monaco, monospace;
}
.ripro-md-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 0;
}
#ripro-md-import-status {
    color: #2271b1;
}
#_prefix_shop_options {
    display: none !important;
}

/* 前台资讯文章布局 */
.ripro-news-article .entry-wrapper {
    max-width: 880px;
    margin: 0 auto 28px;
    padding: 34px 42px;
    background: #fff;
    border: 1px solid #edf0f5;
    border-radius: 18px;
    box-shadow: 0 14px 40px rgba(15, 23, 42, .06);
}
.ripro-news-article .entry-header {
    max-width: 880px;
    margin: 0 auto 18px;
    padding: 0 2px;
    text-align: left;
}
.ripro-news-article .entry-header h1 {
    max-width: 820px;
    margin: 0 0 12px;
    font-size: 2rem;
    line-height: 1.35;
    letter-spacing: -.03em;
    color: #111827;
}
.ripro-news-article .entry-header .entry-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0;
    color: #94a3b8;
}
.ripro-news-article .entry-header .entry-meta a,
.ripro-news-article .entry-header .entry-meta time,
.ripro-news-article .entry-header .entry-meta span {
    color: #64748b;
}
.ripro-news-article .entry-header .meta-author img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    box-shadow: none;
}
.ripro-news-article .entry-header .meta-category a {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: .78rem;
}
.ripro-news-article .entry-header .meta-edit {
    opacity: .7;
}
.ripro-news-article .entry-content {
    font-size: 1rem;
    line-height: 1.9;
    color: #1f2937;
}
.ripro-news-article .entry-content h2,
.ripro-news-article .entry-content h3,
.ripro-news-article .entry-content h4 {
    margin-top: 1.8em;
    margin-bottom: .75em;
    font-weight: 700;
    color: #111827;
}
.ripro-news-article .entry-content h2 {
    padding-left: 12px;
    border-left: 4px solid var(--primary);
}
.ripro-news-article .entry-content p {
    margin-bottom: 1.1em;
}
.ripro-news-article .entry-content blockquote {
    margin: 20px 0;
    padding: 14px 18px;
    border-left: 4px solid var(--primary);
    background: #f8fafc;
    color: #475569;
}
.ripro-news-article .entry-content pre {
    padding: 16px;
    border-radius: 12px;
    background: #111827;
    color: #e5e7eb;
    overflow-x: auto;
}
.ripro-news-article .entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0;
    overflow: hidden;
    border-radius: 10px;
}
.ripro-news-article .entry-content th,
.ripro-news-article .entry-content td {
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
}
.ripro-news-article .entry-content th {
    background: #f8fafc;
    font-weight: 700;
}

.related-api-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 26px 0;
    padding: 18px 20px;
    border: 1px solid rgba(45, 120, 255, .18);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(45, 120, 255, .08), rgba(17, 160, 167, .08));
}
.related-api-card .api-card-kicker {
    margin-bottom: 5px;
    font-size: .78rem;
    font-weight: 700;
    color: var(--primary);
}
.related-api-card h4 {
    margin: 0 0 8px;
    font-size: 1.05rem;
}
.related-api-card p {
    margin: 0;
    color: #64748b;
    font-size: .9rem;
}
.related-api-card .api-card-action {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: .88rem;
    font-weight: 700;
}
.related-api-card .api-card-action:hover {
    color: #fff;
    transform: translateY(-1px);
}

/* 资讯文章侧栏优化 */
.single-post .sidebar-column {
    padding-left: 22px;
}
.single-post .widget-area {
    position: sticky;
    top: 92px;
}
.single-post .widget-area .widget {
    margin-bottom: 18px;
    padding: 18px;
    background: #fff;
    border: 1px solid #edf0f5;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .05);
    overflow: hidden;
}
.single-post .widget-area .widget-title {
    position: relative;
    margin: -2px 0 14px;
    padding: 0 0 10px;
    border-bottom: 1px solid #f1f5f9;
    font-size: .96rem;
    font-weight: 700;
    color: #111827;
}
.single-post .widget-area .widget-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 14px;
    margin-right: 8px;
    border-radius: 999px;
    background: var(--primary);
    vertical-align: -2px;
}
.single-post .widget-area ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
}
.single-post .widget-area li {
    padding: 8px 0;
    border-bottom: 1px solid #f8fafc;
}
.single-post .widget-area li:last-child {
    border-bottom: 0;
}
.single-post .widget-area a {
    color: #334155;
}
.single-post .widget-area a:hover {
    color: var(--primary);
}
.news-side-list li {
    padding: 0 !important;
}
.news-side-list li a {
    display: block;
    padding: 11px 0;
}
.news-side-list .item-title {
    display: block;
    font-size: .9rem;
    line-height: 1.45;
    font-weight: 600;
    color: #1f2937;
}
.news-side-list .item-meta {
    display: block;
    margin-top: 5px;
    font-size: .76rem;
    line-height: 1.55;
    color: #94a3b8;
}
.news-side-list .item-meta code {
    display: inline-block;
    max-width: 100%;
    padding: 2px 6px;
    border-radius: 6px;
    background: #f8fafc;
    color: #64748b;
    font-size: .72rem;
    word-break: break-all;
}
.news-side-list .item-meta em {
    display: inline-block;
    margin-left: 0;
    font-style: normal;
    color: var(--primary);
}
.api-side-list li:first-child {
    margin-bottom: 4px;
    padding: 10px 12px !important;
    border: 1px solid rgba(45, 120, 255, .12);
    border-radius: 12px;
    background: rgba(45, 120, 255, .04);
}
.api-side-list li:first-child a {
    padding: 0;
}

@media (max-width: 767px) {
    .ripro-news-article .entry-wrapper {
        padding: 22px 18px;
        border-radius: 14px;
    }
    .ripro-news-article .entry-header h1 {
        font-size: 1.5rem;
    }
    .related-api-card {
        align-items: flex-start;
        flex-direction: column;
    }
    .single-post .sidebar-column {
        padding-left: 15px;
    }
    .single-post .widget-area {
        position: static;
    }
}
