/* 文章系统样式文件 */

/* LOGO配色方案 */
:root {
    --logo-black: #000000;
    --logo-white: #ffffff;
    --logo-green: #00C853;      /* 亮绿色（用于强调） */
    --logo-light-green: #E8F5E9; /* 浅绿色（用于背景） */
    --logo-green-hover: #00B248; /* 绿色悬停 */
}

/* 自定义导航栏样式 */
.custom-navbar {
    background: var(--logo-white) !important;
    border-bottom: 1px solid #cdccc6 !important;
    box-shadow: none !important;
    padding: 10px 0;
}

/* LOGO图片样式 */
.custom-navbar .navbar-logo-img {
    height: 45px;
    width: auto;
    object-fit: contain;
}

/* PC端LOGO高度70px */
@media (min-width: 992px) {
    .custom-navbar .navbar-logo-img {
        height: 70px !important;
    }
}

/* 手机端列表页头部固定 */
@media (max-width: 991.98px) {
    .custom-navbar {
        position: fixed !important;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1030;
        width: 100%;
    }
    
    body {
        padding-top: 60px; /* 为固定头部留出空间 */
    }
    
    /* 列表页容器调整 */
    .blog-list-page.container.py-5 {
        padding-top: 1rem !important;
    }
    
    /* 移动端LOGO保持45px */
    .custom-navbar .navbar-logo-img {
        height: 45px !important;
    }
}

.custom-navbar .navbar-brand {
    color: var(--logo-black) !important;
    font-weight: bold;
    font-size: 1.3rem;
}

.custom-navbar .navbar-brand:hover {
    color: var(--logo-green) !important;
}

.custom-navbar .navbar-brand .brand-text {
    color: var(--logo-black);
    font-weight: bold;
}

.custom-navbar .nav-link {
    color: var(--logo-black) !important;
    font-weight: 500;
    padding: 8px 16px !important;
    transition: all 0.3s ease;
    position: relative;
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

.custom-navbar .nav-link:focus,
.custom-navbar .nav-link:active,
.custom-navbar .nav-link:focus-visible {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

.custom-navbar .nav-link:hover {
    color: var(--logo-green) !important;
}

.custom-navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--logo-green);
    transition: width 0.3s ease;
}

.custom-navbar .nav-link:hover::after {
    width: 80%;
}

/* 顶级分类色块样式 */
.custom-navbar .nav-link.category-top-block {
    position: relative !important;
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
    transition: all 0.3s ease !important;
}

.custom-navbar .nav-link.category-top-block::after {
    display: none !important;
}

.custom-navbar .nav-link.category-top-block:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    color: #000 !important;
}

.custom-navbar .nav-link.category-top-block:focus,
.custom-navbar .nav-link.category-top-block:active,
.custom-navbar .nav-link.category-top-block:focus-visible {
    outline: none !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    color: #000 !important;
}

/* 分类箭头样式 */
.custom-navbar .category-arrow {
    transition: transform 0.3s ease !important;
}

/* 当dropdown展开时，箭头旋转90度 */
.custom-navbar .nav-link.category-top-block[aria-expanded="true"] .category-arrow {
    transform: rotate(90deg) !important;
}

/* PC端和移动端使用相同的样式，不再单独排版 */

/* 分类下拉菜单样式 - 参考移动端菜单样式，完全重写 */
/* 首先覆盖Bootstrap的默认dropdown-menu样式 */
.custom-navbar .dropdown-menu {
    border: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    margin-top: 8px !important;
    padding: 8px !important;
    border-radius: 12px !important;
    background: #fff !important;
    min-width: 280px !important;
}

.custom-navbar .dropdown-menu li {
    margin-bottom: 8px !important;
    list-style: none !important;
    padding: 0 !important;
}

.custom-navbar .dropdown-menu li:last-child {
    margin-bottom: 0 !important;
}

/* 覆盖Bootstrap的dropdown-item默认样式 - 最高优先级 */
.custom-navbar .dropdown-menu li .dropdown-item {
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
}

/* 覆盖Bootstrap的dropdown-item默认样式 */
.custom-navbar .dropdown-menu .dropdown-item.category-menu-block,
.custom-navbar .dropdown-menu .category-menu-block {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 16px 20px !important;
    border-radius: 12px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    min-height: 60px !important;
    box-sizing: border-box !important;
    color: var(--logo-black) !important;
    font-weight: 500 !important;
    font-size: 15px !important;
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
    width: 100% !important;
    /* 不设置background-color，让内联样式生效 */
}

.custom-navbar .dropdown-menu .dropdown-item.category-menu-block:focus,
.custom-navbar .dropdown-menu .dropdown-item.category-menu-block:active,
.custom-navbar .dropdown-menu .dropdown-item.category-menu-block:focus-visible,
.custom-navbar .dropdown-menu .category-menu-block:focus,
.custom-navbar .dropdown-menu .category-menu-block:active,
.custom-navbar .dropdown-menu .category-menu-block:focus-visible {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
    /* 保持内联样式背景色 */
    color: var(--logo-black) !important;
}

.custom-navbar .dropdown-menu .dropdown-item.category-menu-block:hover,
.custom-navbar .dropdown-menu .category-menu-block:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    text-decoration: none !important;
    color: var(--logo-black) !important;
    /* 保持内联样式背景色 */
}

/* 确保内联样式背景色在所有状态下都能生效 */
.custom-navbar .dropdown-menu .dropdown-item.category-menu-block[style*="background-color"]:hover,
.custom-navbar .dropdown-menu .dropdown-item.category-menu-block[style*="background-color"]:focus,
.custom-navbar .dropdown-menu .dropdown-item.category-menu-block[style*="background-color"]:active,
.custom-navbar .dropdown-menu .category-menu-block[style*="background-color"]:hover,
.custom-navbar .dropdown-menu .category-menu-block[style*="background-color"]:focus,
.custom-navbar .dropdown-menu .category-menu-block[style*="background-color"]:active {
    background-color: inherit !important;
}

/* 确保下拉菜单默认隐藏 */
.custom-navbar .dropdown-menu {
    display: none !important;
}

.custom-navbar .dropdown-menu.show {
    display: block !important;
}

/* 确保下拉菜单在移动端也能正确显示 */
@media (max-width: 991.98px) {
    .custom-navbar .dropdown-menu {
        position: static !important;
        float: none !important;
        width: 100% !important;
        margin-top: 8px !important;
        margin-bottom: 8px !important;
        border: none !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
        padding: 8px !important;
        border-radius: 12px !important;
        background: #fff !important;
        display: none !important;
    }
    
    .custom-navbar .dropdown-menu.show {
        display: block !important;
    }
    
    .custom-navbar .dropdown-menu .dropdown-item.category-menu-block {
        margin-bottom: 8px !important;
    }
    
    .custom-navbar .dropdown-menu .dropdown-item.category-menu-block:last-child {
        margin-bottom: 0 !important;
    }
}

.custom-navbar .dropdown-menu .category-menu-text {
    flex: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    min-width: 0 !important;
    display: block !important;
}

.custom-navbar .dropdown-menu .category-menu-img {
    width: 60px !important;
    height: 60px !important;
    min-width: 60px !important;
    min-height: 60px !important;
    max-width: 60px !important;
    max-height: 60px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    margin-left: 12px !important;
    flex-shrink: 0 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.custom-navbar .dropdown-menu .category-menu-img-placeholder {
    width: 60px !important;
    height: 60px !important;
    min-width: 60px !important;
    min-height: 60px !important;
    max-width: 60px !important;
    max-height: 60px !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.5) !important;
    margin-left: 12px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 24px !important;
    opacity: 0.5 !important;
}

.custom-navbar .btn-search {
    background: var(--logo-green);
    color: var(--logo-white);
    border: none;
    padding: 8px 16px;
    transition: all 0.3s ease;
}

.custom-navbar .btn-search:hover {
    background: var(--logo-green-hover);
    color: var(--logo-white);
}

.custom-navbar .form-control {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

.custom-navbar .form-control:focus {
    border-color: var(--logo-green);
    box-shadow: 0 0 0 0.2rem rgba(0, 200, 83, 0.25);
}

.custom-navbar .navbar-toggler {
    border-color: var(--logo-green);
    outline: none !important;
    box-shadow: none !important;
}

.custom-navbar .navbar-toggler:focus,
.custom-navbar .navbar-toggler:active,
.custom-navbar .navbar-toggler:focus-visible,
.custom-navbar .navbar-toggler:hover {
    outline: none !important;
    border-color: var(--logo-green) !important;
    box-shadow: none !important;
}

.custom-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 200, 83, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* PC端和移动端使用相同的菜单展开方式 */
.custom-navbar {
    position: relative;
}

/* 移除PC端logo区域container的选中效果（边框和阴影） */
@media (min-width: 992px) {
    .custom-navbar .container {
        outline: none !important;
        border: none !important;
        box-shadow: none !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    .custom-navbar .container:focus,
    .custom-navbar .container:active,
    .custom-navbar .container:focus-visible,
    .custom-navbar .container:focus-within {
        outline: none !important;
        border: none !important;
        box-shadow: none !important;
    }
    
    .custom-navbar .container *:focus,
    .custom-navbar .container *:active,
    .custom-navbar .container *:focus-visible {
        outline: none !important;
    }
    
    /* 确保navbar-brand也没有选中效果 */
    .custom-navbar .navbar-brand:focus,
    .custom-navbar .navbar-brand:active,
    .custom-navbar .navbar-brand:focus-visible {
        outline: none !important;
        border: none !important;
        box-shadow: none !important;
    }
}

/* 确保导航栏内的container没有40px的padding */
.custom-navbar .container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* 头部右侧按钮容器 - 移动端样式 */
.custom-navbar .d-flex.align-items-center.gap-3 {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1051;
    display: flex !important;
    align-items: center;
    gap: 12px;
}

/* PC端：修复按钮容器定位 */
/* PC端按钮容器也使用绝对定位，与移动端一致 */
@media (min-width: 992px) {
    .custom-navbar .d-flex.align-items-center.gap-3 {
        position: absolute !important;
        right: 15px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        margin-left: 0 !important;
    }
}

/* 菜单按钮带文字样式 */
.custom-navbar .menu-btn-with-text {
    display: flex !important;
    align-items: center;
    gap: 6px;
    border: none !important;
    background: transparent;
    color: var(--logo-green);
    padding: 6px 12px;
    border-radius: 0;
    transition: all 0.3s ease;
}

.custom-navbar .menu-btn-with-text:hover {
    background: var(--logo-light-green);
}

.custom-navbar .menu-btn-with-text:focus,
.custom-navbar .menu-btn-with-text:active {
    outline: none !important;
    box-shadow: none !important;
    background: var(--logo-light-green);
}

/* 菜单和搜索按钮文字统一样式 */
.custom-navbar .menu-btn-with-text .menu-text,
.custom-navbar .search-btn-with-text .search-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--logo-green);
}

.custom-navbar .menu-btn-with-text .navbar-toggler-icon {
    margin: 0;
    width: 18px;
    height: 18px;
}

/* 搜索按钮带文字样式 */
.custom-navbar .search-btn-with-text {
    display: flex !important;
    align-items: center;
    gap: 6px;
    border: none !important;
    background: transparent !important;
    color: var(--logo-green) !important;
    padding: 6px 12px !important;
    border-radius: 0 !important;
    transition: all 0.3s ease;
    font-size: 14px;
}

.custom-navbar .search-btn-with-text:hover {
    background: var(--logo-light-green) !important;
    color: var(--logo-green) !important;
}

.custom-navbar .search-btn-with-text:focus,
.custom-navbar .search-btn-with-text:active {
    outline: none !important;
    box-shadow: none !important;
    background: var(--logo-light-green) !important;
    color: var(--logo-green) !important;
}

/* 搜索图标 - 细线风格，与菜单图标一致 */
.custom-navbar .search-btn-with-text i {
    width: 18px;
    height: 18px;
    display: inline-block;
    position: relative;
}

.custom-navbar .search-btn-with-text i::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    border: 2px solid var(--logo-green);
    border-radius: 50%;
    box-sizing: border-box;
}

.custom-navbar .search-btn-with-text i::after {
    content: '';
    position: absolute;
    bottom: 3px;
    right: 3px;
    width: 5px;
    height: 2px;
    background: var(--logo-green);
    transform: rotate(45deg);
    transform-origin: right center;
}

/* 显示菜单图标（保持兼容性） */
.custom-navbar .navbar-toggler {
    position: static;
    z-index: 1051;
    display: flex !important;
}

/* 菜单展开时，按钮容器仍然在头部显示 - 移动端 */
.custom-navbar .navbar-collapse.show ~ .d-flex.align-items-center.gap-3,
.custom-navbar .navbar-collapse.collapsing ~ .d-flex.align-items-center.gap-3 {
    display: flex !important;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

/* PC端：菜单展开时按钮容器保持正常布局 */
/* PC端菜单展开时，按钮容器保持绝对定位，与移动端一致 */
@media (min-width: 992px) {
    .custom-navbar .navbar-collapse.show ~ .d-flex.align-items-center.gap-3,
    .custom-navbar .navbar-collapse.collapsing ~ .d-flex.align-items-center.gap-3 {
        position: absolute !important;
        right: 15px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        margin-left: 0 !important;
    }
}

    /* 菜单展开在头部下方，不覆盖头部 - 移动端样式 */
    .custom-navbar .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--logo-white);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        z-index: 1050;
        margin-top: 0;
        padding: 15px;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        border-top: 1px solid rgba(0, 200, 83, 0.3);
    }
    
    /* PC端：使用与移动端相同的菜单样式 */
    @media (min-width: 992px) {
        /* PC端菜单默认收起，只有点击后才展开 */
        .custom-navbar .navbar-collapse {
            display: none !important;
        }
        
        /* PC端菜单展开时，也展开在头部下方，保持与移动端一致 */
        .custom-navbar .navbar-collapse.show,
        .custom-navbar .navbar-collapse.collapsing {
            display: block !important;
            position: absolute !important;
            top: 100% !important;
            left: 0 !important;
            right: 0 !important;
            background: var(--logo-white) !important;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
            border-top: 1px solid rgba(0, 200, 83, 0.3) !important;
            padding: 15px !important;
            max-height: calc(100vh - 70px) !important;
            overflow-y: auto !important;
            z-index: 1050 !important;
        }
        
        /* PC端菜单项也垂直排列，与移动端一致 */
        .custom-navbar .navbar-nav {
            flex-direction: column !important;
            width: 100% !important;
        }
        
        .custom-navbar .nav-link.category-top-block {
            width: 100% !important;
            margin-bottom: 8px !important;
            padding: 16px 20px !important;
            min-height: 60px !important;
        }
        
        .custom-navbar .nav-item.dropdown {
            width: 100% !important;
        }
        
        .custom-navbar .navbar-nav .nav-item {
            width: 100% !important;
        }
        
        /* PC端也显示按钮文字，与移动端一致 */
        .custom-navbar .menu-btn-with-text .menu-text,
        .custom-navbar .search-btn-with-text .search-text {
            display: inline-block !important;
        }
    }

/* 菜单项移除所有边框和轮廓 */
.custom-navbar .nav-link,
.custom-navbar .dropdown-item,
.custom-navbar .navbar-toggler {
    outline: none !important;
    box-shadow: none !important;
}

.custom-navbar .nav-link:focus,
.custom-navbar .nav-link:active,
.custom-navbar .nav-link:focus-visible,
.custom-navbar .nav-link:visited,
.custom-navbar .dropdown-item:focus,
.custom-navbar .dropdown-item:active,
.custom-navbar .dropdown-item:focus-visible,
.custom-navbar .navbar-toggler:focus,
.custom-navbar .navbar-toggler:active,
.custom-navbar .navbar-toggler:focus-visible,
.custom-navbar .navbar-toggler:hover {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* 移除所有可能的Bootstrap默认focus样式 */
.custom-navbar *:focus,
.custom-navbar *:active,
.custom-navbar *:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

/* 顶级分类显示为色块 - 移动端样式 */
.custom-navbar .nav-link.category-top-block {
    width: 100% !important;
    margin-bottom: 8px !important;
}

.custom-navbar .nav-item.dropdown {
    width: 100% !important;
    margin-bottom: 0 !important;
}

.custom-navbar .navbar-nav {
    width: 100% !important;
}

.custom-navbar .navbar-nav .nav-item {
    width: 100% !important;
}

/* 特别处理按钮和链接 */
.custom-navbar button:focus,
.custom-navbar button:active,
.custom-navbar a:focus,
.custom-navbar a:active {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* 自定义页脚样式 */
.custom-footer {
    background: linear-gradient(135deg, var(--logo-light-green) 0%, #f5f5f5 100%);
    color: var(--logo-black);
    border-top: 3px solid var(--logo-green);
}

.custom-footer .footer-title {
    color: var(--logo-black);
    font-weight: bold;
    margin-bottom: 12px;
}

.custom-footer .footer-desc {
    color: #666;
    font-size: 14px;
    margin-bottom: 0;
}

.custom-footer .footer-text {
    color: var(--logo-black);
    font-size: 14px;
}

.custom-footer .footer-copyright {
    color: #666;
    font-size: 13px;
    margin-bottom: 0;
}

.custom-footer .btn-line {
    background: var(--logo-green);
    color: var(--logo-white);
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.custom-footer .btn-line:hover {
    background: var(--logo-green-hover);
    color: var(--logo-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 200, 83, 0.3);
}

/* 文章摘要区块 */
.article-excerpt {
    line-height: 1.8;
}

.article-excerpt p {
    margin: 0;
    font-size: 15px;
}

/* 文章图片轮播 */
#articleImageCarousel {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#articleImageCarousel .carousel-inner {
    background: #f8f9fa;
}

#articleImageCarousel .carousel-item img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    margin: 0 auto;
    display: block;
}

#articleImageCarousel .carousel-caption {
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    max-width: 90%;
    padding: 8px 16px;
    border-radius: 4px;
}

#articleImageCarousel .carousel-control-prev,
#articleImageCarousel .carousel-control-next {
    width: 40px;
    height: 40px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    opacity: 0.7;
}

#articleImageCarousel .carousel-control-prev {
    left: 15px;
}

#articleImageCarousel .carousel-control-next {
    right: 15px;
}

#articleImageCarousel .carousel-control-prev:hover,
#articleImageCarousel .carousel-control-next:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.7);
}

#articleImageCarousel .carousel-indicators {
    margin-bottom: 10px;
}

#articleImageCarousel .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

#articleImageCarousel .carousel-indicators button.active {
    background-color: #fff;
}

@media (max-width: 768px) {
    #articleImageCarousel .carousel-item img {
        max-height: 300px;
    }
    
    #articleImageCarousel .carousel-control-prev,
    #articleImageCarousel .carousel-control-next {
        width: 30px;
        height: 30px;
    }
    
    #articleImageCarousel .carousel-caption {
        font-size: 12px;
        padding: 6px 12px;
    }
}

.article-content {
    line-height: 1.8;
    font-size: 16px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.article-content p {
    margin-bottom: 1.2em;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    font-weight: bold;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.2em;
    padding-left: 2em;
}

.article-content a {
    color: #0d6efd;
    text-decoration: none;
}

.article-content a:hover {
    text-decoration: underline;
}

/* 相关文章样式 */
.related-article-item {
    transition: all 0.3s ease;
    background: #fff;
}

.related-article-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}

.related-article-image {
    overflow: hidden;
    background: #f8f9fa;
}

.related-article-image img {
    transition: transform 0.3s ease;
}

.related-article-item:hover .related-article-image img {
    transform: scale(1.05);
}

.related-article-title {
    font-size: 16px;
    line-height: 1.5;
    min-height: 48px;
}

.related-article-title a:hover {
    color: var(--logo-green) !important;
}

.related-article-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

@media (max-width: 768px) {
    .related-article-image img {
        height: 150px !important;
    }
}

/* 购买链接按钮样式 */
/* 悬浮按钮样式 */
.purchase-link-fixed-btn-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999; /* 低于底部菜单的z-index 1000 */
    padding: 15px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(0, 200, 83, 0.2);
}

/* 移动端：按钮位于底部菜单上方 */
@media (max-width: 767.98px) {
    .purchase-link-fixed-btn-wrapper {
        bottom: 65px; /* 底部菜单高度65px，按钮在其上方 */
        z-index: 999 !important; /* 移动端保持z-index 999，低于底部菜单的1000 */
    }
}

.purchase-link-fixed-btn {
    display: block;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 16px 24px;
    /* 多色渐变背景 - 绿色、蓝色、紫色、粉色等 */
    background: linear-gradient(
        135deg,
        #00C853 0%,
        #00B248 20%,
        #00BCD4 40%,
        #3F51B5 60%,
        #9C27B0 80%,
        #E91E63 100%
    );
    background-size: 300% 300%;
    color: white !important;
    text-align: center;
    text-decoration: none !important;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    /* 固定阴影，不变化 */
    box-shadow: 0 4px 12px rgba(0, 200, 83, 0.3);
    transition: transform 0.3s ease;
    border: none;
    position: relative;
    /* 多色渐变流动动画 */
    animation: multi-color-gradient 4s ease-in-out infinite;
}

/* 多色渐变流动动画 - 只变化背景位置，不变化阴影 */
@keyframes multi-color-gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.purchase-link-fixed-btn:hover {
    color: white !important;
    transform: translateY(-2px);
    /* 悬停时加快渐变流动速度 */
    animation: multi-color-gradient 2s ease-in-out infinite;
    /* 悬停时阴影稍微增强，但不变化 */
    box-shadow: 0 6px 20px rgba(0, 200, 83, 0.4);
}

.purchase-link-fixed-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 200, 83, 0.3);
}

/* PC端样式调整 */
@media (min-width: 768px) {
    .purchase-link-fixed-btn-wrapper {
        padding: 20px;
        bottom: 65px; /* PC端按钮位于底部菜单上方（菜单高度65px） */
        z-index: 999 !important; /* 低于底部菜单的z-index 1000 */
    }
    
    .purchase-link-fixed-btn {
        font-size: 18px;
        padding: 18px 32px;
    }
}

/* 为文章内容区域添加底部间距，避免被悬浮按钮遮挡 */
.article-content {
    padding-bottom: 100px;
}

/* 移动端：需要为底部菜单和悬浮按钮留出空间 */
@media (max-width: 767.98px) {
    .article-content {
        padding-bottom: 10px;
    }
}

@media (min-width: 768px) {
    .article-content {
        padding-bottom: 10px;
    }
}

.purchase-link-btn {
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0.5px;
}

.purchase-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
    background-color: #0056b3;
    border-color: #0056b3;
}

.purchase-link-btn:active {
    transform: translateY(0);
}

/* 容器内的购买链接按钮样式 */
.purchase-link-btn-container {
    text-align: center;
}

.purchase-link-btn-inline {
    display: inline-block;
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none !important;
    color: white !important;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    /* 多色渐变背景 - 绿色、蓝色、紫色、粉色等 */
    background: linear-gradient(
        135deg,
        #00C853 0%,
        #00B248 20%,
        #00BCD4 40%,
        #3F51B5 60%,
        #9C27B0 80%,
        #E91E63 100%
    );
    background-size: 300% 300%;
    box-shadow: 0 4px 12px rgba(0, 200, 83, 0.3);
    /* 多色渐变流动动画 */
    animation: multi-color-gradient 4s ease-in-out infinite;
}

.purchase-link-btn-inline:hover {
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 200, 83, 0.4);
    /* 悬停时加快渐变流动速度 */
    animation: multi-color-gradient 2s ease-in-out infinite;
}

.purchase-link-btn-inline:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 200, 83, 0.3);
}

.card {
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

/* 底部导航栏（移动端和PC端都显示） */
.mobile-bottom-nav {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: #fff !important;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.08) !important;
    z-index: 1000 !important;
    padding: 0 !important;
    display: block !important;
}

.mobile-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 65px;
    max-width: 100%;
    padding: 8px 0;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    text-decoration: none;
    color: #666;
    font-size: 12px;
    padding: 6px 8px;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 12px;
    min-height: 50px;
}

.mobile-nav-item i {
    font-size: 24px;
    margin-bottom: 4px;
    transition: all 0.3s ease;
    color: #666;
}

.mobile-nav-item span {
    font-size: 11px;
    line-height: 1.2;
    color: #666;
}

/* 激活状态：浅绿色背景 + 绿色图标和文字 */
.mobile-nav-item.active {
    background-color: var(--logo-light-green);
    color: var(--logo-green);
    text-decoration: none;
}

.mobile-nav-item.active i {
    color: var(--logo-green);
}

.mobile-nav-item.active span {
    color: var(--logo-green);
}

/* 悬停效果 */
.mobile-nav-item:hover {
    text-decoration: none;
    background-color: #f5f5f5;
}

.mobile-nav-item.active:hover {
    background-color: #c8e6c9;
}

/* Line客服按钮特殊样式：绿色图标 + 深灰色文字 */
.mobile-nav-item.line-nav i {
    color: #06c755;
}

.mobile-nav-item.line-nav span {
    color: #666;
}

.mobile-nav-item.line-nav.active i {
    color: #06c755;
}

.mobile-nav-item.line-nav.active span {
    color: var(--logo-green);
}

.mobile-nav-item.line-nav:hover i {
    color: #06c755;
}

/* Banner轮播样式 */
.banner-carousel {
    margin-top: 20px;
    margin-bottom: 30px;
    background: #f8f9fa;
    width: 100%;
    display: block;
    padding: 0;
    margin-left: 0;
    margin-right: 0;
    position: relative;
}

.banner-image-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    max-height: 400px;
    overflow: hidden;
    background: #fff;
    width: 100%;
}

.banner-carousel img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Banner标题半透明色块 */
.banner-link {
    position: relative;
    display: block;
    text-decoration: none;
}

.banner-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    padding: 12px 20px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.banner-title-text {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    line-height: 1.4;
}

/* Banner箭头样式 - 圆形扁平化 */
.banner-carousel .carousel-control-prev,
.banner-carousel .carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.banner-carousel .carousel-control-prev {
    left: 15px;
}

.banner-carousel .carousel-control-next {
    right: 15px;
}

.banner-carousel .carousel-control-prev:hover,
.banner-carousel .carousel-control-next:hover {
    opacity: 1;
    background: rgba(0, 200, 83, 0.8);
}

.banner-carousel .carousel-control-prev-icon,
.banner-carousel .carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

/* 文章轮播图样式 */
.article-carousel {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background: #f8f9fa;
    position: relative;
}

.article-carousel-link {
    position: relative;
    display: block;
    text-decoration: none;
    color: inherit;
}

.article-carousel-image-wrapper {
    width: 100%;
    overflow: hidden;
    background: #f0f0f0;
}

.article-carousel-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-carousel-link:hover .article-carousel-image {
    transform: scale(1.05);
}

.article-carousel-placeholder {
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e9ecef;
}

.article-carousel-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
}

.article-carousel-title {
    color: #ffffff;
    font-size: 24px;
    font-weight: normal;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    line-height: 1.4;
    background: rgba(0, 0, 0, 0.5);
    padding: 15px 20px;
    width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
}

/* 轮播图箭头样式 */
.article-carousel .carousel-control-prev,
.article-carousel .carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.article-carousel .carousel-control-prev {
    left: 15px;
}

.article-carousel .carousel-control-next {
    right: 15px;
}

.article-carousel .carousel-control-prev:hover,
.article-carousel .carousel-control-next:hover {
    opacity: 1;
    background: rgba(0, 200, 83, 0.8);
}

.article-carousel .carousel-control-prev-icon,
.article-carousel .carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

/* 轮播图指示器样式 */
.article-carousel .carousel-indicators {
    margin-bottom: 15px;
}

.article-carousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    margin: 0 4px;
    transition: all 0.3s ease;
}

.article-carousel .carousel-indicators button.active {
    background-color: #ffffff;
    width: 30px;
    border-radius: 6px;
}

/* 移动端文章轮播图优化 */
@media (max-width: 767.98px) {
    .article-carousel-image {
        height: 300px;
    }
    
    .article-carousel-placeholder {
        height: 300px;
    }
    
    .article-carousel-title-overlay {
        padding: 0;
    }
    
    .article-carousel-title {
        font-size: 18px;
        padding: 12px 16px;
    }
    
    .article-carousel .carousel-control-prev,
    .article-carousel .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    .article-carousel .carousel-control-prev-icon,
    .article-carousel .carousel-control-next-icon {
        width: 16px;
        height: 16px;
    }
    
    .article-carousel .carousel-indicators {
        margin-bottom: 10px;
    }
    
    .article-carousel .carousel-indicators button {
        width: 10px;
        height: 10px;
        margin: 0 3px;
    }
    
    .article-carousel .carousel-indicators button.active {
        width: 24px;
    }
}

/* 移动端Banner优化 */
@media (max-width: 767.98px) {
    .banner-carousel {
        width: 100vw !important;
        max-width: 100vw !important;
        margin-left: calc(-50vw + 50%) !important;
        margin-right: calc(-50vw + 50%) !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        left: 0;
        right: 0;
    }
    
    .banner-image-wrapper {
        min-height: 150px;
        max-height: 250px;
        width: 100% !important;
    }
    
    .banner-carousel img {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .banner-title-overlay {
        padding: 10px 15px;
    }
    
    .banner-title-text {
        font-size: 0.95rem;
    }
    
    .banner-carousel .carousel-control-prev,
    .banner-carousel .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    .banner-carousel .carousel-control-prev {
        left: 10px;
    }
    
    .banner-carousel .carousel-control-next {
        right: 10px;
    }
}

/* 文章列表推荐星标样式 */
.recommend-star {
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.recommend-btn:hover .recommend-star {
    transform: scale(1.2);
}

/* 文章列表布局：手机端2个，PC端5个 */
@media (max-width: 991.98px) {
    .article-item,
    .article-card {
        flex: 0 0 auto;
        width: 50%; /* 手机端一行2个 */
    }
}

@media (min-width: 992px) {
    .article-item,
    .article-card {
        flex: 0 0 auto;
        width: 20%; /* PC端一行5个 (100% / 5 = 20%) */
        max-width: 20%;
    }
}

/* Line图标呼吸动画 */
@keyframes breathe {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.85;
    }
}

.mobile-nav-item.line-nav i {
    animation: breathe 2.5s ease-in-out infinite;
    color: #06c755;
}

.mobile-nav-item.line-nav:hover i {
    animation: none;
    transform: scale(1.2);
}

/* 搜索功能样式 */
.search-form {
    position: relative;
}

/* 移动端搜索表单布满容器 */
@media (max-width: 991.98px) {
    .search-form {
        width: 100% !important;
        display: flex !important;
    }
    
    .search-form .form-control {
        flex: 1;
    }
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1060;
    margin-top: 5px;
    display: none;
}

.search-suggestion-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    color: #333;
}

.search-suggestion-item:hover {
    background: #f8f9fa;
    text-decoration: none;
    color: #333;
}

.search-suggestion-item:last-child {
    border-bottom: none;
}

.search-suggestion-image {
    width: 60px;
    height: 45px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 12px;
    flex-shrink: 0;
}

.search-suggestion-content {
    flex: 1;
    min-width: 0;
}

.search-suggestion-title {
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-suggestion-category {
    font-size: 12px;
    color: #666;
}

.search-suggestion-empty {
    padding: 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

/* 首页优化样式 */
.recommended-card {
    position: relative;
}

.recommended-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12) !important;
    background: var(--logo-light-green) !important;
}

/* 为移动端底部导航栏预留空间 */
@media (max-width: 767.98px) {
    body {
        padding-bottom: 65px !important;
    }
    
    footer {
        margin-bottom: 65px !important;
    }
    
    /* 移动端搜索表单在菜单内，不遮挡头部 */
    .search-form {
        position: relative;
        background: transparent;
        padding: 0;
        z-index: auto;
        box-shadow: none;
    }
    
    .search-suggestions {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        max-height: calc(100vh - 200px);
        z-index: 1060;
    }
    
    /* 移动端内容区域减少边距，让内容更宽 */
    .container {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    
    /* 进一步减少某些页面的边距 */
    .container.py-4,
    .container.py-5 {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    
    /* 导航栏容器也减少边距 */
    .custom-navbar .container {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
}

/* 搜索展开区域样式 - 类似菜单展开 */
.search-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--logo-white);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1049;
    margin-top: 0;
    border-top: 1px solid rgba(0, 200, 83, 0.3);
    width: 100%;
}

/* PC端搜索展开区域 - 与移动端保持一致 */
@media (min-width: 992px) {
    .search-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        margin-top: 0;
        border-radius: 0;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }
}

.search-collapse-content {
    padding: 20px 15px;
}

.search-form-collapse {
    position: relative;
    width: 100%;
}

.search-form-collapse .form-control {
    width: 100%;
    padding: 12px 50px 12px 16px;
    border: 2px solid var(--logo-green);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

/* 隐藏搜索框的清除按钮 */
.search-form-collapse .form-control[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
    display: none;
}

.search-form-collapse .form-control[type="search"]::-ms-clear {
    display: none;
}

.search-form-collapse .form-control:focus {
    outline: none;
    border-color: var(--logo-green);
    box-shadow: 0 0 0 3px rgba(0, 200, 83, 0.1);
}

.btn-search-collapse {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--logo-green);
    color: var(--logo-white);
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-search-collapse:hover {
    background: var(--logo-green-hover);
}

.search-collapse .search-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    max-height: 400px;
    z-index: 1050;
    background: var(--logo-white);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
}

/* 移动端搜索区域优化 */
@media (max-width: 767.98px) {
    .search-collapse-content {
        padding: 15px;
    }
    
    .search-form-collapse .form-control {
        font-size: 16px;
        padding: 12px 50px 12px 16px;
    }
}

/* 分类页面头部样式 */
.category-header {
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.category-header .breadcrumb,
.category-breadcrumb .breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 0;
}

/* PC端：保持原有布局 */
@media (min-width: 768px) {
    .category-title-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .category-title-left {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .category-breadcrumb {
        width: 100%;
        order: -1; /* 面包屑移到最前面 */
    }
    
    .category-breadcrumb .breadcrumb {
        margin-bottom: 16px;
    }
}

.category-header .breadcrumb-item {
    font-size: 14px;
}

.category-header .breadcrumb-item a {
    color: #0066cc;
    transition: color 0.3s ease;
}

.category-header .breadcrumb-item a:hover {
    color: var(--logo-green);
}

.category-header .breadcrumb-item.active {
    color: #666;
    font-weight: normal;
}

.category-header .breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    color: #999;
    padding: 0 8px;
    font-weight: normal;
}

/* 分类标题区域 */
.category-title-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.category-title-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.category-breadcrumb {
    flex-shrink: 0;
}

.category-icon-wrapper {
    flex-shrink: 0;
}

.category-icon {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.category-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.2;
}

.category-badge {
    flex-shrink: 0;
}

.article-count-badge {
    display: inline-block;
    background: #ff4444;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

/* 移动端分类头部优化 */
@media (max-width: 767.98px) {
    .category-title {
        font-size: 20px;
        margin-right: 8px;
    }
    
    .category-icon {
        width: 40px;
        height: 40px;
    }
    
    .category-header .breadcrumb-item {
        font-size: 12px;
    }
    
    .article-count-badge {
        font-size: 11px;
        padding: 4px 10px;
        white-space: nowrap;
    }
    
    .category-title-section {
        flex-direction: row;
        align-items: center;
        gap: 8px;
        flex-wrap: nowrap;
    }
    
    .category-title-left {
        flex: 1;
        min-width: 0;
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: nowrap;
    }
    
    .category-title-left > .d-flex {
        flex: 1;
        min-width: 0;
    }
    
    .category-badge {
        flex-shrink: 0;
    }
    
    .category-breadcrumb {
        flex-shrink: 0;
        margin-left: auto;
    }
    
    .category-breadcrumb .breadcrumb {
        margin-bottom: 0;
        padding: 0;
        background: transparent;
    }
    
    .category-breadcrumb .breadcrumb-item {
        font-size: 11px;
    }
}


/* ========== 移动端文章详情页优化（<992px） ========== */
@media (max-width: 991.98px) {
    /* 确保侧边栏在移动端完全隐藏 */
    .article-sidebar {
        display: none !important;
    }
    
    /* 文章图片轮播 - 移动端正方形 */
    #articleCarousel {
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        overflow: hidden;
        margin-bottom: 24px;
    }
    
    #articleCarousel .carousel-item {
        aspect-ratio: 1 / 1;
        overflow: hidden;
    }
    
    #articleCarousel .article-carousel-image-wrapper {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    #articleCarousel .carousel-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }
    
    #articleCarousel:hover .carousel-item.active img {
        transform: scale(1.02);
    }
}

/* ========== PC端文章详情页优化（≥992px） ========== */
@media (min-width: 992px) {
    /* 1. 容器优化 */
    .article-container {
        max-width: 1200px;
        margin: 0 auto;
    }
    
    /* 2. 文章标题优化 */
    .article-content h1:first-child,
    article h1:first-of-type {
        font-size: 36px;
        font-weight: 700;
        line-height: 1.3;
        margin-bottom: 24px;
        color: #1a1a1a;
    }
    
    /* 3. 文章信息栏优化 */
    .article-info-bar {
        background: #f8f9fa;
        padding: 12px 16px;
        border-radius: 8px;
        margin-bottom: 24px;
        font-size: 14px;
    }
    
    /* 4. 文章摘要优化 */
    .article-excerpt-block {
        background: #f0f7ff;
        border-left: 4px solid var(--logo-green);
        padding: 20px 24px;
        border-radius: 8px;
        margin-bottom: 32px;
        font-size: 16px;
        line-height: 1.7;
    }
    
    /* 5. 文章内容区域优化 */
    .article-content {
        font-size: 18px;
        line-height: 1.8;
        max-width: 800px;
        margin: 0 auto;
        padding-bottom: 10px;
    }
    
    /* 6. 文章图片轮播优化 */
    #articleCarousel {
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        overflow: hidden;
        margin-bottom: 32px;
    }
    
    #articleCarousel .carousel-item {
        aspect-ratio: 1 / 1;
        overflow: hidden;
    }
    
    #articleCarousel .article-carousel-image-wrapper {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    #articleCarousel .carousel-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }
    
    #articleCarousel:hover .carousel-item.active img {
        transform: scale(1.02);
    }
    
    /* 7. 封面图优化 */
    .article-cover-image {
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        margin-bottom: 32px;
    }
    
    /* 8. 内容内图片优化 */
    .article-content img {
        border-radius: 8px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
        margin: 32px 0;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* 9. 相关文章优化 - 4列布局 */
    .related-articles-section {
        margin-top: 20px !important;
    }
    
    .related-articles-header {
        margin-bottom: 24px !important;
    }
    
    .related-articles-section h3 {
        font-size: 28px;
        font-weight: 700;
        margin-bottom: 0;
        color: #1E3A8A; /* 深蓝色，匹配图片效果 */
        display: flex;
        align-items: center;
    }
    
    .related-articles-section h3 .fa-heart {
        color: #dc3545; /* 红色心形图标 */
        font-size: 28px;
        margin-right: 8px;
        animation: heartBeat 1.5s ease-in-out infinite;
    }
    
    .related-articles-more {
        color: #6c757d !important;
        font-size: 14px;
        transition: color 0.3s ease;
    }
    
    .related-articles-more:hover {
        color: #1E3A8A !important;
    }
    
    .related-articles-more .fa-chevron-right {
        font-size: 12px;
    }
    
    /* 10. 相关文章卡片优化 */
    .related-articles-section .card {
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        transition: all 0.3s ease;
        overflow: hidden;
    }
    
    .related-articles-section .card:hover {
        transform: translateY(-4px);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    }
    
    .related-articles-section .card-img-top {
        height: 200px;
        object-fit: cover;
        transition: transform 0.3s ease;
    }
    
    .related-articles-section .card:hover .card-img-top {
        transform: scale(1.05);
    }
    
    .related-articles-section .card-title {
        font-size: 18px;
        font-weight: 600;
        line-height: 1.5;
        margin-bottom: 12px;
        min-height: 54px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .related-articles-section .card-title a {
        color: #1a1a1a;
        text-decoration: none;
        transition: color 0.3s ease;
    }
    
    .related-articles-section .card-title a:hover {
        color: var(--logo-green);
    }
    
    .related-articles-section .card-text {
        font-size: 14px;
        line-height: 1.6;
        color: #666;
        min-height: 66px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    /* 11. 分隔线优化 */
    .article-divider {
        border: none;
        border-top: 1px solid #e0e0e0;
        margin: 32px 0;
    }
    
    /* 12. 页面背景优化 */
    body {
        background-color: #f5f5f5;
    }
    
    .container {
        background-color: #ffffff;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        padding: 40px;
        margin-top: 10px;
        margin-bottom: 10px;
    }
    
    /* 文章详情页容器底部间距，避免被底部菜单和购买按钮遮挡 */
    .container.my-4 {
        margin-bottom: 200px !important; /* 底部菜单65px + 购买按钮约100px + 间距35px */
        padding-bottom: 20px !important;
    }
    
    /* PC端文章详情页右侧固定侧边栏 */
    .article-sidebar {
        position: sticky;
        top: 100px;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
        padding-left: 20px;
    }
    
    .sidebar-section {
        background: #ffffff;
        border-radius: 12px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
        padding: 24px;
        margin-bottom: 20px;
    }
    
    .sidebar-title {
        font-size: 20px;
        font-weight: 700;
        color: #1a1a1a;
        margin-bottom: 20px;
        padding-bottom: 12px;
        border-bottom: 2px solid #f0f0f0;
        display: flex;
        align-items: center;
    }
    
    .sidebar-categories-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .sidebar-category-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        padding: 12px 8px;
        border-radius: 10px;
        text-decoration: none;
        color: #1a1a1a;
        transition: all 0.3s ease;
        background: #f8f9fa;
        border: 1px solid #e9ecef;
        text-align: center;
    }
    
    .sidebar-category-item:hover {
        background: #ffffff;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        border-color: var(--logo-green);
    }
    
    .sidebar-category-image {
        flex-shrink: 0;
        width: 50px;
        height: 50px;
        border-radius: 8px;
        overflow: hidden;
        background: #f0f0f0;
    }
    
    .sidebar-category-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }
    
    .sidebar-category-item:hover .sidebar-category-image img {
        transform: scale(1.1);
    }
    
    .sidebar-category-icon {
        flex-shrink: 0;
        width: 50px;
        height: 50px;
        border-radius: 8px;
        background: linear-gradient(135deg, #00C853 0%, #00B248 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #ffffff;
        font-size: 20px;
        transition: all 0.3s ease;
    }
    
    .sidebar-category-item:hover .sidebar-category-icon {
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(0, 200, 83, 0.3);
    }
    
    .sidebar-category-content {
        width: 100%;
    }
    
    .sidebar-category-name {
        font-size: 13px;
        font-weight: 600;
        line-height: 1.3;
        margin-bottom: 4px;
        color: #1a1a1a;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .sidebar-category-item:hover .sidebar-category-name {
        color: var(--logo-green);
    }
    
    .sidebar-category-count {
        font-size: 11px;
        color: #666;
        display: block;
    }
    
    .sidebar-category-item:hover .sidebar-category-count {
        color: #999;
    }
    
    /* 侧边栏滚动条样式 */
    .article-sidebar::-webkit-scrollbar {
        width: 6px;
    }
    
    .article-sidebar::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 10px;
    }
    
    .article-sidebar::-webkit-scrollbar-thumb {
        background: #c1c1c1;
        border-radius: 10px;
    }
    
    .article-sidebar::-webkit-scrollbar-thumb:hover {
        background: #a8a8a8;
    }
}

/* 通用相关文章标题样式（移动端和PC端都适用） */
.related-articles-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.related-articles-section h3 {
    display: flex;
    align-items: center;
    color: #1E3A8A;
    font-weight: 700;
}

.related-articles-section h3 .fa-heart {
    color: #dc3545;
    margin-right: 8px;
    animation: heartBeat 1.5s ease-in-out infinite;
}

/* 爱心跳动动画 */
@keyframes heartBeat {
    0%, 100% {
        transform: scale(1);
    }
    10%, 30% {
        transform: scale(1.1);
    }
    20%, 40%, 60%, 80% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

.related-articles-more {
    color: #6c757d !important;
    font-size: 14px;
    transition: color 0.3s ease;
    text-decoration: none;
}

.related-articles-more:hover {
    color: #1E3A8A !important;
}

.related-articles-more .fa-chevron-right {
    font-size: 12px;
}

/* 移动端相关文章标题样式 */
@media (max-width: 767.98px) {
    .related-articles-header {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 12px;
    }
    
    .related-articles-section h3 {
        font-size: 22px;
        margin-bottom: 0 !important;
        flex-shrink: 0;
    }
    
    .related-articles-section h3 .fa-heart {
        font-size: 22px;
        animation: heartBeat 1.5s ease-in-out infinite;
    }
    
    .related-articles-more {
        flex-shrink: 0;
        white-space: nowrap;
    }
}

/* 继续探索其他产品分类样式 */
.explore-categories-section {
    margin-top: 60px;
    margin-bottom: 80px;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.explore-categories-section h3,
.explore-categories-title {
    font-size: 24px;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 32px;
}

.explore-category-card {
    display: block;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.explore-category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    text-decoration: none;
}

.explore-category-image {
    width: 100%;
    height: 180px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 10px;
}

.explore-category-image img {
    object-fit: contain;
    object-position: center;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    transition: transform 0.3s ease;
}

.explore-category-card:hover .explore-category-image img {
    transform: scale(1.05);
}

.explore-category-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #f0f0f0;
}

.explore-category-name {
    padding: 16px;
    text-align: center;
    color: #1a1a1a;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s ease;
}

.explore-category-card:hover .explore-category-name {
    color: var(--logo-green);
}

/* PC端优化 */
@media (min-width: 992px) {
    .explore-categories-section {
        padding: 50px 30px;
        margin-bottom: 100px;
    }
    
    .explore-categories-section h3 {
        font-size: 28px;
        margin-bottom: 40px;
        color: #6c757d;
    }
    
    .explore-category-image {
        height: 200px;
        padding: 15px;
    }
    
    .explore-category-name {
        font-size: 16px;
        padding: 20px;
    }
}

/* 移动端优化 */
@media (max-width: 767.98px) {
    .explore-categories-section {
        margin-top: 40px;
        margin-bottom: 60px;
        padding: 30px 15px;
    }
    
    .explore-categories-section h3 {
        font-size: 20px;
        margin-bottom: 24px;
        color: #6c757d;
    }
    
    .explore-category-image {
        height: 150px;
        padding: 8px;
    }
    
    .explore-category-name {
        font-size: 13px;
        padding: 12px;
    }
}

/* 首页精选文章横幅样式 */
/* 精选文章标题样式 - 已迁移到 index.php 内联样式，保留此处作为备用 */




