/* 统一表单组件高度 */
        .form-component {
            min-height: 48px !important;
            display: flex;
            align-items: center;
        }
        .form-select.form-component {
            padding-top: 0.375rem;
            padding-bottom: 0.375rem;
        }
        .input-group.form-component .form-control,
        .input-group.form-component .input-group-text {
            height: 100%;
        }
        /* 未登录状态统一背景色 */
        .not-logged-in .form-control.d-flex.gap-3.align-items-center {
            background-color:  var(--bs-secondary-bg);
        }
        /* 自定义鼠标手型样式 */
        .cursor-pointer {
            cursor: pointer;
        }
        /* 鼠标划过背景色 */
        .cursor-pointer:hover:not(.vip-upgrade-btn) {
            background-color: #fff !important;
        }
        
        /* 错误提示容器动画 */
        .error-container {
            opacity: 0;
            transform: translateY(-10px);
            transition: all 0.3s ease-in-out;
        }
        .error-container.show {
            opacity: 1;
            transform: translateY(0);
        }
        
        /* 按钮样式 */
        #generateBtn {
            min-height: 48px;
        }

        /* 摄像头模态框扫描线动画 */
        @keyframes scanLine {
            0% {
                top: 0;
                opacity: 1;
            }

            50% {
                top: calc(100% - 2px);
                opacity: 0.8;
            }

            100% {
                top: 0;
                opacity: 1;
            }
        }

        /* 摄像头模态框响应式设计 */
        @media (max-width: 576px) {
            #cameraModal .modal-dialog {
                max-width: 95% !important;
                margin: 1rem;
            }

            #cameraModal #cameraVideo {
                width: 100% !important;
                height: auto !important;
                max-width: 360px;
            }

            #cameraModal #cameraCanvas {
                width: 100% !important;
                height: auto !important;
                max-width: 360px;
            }
        }
        
        /* 主要布局样式 */
        .main-container {
            padding-bottom: 2rem;
            max-width: 1400px;
            margin: 0 auto;
            padding-left: 2rem;
            padding-right: 2rem;
        }
        
        .main-content {
            padding-top: 2rem;
        }
        
        .sidebar {
            padding-top: 2rem;
        }
        
        /* 文章内容样式 */
        .article-container {
            margin-top: 2rem;
        }
        
        .article-meta {
            color: #6c757d;
            font-size: 0.9rem;
        }
        
        .article-meta .meta-item {
            margin-right: 1.5rem;
        }
        
        .article-content {
            line-height: 1.8;
            font-size: 1.1rem;
            color: #333;
        }
        
        /* Markdown内容样式 */
        .article-content h1,
        .article-content h2,
        .article-content h3,
        .article-content h4,
        .article-content h5,
        .article-content h6 {
            margin-top: 2rem;
            margin-bottom: 1rem;
            font-weight: 600;
        }
        
        .article-content h1 { font-size: 2rem; }
        .article-content h2 { font-size: 1.75rem; }
        .article-content h3 { font-size: 1.5rem; }
        .article-content h4 { font-size: 1.25rem; }
        .article-content h5 { font-size: 1.1rem; }
        .article-content h6 { font-size: 1rem; }
        
        .article-content p {
            margin-bottom: 1rem;
            text-align: justify;
        }
        
        .article-content ul,
        .article-content ol {
            margin-bottom: 1rem;
            padding-left: 2rem;
        }
        
        .article-content li {
            margin-bottom: 0.5rem;
        }
        
        .article-content blockquote {
            border-left: 4px solid #007bff;
            padding-left: 1rem;
            margin: 1rem 0;
            background-color: #f8f9fa;
            padding: 1rem;
            border-radius: 0.25rem;
        }
        
        .article-content code {
            background-color: #f8f9fa;
            padding: 0.2rem 0.4rem;
            border-radius: 0.25rem;
            font-family: 'Courier New', monospace;
            font-size: 0.9rem;
        }
        
        .article-content pre {
            background-color: #f8f9fa;
            padding: 1rem;
            border-radius: 0.5rem;
            overflow-x: auto;
            margin: 1rem 0;
        }
        
        .article-content pre code {
            background-color: transparent;
            padding: 0;
        }
        
        .article-content img {
            max-width: 100%;
            height: auto;
            border-radius: 0.5rem;
            margin: 1rem 0;
        }
        
        .article-content table {
            width: 100%;
            border-collapse: collapse;
            margin: 1rem 0;
        }
        
        .article-content th,
        .article-content td {
            border: 1px solid #dee2e6;
            padding: 0.75rem;
            text-align: left;
        }
        
        .article-content th {
            background-color: #f8f9fa;
            font-weight: 600;
        }
        
        .article-content hr {
            margin: 2rem 0;
            border: none;
            border-top: 1px solid #dee2e6;
        }
        
        .article-content h1, .article-content h2, .article-content h3,
        .article-content h4, .article-content h5, .article-content h6 {
            margin-top: 2rem;
            margin-bottom: 1rem;
            color: #2c3e50;
        }
        
        .article-content p {
            margin-bottom: 1.2rem;
        }
        
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    /* box-shadow: 0 2px 8px rgba(0,0,0,0.1); */
    /* 居中显示图片 */
    display: block;
    margin: 1rem auto;
}
        
        .article-content blockquote {
            border-left: 4px solid #007bff;
            padding-left: 1rem;
            margin: 1.5rem 0;
            background-color: #f8f9fa;
            padding: 1rem;
            border-radius: 0 8px 8px 0;
        }
        
        .article-content code {
            background-color: #f8f9fa;
            padding: 0.2rem 0.4rem;
            border-radius: 4px;
            font-size: 0.9em;
        }
        
        .article-content pre {
            background-color: #f8f9fa;
            padding: 1rem;
            border-radius: 8px;
            overflow-x: auto;
        }
        
        /* 侧边栏样式 */
        .sidebar-card {
            background: #fff;
            border-radius: 12px;
            box-shadow: 0 2px 12px rgba(0,0,0,0.08);
            border: 1px solid #e9ecef;
            margin-bottom: 1.5rem;
            overflow: hidden;
        }
        
        /* 文章导航样式 */
        .article-navigation {
            margin-top: 2rem;
            padding-top: 1.5rem;
            border-top: 1px solid #e9ecef;
            color: #6c757d;
            font-size: 0.9rem;
        }
        
        .article-navigation .prev-article,
        .article-navigation .next-article {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .article-navigation a {
            color: #6c757d;
            text-decoration: none;
        }
        
        .article-navigation a:hover {
            color: #495057;
            text-decoration: underline;
        }
        
        .sidebar-card-header {
            background: #ffffff;
            color: #495057;
            padding: 1rem 1.25rem;
            font-weight: 600;
            font-size: 1.1rem;
            border-bottom: 1px solid #dee2e6;
        }
        
        .sidebar-card-header i {
            color: #007bff;
        }
        
        .sidebar-card-body {
            padding: 0;
        }
        
        .article-item {
            height: 60px;
            padding: 0 1.25rem;
            border-bottom: 1px solid #f8f9fa;
            cursor: pointer;
            display: flex;
            align-items: center;
        }
        
        .article-item:last-child {
            border-bottom: none;
        }
        
        .article-item-title {
            font-size: 0.95rem;
            font-weight: 500;
            color: #2c3e50;
            line-height: 1.4;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            margin: 0;
            width: 100%;
            transition: color 0.2s ease;
        }
        
        .article-item:hover .article-item-title {
            color: #007bff;
        }
        
        /* 响应式设计 */
        @media (max-width: 991.98px) {
            .main-content {
                padding-top: 1rem;
                margin-bottom: 2rem;
            }
            
            .sidebar {
                padding-top: 0;
            }
            
            .main-container {
                padding-left: 1rem;
                padding-right: 1rem;
                padding-top: 1rem;
            }
        }