html {
    background: #eee;
}

body {
    background: #f2f6fa;
}

.row {
    background: white;
}

nav#header-navbar {
    background-color: #165DFF;
}

header h1 {
    padding: 0.4em 1.1em;
    color: white;
    font-weight: normal;
    font-size: 24px;
}

section#main {
    position: relative;
    padding: 0em 2em;
    border-bottom: 1px solid #ccc;
    min-height: 600px;
}

section#main .topRight {
    position: absolute;
    right: 20px;
    top: 70px;
}

table.computers em {
    color: #aaa;
}

table.computers .col3,
table.computers .col4 {
    width: 10%;
    min-width: 100px;
}

table.computers .col5 {
    width: 30%;
    min-width: 300px;
}

table.computers .header a {}

#actions {
    position: relative;
}

#actions #add {
    position: absolute;
    right: 0;
    top: 0;
}

#pagination {
    position: relative;
}

#pagination ul {
    position: absolute;
    right: 0;
}

#pagination ul .current a {
    color: #666;
}

/* 设置滚动时导航栏的样式 */
.navbar {
    transition: background-color 0.3s ease;
}

.navbar.scrolled {
    background-color: white !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled .nav-link {
    color: #333 !important;
}

.navbar.scrolled .navbar-brand {
    color: #333 !important;
}

.read-btn {
    background: #bf2c24;
    border: 1px solid #bf2c24;
    border-radius: 15px;
    color: #fff;
    display: block;
    font: 14px / 28px PingFangSC-Regular, -apple-system, Simsun;
    height: 28px;
    text-align: center;
    width: 98px;
}

.header-line {
    border-top: 1px solid #eee;
    padding-top: 10px;
}

/* 减少表单行间距 */
.form-group.row {
    margin-bottom: 2px !important;
}

/* 隐藏表单中自动生成的空dt标签 */
.form-group.row dt {
    display: none !important;
}

/* 确保select组件显示倒三角 */
select.form-control {
    -webkit-appearance: menulist;
    -moz-appearance: menulist;
    appearance: menulist;
    background-image: none;
    background-color: white;
}

/* 课程首页 表格样式 */
table#courses_tb {
    border-collapse: collapse;
    margin: 0 auto;
    text-align: center;
}

table#courses_tb td,
table th {
    border: 1px solid #cad9ea;
    color: #666;
    height: 30px;
}

table#courses_tb thead th {
    background-color: #CCE8EB;
}

table#courses_tb tbody th {
    background-color: #ddebde;
}

table#courses_tb tr:nth-child(odd) {
    background: #fff;
}

table#courses_tb tr:nth-child(even) {
    background: #F5FAFA;
}

table#courses_tb .col1 {
    width: 10%;
    min-width: 100px;
}

.warm-table {
    border: 1px solid #ddd;
    border-collapse: collapse;
    width: 100%;
}

.warm-table th {
    background-color: #f8d7da;
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

.warm-table td {
    border: 1px solid #ddd;
    padding: 10px;
}

.warm-table tbody tr:nth-child(odd) {
    background-color: #fff5f5;
}

.warm-table tbody tr:nth-child(even) {
    background-color: #fff9e6;
}

.warm-table tbody tr:hover {
    background-color: #ffeeba !important;
}

/* 博客卡片样式 */
.blog-header-row {
    display: table;
    width: 100%;
    table-layout: fixed;
    margin: 0;
    padding: 0;
    border-collapse: collapse;
    box-sizing: border-box;
}

.blog-header-row::before,
.blog-header-row::after {
    content: none;
    display: none;
}

.blog-header-row>* {
    display: table-cell;
    vertical-align: middle;
    box-sizing: border-box;
}

.blog-title {
    width: 70%;
    margin: 0;
    padding: 0;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block !important;
}

.blog-title-link {
    color: inherit;
    text-decoration: none;
    display: inline-block;
    width: 100%;
}

.blog-meta {
    width: 30%;
    text-align: right;
    margin: 0;
    padding: 0;
}

.blog-tags {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 6px;
}

.blog-tags>span {
    margin: 0 2px;
    padding: 2px 6px;
    display: inline-block;
    box-sizing: border-box;
}

/* 分页按钮美化样式 */
.pagination {
    margin: 0;
    padding: 0;
}

.pagination .page-item {
    margin: 0 3px;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.pagination .page-item:hover:not(.active):not(.disabled) {
    transform: translateY(-2px);
}

.pagination .page-link {
    padding: 8px 16px;
    border: none;
    background-color: #f8f9fa;
    color: #495057;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.pagination .page-link:hover:not(.disabled) {
    background-color: #e9ecef;
    color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.15);
}

.pagination .page-item.active .page-link {
    background-color: #007bff;
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.pagination .page-item.disabled .page-link {
    background-color: #f8f9fa;
    color: #adb5bd;
    cursor: not-allowed;
}

.pagination .page-item {
    margin-top: 10px;
}

/* 页码间距和响应式调整 */
@@media (max-width: 576px) {
    .pagination .page-link {
        padding: 6px 12px;
        font-size: 13px;
    }
}

.bg-orange {
    background-color: #F97316;
}
