/* ========== 亚海财讯 seaequity.asia 自定义样式 ========== */

/* 文章详情页内容样式 */
.sd-content {
    color: #1e293b;
    font-size: 16px;
    line-height: 1.8;
}

.sd-content p {
    margin-bottom: 1.25rem;
}

.sd-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.sd-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.sd-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #334155;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.sd-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5rem auto;
    border-radius: 0.5rem;
}

.sd-content a {
    color: #0284c7;
    text-decoration: underline;
}

.sd-content a:hover {
    color: #0369a1;
}

.sd-content ul,
.sd-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.sd-content li {
    margin-bottom: 0.5rem;
}

.sd-content blockquote {
    border-left: 4px solid #0ea5e9;
    background: #f0f9ff;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    color: #475569;
    font-style: italic;
}

.sd-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.875rem;
}

.sd-content th,
.sd-content td {
    border: 1px solid #e2e8f0;
    padding: 0.75rem;
    text-align: left;
}

.sd-content th {
    background: #f1f5f9;
    color: #0f172a;
    font-weight: 600;
}

.sd-content code {
    background: #f1f5f9;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    color: #0f172a;
}

.sd-content pre {
    background: #0f172a;
    color: #e2e8f0;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.sd-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

/* 分页样式 */
.pagination {
    display: flex;
    gap: 0.25rem;
    justify-content: center;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 0.5rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s;
}

.pagination a {
    color: #475569;
    background: #fff;
}

.pagination a:hover {
    background: #f0f9ff;
    border-color: #0ea5e9;
    color: #0284c7;
}

.pagination .active {
    background: #0284c7;
    border-color: #0284c7;
    color: #fff;
}

.pagination .disabled {
    color: #cbd5e1;
    cursor: not-allowed;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .sd-content {
        font-size: 15px;
    }

    .sd-content h2 {
        font-size: 1.25rem;
    }

    .sd-content h3 {
        font-size: 1.125rem;
    }
}

/* 打印样式 */
@media print {
    header, footer, .top-bar, nav, aside, .sd-share, .sd-prev-next, .sd-related {
        display: none !important;
    }

    .sd-content {
        font-size: 12pt;
        line-height: 1.5;
    }

    body {
        background: #fff;
    }
}
