/* ========== 文章管理特有样式 ========== */  
    
/* 隐藏原生复选框 */  
.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;  
}

/* ========== 响应式设计 ========== */  
  
/* 徽章宽度调整 */  
@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;  
    } 
}