/* ===== 容器 - 占满父容器宽度，由父容器控制内边距 ===== */
.pv-container {
    width: 100%;
    font-size: 14px;
    color: #1e293b;
}

/* ===== 统计栏 ===== */
.pv-stats {
    background: #f8fafc;
    border-radius: 12px;
    padding: 10px 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    margin-bottom: 18px;
    border: 1px solid #e9edf2;
    font-size: 14px;
}
.pv-stats strong {
    color: #2563eb;
    font-size: 17px;
}

/* ===== 表格 ===== */
.pv-table-wrap {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid #e9edf2;
}
.pv-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 620px;
    font-size: 14px;
}
.pv-table thead {
    background: #f8fafc;
    border-bottom: 2px solid #e9edf2;
}
.pv-table thead th {
    text-align: left;
    padding: 10px 10px 8px 10px;
    font-weight: 600;
    color: #475569;
    font-size: 13px;
}
.pv-table tbody tr {
    border-bottom: 1px solid #f1f4f9;
}
.pv-table tbody tr:last-child {
    border-bottom: none;
}
.pv-table tbody tr:hover {
    background: #fafcff;
}
.pv-table td {
    padding: 8px 10px;
    vertical-align: middle;
}

/* ===== 状态圆点 ===== */
.pv-dot {
    display: inline-block;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #cbd5e1;
    flex-shrink: 0;
}
.pv-dot.idle {
    background: #cbd5e1;
}
.pv-dot.running {
    background: #22c55e;
    animation: pv-pulse 1.2s infinite;
}
.pv-dot.done {
    background: #3b82f6;
}
.pv-dot.error {
    background: #ef4444;
}
@keyframes pv-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    50% { box-shadow: 0 0 0 5px rgba(34, 197, 94, 0); }
}
.pv-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
}

/* ===== 输入框 ===== */
.pv-table input[type="text"],
.pv-table input[type="number"] {
    width: 100%;
    padding: 6px 10px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    outline: none;
    font-family: inherit;
    color: #0f172a;
    transition: border 0.2s;
}
.pv-table input[type="text"]:focus,
.pv-table input[type="number"]:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}
.pv-table input[type="text"]:disabled,
.pv-table input[type="number"]:disabled {
    background: #f1f5f9;
    cursor: not-allowed;
    opacity: 0.7;
}
.pv-table input.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}
.pv-url {
    min-width: 160px;
}
.pv-num {
    max-width: 80px;
    min-width: 60px;
}
.pv-interval {
    max-width: 72px;
    min-width: 55px;
}

/* ===== 按钮 ===== */
.pv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 14px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    line-height: 1.4;
    min-height: 36px;
}
.pv-btn:active {
    transform: scale(0.96);
}
.pv-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}
.pv-btn-start {
    background: #22c55e;
    color: #fff;
}
.pv-btn-start:hover:not(:disabled) {
    background: #16a34a;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}
.pv-btn-stop {
    background: #ef4444;
    color: #fff;
}
.pv-btn-stop:hover:not(:disabled) {
    background: #dc2626;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}
.pv-btn-del {
    background: transparent;
    color: #94a3b8;
    padding: 6px 8px;
    min-height: 36px;
    font-size: 16px;
}
.pv-btn-del:hover:not(:disabled) {
    background: #fef2f2;
    color: #ef4444;
}
.pv-btn-del:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
.pv-btn-add {
    background: #f1f4f9;
    color: #334155;
    padding: 7px 20px;
    border: 1.5px dashed #cbd5e1;
}
.pv-btn-add:hover:not(:disabled) {
    background: #e9edf2;
    border-color: #94a3b8;
}
.pv-btn-add:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.pv-btn-stopall {
    background: #fef2f2;
    color: #dc2626;
    border: 1.5px solid #fecaca;
    padding: 7px 18px;
}
.pv-btn-stopall:hover:not(:disabled) {
    background: #fee2e2;
    border-color: #f87171;
}
.pv-btn-stopall:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ===== 底部操作栏 ===== */
.pv-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    gap: 10px;
}
.pv-actions-left,
.pv-actions-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.pv-hint {
    font-size: 13px;
    color: #94a3b8;
}

/* ===== 使用说明 ===== */
.pv-faq {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 2px solid #f1f4f9;
}
.pv-faq-title {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 14px 0;
}
.pv-faq-body {
    background: #fafcff;
    border-radius: 14px;
    padding: 18px 22px;
    border: 1px solid #eef2f6;
    line-height: 1.8;
    font-size: 14px;
    color: #334155;
}
.pv-faq-body h4 {
    font-size: 15px;
    margin: 18px 0 6px 0;
    color: #0f172a;
}
.pv-faq-body h4:first-child {
    margin-top: 0;
}
.pv-faq-body p {
    margin: 6px 0 10px 0;
}
.pv-faq-body ul {
    padding-left: 20px;
    margin: 4px 0 10px 0;
}
.pv-faq-body ul li {
    margin-bottom: 3px;
}
.pv-highlight {
    background: #fefce8;
    border-left: 4px solid #facc15;
    padding: 12px 18px;
    border-radius: 0 8px 8px 0;
    margin: 0 0 16px 0;
}
.pv-highlight strong {
    color: #b45309;
}

/* ===== 关键词标签 ===== */
.pv-keywords {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #eef2f6;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.pv-keywords span {
    background: #f1f4f9;
    color: #475569;
    font-size: 12px;
    padding: 3px 12px;
    border-radius: 20px;
    font-weight: 500;
}

/* ===== 响应式 ===== */
@media (max-width: 700px) {
    .pv-stats {
        font-size: 13px;
        padding: 8px 14px;
        flex-direction: column;
        gap: 4px;
    }
    .pv-table td {
        padding: 6px 6px;
    }
    .pv-table input[type="text"],
    .pv-table input[type="number"] {
        font-size: 13px;
        padding: 5px 6px;
    }
    .pv-num {
        max-width: 60px;
        min-width: 45px;
    }
    .pv-interval {
        max-width: 60px;
        min-width: 45px;
    }
    .pv-btn {
        font-size: 12px;
        padding: 5px 10px;
        min-height: 32px;
    }
    .pv-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .pv-actions-left,
    .pv-actions-right {
        justify-content: center;
    }
    .pv-faq-body {
        padding: 14px 16px;
        font-size: 13px;
    }
    .pv-faq-title {
        font-size: 15px;
    }
    .pv-keywords span {
        font-size: 11px;
        padding: 2px 10px;
    }
}