/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", Arial, sans-serif;
}

body {
    background: #f8f9fa;
    color: #333;
    padding-top: 45px;
}

a {
    color: #001f3f; /* 调整为深蓝黑色 */
    text-decoration: none;
}

a:hover {
    color: #003366; /* 悬停时保持深蓝色调 */
    text-decoration: underline;
}

ol,ul,li {
    list-style: none;
}

/* 在原样式基础上添加以下内容 */
.btn {
    display: inline-block;
    padding: 10px 25px;
    background: #0056b3;
    color: #fff !important;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 86, 179, 0.2);
    position: relative;
    overflow: hidden;
}

.btn:hover {
    background: #004499;
    box-shadow: 0 3px 8px rgba(0, 68, 153, 0.3);
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 3px rgba(0, 68, 153, 0.2);
}

.btn i {
    margin-right: 8px;
    position: relative;
    top: 1px;
}

/* 添加波纹动画效果 */
.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, opacity 0.3s;
}

.btn:active::after {
    width: 200px;
    height: 200px;
    opacity: 0;
}

.btn.disabled {
    background: rgba(0, 86, 179, 0.5);
    cursor: not-allowed;
    box-shadow: none;
}

.msg {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 10px 20px;
    border-radius: 10px;
    color: #333;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 10000;
}

.msg>.error {
    color: #dc3545;
    font-weight: bold;
    display: inline-block;
    margin-right: 3px;
}

.msg>.success {
    color: #28a745;
    font-weight: bold;
    display: inline-block;
    margin-right: 3px;
}

.msg>.info {
    color: #007bff;
    font-weight: bold;
    display: inline-block;
    margin-right: 3px;
}

/* 容器 */
.container {
    width: 960px;
    margin: 0 auto;
}

/* 头部 */
.header {
    background: #fff;
    height: 45px;
    border-bottom: 1px solid #dee2e6;
    position: fixed;
    top: 0;
    z-index: 100;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.logo {
    float: left;
    font-size: 24px;
    font-weight: bold;
    line-height: 45px;
    height: 45px;
    color: #0056b3;
}

.navbar {
    float: right;
}

.navbar li {
    float: left;
    margin-left: 30px;
    position: relative;
    line-height: 45px;
    height: 45px;
}

.navbar li>.right {
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    transition: transform 0.3s;
}

.navbar a {
    color: #333;
}

.navbar li:hover>a,
.navbar .on>a {
    color: #0056b3;
}

/* 移动端导航样式 */
.mobile-menu-toggle,
.mobile-search-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    color: #333;
    cursor: pointer;
    padding: 0 10px;
    line-height: 45px;
    height: 45px;
}

.navbar > ul {
    position: relative;
}

.submenu {
    display: none;
    position: absolute;
    background: #fff;
    left: -10px;
    top: 99%;
    border-left: 1px solid #dee2e6;
    border-right: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
    z-index: 999;
    overflow: hidden;
}

.submenu li {
    float: none;
    margin: 0;
    line-height: 35px;
    height: 35px;
    padding: 0 10px;
    white-space: nowrap;
    border-bottom: 1px solid #dee2e6;
}

.submenu li:last-child {
    border-bottom: none;
}

/* 主内容区 */
.main {
    float: right;
    width: 700px;
    padding: 20px 0;
}

.sidebar {
    float: left;
    width: 240px;
    padding: 20px 0 0;
}

/* 面包屑导航 */
.breadcrumb {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 12px 20px;
    margin: 0 0 20px 0;
    font-size: 14px;
}

.breadcrumb a {
    color: #0056b3;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #003366;
    text-decoration: underline;
}

.breadcrumb i {
    color: #adb5bd;
    font-size: 10px;
    margin: 0 8px;
    position: relative;
    top: -1px;
}

.breadcrumb span {
    color: #6c757d;
}

/* 文章列表 */
.article-list {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    margin-bottom: 30px;
}

.article-item {
    border-bottom: 1px solid #eee;
    padding: 15px;
}

.article-item h3 {
    font-size: 18px;
    line-height: 25px;
    height: 25px;
    overflow: hidden;
    margin-bottom: 10px;
}

.article-item h3 a {
    color: #333;
    font-weight: normal;
    display: inline;
}

.article-item h3 a:hover {
    color: #000;
    text-decoration: underline;
}

/* 添加置顶标签样式 */
.sticky-tag {
    display: inline-block;
    background: #0056b3;
    color: white;
    font-size: 8px;
    border-radius: 5px;
    margin-left: 8px;
    line-height: 18px;
    height: 18px;
    padding: 0 8px;
    transform: translateY(-3px);
}

.article-meta {
    color: #6c757d;
    font-size: 12px;
    margin-top: 15px;
}

.article-meta span {
    margin-right: 15px;
    display: inline-block;
    margin-top: 5px;
}

.article-meta i {
    margin-right: 5px;
    text-align: center;
}


.search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    z-index: 999;
}

.search-container {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    max-width: 900px;
    width: 90%;
    transition: all 0.3s ease;
}

.main2,
.a404-main,
.search-main {
    padding: 20px;
    width: 100%;
}

.search-header {
    margin-bottom: 30px;
    background: #fff;
    padding: 20px;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.search-box {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    overflow: hidden;
}

/* 输入框样式 */
.search-box input[type="text"] {
    width: 100%;
    padding: 0 20px;
    font-size: 16px;
    border: 1px solid #0056b3;
    border-radius: 25px;
    height: 50px;
    line-height: 50px;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,86,179,0.1);
    background: #fff;
}

/* 输入框聚焦效果 */
.search-box input[type="text"]:focus {
    box-shadow: 0 4px 12px rgba(0,51,102,0.15);
}

/* 搜索按钮 */
.search-box button {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: #0056b3;
    color: white;
    border: none;
    padding: 0 25px;
    border-radius: 0 25px 25px 0;
    height: 50px;
    line-height: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}

/* 按钮悬停效果 */
.search-header button:hover {
    background: #003366;
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 3px 8px rgba(0,51,102,0.2);
}

/* 按钮图标微调 */
.search-header button i {
    font-size: 16px;
    margin-right: -3px;
}

.search-results {
    color: #666;
    margin-bottom: 15px;
    padding: 0 10px;
}

.highlight,
.search-list strong {
    color: #d63200;
    font-weight: bold;
}

/* 摘要文本样式 */
.excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-top: 10px;
}

/* 分页样式 */
.pagebar {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 15px;
    margin: 20px 0;
    text-align: center;
}

.pagebar a,
.pagebar span {
    display: inline-block;
    padding: 5px 12px;
    margin: 0 2px;
    color: #333;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 3px;
    transition: all 0.2s;
}

.pagebar a:hover,
.pagebar .now-page {
    background: #0056b3;
    color: #fff;
    border-color: #0056b3;
    cursor: default;
}

/* 新增文章页特定样式 */
.article-header {
    background: #fff;
    padding: 30px;
    margin-bottom: 20px;
    border: 1px solid #dee2e6;
}

.article-header h1 {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
    font-weight: normal;
}

.article-content {
    background: #fff;
    padding: 30px;
    margin-bottom: 20px;
    border: 1px solid #dee2e6;
    font-size: 16px;
    color: #444;
    line-height: 1.9;
    letter-spacing: 0.05em;
}

/* 标题样式 */
.article-content h2 {
    font-size: 1.8em;
    color: #2c3e50;
    margin: 35px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eaecef;
    position: relative;
}

.article-content h2:before {
    content: "◆";
    color: #0056b3;
    margin-right: 10px;
    font-size: 0.9em;
}

.article-content h3 {
    font-size: 1.5em;
    color: #34495e;
    margin: 30px 0 15px;
    padding-left: 12px;
    border-left: 4px solid #0056b3;
}

.article-content h4 {
    font-size: 1.2em;
    color: #4a5568;
    margin: 25px 0 12px;
}

/* 段落样式 */
.article-content p {
    margin-bottom: 0.6em;
    text-indent: 0;
}

.article-content p:last-child {
    margin-bottom: 0;
}

.article-content p>code {
    background: rgba(0, 86, 179, 0.5);
    color: #0056b3;
    padding: 2px 4px;
    font-size: 0.9em;
}

.article-content p>sup,
.article-content p>sub {
    font-size: 0.8em;
    color: #666;
}

/* 列表样式 */
.article-content ul,
.article-content ol {
    margin: 15px 0;
    padding-left: 30px;
    list-style: none!important;
}

.article-content li {
    margin-bottom: 8px;
    padding-left: 8px;
}

.article-content ul li:before {
    content: "•";
    color: #0056b3;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.article-content ol {
    counter-reset: step-counter;
}

.article-content ol li {
    counter-increment: step-counter;
}

.article-content ol li::before {
    content: counter(step-counter);
    color: #ffffff;
    background: #0056b3;
    border-radius: 50%;
    width: 1.5em;
    line-height: 1.5em;
    font-size: 0.7em;
    text-align: center;
    display: inline-block;
    margin-left: -2.5em;
    margin-right: 0.5em;
}

.article-content li p {
    display: inline;
}

/* 图片样式 */
.article-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 25px auto;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.article-content p>img {
    margin: 0;
    display: inline-block;
}

/* 引用样式 */
.article-content blockquote {
    background: #f8f9fa;
    border-left: 4px solid #0056b3;
    margin: 20px 0;
    padding: 15px 20px;
    color: #666;
    font-style: italic;
}

/* 代码样式 */
.article-content pre {
    background: #2d2d2d;
    color: #fff;
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
    overflow-x: auto;
}

.article-content code {
    font-family: "Courier New", monospace;
    font-size: 14px;
}

/* 表格样式 */
.article-content table {
    width: 100%;
    margin: 20px 0;
    border-collapse: collapse;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.article-content th {
    background: #f8f9fa;
    padding: 12px;
    text-align: left;
    border-bottom: 2px solid #dee2e6;
}

.article-content td {
    padding: 10px;
    border-bottom: 1px solid #dee2e6;
}

.article-content tr:hover {
    background-color: #f8f9fa;
}

/* 强调样式 */
.article-content strong {
    color: #2c3e50;
    font-weight: 600;
}

.article-content em {
    color: #0056b3;
    font-style: italic;
}

.article-content a {
    color: #0056b3;
    text-decoration: none;
}

.article-content a:hover {
    text-decoration: underline;
}

.article-content hr {
    border: none;
    height: 2px;
    background: #dee2e6;
    margin: 30px 0;
}

/* 时间线样式 */
.timeline-item {
    padding-left: 30px;
    margin: 20px 0;
    position: relative;
}

.timeline-item:before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    width: 12px;
    height: 12px;
    background: #fff;
    border: 2px solid #0056b3;
    border-radius: 50%;
}

.timeline-item:after {
    content: "";
    position: absolute;
    left: 5px;
    top: 20px;
    bottom: -15px;
    width: 2px;
    background: #dee2e6;
}

/* 特别提示 */
.note {
    padding: 15px;
    margin: 20px 0;
    border-left: 4px solid;
    background: #f8f9fa;
}

.note-title {
    font-weight: bold;
    margin-bottom: 8px;
}

.note.info {
    border-color: #0056b3;
}

.note.warning {
    border-color: #ffc107;
}

.article-tags {
    background: #fff;
    padding: 20px 30px;
    margin-bottom: 20px;
    border: 1px solid #dee2e6;
}

.article-tags a {
    display: inline-block;
    padding: 4px 12px;
    margin: 0 5px 5px 0;
    border-radius: 12px;
    font-size: 13px;
    color: white !important;
}

.article-tags a:nth-child(4n+1) {
    background: #007bff;
}

.article-tags a:nth-child(4n+2) {
    background: #28a745;
}

.article-tags a:nth-child(4n+3) {
    background: #dc3545;
}

.article-tags a:nth-child(4n+4) {
    background: #ffc107;
}

.article-navigation {
    overflow: hidden;
    margin-bottom: 20px;
}

.prev-article {
    float: left;
    width: 48%;
}

.next-article {
    float: right;
    width: 48%;
    text-align: right;
}

.article-navigation a {
    display: block;
    background: #fff;
    padding: 15px;
    border: 1px solid #dee2e6;
}

.related-articles {
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #dee2e6;
}

.related-articles h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #0056b3;
}

.related-list li {
    padding: 10px 0;
    border-bottom: 1px dotted #eee;
}

.comments {
    background: #fff;
    padding: 30px;
    border: 1px solid #dee2e6;
}

.comment-item {
    padding: 20px;
    background: #f8f9fa;
    margin: 15px 0;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    position: relative;
}

.comment-avatar {
    float: left;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #0056b3;
    text-align: center;
    line-height: 50px;
    color: white;
    margin-right: 15px;
}

.comment-avatar i {
    font-size: 24px;
}

.comment-main {
    overflow: hidden;
}

.comment-author {
    font-weight: bold;
    color: #0056b3;
    margin-bottom: 5px;
    font-size: 16px;
    line-height: 1.2;
}

.comment-reply-name {
    font-size: 14px;
    color: #6c757d;
}

.comment-time {
    display: block;
    color: #6c757d;
    font-size: 12px;
    margin-top: 8px;
}

.comment-content {
    line-height: 1.6;
    margin: 10px 0;
}

.comment-reply {
    margin-left: 40px;
    border-left: 2px solid #eee;
    padding-left: 20px;
    margin-top: 15px;
}

.reply-btn {
    float: right;
    color: #6c757d;
    font-size: 12px;
    cursor: pointer;
}

.reply-btn:hover {
    color: #0056b3;
}

.comments .pagebar {
    margin: 0 0 20px;
    padding: 0;
}

/* 空评论区样式 */
.empty-comments {
    text-align: center;
    padding: 50px 20px;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    margin: 30px 0;
    transition: all 0.3s ease;
}

.empty-comments:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.empty-comments .icon {
    font-size: 48px;
    color: #adb5bd;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

.empty-comments .prompt {
    font-size: 18px;
    color: #6c757d;
    margin: 10px 0;
}

.empty-comments .sub-prompt {
    color: #adb5bd;
    font-size: 14px;
}

/* 浮动动画 */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* 评论表单样式 */
.comment-form {
    background: #fff;
    padding: 25px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    margin-bottom: 30px;
}

.comment-form h4 {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f8f9fa;
}

.comment-form .form-group {
    margin-bottom: 15px;
}

.comment-form label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    height: 100px;
    resize: none;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    border-color: #0056b3;
    outline: none;
}

.comment-form .form-row {
    overflow: hidden;
}

.comment-form .form-col {
    float: left;
    width: 48%;
}

.comment-form .form-col:first-child {
    margin-right: 4%;
}

.comment-form .captcha-group {
    margin: 15px 0;
}

.comment-form .captcha-img {
    float: left;
    margin-right: 10px;
    border: 1px solid #ddd;
    padding: 5px;
    border-radius: 4px;
}

.comment-form .captcha-input {
    width: 150px;
    float: left;
}

.comment-form .submit-wrap {
    text-align: right;
    margin-top: 20px;
    clear: both;
}

.comment-form .btn {
    padding: 10px 30px;
}

/* 回复提示样式 */
.reply-notice {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 10px 15px;
    margin: -10px 0 20px 0;
    font-size: 14px;
    color: #666;
    position: relative;
}

.reply-notice::after {
    content: "";
    display: table;
    clear: both;
}

.reply-username {
    color: #0056b3;
    font-weight: bold;
    margin: 0 3px;
}

.cancel-reply {
    color: #dc3545;
    float: right;
    text-decoration: none;
    font-size: 13px;
    transition: opacity 0.2s;
}

.cancel-reply:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* 调整评论表单位置 */
.comment-form {
    margin-bottom: 30px;
}

/* 空结果提示样式 */
.empty-results {
    text-align: center;
    padding: 50px 20px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    margin: 20px 0;
}

.empty-icon {
    font-size: 48px;
    color: #adb5bd;
    margin-bottom: 20px;
}

.empty-message {
    font-size: 18px;
    color: #666;
    margin-bottom: 15px;
}

.empty-suggestion {
    font-size: 14px;
    color: #999;
}

/* 小工具 */
.widget {
    background: #fff;
    border: 1px solid #dee2e6;
    margin-bottom: 20px;
    font-size: 14px;
}

.widget-title {
    font-size: 16px;
    color: #0056b3;
    border-bottom: 1px solid #0056b3;
    padding: 15px 15px 5px; /* 上 左右 下 */
    margin: 0 5px 15px;
}

.widget-body {
    padding: 0 15px 15px; /* 上 左右 下 */
    margin-top: 15px;
}

/* 确保原有样式作用到.widget-body内部 */
.widget-body ul,
.widget-body ol {
    padding-left: 0;
}

.widget-body li {
    padding: 5px 0;
    border-bottom: 1px dotted #eee;
}

.widget-body li:last-child {
    border-bottom: none;
}

/* 日历 */
#tbCalendar {
    width: 100%;
    border-collapse: collapse;
}

#tbCalendar caption {
    padding: 10px;
    background: #f8f9fa;
}

#tbCalendar td, #tbCalendar th {
    text-align: center;
    padding: 3px;
    border: 1px solid #dee2e6;
    font-size: 10px;
}

/* 标签云 */
#tagscloud a {
    display: inline-block;
    margin: 5px;
    color: #0056b3;
}

#tagscloud a:hover {
    color: #007bff;
}

/* 作者信息栏 */
.author-widget {
    background: #fff;
    border: 1px solid #dee2e6;
    position: relative;
    margin-bottom: 20px;
    border-radius: 4px;
    overflow: hidden;
}

.author-header-bg {
    height: 100px;
    background: linear-gradient(rgba(0,86,179,0.1), rgba(0,86,179,0.1)),
    url(../assets/imgs/author-bg.jpg) center/cover;
    position: relative;
    filter: blur(2px);
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #fff;
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 2;
}

.author-content {
    padding: 50px 20px 20px;
    text-align: center;
}

.author-name {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 8px;
}

.article-count {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 12px;
}

.article-count i {
    margin-right: 5px;
}

.author-bio {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    text-align: justify;
}

li.catalog-item {
    padding-left: 10px;
    font-size: 14px;
    line-height: 20px;
    border-bottom: 1px solid #eee;
    position: relative;
}

.catalog-item > i.arrow {
    display: inline-block;
    position: absolute;
    top: 5px;
    left: 0;
    line-height: 20px;
    height: 20px;
    font-size: 12px;
    transition: transform 0.3s ease-in-out;
}

.catalog-item > a {
    display: inline-block;
    line-height: 20px;
    height: 20px;
}

.catalog-item > ul {
    display: none;
}

.catalog-item:hover > ul {
    display: block;
}

.catalog-item:hover > i.arrow {
    transform: rotate(90deg);
}

.catalog-tree-item {
    position: relative;
    font-size: 14px;
    line-height: 20px;
    border-bottom: 1px solid #eee;
}

.catalog-tree-item>i.level-icon {
    content: " ";
    display: inline-block;
    width: 0.3em;
    height: 5px;
    border-bottom: 1px solid #666;
    border-left: 1px solid #666;
    position: absolute;
    top: 11px;
    left: 0.3em;
}

.catalog-tree-item > a {
    display: inline-block;
    padding-left: 10px;
    line-height: 20px;
    height: 20px;
}

ul .catalog-item:last-child {
    border-bottom: none;
}

.widget-links ul {
    padding: 0;
    overflow: hidden;
}

.widget-links ul>li {
    float: left;
    padding: 5px 10px;
    border-radius: 5px;
    box-shadow: 0 0 3px 2px #eee;
    border: 1px solid #eee;
    margin: 5px;
    font-size: 14px;
    transition: all 0.3s ease-in-out;
}

.widget-links ul>li:hover {
    box-shadow: 0 0 3px 2px rgba(0,123,255,0.2);
    border: 1px solid rgba(0,123,255,0.2);
}

.widget-links ul>li a {
    color: #0056b3;
}

.widget-links ul>li:hover a {
    color: #007bff;
}

/* 响应式 */
@media (max-width: 768px) {
    .container {
        width: 100%;
        padding: 0 15px;
    }

    .active {
        display: block;
    }

    .navbar {
        display: none;
        float: none;
        position: fixed;
        position: -ms-device-fixed;
        position: -webkit-sticky;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.3);
        z-index: 999;
    }

    .menu-bg {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.3);
    }

    .mobile-menu-toggle,
    .mobile-search-toggle {
        display: inline-block;
        float: right;
    }

    .navbar > ul {
        display: block;
        width: 250px;
        position: absolute;
        top: 0;
        right: 0;
        height: 100%;
        background: #fff;
        border-left: 3px solid #0056b3;
    }

    .navbar.active {
        display: block;
    }

    .navbar li {
        float: none;
        margin: 0;
        border-bottom: 1px solid #eee;
        padding: 0;
        width: 100%;
        line-height: 40px;
        height: auto;
        background: #fff;
        position: static;
        font-size: 14px;
    }

    .navbar li > i.right {
        float: right;
        position: static;
        margin-top: 15px;
        margin-right: 15px;
        font-size: 14px;
    }

    .navbar li>a {
        width: 100%;
        display: inline-block;
        padding: 0 15px;
    }

    .navbar li.has-submenu>a {
        width: 200px;
    }

    .submenu {
        position: static;
        box-shadow: none;
        background: #eee;
        width: 100%;
        border-left: none;
        border-bottom: none;
        border-right: none;
    }

    .submenu li {
        float: none;
        border-bottom: 1px solid #ddd;
        background: #eee;
    }

    .submenu li:last-child {
        border-bottom: none;
    }

    li.mobile-search {
        padding: 40px 15px 20px;
        height: auto;
    }

    .mobile-search form {
        position: relative;
        width: 100%;
        height: 28px;
        line-height: 28px;
    }

    .mobile-search input[type="text"] {
        position: absolute;
        top: 0;
        width: 100%;
        font-size: 12px;
        height: 28px;
        line-height: 28px;
        border-radius: 14px;
        padding: 0 16px;
        border: 1px solid #eee;
        outline: none;
    }

    .mobile-search input[type="text"]:focus {
        border: 1px solid #0056b3;
        outline: none;
    }

    .mobile-search button {
        position: absolute;
        right: 0;
        top: 0;
        height: 28px;
        line-height: 28px;
        border-radius: 0 14px 14px 0;
        background: #0056b3;
        color: #fff;
        border: none;
        font-size: 12px;
        padding: 0 14px 0 10px;
    }

    .mobile-search button:hover {
        outline: none;
        background: #00469b;
    }

    .main, .sidebar {
        float: none;
        width: 100%;
    }

    .sidebar {
        margin-top: 20px;
        position: static!important;
        width: 100% !important;
        top: auto!important;
    }

    .search-box input[type="text"] {
        padding: 0 16px;
        font-size: 14px;
        height: 40px;
        line-height: 40px;
        border-radius: 20px;
    }

    .search-box button {
        padding: 0 20px;
        font-size: 14px;
        height: 40px;
        line-height: 40px;
        border-radius: 0 20px 20px 0;
    }

    .article-header h1 {
        font-size: 22px;
    }

    .article-content {
        font-size: 14px;
    }

    .article-content h2 {
        margin: 25px 0 15px;
    }

    .article-content h3 {
        margin: 20px 0 10px;
    }

    .article-content h4 {
        margin: 15px 0 10px;
    }

    .comment-form .form-col {
        float: none;
        width: 100%;
        margin-right: 0;
    }

    .comment-form .captcha-img {
        float: none;
        margin-bottom: 10px;
    }

    .comment-form .captcha-input {
        width: 100%;
    }

    .author-header-bg {
        height: 150px;
    }

    .author-avatar {
        width: 100px;
        height: 100px;
        top: 100px;
    }

    .author-content {
        padding: 60px 20px 20px;
    }

    .pc-only {
        display: none;
    }
}

@media (min-width: 769px) {
    .sidebar.top-sticky {
        position: fixed;
        top: 45px;
    }

    .sidebar.bottom-sticky {
        position: fixed;
        top: auto;
        bottom: 0;
    }

    .container.sticky {
        overflow: hidden;
    }

    .container.sticky>.sidebar {
        position: absolute;
        bottom: 0;
        top: auto;
        padding-bottom: 0;
    }

    .container {
        position: relative;
    }

    .mobile-only {
        display: none;
    }

    .navbar li:hover>i.right {
        transform: rotate(180deg);
    }

    .navbar li:hover>ul.submenu {
        display: block;
    }
}

/* 页脚 */
.footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 20px;
    clear: both;
    font-size: 14px;
    line-height: 1.5;
}

.footer a {
    color: #fff;
    text-decoration: none;
}

.footer a:hover {
    color: #fff;
    text-decoration: underline;
}