/* ========== 文章管理特有样式 ========== */  

/* 阅读型文章库：正文摘要用于识别文章，操作区保持稳定。 */
#article-manager-view .content-grid {
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 20px;
    padding: 24px 24px var(--content-bottom-padding);
}

#article-manager-view .content-card {
    min-height: 300px;
    border-color: #dbe3ef;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    cursor: default;
}

#article-manager-view .content-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

#article-manager-view .card-content {
    flex: 1;
    gap: 12px;
    padding: 20px 20px 16px;
}

#article-manager-view .card-title {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: #172033;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.45;
    white-space: normal;
    letter-spacing: 0;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

#article-manager-view .card-excerpt {
    display: -webkit-box;
    min-height: 98px;
    overflow: hidden;
    margin: 0;
    color: #536174;
    font-size: 14px;
    line-height: 1.75;
    letter-spacing: 0;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

#article-manager-view .card-meta {
    gap: 8px;
    margin-top: auto;
    color: #6b778a;
    font-size: 13px;
}

#article-manager-view .format-badge,
#article-manager-view .status-badge,
#article-manager-view .time-info {
    font-size: 12px;
}

#article-manager-view .card-actions {
    min-height: 52px;
    padding: 6px 12px;
}

#article-manager-view .card-actions .btn-icon {
    min-width: 40px;
    min-height: 40px;
}

#article-manager-view .card-actions .btn-icon:focus-visible,
#article-manager-view .view-btn:focus-visible,
#article-manager-view .tree-item:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

#article-manager-view .content-grid.list-view {
    grid-template-columns: minmax(0, 1fr);
}

#article-manager-view .content-grid.list-view .content-card {
    min-height: 118px;
    height: auto;
}

#article-manager-view .content-grid.list-view .card-content {
    padding: 16px 20px;
}

#article-manager-view .content-grid.list-view .card-title {
    font-size: 16px;
    -webkit-line-clamp: 1;
}

#article-manager-view .content-grid.list-view .card-excerpt {
    min-height: 0;
    font-size: 13px;
    line-height: 1.6;
    -webkit-line-clamp: 1;
}

#article-manager-view .content-grid.list-view .card-meta {
    font-size: 12px;
}

@media (max-width: 800px) {
    #article-manager-view .manager-sidebar {
        min-height: 0;
        padding: 12px 16px;
    }

    #article-manager-view .sidebar-header {
        margin-bottom: 10px;
        padding-bottom: 8px;
    }

    #article-manager-view .manager-toolbar {
        padding: 12px 16px;
    }

    #article-manager-view .toolbar-actions {
        width: 100%;
        justify-content: space-between;
    }

    #article-manager-view .content-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
        padding: 16px 16px var(--content-bottom-padding);
    }

    #article-manager-view .content-card {
        min-height: 280px;
    }

    #article-manager-view .card-content {
        padding: 18px 18px 14px;
    }
}
    
/* 隐藏原生复选框 */  
.article-card .batch-checkbox {  
    position: absolute;  
    opacity: 0;  
    width: 0;  
    height: 0;  
    pointer-events: none;  
}   
  
/* 复选框包装器 */  
.article-card .checkbox-wrapper {  
    position: absolute;  
    top: 12px;  
    right: 12px;  
    z-index: 10;  
    display: none;  
    cursor: pointer;  
    width: 18px; 
    height: 18px; 
    box-sizing: border-box;
} 
  
/* 批量模式下显示 */  
.article-card.batch-mode .checkbox-wrapper {  
    display: block;  
}   
  
/* 自定义复选框样式 */  
.article-card .checkbox-custom {  
    display: inline-block; 
    width: 18px;  
    height: 18px;  
    border: 2px solid var(--border-color);  
    border-radius: 4px;  
    position: relative;  
    transition: all 0.2s ease;  
    background: var(--background-color);  
    cursor: pointer;  
    box-sizing: border-box;  
}
  
/* 选中状态 */  
.article-card .batch-checkbox:checked + .checkbox-custom {  
    background: var(--primary-color);  
    border-color: var(--primary-color);  
}  
  
/* 对号图标 - 使用✓字符 */  
.article-card .batch-checkbox:checked + .checkbox-custom::after {  
    content: '✓';  
    position: absolute;  
    top: -2px;  
    left: 2px;  
    color: white;  
    font-size: 14px;  
    font-weight: bold;  
}
  
/* ========== 批量操作按钮组 ========== */  
  
.batch-actions-group {  
    display: flex;  
    align-items: center;  
    gap: 8px;  
    position: relative;  
}  
  
.batch-sub-actions {  
    display: flex;  
    gap: 8px;  
    animation: slideIn 0.2s ease-out;  
}  
  
@keyframes slideIn {  
    from {  
        opacity: 0;  
        transform: translateX(-10px);  
    }  
    to {  
        opacity: 1;  
        transform: translateX(0);  
    }  
}  
  
.batch-count {  
    font-size: 12px;  
    color: var(--text-tertiary);  
    margin-left: 4px;  
}  

/* 文件格式徽章 */  
.format-badge {  
    padding: 2px 8px;  
    background: var(--primary-color);  
    color: white;  
    border-radius: 4px;  
    font-size: 11px;  
    line-height: 1.4;  
    font-weight: 500;  
    display: inline-block;  
    max-width: 120px;  
    overflow: hidden;  
    text-overflow: ellipsis;  
    white-space: nowrap;  
    vertical-align: middle;  
}  
  
/* 发布状态徽章 */  
.status-badge {  
    padding: 2px 8px;  
    border-radius: 4px;  
    font-size: 11px;  
    line-height: 1.4;  
    font-weight: 500;  
    display: inline-block;  
    cursor: help;  
    max-width: 120px;  
    overflow: hidden;  
    text-overflow: ellipsis;  
    white-space: nowrap;  
    vertical-align: middle;  
}  
  
.status-badge.published {  
    background: #10b981;  
    color: white;  
}  
  
.status-badge.failed {  
    background: #ef4444;  
    color: white;  
}  
  
.status-badge.unpublished {  
    background: var(--border-color);  
    color: var(--text-secondary);  
}  
  
/* ========== 发布对话框样式 ========== */  
.publish-modal {  
    width: 560px;  
    max-width: 90vw;  
}  
  
.form-group {  
    margin-bottom: 20px;  
}  
  
.form-group label {  
    display: block;  
    margin-bottom: 8px;  
    font-weight: 500;  
    color: var(--text-primary);  
}  
  
.required {  
    color: var(--danger-color);  
    margin-left: 2px;  
}  
  
.account-count {  
    font-size: 12px;  
    color: var(--text-tertiary);  
    font-weight: normal;  
    margin-left: 4px;  
}  
  
/* 快捷操作 */  
.account-quick-actions {  
    display: flex;  
    align-items: center;  
    gap: 8px;  
    margin-bottom: 8px;  
    padding: 6px 12px;  
    background: var(--background-color);  
    border-radius: 6px;  
}  
  
.btn-link {  
    background: none;  
    border: none;  
    color: var(--primary-color);  
    cursor: pointer;  
    font-size: 13px;  
    padding: 0;  
    transition: opacity 0.2s;  
}  
  
.btn-link:hover {  
    opacity: 0.8;  
    text-decoration: underline;  
}  
  
.divider {  
    color: var(--border-color);  
}  
  
/* 账号列表 - 新设计:点击选择 */  
.account-checkbox-list {  
    max-height: 280px;  
    overflow-y: auto;  
    border: 1px solid var(--border-color);  
    border-radius: 6px;  
    padding: 0;  /* 移除内边距 */  
}  
  
/* 自定义滚动条样式 */  
.account-checkbox-list::-webkit-scrollbar {  
    width: 6px;  
}  
  
.account-checkbox-list::-webkit-scrollbar-track {  
    background: var(--background-color);  
}  
  
.account-checkbox-list::-webkit-scrollbar-thumb {  
    background: var(--border-color);  
    border-radius: 3px;  
}  
  
.account-checkbox-list::-webkit-scrollbar-thumb:hover {  
    background: var(--secondary-color);  
}  
  
/* 账号项 - 可点击选择 */  
.account-item {  
    display: flex;  
    align-items: center;  
    padding: 8px 12px;  
    cursor: pointer;  
    transition: background 0.2s;  
    border-bottom: 1px solid var(--border-color);  
    position: relative;  
}  
  
.account-item:last-child {  
    border-bottom: none;  
}  
  
.account-item:hover {  
    background: var(--hover-color);  
}  
  
/* 选中状态 */  
.account-item.selected {  
    background: rgba(37, 99, 235, 0.08);  
}  
  
/* 左侧高亮线 */  
.account-item::before {  
    content: '';  
    position: absolute;  
    left: 0;  
    top: 0;  
    bottom: 0;  
    width: 3px;  
    background: transparent;  
    transition: background 0.2s;  
}  
  
.account-item.selected::before {  
    background: var(--primary-color);  
}  
  
/* 账号信息 - 单行显示 */  
.account-info {  
    flex: 1;  
    display: flex;  
    align-items: center;  
    gap: 12px;  
    min-width: 0;  
    padding-left: 8px;  
}  
  
.account-name {  
    font-size: 14px;  
    font-weight: 500;  
    color: var(--text-primary);  
    white-space: nowrap;  
    overflow: hidden;  
    text-overflow: ellipsis;  
    flex-shrink: 1;  
    min-width: 80px;  
}  
  
.account-detail {  
    font-size: 12px;  
    color: var(--text-tertiary);  
    white-space: nowrap;  
    flex-shrink: 0;  
}  
  
/* 选中指示器(右侧勾选图标) */  
.account-item .check-icon {  
    width: 16px;  
    height: 16px;  
    margin-left: auto;  
    opacity: 0;  
    transition: opacity 0.2s;  
    color: var(--primary-color);  
}  
  
.account-item.selected .check-icon {  
    opacity: 1;  
}  
  
/* 无账号提示 */  
.no-accounts-tip {  
    text-align: center;  
    padding: 40px 20px;  
    color: var(--text-tertiary);  
}  
  
.no-accounts-tip svg {  
    margin-bottom: 16px;  
    opacity: 0.5;  
}  
  
.no-accounts-tip p {  
    margin: 0 0 16px 0;  
    font-size: 14px;  
}  
  
/* 表单控件 */  
.form-control {  
    width: 100%;  
    padding: 10px 12px;  
    border: 1px solid var(--border-color);  
    border-radius: 6px;  
    background: var(--background-color);  
    color: var(--text-primary);  
    font-size: 14px;  
    transition: border-color 0.2s;  
}  
  
.form-control:focus {  
    outline: none;  
    border-color: var(--primary-color);  
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);  
}  
  
.form-control:disabled {  
    background: var(--surface-color);  
    cursor: not-allowed;  
    opacity: 0.6;  
}  
  
/* 按钮禁用状态 */  
.btn-primary:disabled {  
    opacity: 0.5;  
    cursor: not-allowed;  
    background: var(--border-color);  
}  

/* 进度对话框 */  
.publish-progress-modal {  
    width: 480px;  
    max-width: 90vw;  
}  
  
.progress-info {  
    text-align: center;  
    margin-bottom: 24px;  
}  
  
.progress-info p {  
    margin: 8px 0;  
    color: var(--text-primary);  
}  
  
.progress-detail {  
    font-size: 13px;  
    color: var(--text-tertiary);  
}  
  
.progress-bar-container {  
    width: 100%;  
    height: 8px;  
    background: var(--surface-color);  
    border-radius: 4px;  
    overflow: hidden;  
    margin-bottom: 16px;  
}  
  
.progress-bar {  
    height: 100%;  
    background: var(--primary-color);  
    transition: width 0.3s ease;  
    width: 0%;  
}  
  
.progress-status {  
    text-align: center;  
    margin-bottom: 16px;  
    font-size: 14px;  
    color: var(--text-secondary);  
}  
  
.progress-spinner {  
    display: flex;  
    justify-content: center;  
}  
  
.spinner {  
    width: 40px;  
    height: 40px;  
    animation: rotate 2s linear infinite;  
}  
  
.spinner circle {  
    stroke: var(--primary-color);  
    stroke-linecap: round;  
    animation: dash 1.5s ease-in-out infinite;  
}  
  
@keyframes rotate {  
    100% { transform: rotate(360deg); }  
}  
  
@keyframes dash {  
    0% { stroke-dasharray: 1, 150; stroke-dashoffset: 0; }  
    50% { stroke-dasharray: 90, 150; stroke-dashoffset: -35; }  
    100% { stroke-dasharray: 90, 150; stroke-dashoffset: -124; }  
}  
  
/* 发布结果对话框 */  
.publish-result-modal {  
    width: 560px;  
    max-width: 90vw;  
}  
  
.result-summary {  
    padding: 24px;  
    border-radius: 8px;  
    margin-bottom: 20px;  
    text-align: center;  
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(37, 99, 235, 0.1) 100%);  
    border: 1px solid var(--primary-color);  
}  
  
.result-summary.success {  
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(16, 185, 129, 0.1) 100%);  
    border: 1px solid #10b981;  
}  
  
.result-summary.warning {  
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, rgba(245, 158, 11, 0.1) 100%);  
    border: 1px solid #f59e0b;  
}  
  
.result-summary.error {  
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.05) 0%, rgba(239, 68, 68, 0.1) 100%);  
    border: 1px solid #ef4444;  
}  
  
.result-summary h4 {  
    margin: 0 0 16px 0;  
    font-size: 20px;  
    font-weight: 600;  
    color: var(--text-primary);  
}  
  
.result-stats {  
    display: flex;  
    justify-content: center;  
    gap: 32px;  
    margin-top: 16px;  
}  
  
.stat-item {  
    display: flex;  
    flex-direction: column;  
    align-items: center;  
}  
  
.stat-number {  
    font-size: 32px;  
    font-weight: 700;  
    line-height: 1;  
    margin-bottom: 4px;  
}  
  
.stat-number.success {  
    color: #10b981;  
}  
  
.stat-number.failed {  
    color: #ef4444;  
}  
  
.stat-label {  
    font-size: 13px;  
    color: var(--text-tertiary);  
}  
  
/* 错误详情区域 */  
.error-details-section {  
    margin-top: 20px;  
}  
  
.error-details-header {  
    display: flex;  
    align-items: center;  
    justify-content: space-between;  
    margin-bottom: 12px;  
    padding: 0 4px;  
}  
  
.error-details-title {  
    font-size: 14px;  
    font-weight: 500;  
    color: var(--text-primary);  
}  
  
.error-list {  
    max-height: 200px;  
    overflow-y: auto;  
    background: var(--surface-color);  
    border: 1px solid var(--border-color);  
    border-radius: 6px;  
    padding: 8px;  
}  
  
.error-item {  
    padding: 10px 12px;  
    margin-bottom: 6px;  
    background: var(--background-color);  
    border-left: 3px solid #ef4444;  
    border-radius: 4px;  
    font-size: 13px;  
    line-height: 1.5;  
    color: var(--text-secondary);  
}  
  
.error-item:last-child {  
    margin-bottom: 0;  
} 

/* 警告项样式 */  
.warning-item {  
    padding: 10px 12px;  
    margin-bottom: 6px;  
    background: var(--background-color);  
    border-left: 3px solid #f59e0b;
    border-radius: 4px;  
    font-size: 13px;  
    line-height: 1.5;  
    color: var(--text-secondary);  
}  
  
.warning-item:last-child {  
    margin-bottom: 0;  
}  
  
/* 警告详情区域 */  
.warning-details {  
    margin-top: 20px;  
}  
  
.warning-list {  
    max-height: 200px;  
    overflow-y: auto;  
    background: var(--surface-color);  
    border: 1px solid var(--border-color);  
    border-radius: 6px;  
    padding: 8px;  
}  
  
.warning-item {  
    padding: 10px 12px;  
    margin-bottom: 6px;  
    background: var(--background-color);  
    border-left: 3px solid #f59e0b;  /* 橙色 */  
    border-radius: 4px;  
    font-size: 13px;  
    line-height: 1.5;  
    color: var(--text-secondary);  
}  
  
.warning-item:last-child {  
    margin-bottom: 0;  
}

/* 发布历史对话框 */  
.publish-history-modal {  
    width: 600px;  
    max-width: 90vw;  
}  
  
.article-info {  
    display: flex;  
    align-items: center;  
    gap: 8px;  
    padding: 12px 16px;  
    background: var(--background-color);  
    border-radius: 6px;  
    margin-bottom: 20px;  
}  
  
.article-info svg {  
    flex-shrink: 0;  
    stroke: var(--primary-color);  
}  
  
.article-title {  
    font-weight: 500;  
    color: var(--text-primary);  
    overflow: hidden;  
    text-overflow: ellipsis;  
    white-space: nowrap;  
}  
  
/* 空状态 */  
.empty-state {  
    text-align: center;  
    padding: 60px 20px;  
    color: var(--text-tertiary);  
}  
  
.empty-state svg {  
    margin-bottom: 16px;  
    opacity: 0.5;  
    stroke: var(--text-tertiary);  
}  
  
.empty-state p {  
    margin: 0;  
    font-size: 14px;  
}  
  
/* 时间线样式 */  
.history-timeline {  
    max-height: 400px;  
    overflow-y: auto;  
    padding: 0 8px;  
}  
  
.history-item {  
    position: relative;  
    display: flex;  
    gap: 16px;  
    padding-bottom: 24px;  
}  
  
.history-item:last-child {  
    padding-bottom: 0;  
}  
  
/* 图标 */  
.history-icon {  
    flex-shrink: 0;  
    width: 40px;  
    height: 40px;  
    border-radius: 50%;  
    display: flex;  
    align-items: center;  
    justify-content: center;  
    position: relative;  
    z-index: 2;  
}  
  
.history-item.success .history-icon {  
    background: rgba(16, 185, 129, 0.1);  
}  
  
.history-item.success .history-icon svg {  
    stroke: #10b981;  
}  
  
.history-item.failed .history-icon {  
    background: rgba(239, 68, 68, 0.1);  
}  
  
.history-item.failed .history-icon svg {  
    stroke: #ef4444;  
}  
  
/* 连接线 */  
.history-line {  
    position: absolute;  
    left: 10px;  
    top: 40px;  
    bottom: 0;  
    width: 2px;  
    background: var(--border-color);  
    z-index: 1;  
}  
  
/* 内容区域 */  
.history-content {  
    flex: 1;  
    min-width: 0;  
}  
  
.history-header {  
    display: flex;  
    align-items: center;  
    gap: 12px;  
    margin-bottom: 4px;  
}  
  
.history-account {  
    font-weight: 500;  
    color: var(--text-primary);  
    font-size: 14px;  
}  
  
.history-appid {  
    font-size: 12px;  
    color: var(--text-tertiary);  
    padding: 2px 8px;  
    background: var(--background-color);  
    border-radius: 4px;  
}  
  
.history-time {  
    font-size: 12px;  
    color: var(--text-secondary);  
    margin-bottom: 8px;  
}  
  
/* 错误信息 */  
.history-error {  
    display: flex;  
    align-items: flex-start;  
    gap: 6px;  
    padding: 8px 12px;  
    background: rgba(239, 68, 68, 0.05);  
    border-left: 3px solid #ef4444;  
    border-radius: 4px;  
    margin-top: 8px;  
}  
  
.history-error svg {  
    flex-shrink: 0;  
    margin-top: 2px;  
    stroke: #ef4444;  
}  
  
.history-error span {  
    font-size: 12px;  
    color: #ef4444;  
    line-height: 1.5;  
    word-break: break-word;  
}  
  
/* 滚动条样式 */  
.history-timeline::-webkit-scrollbar {  
    width: 6px;  
}  
  
.history-timeline::-webkit-scrollbar-track {  
    background: var(--background-color);  
}  
  
.history-timeline::-webkit-scrollbar-thumb {  
    background: var(--border-color);  
    border-radius: 3px;  
}  
  
.history-timeline::-webkit-scrollbar-thumb:hover {  
    background: var(--secondary-color);  
}  

/* 警告信息 */  
.history-warning {  
    display: flex;  
    align-items: flex-start;  
    gap: 6px;  
    padding: 8px 12px;  
    background: rgba(245, 158, 11, 0.05);  
    border-left: 3px solid #f59e0b;  
    border-radius: 4px;  
    margin-top: 8px;  
}  
  
.history-warning svg {  
    flex-shrink: 0;  
    margin-top: 2px;  
    stroke: #f59e0b;  
}  
  
.history-warning span {  
    font-size: 12px;  
    color: #f59e0b;  
    line-height: 1.5;  
    word-break: break-word;  
}

/* ========== 响应式设计 ========== */  

.article-visual-dialog {
    padding: 20px;
}

.article-visual-workbench {
    width: min(1480px, 100%);
    height: min(900px, calc(100vh - 40px));
    margin: auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--background-color, #f5f7fa);
    border: 1px solid var(--border-color, #dfe5ec);
    border-radius: 8px;
    box-shadow: 0 18px 50px rgba(31, 41, 55, 0.18);
}

.article-visual-header {
    min-height: 72px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: var(--surface-color, #fff);
    border-bottom: 1px solid var(--border-color, #e5e9ef);
}

.article-visual-header h2,
.article-visual-header p,
.article-visual-section h3,
.article-visual-section p {
    margin: 0;
}

.article-visual-header h2 {
    font-size: 18px;
    line-height: 1.4;
}

.article-visual-title,
.article-visual-section p,
.article-visual-save-state {
    color: var(--text-secondary, #667085);
    font-size: 13px;
}

.article-visual-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.article-visual-body {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
}

.article-visual-body[data-visual-state="loading"] {
    pointer-events: none;
}

.article-visual-preview-pane {
    min-width: 0;
    overflow: auto;
    padding: 28px;
}

.article-visual-preview {
    width: min(780px, 100%);
    min-height: 100%;
    margin: 0 auto;
    padding: 48px clamp(24px, 7%, 64px);
    background: #fff;
    border: 1px solid #e1e6ec;
    border-radius: 6px;
    color: #202938;
    box-shadow: 0 4px 18px rgba(31, 41, 55, 0.06);
}

.article-visual-preview[data-layout="editorial"] {
    border-top: 5px solid #2563eb;
}

.article-visual-preview[data-layout="compact"] {
    max-width: 900px;
    padding-top: 32px;
    padding-bottom: 32px;
}

.article-visual-preview h1 {
    margin: 0 0 28px;
    font-size: 30px;
    line-height: 1.35;
    letter-spacing: 0;
}

.article-visual-preview p {
    margin: 0 0 1.15em;
    font-size: 16px;
    line-height: 1.85;
    white-space: pre-wrap;
}

.article-visual-figure {
    margin: 22px 0;
}

.article-visual-figure:first-child {
    margin-top: 0;
}

.article-visual-figure img {
    display: block;
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: 6px;
}

.article-visual-preview[data-layout="compact"] p {
    line-height: 1.65;
}

.article-visual-settings {
    overflow: auto;
    padding: 18px;
    background: var(--surface-color, #fff);
    border-left: 1px solid var(--border-color, #e5e9ef);
}

.article-visual-section {
    padding: 18px 0;
    border-bottom: 1px solid var(--border-color, #e7ebf0);
}

.article-visual-section:first-child {
    padding-top: 0;
}

.article-visual-section h3 {
    font-size: 15px;
    line-height: 1.5;
}

.article-layout-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.article-layout-options button {
    min-height: 58px;
    padding: 8px 6px;
    border: 1px solid var(--border-color, #d9e0e8);
    border-radius: 6px;
    background: var(--surface-color, #fff);
    color: var(--text-primary, #273244);
    font-size: 12px;
    cursor: pointer;
}

.article-layout-options button.active {
    border-color: #2563eb;
    background: #eff6ff;
    color: #1d4ed8;
    box-shadow: inset 0 0 0 1px #2563eb;
}

.article-visual-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.visual-switch {
    position: relative;
    width: 42px;
    height: 24px;
    flex: 0 0 auto;
}

.visual-switch input {
    position: absolute;
    opacity: 0;
}

.visual-switch > span[aria-hidden] {
    display: block;
    width: 42px;
    height: 24px;
    border-radius: 12px;
    background: #cbd5e1;
    cursor: pointer;
}

.visual-switch > span[aria-hidden]::after {
    content: "";
    display: block;
    width: 18px;
    height: 18px;
    margin: 3px;
    border-radius: 50%;
    background: #fff;
    transition: transform 160ms ease;
}

.visual-switch input:checked + span {
    background: #2563eb;
}

.visual-switch input:checked + span::after {
    transform: translateX(18px);
}

.visual-switch input:disabled + span {
    cursor: not-allowed;
    opacity: 0.55;
}

.article-image-model-required {
    margin-top: 14px;
    padding: 14px;
    border: 1px solid #f2c879;
    border-radius: 6px;
    background: #fffaf0;
}

.article-image-model-required strong {
    display: block;
    margin-bottom: 5px;
    color: #8a5700;
    font-size: 14px;
}

.article-density-options {
    margin: 16px 0 12px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    border: 0;
}

.article-density-options legend {
    grid-column: 1 / -1;
    margin-bottom: 3px;
    font-size: 13px;
    font-weight: 600;
}

.article-density-options label {
    min-height: 40px;
    padding: 9px 10px;
    display: flex;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--border-color, #dfe5ec);
    border-radius: 5px;
    font-size: 13px;
}

.article-plan-button {
    width: 100%;
}

.article-illustration-plan {
    margin-top: 10px;
    color: var(--text-secondary, #667085);
    font-size: 13px;
}

.article-illustration-slot {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color, #e7ebf0);
}

.article-illustration-slot img {
    width: 100%;
    margin-top: 8px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 5px;
}

.article-visual-mobile-tabs {
    display: none;
}

.article-visual-error,
.article-visual-loading {
    min-height: 240px;
    display: grid;
    place-items: center;
    color: #667085;
}

@media (max-width: 700px) {
    .article-visual-dialog {
        padding: 0;
    }

    .article-visual-workbench {
        width: 100%;
        height: 100dvh;
        border: 0;
        border-radius: 0;
    }

    .article-visual-header {
        min-height: 64px;
        padding: 10px 12px;
    }

    .article-visual-header .article-visual-title,
    .article-visual-save-state {
        display: none;
    }

    .article-visual-actions .btn {
        min-height: 40px;
        padding: 8px 10px;
    }

    .article-visual-mobile-tabs {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        background: #fff;
        border-bottom: 1px solid #e5e9ef;
    }

    .article-visual-mobile-tabs button {
        min-height: 44px;
        border: 0;
        border-bottom: 2px solid transparent;
        background: transparent;
    }

    .article-visual-mobile-tabs button.active {
        color: #2563eb;
        border-bottom-color: #2563eb;
    }

    .article-visual-body {
        display: block;
        overflow: hidden;
    }

    .article-visual-preview-pane,
    .article-visual-settings {
        height: 100%;
        padding: 14px;
        overflow: auto;
        border: 0;
    }

    .article-visual-settings {
        display: none;
    }

    .article-visual-dialog[data-mobile-panel="settings"] .article-visual-preview-pane {
        display: none;
    }

    .article-visual-dialog[data-mobile-panel="settings"] .article-visual-settings {
        display: block;
    }

    .article-visual-preview {
        padding: 28px 20px;
    }

    .article-visual-preview h1 {
        font-size: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .visual-switch > span[aria-hidden]::after {
        transition: none;
    }
}
  
/* 徽章宽度调整 */  
@media (min-width: 1400px) and (max-width: 1920px) {  
    .format-badge,  
    .status-badge {  
        max-width: 140px;  
    }  
}  
  
@media (min-width: 1920px) and (max-width: 2560px) {  
    .format-badge,  
    .status-badge {  
        max-width: 160px;  
    }  
      
    .content-grid.list-view .format-badge,  
    .content-grid.list-view .status-badge {  
        max-width: 200px;  
    }  
}  
  
@media (min-width: 2560px) {  
    .format-badge,  
    .status-badge {  
        max-width: 180px;  
    }  
      
    .content-grid.list-view .format-badge,  
    .content-grid.list-view .status-badge {  
        max-width: 250px;  
    }  
}  
  
/* 发布对话框响应式 */  
@media (max-width: 600px) {  
    .publish-modal {  
        width: 95vw;  
    }  
      
    .account-quick-actions {  
        flex-wrap: wrap;  
    }  
      
    .account-checkbox-list {  
        max-height: 220px;  
    }  
      
    .account-item {  
        padding: 6px 10px;  
    }  
      
    .account-name {  
        max-width: 100px;  
    }  
      
    .account-detail {  
        font-size: 11px;  
    } 
    
    .publish-history-modal {  
        width: 95vw;  
    }  
      
    .history-timeline {  
        max-height: 300px;  
    }  
      
    .history-header {  
        flex-direction: column;  
        align-items: flex-start;  
        gap: 4px;  
    } 
}
.article-workspace-header {
    flex: 0 0 auto;
    margin: 0 20px;
    padding: 18px 0;
}

@media (max-width: 640px) {
    .article-workspace-header {
        margin: 0 14px;
        padding-top: 16px;
    }
}
