/* 专题教程文章列表页样式 - 移动端优先，互联网风格 */
html {
    touch-action: manipulation; /* 限制双击缩放 */
}

body {
    background: #f7f9fb;
    font-family: "PingFang SC", "微软雅黑", Arial, sans-serif;
    color: #222;
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

/* 顶部导航栏样式 */
.navbar {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-radius: 0 0 16px 16px;
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}
.navbar-header {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
    position: relative;
    width: 100%;
}
.logo-box {
    display: flex;
    align-items: center;
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    margin: 0 auto;
}
.logo-box img,
.logo-box svg {
    height: 36px;
    width: auto;
    margin-right: 8px;
    vertical-align: middle;
}
.logo-index {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}
.navbar-toggle {
    display: none;
    background: none;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    outline: none;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1100;
}
/* 汉堡三条横线 */
.navbar-toggle .icon-bar {
    display: block;
    width: 24px;
    height: 3px;
    margin: 5px 0;
    background: #2196f3;
    border-radius: 2px;
    transition: all 0.3s;
}
.navbar-collapse {
    position: fixed;
    top: 0;
    left: -100%; /* 初始在左侧外面 */
    width: 80%; /* 占屏幕80%宽度 */
    height: 100%;
    background: #fff;
    z-index: 1100;
    transition: left 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    padding: 0;
}

/* PC端导航栏样式优化 */
@media (min-width: 901px) {
    .navbar {
        padding: 0.8rem 0;
    }

    .navbar .container {
        max-width: 1200px;
        width: 90%;
        padding: 0;
    }

    .navbar-header {
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        padding: 0 50px; /* 为右侧按钮留出空间 */
    }

    /* 修改PC端导航栏，与移动端保持一致 */
    .navbar-collapse {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100%;
        background: #fff;
        z-index: 1100;
        transition: left 0.3s ease;
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
        overflow-y: auto;
        padding: 0;
    }

    /* 显示汉堡菜单按钮 */
    .navbar-toggle {
        display: inline-block;
        background: none;
        border: none;
        padding: 10px;
        cursor: pointer;
        outline: none;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1100;
    }

    /* 保留取消按钮 */
    .cancel-menu {
        display: flex;
    }

    .logo-box {
        margin: 0 auto;
        font-size: 1.1rem;
    }

    .logo-box img {
        height: 40px;
        margin-right: 10px;
    }

    .navbar-toggle .icon-bar {
        width: 26px;
        height: 3px;
        margin: 6px 0;
    }
}

/* 取消按钮样式 */
.cancel-menu {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 15px;
    border-bottom: 1px solid #eaeaea;
    cursor: pointer;
}
.cancel-menu img,
.cancel-menu svg {
    width: 24px;
    height: 24px;
}

/* 确保内容在滑出菜单里正确显示 */
.navbar-nav-container {
    padding: 15px 10px;
}
.navbar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}
.navbar-nav li {
    margin-bottom: 0;
    border-bottom: 1px solid #eaeaea;
}
.navbar-nav a {
    color: #333;
    text-decoration: none;
    font-size: 1.1rem;
    display: block;
    padding: 16px 10px;
}
.navbar-nav li.active a {
    color: #2196f3;
    font-weight: bold;
}
.nav-tel {
    color: #333;
    font-weight: bold;
    display: block;
    padding: 16px 10px;
    border-top: 12px solid #f5f5f5;
}

/* 遮罩层样式 */
.nav-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.18);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.25s ease;
    display: none;
}
.nav-bg.fade-in {
    opacity: 1;
}

/* 确保PC端遮罩层正常工作 */
@media (min-width: 901px) {
    .nav-bg {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 999;
    }
}

/* 头部介绍区 */
.first {
    background: linear-gradient(90deg, #89c7ee 0%, #4199db 100%);
    padding: 2.5rem 0 1.5rem 0;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(65, 153, 219, 0.2);
}
.first .container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
.first h1 {
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 0.8rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.first h4 {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: normal;
    line-height: 1.6;
}
.first img,
.first svg {
    width: 100%;
    max-width: 260px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    background: #fff;
    padding: 4px;
}

/* PC端头部区域样式优化 */
@media (min-width: 901px) {
    .first {
        padding: 3.5rem 0 3rem 0;
        margin-bottom: 2.5rem;
        background: linear-gradient(135deg, #89c7ee 0%, #4199db 100%);
    }

    .first .container {
        max-width: 1200px;
        padding: 0 2rem;
    }

    .first h1 {
        font-size: 2.8rem;
        margin-bottom: 1.2rem;
        letter-spacing: -0.5px;
    }

    .first h4 {
        font-size: 1.15rem;
        max-width: 90%;
        line-height: 1.7;
    }

    .first .col-md-7 {
        display: flex;
        justify-content: flex-end;
    }

    .first img,
    .first svg {
        max-width: 420px;
        padding: 8px;
        border-radius: 20px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    }

    /* 让头部内容居中显示 */
    .first .container {
        width: 90%;
        max-width: 1200px;
    }
}

/* 分类菜单 */
.classify {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    margin: 0.5rem 0 1.5rem 0;
}
.list-menu {
    background: #2196f3;
    border: none;
    border-radius: 8px;
    color: #fff;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    /* margin-bottom: 1rem; */
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}
.list-menu .icon-bar {
    display: block;
    width: 18px;
    height: 2px;
    background: #fff;
    border-radius: 1px;
}
.list-box {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    padding: 0;
    margin-top: 0.5rem;
    position: absolute;
    z-index: 999;
    min-width: 180px;
    transform: translateY(-30px);
    opacity: 0;
    transition: all 0.25s ease;
    display: none;
}
.list-box.menu-slide-in {
    transform: translateY(0);
    opacity: 1;
}
.list-box ul {
    list-style: none;
    padding: 12px 0;
    margin: 0;
}
.list-box li {
    margin: 0;
    padding: 0;
}
.list-box li.active a,
.list-box li a:hover {
    color: #2196f3;
    background: rgba(33, 150, 243, 0.08);
}
.list-box a {
    color: #222;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.2s;
    padding: 12px 20px;
    display: block;
}
.cancel-list-menu {
    padding: 12px;
    text-align: right;
    border-bottom: 1px solid #eaeaea;
}
.cancel-list-menu img {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* 文章列表区 */
.list-items {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(33, 150, 243, 0.06);
    margin-bottom: 1.2rem;
    padding: 1.2rem 1rem 1rem 1rem;
    transition: all 0.3s ease;
    display: block;
}
.list-items:hover {
    box-shadow: 0 8px 24px rgba(33, 150, 243, 0.16);
    transform: translateY(-3px);
}
.list-items a {
    text-decoration: none;
    color: inherit;
    display: block;
}
.list-items h3 {
    font-size: 1.2rem;
    color: #114e8e;
    margin: 0 0 0.8rem 0;
    font-weight: bold;
    /* 确保标题完整显示 */
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.4;
    word-break: break-word;
    hyphens: auto;
}
.list-items p {
    color: #666;
    font-size: 0.98rem;
    margin: 0 0 0.8rem 0;
    line-height: 1.6;
    /* 文本超出两行显示省略号 */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.user-head img,
.user-head svg {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 0.5rem;
    vertical-align: middle;
    background: #e0e0e0;
}
.nick {
    color: #888;
    font-size: 0.92rem;
    vertical-align: middle;
}

/* 响应式布局 - 移动端优先 */
.container {
    width: 94%;
    max-width: 1100px;
    margin: 0 auto;
    box-sizing: border-box;
}
.row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}
.pr0 {
    padding-right: 0;
}
.col-md-3,
.col-md-5,
.col-md-7,
.col-md-9 {
    box-sizing: border-box;
    padding: 0 8px;
}
.col-md-3 {
    flex: 0 0 100%;
    max-width: 100%;
}
.col-md-5 {
    flex: 0 0 100%;
    max-width: 100%;
}
.col-md-7 {
    flex: 0 0 100%;
    max-width: 100%;
}
.col-md-9 {
    flex: 0 0 100%;
    max-width: 100%;
}

/* PC端布局优化 */
@media (min-width: 768px) {
    .container {
        width: 90%;
        padding: 0;
    }

    .col-md-3 {
        flex: 0 0 20%;
        max-width: 20%;
    }
    .col-md-5 {
        flex: 0 0 41.6666%;
        max-width: 41.6666%;
    }
    .col-md-7 {
        flex: 0 0 58.3333%;
        max-width: 58.3333%;
    }
    .col-md-9 {
        flex: 0 0 80%;
        max-width: 80%;
    }

    .first .container {
        flex-direction: row;
    }

    .first h1 {
        font-size: 2.5rem;
    }

    .first h4 {
        font-size: 1.1rem;
    }

    /* 修复分类菜单和文章列表的布局 */
    .row.classify {
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .first {
        padding: 1.5rem 0 1rem 0;
    }
    .first h1 {
        font-size: 1.6rem;
    }
    .first h4 {
        font-size: 0.95rem;
    }
    .list-items {
        padding: 1rem 0.8rem 0.8rem 0.8rem;
        border-radius: 12px;
    }
    .list-box {
        position: fixed;
        top: 0;
        left: 0;
        width: 85%;
        height: 100vh;
        min-width: unset;
        border-radius: 0;
        z-index: 1100;
    }
    .list-box ul {
        padding-top: 0;
    }
    .logo-box {
        font-size: 0.9rem;
    }
    .logo-box img {
        height: 32px;
    }
    /* 确保移动设备上文章列表正常显示 */
    .col-md-9 {
        display: block;
    }
    
    .list-items:first-child {
        display: block;
    }
    
    .list-items:first-child a {
        display: block;
    }
    
    .list-items:first-child h3 {
        font-size: 1.4rem;
    }
    
    .list-items:first-child p {
        -webkit-line-clamp: 3;
    }
}

@media (max-width: 900px) {
    .navbar-header {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        position: relative;
        padding: 0 40px; /* 为右侧按钮留出空间 */
    }

    .navbar-toggle {
        display: inline-block;
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        padding: 8px;
    }

    .logo-box {
        margin: 0 auto;
        max-width: 80%;
        text-align: center;
    }

    .logo-box span {
        display: inline-block;
        font-size: 0.9rem;
        white-space: normal; /* 允许文字换行 */
        max-width: none;
        overflow: visible;
        text-overflow: clip;
    }

    .logo-box img {
        height: 32px;
        margin-right: 6px;
    }
}

@media (max-width: 480px) {
    .navbar-header {
        padding: 0 35px;
    }

    /* 移除冲突样式 */
    .logo-index {
        /* 不在这里设置垂直排列，由更精细的媒体查询控制 */
    }

    .logo-box img {
        /* 不在这里设置样式，由更精细的媒体查询控制 */
    }
}

/* 确保响应式布局在中等屏幕上正确工作 */
@media (min-width: 901px) and (max-width: 1200px) {
    .container {
        width: 95%;
    }

    .col-md-9 {
        grid-template-columns: repeat(2, 1fr);
    }

    .list-items h3 {
        font-size: 1.2rem;
    }

    .list-items p {
        font-size: 0.95rem;
    }

    .first h1 {
        font-size: 2.4rem;
    }

    .first h4 {
        font-size: 1.05rem;
    }
}

/* 在较大屏幕上优化布局 */
@media (min-width: 1201px) {
    .container {
        max-width: 1200px;
    }

    .col-md-9 {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.8rem;
    }

    .list-items {
        transition: all 0.3s ease;
    }

    .list-items:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 30px rgba(33, 150, 243, 0.2);
    }
    
}

/* 滚动条美化（移动端兼容） */
::-webkit-scrollbar {
    width: 6px;
    background: #f0f0f0;
    border-radius: 6px;
}
::-webkit-scrollbar-thumb {
    background: #b3e5fc;
    border-radius: 6px;
}

/* 分类菜单区优化 */
.row.classify {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 900px) {
    .row.classify {
        max-width: 1200px;
        width: 90%;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 2rem;
    }

    .second .container {
        max-width: 1200px;
    }
}

/* 动画效果 */
@keyframes fadeInBg {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@keyframes menuSlideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* svg占位符样式 */
.svg-placeholder {
    display: inline-block;
    vertical-align: middle;
}

/* 文章详情页样式 */
.post-content {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(33, 150, 243, 0.06);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.crumbs {
    margin: 1rem 0 1.5rem;
    color: #666;
    font-size: 0.9rem;
}

.crumbs a {
    color: #2196f3;
    text-decoration: none;
    transition: color 0.2s;
}

.crumbs a:hover {
    color: #0c7cd5;
    text-decoration: underline;
}

.article {
    padding: 0;
}

.article h1 {
    color: #114e8e;
    font-size: 1.8rem;
    margin: 0 0 1rem 0;
    line-height: 1.3;
}

.article .author {
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    color: #888;
    font-size: 0.9rem;
}

.article .author span {
    margin-right: 1rem;
}

.article .content {
    color: #333;
    line-height: 1.8;
    font-size: 1rem;
}

.article .content h2 {
    color: #114e8e;
    font-size: 1.4rem;
    margin: 1.8rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e0e7ef;
}

.article .content h3 {
    color: #2196f3;
    font-size: 1.2rem;
    margin: 1.5rem 0 0.8rem 0;
}

.article .content p {
    margin: 0 0 1rem 0;
}

.article .content .text-indent {
    text-indent: 2em;
}

.article .content .text-center {
    text-align: center;
}

.article .content img,
.article .content video {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.article .content video {
    display: block;
    margin: 1.5rem auto;
}

/* 提示框样式 */
.tips {
    margin: 1.5rem 0;
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    position: relative;
}

.tips.note {
    background: rgba(33, 150, 243, 0.08);
    border-left: 4px solid #2196f3;
}

.tips .t-title {
    font-weight: bold;
    color: #114e8e;
    margin-right: 1rem;
}

.tips .right {
    flex: 1;
}

.tips .right p {
    margin: 0.5rem 0;
}

.tips .right p:first-child {
    margin-top: 0;
}

.tips .right p:last-child {
    margin-bottom: 0;
}

.section {
    color: #2196f3;
    margin-top: 1.5rem;
}

@media (max-width: 768px) {
    .post-content {
        border-radius: 12px;
        padding: 1.2rem 1rem;
    }

    .article h1 {
        font-size: 1.5rem;
    }

    .article .content h2 {
        font-size: 1.3rem;
    }

    .article .content h3 {
        font-size: 1.1rem;
    }

    .crumbs {
        font-size: 0.8rem;
        margin: 0.8rem 0 1.2rem;
    }

    .tips {
        padding: 0.8rem;
        flex-direction: column;
    }

    .tips .t-title {
        margin-bottom: 0.5rem;
    }
}

/* PC端分类菜单样式优化 */
@media (min-width: 901px) {
    .list-box {
        position: fixed;
        top: 0;
        left: 0;
        width: 85%;
        height: 100vh;
        min-width: unset;
        border-radius: 0;
        z-index: 1100;
        transform: translateY(0);
        opacity: 0;
        visibility: hidden;
        display: none;
        transition: opacity 0.2s, visibility 0.2s;
    }

    .list-box.menu-slide-in {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        display: block;
    }

    .list-menu {
        position: relative;
        transition: background-color 0.2s;
        padding: 0.6rem 1.2rem;
        font-weight: 500;
    }

    .list-menu:hover {
        background-color: #1976d2;
    }

    .cancel-list-menu {
        display: flex;
        justify-content: flex-end;
        padding: 15px;
        border-bottom: 1px solid #eaeaea;
    }

    .cancel-list-menu span {
        font-size: 24px;
        cursor: pointer;
    }

    .list-box li a {
        padding: 16px 20px;
        font-size: 1rem;
        border-bottom: 1px solid #eaeaea;
    }

    .list-box li.active a {
        font-weight: 500;
        color: #2196f3;
    }

    .col-md-3 {
        padding-right: 25px;
        position: sticky;
        top: 80px;
        align-self: flex-start;
        height: fit-content;
    }
}

/* PC端文章列表样式优化 */
@media (min-width: 901px) {
    .list-items {
        padding: 1.5rem;
        border-radius: 12px;
        transition: all 0.25s ease;
        height: auto;
        display: flex;
        flex-direction: column;
        margin-bottom: 0;
    }

    .list-items a {
        display: flex;
        flex-direction: column;
        height: 100%;
        justify-content: space-between;
    }

    .list-items h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
        height: auto;
        min-height: 2.6rem; /* 固定最小高度，约两行 */
        overflow: visible;
        display: block;
        white-space: normal;
        line-height: 1.4;
        word-break: break-word;
        hyphens: auto;
        padding-right: 5px; /* 确保文字不会紧贴右边框 */
    }

    .list-items p {
        font-size: 1rem;
        margin-bottom: 1rem;
        -webkit-line-clamp: 2;
        flex: 1;
        min-height: 3.2rem; /* 确保所有摘要有相同的最小高度 */
        max-height: 3.2rem; /* 限制最大高度 */
    }

    .list-items .row:last-child {
        margin-top: auto;
        padding-top: 0.8rem;
        border-top: 1px solid #f0f0f0;
    }

    .nick {
        font-size: 0.9rem;
    }

    /* 美化列表布局 */
    .col-md-9 {
        display: grid;
        /* grid-template-columns: repeat(2, 1fr); */
		grid-template-columns: repeat(auto-fit, minmax(30%, 1fr));
        gap: 2rem;
        margin-bottom: 2rem;
        row-gap: 2rem;
        column-gap: 2rem;
    }

    /* 第一篇文章突出显示 */
    .list-items:first-child {
        grid-column: 1 / -1;
        margin-bottom: 0;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        align-items: center;
    }

    .list-items:first-child a {
        display: contents;
    }

    .list-items:first-child .row:first-child,
    .list-items:first-child .row:nth-child(2) {
        grid-column: 1;
    }

    .list-items:first-child .row:last-child {
        grid-column: 1;
        align-self: end;
        margin-top: 1rem;
    }

    .list-items:first-child h3 {
        font-size: 1.8rem;
        height: auto;
        margin-bottom: 1.2rem;
        min-height: auto;
        line-height: 1.3;
    }

    .list-items:first-child p {
        font-size: 1.1rem;
        -webkit-line-clamp: 6;
        min-height: auto;
        max-height: none;
    }

    /* 移除冲突的边距样式 */
    .list-items:nth-child(n+2) {
        margin-bottom: 0;
    }

    .list-items:nth-child(odd) {
        margin-right: 0;
    }

    .list-items:nth-child(even) {
        margin-left: 0;
    }
}

/* 超小屏幕优化 */
@media (max-width: 360px) {
    .logo-box {
        max-width: 70%;
    }

    .logo-index {
        flex-direction: column;
        align-items: center;
        padding: 3px 0;
    }

    .logo-box img {
        height: 24px;
        margin-right: 0;
        margin-bottom: 2px;
    }

    .logo-box span {
        font-size: 0.75rem;
    }

    .navbar-header {
        padding: 0 32px;
    }
}

/* 小屏幕优化 */
@media (min-width: 361px) and (max-width: 480px) {
    .logo-box {
        max-width: 75%;
    }

    .logo-box span {
        font-size: 0.8rem;
    }

    .logo-box img {
        height: 28px;
        margin-right: 5px;
    }

    .navbar-header {
        padding: 0 35px;
    }
}

/* 搜索框相关样式 - 从HTML移植 */
/* 搜索框样式 */
.search-container {
    position: relative;
    margin-right: 15px;
    flex: 1;
    max-width: 65%; /* 调整搜索框宽度，留出空间给分类按钮 */
}

.search-input {
    width: 90%; /* 恢复为100%宽度 */
    padding: 10px 15px 10px 40px; /* 增加内边距使搜索框更大 */
    border: 1px solid #e0e7ef;
    border-radius: 20px;
    background-color: #f7f9fb;
    font-size: 14px;
    transition: all 0.3s ease;
    outline: none;
}

.search-input:focus {
    border-color: #4199db;
    box-shadow: 0 0 0 2px rgba(65, 153, 219, 0.2);
    background-color: #fff;
}

.search-icon {
    position: absolute;
    left: 15px; /* 调整图标位置 */
    top: 50%;
    transform: translateY(-50%);
    color: #89c7ee;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-input:focus + .search-icon {
    color: #4199db;
}

/* 搜索结果高亮 */
.highlight {
    background-color: #ffeb3b;
    padding: 0 2px;
    border-radius: 2px;
    transition: background-color 0.2s;
}

/* 搜索框与菜单按钮的容器 */
.search-menu-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px; /* 增加底部间距 */
    flex-wrap: nowrap; /* 防止换行，保持在同一行 */
    gap: 10px; /* 减少间距 */
}

/* 分类菜单按钮样式优化 */
.list-menu {
    background: #fff;
    border: 1px solid #e0e7ef;
    border-radius: 6px;
    padding: 10px 15px; /* 稍微减小内边距 */
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    outline: none;
    min-width: 110px; /* 减小最小宽度 */
    white-space: nowrap; /* 防止文字换行 */
    flex-shrink: 0; /* 防止按钮被压缩 */
}

.list-menu:hover {
    background-color: #f0f5fa;
    border-color: #89c7ee;
    transform: translateY(-1px);
}

.list-menu:active {
    transform: translateY(0);
}

.list-menu i {
    margin-left: 8px; /* 增加图标与文字的间距 */
    font-size: 12px;
    color: #89c7ee;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .search-container {
        max-width: 60%; /* 调整移动端搜索框宽度 */
        margin-right: 0;
    }
    
    .search-menu-container {
        flex-wrap: nowrap; /* 保持在同一行 */
        justify-content: space-between;
    }
    
    .list-menu {
        padding: 8px 12px; /* 减小移动端按钮内边距 */
        font-size: 13px; /* 减小移动端字体大小 */
        min-width: auto; /* 移动端不设最小宽度 */
    }
    
    .search-input {
        padding: 8px 10px 8px 35px; /* 减小移动端搜索框内边距 */
        font-size: 13px;
    }
    
    .search-icon {
        left: 12px;
    }
}

/* PC端优化 */
@media (min-width: 901px) {
    .search-menu-container {
        flex-direction: row; /* 改为水平排列 */
        align-items: center;
        margin-bottom: 25px; /* 增加底部间距 */
        padding: 20px;
        background-color: #fff;
        border-radius: 10px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        justify-content: space-between; /* 两端对齐 */
    }
    
    .search-container {
        max-width: 70%; /* PC端搜索框占据更多空间 */
        margin-right: 15px;
        margin-bottom: 0; /* 移除底部间距 */
    }
    
    .search-input {
        padding: 12px 15px 12px 40px;
        font-size: 15px;
        border-radius: 25px;
        background-color: #f7f9fb;
    }
    
    .search-icon {
        left: 15px;
        font-size: 16px;
    }
    
    .list-menu {
        width: auto; /* 不占满宽度 */
        padding: 12px 20px;
        font-size: 15px;
        font-weight: 500;
        background: linear-gradient(to right, #f7f9fb, #fff);
        border-radius: 8px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.05);
        margin-top: 0; /* 移除顶部间距 */
        transition: all 0.3s ease; /* 添加过渡效果 */
        flex-shrink: 0; /* 防止按钮被压缩 */
    }
    
    .list-menu:hover {
        background: linear-gradient(to right, #eef5fd, #f7f9fb);
        transform: translateY(-2px);
        box-shadow: 0 3px 8px rgba(65, 153, 219, 0.1);
    }
    
    .list-menu i {
        font-size: 14px;
        color: #4199db;
    }
    
    .col-md-3 {
        padding-right: 25px;
    }
    
    /* 搜索结果动画效果 */
    .list-items {
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
    
    .list-items.hidden {
        opacity: 0;
        transform: translateY(10px);
    }
}

/* 无搜索结果提示 */
.no-results {
    padding: 20px;
    text-align: center;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin: 15px 0;
    color: #666;
    display: none;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 确保文章中的图片有鼠标手型指针，表示可点击 */
.article .content img {
    cursor: pointer;
    transition: opacity 0.2s ease;
    max-width: 100%;
}

.article .content img:hover {
    opacity: 0.9;
}

/* 移除原有的图片查看器样式 */
/* 以下是原有的图片查看器样式，已被删除
.image-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.image-viewer.active {
    opacity: 1;
    visibility: visible;
}

.image-viewer-container {
    position: relative;
    width: 90%;
    height: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-viewer-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center center;
    user-select: none;
    -webkit-user-drag: none;
    touch-action: none;
    border-radius: 4px;
}

.image-viewer-container img.zoomed {
    cursor: move;
}

.image-viewer-container img.zoomed:active {
    cursor: grabbing;
}

.zoom-hint {
    position: absolute;
    bottom: -40px;
    left: 0;
    right: 0;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    font-size: 14px;
    opacity: 0.8;
    user-select: none;
    pointer-events: none;
}

.article .content img {
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.article .content img:hover {
    opacity: 0.9;
}

@media (max-width: 768px) {
    .image-viewer-container img {
        max-width: 95%;
        max-height: 70%;
    }
    
    .zoom-hint {
        font-size: 12px;
        bottom: -30px;
    }
}

.image-viewer-container::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin-top: -20px;
    margin-left: -20px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #fff;
    border-bottom-color: #fff;
    animation: spin 1s linear infinite;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.image-viewer-container.loading::before {
    opacity: 1;
    visibility: visible;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.image-viewer-container img.sliding-prev {
    animation: slideFromRight 0.3s forwards;
}

.image-viewer-container img.sliding-next {
    animation: slideFromLeft 0.3s forwards;
}

@keyframes slideFromRight {
    from { transform: translateX(60px); opacity: 0.5; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideFromLeft {
    from { transform: translateX(-60px); opacity: 0.5; }
    to { transform: translateX(0); opacity: 1; }
}
*/

/* PhotoSwipe 自定义样式 */
.pswp-gallery-image {
    cursor: pointer;
}

.pswp-gallery-image:hover {
    opacity: 0.9;
}

/* 适配中文界面 */
.pswp__button--close:before {
    content: "关闭";
}

.pswp__counter {
    font-family: "PingFang SC", "微软雅黑", Arial, sans-serif;
}

/* 确保视频播放器正常显示 */
.article .content video {
    max-width: 100%;
    border-radius: 4px;
}
