/* 帖子运营工具 - PC端样式 */
.ls-post-boost-container {
    width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

.ls-boost-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.ls-boost-header h2 {
    font-size: 22px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ls-boost-header h2 i {
    color: #3b82f6;
}

.ls-boost-desc {
    color: #6b7280;
    font-size: 14px;
}

.ls-boost-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ls-boost-selected-count {
    font-size: 14px;
    color: #374151;
}

.ls-boost-selected-count strong {
    color: #3b82f6;
    font-size: 18px;
}

.ls-boost-card {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.ls-boost-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ls-boost-card-title i {
    color: #3b82f6;
    font-size: 18px;
}

.ls-boost-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 500;
    border-radius: 4px;
    margin-left: 8px;
}

.ls-boost-section {
    margin-bottom: 20px;
}

.ls-boost-section:last-child {
    margin-bottom: 0;
}

.ls-boost-subtitle {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 10px 0;
}

.ls-boost-form-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ls-boost-form-row label {
    font-size: 14px;
    color: #4b5563;
    min-width: 80px;
}

.ls-boost-input {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    width: 220px;
}

.ls-boost-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.ls-boost-input-small {
    width: 120px;
}

.ls-boost-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    resize: vertical;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.ls-boost-textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.ls-boost-btn {
    padding: 8px 18px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.ls-boost-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ls-boost-btn-primary {
    background: #3b82f6;
    color: #fff;
}

.ls-boost-btn-primary:hover:not(:disabled) {
    background: #2563eb;
}

.ls-boost-btn-success {
    background: #10b981;
    color: #fff;
}

.ls-boost-btn-success:hover:not(:disabled) {
    background: #059669;
}

.ls-boost-btn-ghost {
    background: #fff;
    color: #6b7280;
    border: 1px solid #d1d5db;
}

.ls-boost-btn-ghost:hover:not(:disabled) {
    background: #f9fafb;
    color: #374151;
}

.ls-boost-tip {
    margin: 8px 0 0 0;
    font-size: 12px;
    color: #6b7280;
    padding-left: 90px;
}

.ls-boost-tip-inline {
    font-size: 12px;
    color: #9ca3af;
}

/* ===== 帖子列表 ===== */
.ls-boost-post-list {
    margin-top: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
}

.ls-boost-list-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    font-size: 13px;
    color: #6b7280;
}

.ls-boost-checkbox-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
}

.ls-boost-checkbox-wrap input[type="checkbox"] {
    cursor: pointer;
}

.ls-boost-list-count {
    font-size: 13px;
}

.ls-boost-list-count span {
    color: #3b82f6;
    font-weight: 600;
}

.ls-boost-post-table {
    width: 100%;
}

.ls-boost-post-th,
.ls-boost-post-tr {
    display: grid;
    grid-template-columns: 40px 80px 1fr 80px 80px 80px 80px;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 13px;
}

.ls-boost-post-th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
}

.ls-boost-post-tr:last-child {
    border-bottom: none;
}

.ls-boost-post-tr:hover {
    background: #f9fafb;
}

.ls-boost-post-tr.selected-row {
    background: #eff6ff;
}

.ls-boost-post-tr .col-check {
    text-align: center;
}

.ls-boost-post-tr .col-check input[type="checkbox"] {
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.ls-boost-post-tr .col-id {
    color: #6b7280;
    font-family: monospace;
}

.ls-boost-post-tr .col-title {
    color: #1f2937;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 10px;
}

.ls-boost-post-tr .col-num {
    text-align: center;
    color: #3b82f6;
    font-weight: 600;
}

/* ===== 进度条 ===== */
.ls-boost-progress {
    margin-top: 20px;
    padding: 16px;
    background: #f0fdf4;
    border-radius: 6px;
    border: 1px solid #bbf7d0;
}

.ls-boost-progress-bar {
    width: 100%;
    height: 8px;
    background: #dcfce7;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.ls-boost-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #10b981);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.ls-boost-progress-text {
    font-size: 13px;
    color: #166534;
    text-align: center;
}

/* ===== 用户列表 ===== */
.ls-boost-user-list {
    max-height: 180px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 10px;
    margin: 10px 0;
    background: #fafafa;
}

.ls-boost-empty {
    text-align: center;
    color: #9ca3af;
    font-size: 13px;
    padding: 20px 0;
    margin: 0;
}

.ls-boost-user-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    margin: 4px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
}

.ls-boost-user-item:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.ls-boost-user-item.selected {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #fff;
}

.ls-boost-user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
}

.ls-boost-user-item.selected .ls-boost-user-avatar {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.ls-boost-user-name {
    flex: 1;
}

.ls-boost-user-id {
    font-size: 11px;
    opacity: 0.7;
}

.ls-boost-selected {
    margin-top: 10px;
    padding: 10px;
    background: #eff6ff;
    border-radius: 6px;
    font-size: 13px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.ls-boost-selected .label {
    color: #1e40af;
    font-weight: 500;
    flex-shrink: 0;
}

.ls-boost-selected .empty {
    color: #6b7280;
}

.ls-boost-tag {
    display: inline-block;
    padding: 2px 8px;
    background: #fff;
    border: 1px solid #93c5fd;
    border-radius: 4px;
    margin: 2px;
    font-size: 12px;
    color: #1e40af;
}

.ls-boost-tag .remove {
    margin-left: 4px;
    cursor: pointer;
    color: #94a3b8;
    font-weight: bold;
}

.ls-boost-tag .remove:hover {
    color: #ef4444;
}

/* ===== 结果区 ===== */
.ls-boost-results {
    margin-top: 16px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    max-height: 400px;
    overflow-y: auto;
}

.ls-boost-result-post {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.ls-boost-result-post:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.ls-boost-result-post-title {
    font-weight: 600;
    font-size: 13px;
    color: #374151;
    margin-bottom: 6px;
}

.ls-boost-result-item {
    padding: 4px 0;
    font-size: 13px;
}

.ls-boost-result-item.success {
    color: #059669;
}

.ls-boost-result-item.error {
    color: #dc2626;
}

.hidden {
    display: none;
}

/* v2.0 新增:状态网格 / 日志列表 / 目标范围 */
.ls-boost-stat-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:12px;margin:14px 0;}
.ls-boost-stat-item{background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;padding:12px;text-align:center;}
.ls-boost-stat-label{font-size:12px;color:#64748b;margin-bottom:6px;}
.ls-boost-stat-value{font-size:20px;font-weight:600;color:#0f172a;}
.ls-boost-log-list{margin-top:10px;}
.ls-boost-log-item{border:1px solid #e2e8f0;border-radius:8px;margin-bottom:8px;padding:10px 12px;background:#fafafa;}
.ls-boost-log-head{display:flex;justify-content:space-between;margin-bottom:6px;}
.ls-boost-log-type{font-size:12px;background:#eef2ff;color:#4338ca;border-radius:6px;padding:2px 8px;}
.ls-boost-log-time{font-size:12px;color:#94a3b8;}
.ls-boost-log-detail{margin:0;font-size:12px;color:#334155;white-space:pre-wrap;word-break:break-all;max-height:220px;overflow:auto;}
.ls-boost-tg{font-size:11px;color:#94a3b8;margin-left:4px;}
@media (max-width:1100px){.ls-boost-stat-grid{grid-template-columns:repeat(3,1fr);}}

/* 发布任务表格 */
.ls-boost-pub-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 13px; }
.ls-boost-pub-table th, .ls-boost-pub-table td { border: 1px solid rgba(100,116,139,.18); padding: 6px 8px; text-align: left; vertical-align: middle; }
.ls-boost-pub-table th { background: rgba(100,116,139,.08); font-weight: 600; white-space: nowrap; }
.ls-boost-pub-table tr:nth-child(even) td { background: rgba(148,163,184,.05); }
.ls-boost-pub-table a { color: var(--adminx-primary, #2563eb); }
.ls-boost-pub-table select { max-width: 112px; padding: 2px 4px; font-size: 12px; }
.ls-boost-st { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; }
.ls-boost-st.st-ok { color: #16a34a; background: rgba(22,163,74,.12); }
.ls-boost-st.st-fail { color: #dc2626; background: rgba(220,38,38,.12); }
.ls-boost-st.st-wait { color: #d97706; background: rgba(217,119,6,.14); }
/* 顶部导航栏 */
.ls-boost-tabs { display: flex; gap: 0; border-bottom: 1px solid rgba(100,116,139,.2); margin-bottom: 12px; flex-wrap: wrap; }
.ls-boost-tab { padding: 9px 18px; cursor: pointer; border: 1px solid transparent; border-bottom: none; border-radius: 8px 8px 0 0; color: #475569; font-weight: 600; background: transparent; user-select: none; }
.ls-boost-tab:hover { color: #2563eb; background: rgba(37,99,235,.06); }
.ls-boost-tab-on { color: #2563eb; background: #fff; border-color: rgba(100,116,139,.2); border-bottom-color: #fff; margin-bottom: -1px; }
