/* 批量建站表格样式 */
.main-content {
    margin-top: 20px;
    min-height: calc(100vh - 60px);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 40px 10px;
}

.content-container {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.main-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 40px;
    background: linear-gradient(45deg, #17a2b8, #9b42f5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 表格容器 */
.table-container {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    overflow: hidden;
}

.table-wrapper {
    overflow-x: auto;
    margin-bottom: 20px;
}

.batch-table {
    width: 100%;
    min-width: 1200px;
    border-collapse: collapse;
    font-size: 14px;
}

.batch-table th {
    background: linear-gradient(45deg, #17a2b8, #9b42f5);
    color: #fff;
    padding: 15px 10px;
    text-align: center;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid #dee2e6;
}

.batch-table td {
    padding: 12px 8px;
    border: 1px solid #dee2e6;
    text-align: center;
    vertical-align: middle;
}

.table-row:nth-child(even) {
    background-color: #f8f9fa;
}

.table-row:hover {
    background-color: #e9ecef;
}

/* 表格输入框 */
.table-input {
    width: 100%;
    min-width: 120px;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 13px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.table-input:focus {
    outline: none;
    border-color: #17a2b8;
    box-shadow: 0 0 0 2px rgba(23, 162, 184, 0.1);
}

/* 预览和下载按钮 */
.preview-btn,
.download-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 60px;
}

.preview-btn {
    background: #28a745;
    color: #fff;
}

.preview-btn:hover:not(:disabled) {
    background: #218838;
}

.download-btn {
    background: #007bff;
    color: #fff;
}

.download-btn:hover:not(:disabled) {
    background: #0056b3;
}

.preview-btn:disabled,
.download-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

/* 删除行按钮 */
.remove-row-btn {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: #dc3545;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.remove-row-btn:hover {
    background: #c82333;
    transform: scale(1.1);
}

/* 添加行按钮 */
.add-row-container {
    text-align: center;
    margin-top: 20px;
}

.add-row-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(45deg, #17a2b8, #9b42f5);
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.3);
}

.add-row-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(23, 162, 184, 0.4);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-title {
        font-size: 2rem;
    }
    
    .table-container {
        padding: 20px 15px;
        margin: 0 10px 30px;
    }
    
    .batch-table {
        font-size: 12px;
    }
    
    .batch-table th,
    .batch-table td {
        padding: 8px 4px;
    }
    
    .table-input {
        min-width: 100px;
        padding: 6px 8px;
        font-size: 12px;
    }
    
    .preview-btn,
    .download-btn {
        padding: 4px 8px;
        font-size: 11px;
        min-width: 50px;
    }
    
    .remove-row-btn {
        width: 25px;
        height: 25px;
        font-size: 16px;
    }
}

/* 行状态样式 */
.row-pending {
    background-color: #f8f9fa;
}

.row-processing {
    background-color: #fff3cd;
    animation: pulse 1.5s infinite;
}

.row-completed {
    background-color: #d4edda;
}

.row-error {
    background-color: #f8d7da;
}

.row-stopped {
    background-color: #e2e3e5;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* 按钮状态样式 */
.remove-row-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.preview-btn:not(:disabled) {
    background-color: #007bff !important;
    color: white !important;
}

.download-btn:not(:disabled) {
    background-color: #28a745 !important;
    color: white !important;
}