        :root {
            --primary-color: #4a69bd;
            --secondary-color: #3c5aa8;
            --accent-color: #6c5ce7;
            --success-color: #2ecc71;
            --warning-color: #f39c12;
            --danger-color: #e74c3c;
            --light-color: #f8f9fa;
            --dark-color: #2c3e50;
            --gray-color: #95a5a6;
            --border-color: #e1e4e8;
            --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
            --transition: all 0.3s ease;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        body {
            background-color: #f5f7fa;
            color: var(--dark-color);
            line-height: 1.6;
        }
        
        .app-container {
            display: flex;
            min-height: 100vh;
        }
        
        /* 侧边栏样式 */
        .sidebar {
            width: 280px;
            background: linear-gradient(135deg, var(--dark-color), var(--primary-color));
            color: white;
            padding: 20px 0;
            box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
            height: 100vh;
            overflow-y: auto;
        }
        
        .app-logo {
            display: flex;
            align-items: center;
            padding: 0 20px 20px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .app-logo i {
            font-size: 28px;
            margin-right: 12px;
            color: #fff;
        }
        
        .app-logo h1 {
            font-size: 20px;
            font-weight: 600;
        }
        
        .nav-menu {
            list-style: none;
            margin-top: 20px;
        }
        
        .nav-item {
            padding: 16px 20px;
            display: flex;
            align-items: center;
            cursor: pointer;
            transition: var(--transition);
            border-left: 4px solid transparent;
        }
        
        .nav-item:hover {
            background: rgba(255, 255, 255, 0.08);
        }
        
        .nav-item.active {
            background: rgba(255, 255, 255, 0.15);
            border-left-color: #fff;
        }
        
        .nav-item i {
            margin-right: 12px;
            width: 20px;
            text-align: center;
            font-size: 18px;
        }

        /* 功能总览卡片 */
        .feature-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 16px;
        }

        .feature-card {
            display: block;
            padding: 18px;
            border-radius: 12px;
            border: 1px solid var(--border-color);
            background: #fff;
            color: var(--dark-color);
            text-decoration: none;
            transition: var(--transition);
            position: relative;
            overflow: hidden;
        }

        .feature-card:hover {
            transform: translateY(-2px);
            box-shadow: var(--card-shadow);
            border-color: var(--primary-color);
        }

        .feature-icon {
            width: 42px;
            height: 42px;
            border-radius: 10px;
            background: rgba(74, 105, 189, 0.12);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary-color);
            margin-bottom: 12px;
            font-size: 18px;
        }

        .feature-title {
            font-weight: 600;
            margin-bottom: 6px;
            font-size: 15px;
        }

        .feature-desc {
            font-size: 13px;
            color: #6c7a89;
            min-height: 34px;
            line-height: 1.4;
        }

        .feature-link {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-size: 12px;
            color: var(--primary-color);
            margin-top: 10px;
            font-weight: 600;
        }
        
        /* 主内容区域 */
        .main-content {
            flex: 1;
            padding: 24px;
            overflow-y: auto;
            background-color: #f5f7fa;
        }
        
        .page-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
            padding-bottom: 16px;
            border-bottom: 1px solid var(--border-color);
        }
        
        .page-title {
            font-size: 28px;
            color: var(--dark-color);
            font-weight: 600;
        }
        
        .btn {
            padding: 10px 20px;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-weight: 500;
            transition: var(--transition);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }
        
        .btn-sm {
            padding: 6px 12px;
            font-size: 14px;
        }
        
        .btn-primary {
            background: var(--primary-color);
            color: white;
        }
        
        .btn-primary:hover {
            background: var(--secondary-color);
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }
        
        .btn-secondary {
            background: #f1f2f6;
            color: var(--dark-color);
        }
        
        .btn-secondary:hover {
            background: #dfe4ea;
        }
        
        .btn-success {
            background: var(--success-color);
            color: white;
        }
        
        .btn-warning {
            background: var(--warning-color);
            color: white;
        }
        
        .btn-danger {
            background: var(--danger-color);
            color: white;
        }
        
        /* 卡片样式 */
        .section-card {
            background: white;
            border-radius: 10px;
            padding: 24px;
            margin-bottom: 24px;
            box-shadow: var(--card-shadow);
        }
        
        .section-card h2 {
            font-size: 20px;
            margin-bottom: 20px;
            padding-bottom: 12px;
            border-bottom: 1px solid var(--border-color);
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .section-card h2 i {
            color: var(--primary-color);
        }
        
        /* 选项卡样式 */
        .tabs {
            display: flex;
            border-bottom: 1px solid var(--border-color);
            margin-bottom: 20px;
        }
        
        .tab {
            padding: 12px 24px;
            cursor: pointer;
            transition: var(--transition);
            border-bottom: 3px solid transparent;
        }
        
        .tab.active {
            border-bottom-color: var(--primary-color);
            color: var(--primary-color);
            font-weight: 500;
        }
        
        .tab:hover:not(.active) {
            background-color: #f8f9fa;
        }
        
        .tab-content {
            display: none;
        }
        
        .tab-content.active {
            display: block;
        }
        
        /* 表格样式 */
        table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 16px;
        }
        
        th, td {
            padding: 12px 16px;
            text-align: left;
            border-bottom: 1px solid var(--border-color);
        }
        
        th {
            background-color: #f8f9fa;
            font-weight: 600;
        }
        
        tr:hover {
            background-color: #f8f9fa;
        }
        
        /* 徽章样式 */
        .badge {
            padding: 4px 10px;
            border-radius: 12px;
            font-size: 12px;
            font-weight: 500;
        }
        
        .badge-success {
            background-color: #e8f5e9;
            color: var(--success-color);
        }
        
        .badge-warning {
            background-color: #fff8e1;
            color: var(--warning-color);
        }
        
        .badge-danger {
            background-color: #ffebee;
            color: var(--danger-color);
        }
        
        .badge-primary {
            background-color: #e3f2fd;
            color: var(--primary-color);
        }
        
        /* 表单样式 */
        .form-group {
            margin-bottom: 20px;
        }
        
        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
        }
        
        .form-group input,
        .form-group select,
        .form-group textarea {
            width: 100%;
            padding: 12px;
            border: 1px solid var(--border-color);
            border-radius: 6px;
            font-size: 16px;
            transition: var(--transition);
        }
        
        .form-group input:focus,
        .form-group select:focus,
        .form-group textarea:focus {
            border-color: var(--primary-color);
            outline: none;
            box-shadow: 0 0 0 3px rgba(74, 105, 189, 0.1);
        }
        
        /* 模态框样式 */
        .modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 1000;
            align-items: center;
            justify-content: center;
        }
        
        .modal {
            background: white;
            border-radius: 10px;
            width: 500px;
            max-width: 90%;
            max-height: 90vh;
            overflow-y: auto;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        }
        
        .modal-header {
            padding: 20px;
            border-bottom: 1px solid var(--border-color);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .modal-body {
            padding: 20px;
        }
        
        .modal-footer {
            padding: 20px;
            border-top: 1px solid var(--border-color);
            display: flex;
            justify-content: flex-end;
            gap: 12px;
        }
        
        /* 交互管理样式 */
        .chat-container {
            display: flex;
            height: 500px;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            overflow: hidden;
        }
        
        .chat-sidebar {
            width: 250px;
            background-color: #f8f9fa;
            padding: 20px;
            border-right: 1px solid var(--border-color);
        }
        
        .chat-sidebar h4 {
            margin-bottom: 16px;
            padding-bottom: 10px;
            border-bottom: 1px solid var(--border-color);
        }
        
        .chat-sidebar ul {
            list-style: none;
        }
        
        .chat-sidebar li {
            padding: 10px 0;
            border-bottom: 1px solid var(--border-color);
        }
        
        .chat-main {
            flex: 1;
            display: flex;
            flex-direction: column;
        }
        
        .chat-messages {
            flex: 1;
            padding: 20px;
            overflow-y: auto;
        }
        
        .message {
            margin-bottom: 20px;
            max-width: 80%;
        }
        
        .message.user {
            margin-left: auto;
        }
        
        .message-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 8px;
            font-size: 14px;
            color: var(--gray-color);
        }
        
        .message-content {
            background-color: #f1f2f6;
            padding: 12px 16px;
            border-radius: 8px;
        }
        
        .message.user .message-content {
            background-color: var(--primary-color);
            color: white;
        }
        
        .chat-input {
            padding: 16px;
            border-top: 1px solid var(--border-color);
            display: flex;
            gap: 12px;
        }
        
        .chat-input input {
            flex: 1;
            padding: 12px;
            border: 1px solid var(--border-color);
            border-radius: 6px;
        }
        
        /* 工作流卡片样式 */
        .workflow-cards {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 20px;
        }
        
        .workflow-card {
            background: white;
            border-radius: 10px;
            padding: 20px;
            box-shadow: var(--card-shadow);
            transition: var(--transition);
        }
        
        .workflow-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
        }
        
        .workflow-card-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
        }
        
        .workflow-card-body {
            margin-bottom: 20px;
        }
        
        .workflow-card-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        /* 响应式设计 */
        @media (max-width: 992px) {
            .app-container {
                flex-direction: column;
            }
            
            .sidebar {
                width: 100%;
                height: auto;
            }
            
            .chat-container {
                flex-direction: column;
                height: auto;
            }
            
            .chat-sidebar {
                width: 100%;
                border-right: none;
                border-bottom: 1px solid var(--border-color);
            }
        }
        
        /* 工具类 */
        .hidden {
            display: none !important;
        }
        
        .flex {
            display: flex;
        }
        
        .items-center {
            align-items: center;
        }
        
        .justify-between {
            justify-content: space-between;
        }
        
        .gap-4 {
            gap: 16px;
        }
        
        .mb-4 {
            margin-bottom: 16px;
        }
        
        .mt-4 {
            margin-top: 16px;
        }
        
        .p-4 {
            padding: 16px;
        }
        
        .text-center {
            text-align: center;
        }
        
        /* 动画 */
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        
        .fade-in {
            animation: fadeIn 0.3s ease;
        }
        
        /* 智能体关系图样式 */
        .relationship-graph {
            height: 400px;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            background-color: #f8f9fa;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 20px;
        }
        
        .graph-placeholder {
            color: var(--gray-color);
            text-align: center;
        }
        
        .graph-placeholder i {
            font-size: 48px;
            margin-bottom: 16px;
            display: block;
        }

        /* 文章生成器原有样式 */
        .section-card {
            background: white;
            border-radius: var(--border-radius);
            box-shadow: var(--shadow);
            padding: 20px;
            margin-bottom: 20px;
        }

        .input-group {
            margin-bottom: 16px;
        }

        /* 添加新的样式来优化布局 */
        .config-panel {
            display: flex;
            flex-direction: column;
            gap: 15px;
            margin: 20px 0;
        }

        .config-item, .config-web {
            display: flex;
            flex-direction: column;
            margin-bottom: 15px;
        }

        .config-item label, .config-web label {
            margin-bottom: 5px;
            font-weight: 500;
            color: #2c3e50;
        }

        .config-item select, .config-web select {
            padding: 10px;
            border: 1px solid #ddd;
            border-radius: 4px;
            background-color: #fff;
            max-width: 300px;
        }

        .web-search-info {
            font-size: 12px;
            color: #7f8c8d;
            margin-top: 5px;
        }

        .input-group {
            margin-bottom: 20px;
            position: relative;
        }

        .input-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
            color: #2c3e50;
        }

        #topic-input {
            width: 100%;
            padding: 12px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 16px;
        }

        .char-count {
            text-align: right;
            font-size: 12px;
            color: #7f8c8d;
            margin-top: 5px;
        }

        .primary-btn {
            width: 100%;
            padding: 12px;
            background-color: #4a69bd;
            color: white;
            border: none;
            border-radius: 4px;
            font-size: 16px;
            cursor: pointer;
            transition: background-color 0.3s;
            margin-top: 15px;
        }

        .primary-btn:hover {
            background-color: #3c5aa8;
        }

        .primary-btn:disabled {
            background-color: #bdc3c7;
            cursor: not-allowed;
        }

        /* 错误提示样式 */
        .error-message {
            color: #e74c3c;
            margin-top: 10px;
            padding: 10px;
            background-color: #fadbd8;
            border-radius: 4px;
            display: none;
        }

        /* 进度条错误状态 */
        .progress-bar.error {
            background-color: #fadbd8;
        }

        .progress-bar.error .progress-fill {
            background-color: #e74c3c;
        }

        .title-options {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 16px;
            margin-bottom: 20px;
        }

        .title-option {
            border: 1px solid #ddd;
            border-radius: var(--border-radius);
            padding: 16px;
            cursor: pointer;
            transition: all 0.3s;
        }

        .title-option:hover {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
        }

        .title-option.selected {
            border-color: var(--primary-color);
            background: rgba(52, 152, 219, 0.05);
        }

        .button-group {
            display: flex;
            gap: 12px;
            margin-top: 20px;
        }

        .primary-btn {
            background: var(--primary-color);
            color: white;
            border: none;
            padding: 12px 20px;
            border-radius: 4px;
            cursor: pointer;
            font-weight: 500;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .secondary-btn {
            background: #f8f9fa;
            color: #495057;
            border: 1px solid #ddd;
            padding: 12px 20px;
            border-radius: 4px;
            cursor: pointer;
            font-weight: 500;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .hidden {
            display: none !important;
        }

        /* 加载和提示样式 */
        .toast {
            position: fixed;
            top: 20px;
            right: 20px;
            background: #ff4757;
            color: white;
            padding: 15px 20px;
            border-radius: 5px;
            display: flex;
            align-items: center;
            gap: 10px;
            z-index: 1000;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        }

        .toast.success {
            background: var(--success-color);
        }

        .loading-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.7);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 9999;
        }

        .loading-spinner {
            background: white;
            padding: 30px;
            border-radius: 10px;
            text-align: center;
        }

        .fa-spin {
            animation: fa-spin 2s infinite linear;
        }

        @keyframes fa-spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        /* ==================== */
        /* 文章内容专用样式 */
        /* ==================== */

        /*.article-container {
        max-width: 800px;
        margin: 0 auto;
        padding: 2rem;
        line-height: 1.7;
        color: #2c3e50;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }*/

        /* 确保文章容器不会限制内容显示 */
        .article-container {
            max-width: 100% !important;
            overflow: visible !important;
        }

        .article-title {
        font-size: 2.5rem;
        font-weight: 700;
        color: var(--dark-color);
        margin-bottom: 1.5rem;
        line-height: 1.3;
        text-align: center;
        border-bottom: 2px solid var(--primary-color);
        padding-bottom: 1rem;
        }

        .article-meta {
        background-color: #f8f9fa;
        border-radius: var(--border-radius);
        padding: 1.5rem;
        margin-bottom: 2rem;
        box-shadow: var(--shadow);
        }

        .meta-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
        }

        .meta-item {
        display: flex;
        flex-direction: column;
        }

        .meta-item strong {
        color: var(--secondary-color);
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
        }

        .meta-item span {
        color: var(--dark-color);
        font-weight: 500;
        }

        .article-section {
        margin-bottom: 2.5rem;
        }

        .section-title {
        font-size: 1.8rem;
        color: var(--secondary-color);
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid #e1e4e8;
        font-weight: 600;
        }

        .section-description {
        font-style: italic;
        color: #6c757d;
        margin-bottom: 1rem;
        padding-left: 1rem;
        border-left: 3px solid var(--primary-color);
        }

        .content-text {
        font-size: 1.1rem;
        line-height: 1.8;
        }

        .content-text h1, .content-text h2, .content-text h3, .content-text h4 {
        margin: 1.5rem 0 1rem;
        color: var(--secondary-color);
        font-weight: 600;
        }

        .content-text h1 {
        font-size: 1.8rem;
        border-bottom: 2px solid var(--primary-color);
        padding-bottom: 0.5rem;
        }

        .content-text h2 {
        font-size: 1.6rem;
        border-bottom: 1px solid #e1e4e8;
        padding-bottom: 0.5rem;
        }

        .content-text h3 {
        font-size: 1.4rem;
        }

        .content-text h4 {
        font-size: 1.2rem;
        }

        .content-text p {
        margin-bottom: 1.5rem;
        text-align: justify;
        }

        .content-text ul, .content-text ol {
        margin-bottom: 1.5rem;
        padding-left: 2rem;
        }

        .content-text li {
        margin-bottom: 0.5rem;
        }

        .content-text blockquote {
        background-color: #f8f9fa;
        border-left: 4px solid var(--primary-color);
        padding: 1.5rem;
        margin: 1.5rem 0;
        font-style: italic;
        border-radius: 0 var(--border-radius) var(--border-radius) 0;
        }

        .content-text code {
        background-color: #f1f3f5;
        padding: 0.2rem 0.4rem;
        border-radius: 4px;
        font-family: 'Courier New', monospace;
        font-size: 0.9em;
        }

        .content-text pre {
        background-color: #2c3e50;
        color: #ecf0f1;
        padding: 1.5rem;
        border-radius: var(--border-radius);
        overflow-x: auto;
        margin: 1.5rem 0;
        }

        .content-text pre code {
        background: none;
        padding: 0;
        color: inherit;
        }

        .content-text table {
        width: 100%;
        border-collapse: collapse;
        margin: 1.5rem 0;
        box-shadow: var(--shadow);
        }

        .content-text th, .content-text td {
        padding: 0.75rem;
        text-align: left;
        border: 1px solid #e1e4e8;
        }

        .content-text th {
        background-color: var(--light-color);
        font-weight: 600;
        }

        .content-text tr:nth-child(even) {
        background-color: #f8f9fa;
        }

        .content-text a {
        color: var(--primary-color);
        text-decoration: none;
        transition: color 0.3s;
        }

        .content-text a:hover {
        color: #2980b9;
        text-decoration: underline;
        }

        .content-text img {
        max-width: 100%;
        height: auto;
        border-radius: var(--border-radius);
        box-shadow: var(--shadow);
        margin: 1.5rem 0;
        }

        /* 文章操作按钮样式 */
        .article-actions {
        display: flex;
        justify-content: center;
        gap: 1rem;
        margin: 2rem 0;
        padding-top: 2rem;
        border-top: 1px solid #e1e4e8;
        }

        /* ==================== */
        /* 文章内容显示修复样式 */
        /* ==================== */

        /* 确保文章内容容器正确显示 */
        .article-content {
            width: 100%;
            line-height: 1.8;
            font-size: 16px;
            color: #2c3e50;
        }

        /* 修复直接插入的HTML内容样式 */
        .article-content h1,
        .article-content h2, 
        .article-content h3,
        .article-content h4,
        .article-content h5,
        .article-content h6 {
            margin: 1.5em 0 0.8em 0;
            color: #2c3e50;
            font-weight: 600;
            line-height: 1.4;
        }

        .article-content h1 { 
            font-size: 1.8em; 
            border-bottom: 2px solid #4a69bd;
            padding-bottom: 0.5em;
            margin-top: 1.5em;
        }

        .article-content h2 { 
            font-size: 1.5em; 
            border-bottom: 1px solid #e1e4e8;
            padding-bottom: 0.3em;
        }

        .article-content h3 { 
            font-size: 1.3em; 
            color: #3c5aa8;
        }

        .article-content h4 { font-size: 1.1em; }
        .article-content h5 { font-size: 1em; }
        .article-content h6 { font-size: 0.9em; color: #7f8c8d; }

        /* 段落样式 */
        .article-content p {
            margin: 1em 0;
            line-height: 1.8;
            text-align: justify;
            color: #2c3e50;
        }

        /* 强调文本样式 */
        .article-content strong {
            font-weight: 700;
            color: #2c3e50;
            background: linear-gradient(135deg, #fff9e6 0%, #ffefd5 100%);
            padding: 2px 6px;
            border-radius: 4px;
            border-left: 3px solid #ff9900;
        }

        .article-content em {
            font-style: italic;
            color: #6c757d;
            background: #f8f9fa;
            padding: 0 2px;
        }

        /* 列表样式 */
        .article-content ul,
        .article-content ol {
            margin: 1em 0;
            padding-left: 2.5em;
        }

        .article-content li {
            margin: 0.5em 0;
            line-height: 1.6;
        }

        .article-content ul li {
            list-style-type: disc;
        }

        .article-content ol li {
            list-style-type: decimal;
        }

        /* ==================== */
        /* 表格渲染修复样式 */
        /* ==================== */

        /* 确保所有表格都能正确渲染 */
        .article-content table {
            display: table !important;
            width: 100% !important;
            border-collapse: collapse !important;
            margin: 1.5em 0 !important;
            background: white !important;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
            border-radius: 8px !important;
            overflow: hidden !important;
            table-layout: fixed !important; /* 添加固定布局 */
        }

        .article-content table.regulation-table {
            /* 专门为法规表格添加的样式 */
            background: #f8f9fa;
            border: 1px solid #e1e4e8;
        }

        /* 表头单元格样式修复 */
        .article-content th {
            display: table-cell !important;
            background: #34495e !important;
            color: white !important;
            padding: 12px 15px !important;
            font-weight: 600 !important;
            text-align: left !important;
            border: 1px solid #2c3e50 !important;
            white-space: normal !important;
            word-wrap: break-word !important;
            overflow-wrap: break-word !important;
        }

        /* 表格数据单元格样式修复 */
        .article-content td {
            display: table-cell !important;
            padding: 10px 15px !important;
            border: 1px solid #e2e8f0 !important;
            line-height: 1.5 !important;
            white-space: normal !important;
            word-wrap: break-word !important;
            overflow-wrap: break-word !important;
        }

        /* 表头和表体长度一致修复 */
        .article-content thead,
        .article-content tbody {
            display: table-row-group !important;
            width: 100% !important;
        }

        /* 确保表格列宽一致 */
        .article-content col {
            display: table-column !important;
        }

        .article-content colgroup {
            display: table-column-group !important;
        }

        /* 特殊处理没有thead的表格 */
        .article-content table:not(:has(thead)) tr:first-child {
            background: #34495e !important;
        }

        .article-content table:not(:has(thead)) tr:first-child td {
            color: white !important;
            font-weight: 600 !important;
            background: #34495e !important;
            border: 1px solid #2c3e50 !important;
        }

        /* 表格行交替颜色 */
        .article-content tbody tr:nth-child(even) {
            background: #f8f9fa !important;
        }

        .article-content tbody tr:hover {
            background: #e3f2fd !important;
        }

        /* 确保表格行正确显示 */
        .article-content tr {
            display: table-row !important;
        }

        .article-content tr:hover {
            background: #e3f2fd;
        }

        /* ==================== */
        /* 表头表体长度统一样式 */
        /* ==================== */

        /* 为表格设置统一的列宽分配 */
        .article-content table {
            table-layout: fixed !important;
            width: 100% !important;
        }

        /* 自动列宽分配 - 适用于大多数表格 */
        .article-content table:not([class]) {
            table-layout: auto !important;
        }

        .article-content table:not([class]) th,
        .article-content table:not([class]) td {
            width: auto !important;
        }

        /* 为特定列数的表格设置固定宽度 */
        .article-content table:has(th:nth-child(1)):has(th:nth-child(2)):not(:has(th:nth-child(3))) {
            /* 2列表格 */
            table-layout: fixed !important;
        }

        .article-content table:has(th:nth-child(1)):has(th:nth-child(2)):not(:has(th:nth-child(3))) th:nth-child(1),
        .article-content table:has(th:nth-child(1)):has(th:nth-child(2)):not(:has(th:nth-child(3))) td:nth-child(1) {
            width: 30% !important;
        }

        .article-content table:has(th:nth-child(1)):has(th:nth-child(2)):not(:has(th:nth-child(3))) th:nth-child(2),
        .article-content table:has(th:nth-child(1)):has(th:nth-child(2)):not(:has(th:nth-child(3))) td:nth-child(2) {
            width: 70% !important;
        }

        /* 3列表格 */
        .article-content table:has(th:nth-child(1)):has(th:nth-child(2)):has(th:nth-child(3)):not(:has(th:nth-child(4))) {
            table-layout: fixed !important;
        }

        .article-content table:has(th:nth-child(1)):has(th:nth-child(2)):has(th:nth-child(3)):not(:has(th:nth-child(4))) th:nth-child(1),
        .article-content table:has(th:nth-child(1)):has(th:nth-child(2)):has(th:nth-child(3)):not(:has(th:nth-child(4))) td:nth-child(1) {
            width: 25% !important;
        }

        .article-content table:has(th:nth-child(1)):has(th:nth-child(2)):has(th:nth-child(3)):not(:has(th:nth-child(4))) th:nth-child(2),
        .article-content table:has(th:nth-child(1)):has(th:nth-child(2)):has(th:nth-child(3)):not(:has(th:nth-child(4))) td:nth-child(2) {
            width: 35% !important;
        }

        .article-content table:has(th:nth-child(1)):has(th:nth-child(2)):has(th:nth-child(3)):not(:has(th:nth-child(4))) th:nth-child(3),
        .article-content table:has(th:nth-child(1)):has(th:nth-child(2)):has(th:nth-child(3)):not(:has(th:nth-child(4))) td:nth-child(3) {
            width: 40% !important;
        }

        /* 4列表格 */
        .article-content table:has(th:nth-child(4)):not(:has(th:nth-child(5))) {
            table-layout: fixed !important;
        }

        .article-content table:has(th:nth-child(4)):not(:has(th:nth-child(5))) th,
        .article-content table:has(th:nth-child(4)):not(:has(th:nth-child(5))) td {
            width: 25% !important;
        }

        /* 确保表头和表体单元格对齐 */
        .article-content th,
        .article-content td {
            vertical-align: top !important;
            box-sizing: border-box !important;
        }

        /* 表格内容过长时的处理 */
        .article-content th,
        .article-content td {
            overflow: hidden !important;
            text-overflow: ellipsis !important;
        }

        .article-content th:hover,
        .article-content td:hover {
            overflow: visible !important;
            white-space: normal !important;
            position: relative !important;
            z-index: 10 !important;
            background: white !important;
            box-shadow: 0 0 10px rgba(0,0,0,0.1) !important;
        }
        
        /* 代码块样式 */
        .article-content pre {
            background-color: #2d3748;
            border: 1px solid #4a5568;
            border-radius: 8px;
            padding: 1.2rem;
            overflow: auto;
            margin: 1.5em 0;
            color: #e2e8f0;
            font-family: 'Courier New', monospace;
            line-height: 1.4;
        }

        .article-content code {
            background-color: #f7fafc;
            padding: 2px 6px;
            border-radius: 4px;
            font-family: 'Courier New', monospace;
            color: #e53e3e;
            border: 1px solid #e2e8f0;
        }

        .article-content pre code {
            background: none;
            border: none;
            padding: 0;
            color: inherit;
            font-size: 0.9em;
        }

        /* 引用块样式 */
        .article-content blockquote {
            border-left: 4px solid #667eea;
            padding: 1rem 1.5rem;
            margin: 1.5em 0;
            background: #f8f9fa;
            border-radius: 0 8px 8px 0;
            font-style: italic;
            color: #4a5568;
        }

        /* 链接样式 */
        .article-content a {
            color: #667eea;
            text-decoration: none;
            border-bottom: 1px solid #c3dafe;
            transition: all 0.3s ease;
        }

        .article-content a:hover {
            color: #5a67d8;
            border-bottom-color: #667eea;
            background: #f0fff4;
        }

        /* 图片样式 */
        .article-content img {
            max-width: 100%;
            height: auto;
            border-radius: 8px;
            margin: 1.5em auto;
            display: block;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

        /* 水平分割线 */
        .article-content hr {
            border: none;
            border-top: 2px solid #e2e8f0;
            margin: 2em 0;
        }

        /* 特殊符号和图标 */
        .article-content .fa,
        .article-content .fas,
        .article-content .far {
            margin-right: 0.5em;
            color: #4a69bd;
        }

        /* 修复内容文本的显示问题 */
        .content-text {
            /* 确保继承父容器的样式 */
            all: inherit;
        }

        /* 确保文章内容区域不会继承不需要的样式 */
        .article-container .article-content {
            /* 重置可能冲突的样式 */
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            font-size: 16px;
            line-height: 1.8;
            color: #2c3e50;
        }

        /* 修复可能被隐藏的内容 */
        .article-content * {
            /* 确保所有元素都显示 */
            display: block;
        }

        .article-content table,
        .article-content tr,
        .article-content th,
        .article-content td {
            display: table;
        }

        .article-content tr {
            display: table-row;
        }

        .article-content th,
        .article-content td {
            display: table-cell;
        }

        /* 内联元素保持内联 */
        .article-content strong,
        .article-content em,
        .article-content code,
        .article-content a,
        .article-content span {
            display: inline;
        }

        /* 列表项保持列表样式 */
        .article-content li {
            display: list-item;
        }
        /* ==================== */
        /* 响应式修复 */
        /* ==================== */
        @media (max-width: 768px) {
        .article-container {
            padding: 1rem;
        }
        
        .article-title {
            font-size: 2rem;
        }
        
        .meta-grid {
            grid-template-columns: 1fr;
        }
        
        .content-text {
            /* 移除可能冲突的样式 */
            text-indent: 0 !important;
            
            /* 确保继承正确的字体和颜色 */
            font-family: inherit;
            color: inherit;
            line-height: inherit;
        }
        
        .content-text h1 {
            font-size: 1.6rem;
        }
        
        .content-text h2 {
            font-size: 1.4rem;
        }
        
        .content-text h3 {
            font-size: 1.2rem;
        }
        
        .article-actions {
            flex-direction: column;
        }
        article-content table {
            display: block !important;
            overflow-x: auto !important;
            white-space: nowrap !important;
        }
        
        .article-content th,
        .article-content td {
            white-space: nowrap !important;
            min-width: 120px !important;
        }
        }

        /* 强制显示所有表格相关元素 */
        .article-content table,
        .article-content thead,
        .article-content tbody,
        .article-content tfoot,
        .article-content tr,
        .article-content th,
        .article-content td {
            visibility: visible !important;
            opacity: 1 !important;
            height: auto !important;
            min-height: auto !important;
        }

        /* 表格内容对齐 */
        .article-content th[align="center"],
        .article-content td[align="center"] {
            text-align: center !important;
        }

        .article-content th[align="right"],
        .article-content td[align="right"] {
            text-align: right !important;
        }

        .article-content th[align="left"],
        .article-content td[align="left"] {
            text-align: left !important;
        }

        /* Markdown元素样式 - 添加到content-text类中 */
        .content-text h1, 
        .content-text h2, 
        .content-text h3, 
        .content-text h4, 
        .content-text h5, 
        .content-text h6 {
            margin: 1.5em 0 0.8em 0;
            color: #2c3e50;
            font-weight: 600;
            text-indent: 0 !important; /* 标题不需要缩进 */
            border-bottom: none !important; /* 移除可能冲突的下边框 */
        }

        .content-text h1 { 
            font-size: 1.8em; 
            border-bottom: 2px solid #ecf0f1;
            padding-bottom: 0.5em;
        }
        .content-text h2 { 
            font-size: 1.5em; 
            border-bottom: 1px solid #ecf0f1;
            padding-bottom: 0.3em;
        }
        .content-text h3 { font-size: 1.25em; }
        .content-text h4 { font-size: 1.1em; }
        .content-text h5 { font-size: 1em; }
        .content-text h6 { font-size: 0.9em; color: #7f8c8d; }

        /* 确保Markdown段落样式与现有样式协调 */
        .content-text p {
            display: block;
            margin: 1em 0;
            line-height: 1.6;
            color: #2c3e50;
            text-indent: 2em;
        }

        /* Markdown强调文本 */
        .content-text strong {
            font-weight: 700;
            color: #2c3e50;
            background: linear-gradient(135deg, #fff9e6 0%, #ffefd5 100%);
            padding: 2px 6px;
            border-radius: 4px;
            border-left: 3px solid #ff9900;
        }

        .content-text em {
            font-style: italic;
            color: #6c757d;
            background: #f8f9fa;
            padding: 0 2px;
        }

        .content-text del {
            text-decoration: line-through;
            color: #999;
            background: #fff5f5;
        }

        /* 代码块样式 */
        .content-text pre {
            background-color: #2d3748;
            border: 1px solid #4a5568;
            border-radius: 8px;
            padding: 1.2rem;
            overflow: auto;
            margin: 1.5em 0;
            color: #e2e8f0;
            font-family: 'Courier New', monospace;
            line-height: 1.4;
        }

        .content-text code {
            background-color: #f7fafc;
            padding: 2px 6px;
            border-radius: 4px;
            font-family: 'Courier New', monospace;
            color: #e53e3e;
            border: 1px solid #e2e8f0;
        }

        .content-text pre code {
            background: none;
            border: none;
            padding: 0;
            color: inherit;
            font-size: 0.9em;
        }

        /* 引用块样式 */
        .content-text blockquote {
            border-left: 4px solid #667eea;
            padding: 1rem 1.5rem;
            margin: 1.5em 0;
            background: #f8f9fa;
            border-radius: 0 8px 8px 0;
            font-style: italic;
            color: #4a5568;
        }

        .content-text blockquote p {
            margin: 0.5em 0;
            text-indent: 0;
        }

        /* 水平分割线 */
        .content-text hr {
            border: none;
            border-top: 2px solid #e2e8f0;
            margin: 2em 0;
            height: 1px;
        }

        /* 列表样式 */
        .content-text ul, 
        .content-text ol {
            margin: 1em 0;
            padding-left: 2.5em;
            text-indent: 0;
        }

        .content-text li {
            margin: 0.5em 0;
            line-height: 1.6;
            text-indent: 0;
        }

        .content-text ul li {
            list-style-type: disc;
        }

        .content-text ol li {
            list-style-type: decimal;
        }

        .content-text li p {
            text-indent: 0;
            margin: 0.3em 0;
        }

        /* 链接样式 */
        .content-text a {
            color: #667eea;
            text-decoration: none;
            border-bottom: 1px solid #c3dafe;
            transition: all 0.3s ease;
        }

        .content-text a:hover {
            color: #5a67d8;
            border-bottom-color: #667eea;
            background: #f0fff4;
        }

        /* 图片样式 */
        .content-text img {
            max-width: 100%;
            height: auto;
            border-radius: 8px;
            margin: 1.5em auto;
            display: block;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

        /* 表格样式增强 */
        .content-text table {
            width: 100%;
            border-collapse: collapse;
            margin: 1.5em 0;
            background: white;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            border-radius: 8px;
            overflow: hidden;
        }

        .content-text th {
            background: #34495e;
            color: white;
            padding: 12px 15px;
            font-weight: 600;
            text-align: left;
            border: 1px solid #2c3e50;
        }

        .content-text td {
            padding: 10px 15px;
            border: 1px solid #e2e8f0;
        }

        .content-text tr:nth-child(even) {
            background: #f8f9fa;
        }

        /* 动画效果 */
        .article-section {
        animation: fadeInUp 0.5s ease-out;
        }

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

        /* ==================== */
        /* 打印样式 */
        /* ==================== */

        @media print {
            .article-content {
                font-size: 12pt;
                line-height: 1.5;
                color: #000;
            }
            
            .article-content table {
                box-shadow: none;
                border: 1px solid #000;
            }
            
            .article-content th {
                background: #f0f0f0 !important;
                color: #000 !important;
            }
        }

/* ==================== */
/* Command Palette */
/* ==================== */
.command-trigger {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9500;
    border: 1px solid #ccd6e0;
    border-radius: 999px;
    background: #ffffff;
    color: #233142;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    box-shadow: 0 10px 24px rgba(20, 32, 53, 0.16);
    cursor: pointer;
}

.command-trigger:hover {
    transform: translateY(-1px);
}

.command-trigger kbd {
    font-size: 12px;
    line-height: 1;
    padding: 4px 6px;
    border: 1px solid #d7dee8;
    border-bottom-width: 2px;
    border-radius: 6px;
    background: #f6f8fb;
}

.command-palette {
    position: fixed;
    inset: 0;
    z-index: 9800;
    background: rgba(8, 15, 28, 0.45);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 10vh 16px 24px;
}

.command-panel {
    width: min(760px, 100%);
    max-height: 76vh;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid #d7dee8;
    background: #ffffff;
    box-shadow: 0 24px 40px rgba(15, 24, 42, 0.22);
}

.command-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid #eef2f7;
}

.command-header i {
    color: #4a69bd;
}

#command-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    color: #1d2a3a;
}

#command-close {
    border: none;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    color: #6a7a8a;
    cursor: pointer;
}

.command-section-title {
    font-size: 12px;
    letter-spacing: 0.04em;
    color: #738295;
    padding: 10px 16px 8px;
}

.command-results {
    list-style: none;
    margin: 0;
    padding: 0 8px 8px;
    max-height: 48vh;
    overflow: auto;
}

.command-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 10px;
    margin-bottom: 4px;
    border-radius: 10px;
    cursor: pointer;
    border: 1px solid transparent;
}

.command-item:hover,
.command-item.active {
    background: #f3f7ff;
    border-color: #d9e4ff;
}

.command-item .command-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.command-item .command-title {
    font-size: 14px;
    color: #1d2a3a;
    font-weight: 600;
}

.command-item .command-meta {
    font-size: 12px;
    color: #708194;
}

.command-item .command-shortcut {
    margin-left: auto;
    font-size: 12px;
    color: #5f7083;
    border: 1px solid #d5dee8;
    border-radius: 6px;
    padding: 2px 6px;
    background: #fff;
}

.command-empty {
    color: #728398;
    font-size: 13px;
    padding: 14px 10px;
}

.command-footer {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12px;
    color: #7b8a9a;
    padding: 10px 16px;
    border-top: 1px solid #eef2f7;
    background: #fafcff;
}

.command-footer kbd {
    font-size: 11px;
    padding: 1px 5px;
    border: 1px solid #d7dee8;
    border-bottom-width: 2px;
    border-radius: 5px;
    background: #fff;
}

@media (max-width: 768px) {
    .command-trigger {
        right: 14px;
        bottom: 14px;
    }

    .command-trigger span {
        display: none;
    }

    .command-palette {
        padding-top: 8vh;
    }

    .command-panel {
        max-height: 82vh;
    }
}
