.m-nav {
    margin-top: 70px !important;
}
.content {
    max-width: 800px; /* 控制阅读宽度 */
    margin: 0 auto; /* 居中 */
    padding: 2rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif; /* 多平台友好字体 */
    line-height: 1.75; /* 最佳可读行高 */
    color: #333; /* 深灰正文色 */
    background-color: #fff;
    border-radius: 8px; /* 柔和圆角 */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); /* 轻量投影增强层次 */
}
.content h1 {
    font-size: 2.2rem;
    border-bottom: 2px solid #3498db; /* 主色下划线 */
    padding-bottom: 0.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}

.content h2 {
    font-size: 1.8rem;
    color: #2c3e50; /* 深蓝提升对比 */
    margin-top: 2rem;
    margin-bottom: 1.2rem;
}

.content h3 {
    font-size: 1.4rem;
    color: #3498db; /* 主色强调 */
    margin-top: 1.8rem;
    margin-bottom: 1rem;
}
.content p {
    margin-bottom: 1.5rem;
    text-align: justify; /* 两端对齐更整洁 */
    hyphens: auto; /* 自动断词 */
    font-size: 1.1rem;
    color: #444; /* 比正文略浅 */
}

.content blockquote {
    border-left: 4px solid #3498db;
    padding: 1rem 1.5rem;
    background-color: #f8f9fa; /* 浅灰背景 */
    margin: 1.5rem 0;
    font-style: italic;
    color: #555;
}

.content a {
    color: #2980b9;
    text-decoration: none;
    border-bottom: 1px dotted #2980b9; /* 虚线底线更轻盈 */
    transition: all 0.2s;
}
.content a:hover {
    color: #e74c3c; /* 悬停变色 */
    border-bottom-style: solid;
}
.content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.8rem 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.content th {
    background-color: #3498db;
    color: white;
    padding: 0.8rem;
    text-align: left;
}

.content td {
    padding: 0.75rem;
    border: 1px solid #e0e0e0;
}

.content tr:nth-child(even) {
    background-color: #f8f9fa; /* 斑马纹提升可读性 */
}
.content pre {
    background: #2d2d2d; /* 深色背景 */
    padding: 1.2rem;
    border-radius: 6px;
    overflow-x: auto;
    margin: 1.8rem 0;
}

.content code {
    font-family: "Fira Code", "Consolas", monospace;
    color: #f8f8f2; /* 浅色代码 */
}

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

.content li {
    margin-bottom: 0.6rem;
    position: relative;
}
.content ul li::before {
    content: "•";
    color: #3498db; /* 蓝色圆点 */
    margin-right: 0.5rem;
}

@media (max-width: 768px) {
    .content {
        padding: 1.2rem;
        margin: 0 1rem;
    }
    .content h1 { font-size: 1.8rem; }
    .content h2 { font-size: 1.5rem; }
    .content table {
        display: block;
        overflow-x: auto; /* 小屏表格可横向滚动 */
    }
}


.pagination {
    justify-content: center !important;
}

.pagination li a {
    position: relative;
    transition: color .25s ease-in-out, border-color .25s ease-in-out;
    font-weight: 500;
    line-height: 1.25;
    border-radius: .5rem;
    font-size: 0.875rem;
    padding: .5rem .75rem;
    color: #5a5b75;
    border: none;
}
.pagination li a > i {
    margin-top: -0.125rem;
    font-size: 1.5em
}

.pagination li {
    margin: .15rem;
    list-style-type: none;
}
.pagination li::before  {
    content: '' !important;
}

.pagination li.active {
    cursor: default
}

.pagination li:not(:first-child) a {
    margin-left: -1px
}

.pagination li.active a {
    z-index: 3;
    color: #766df4;
    background-color: transparent;
    border: 1px solid rgba(118, 109, 244, .35);
}

.pagination li.disabled a {
    color: #737491;
    pointer-events: none;
    background-color: #fff;
    border-color: #e9e9f2
}
.pagination li:first-child a {
    border-top-left-radius: 1rem;
    border-bottom-left-radius: 1rem
}

.pagination li:last-child a {
    border-top-right-radius: 1rem;
    border-bottom-right-radius: 1rem
}


.ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.flex{display:flex;}
.rows{display:flex; flex-direction:row;}
.columns{display:flex; flex-direction:column;}
.flex-center{display:flex; flex-direction:row; justify-content:center;}
.flex-start{display:flex; flex-direction:row; justify-content:flex-start;}
.flex-end{display:flex; flex-direction:row; justify-content:flex-end;}
.flex-vtop{align-items:flex-start;}
.flex-vcenter{align-items:center;}
.flex-vbottom{align-items:flex-end;}
.no-scale{flex-shrink:0;}
.flex1{flex:1;}
.flex-v1{display:flex; flex-direction:column; flex:1;}

.bg-primary, .btn-primary {
    background-color: rgb(79, 70, 229) !important;
    border-color: rgb(79, 70, 229) !important;
    color: #fff !important;
}
.btn-outline-primary {
    border-color: rgb(79, 70, 229) !important;
    color: rgb(79, 70, 229) !important;
}
.bg-primary .h4 {
    color: #fff !important;
}
.bg-opacity-10 {
    /*opacity: 0.1;*/
    background-color: rgba(79, 70, 229, 0.1) !important;
    color: rgb(55, 65, 81) !important;
}
.bg-red-100 {
    background-color: rgb(254, 226, 226) !important;
}
.bg-green-100 {
    background-color: rgb(220, 252, 231) !important
}
.text-primary {
    color: rgb(79, 70, 229) !important;
}
.card-header, .card-body>.list-group  {
    border: 0;
}
/* 添加计算器样式 */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type="number"] {
    -moz-appearance: textfield;
}

/* 响应式Hero区域样式 */
.hero-content {
    max-width: 100%;
    padding: 32px !important;
    border-radius: 16px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

@media (min-width: 992px) {
    .hero-content {
        max-width: 35vw;
    }
}